Usage
Table of contents
Slips reads traffic from a network interface, or from these files:
Pcap files (internally using Zeek)
Packets directly from an interface (internally using Zeek)
Suricata flows (from JSON files created by Suricata, such as eve.json)
Argus flows (CSV file separated by commas or TABs)
Zeek/Bro flows from a Zeek folder with log files
Nfdump flows from a binary nfdump file
Text flows from stdin in zeek, argus or suricata form
It’s recommended to use PCAPs.
All the input flows are converted to an internal format. So once read, Slips works the same with all of them.
View results in the web interface.
Optional: the Kalipso terminal interface (install the
modules/kalipsosubmodule separately).The commands below work the same in Docker and native installs.
Reading the input
The table below shows the different parameter Slips uses for different inputs.
| File/interface | Argument | Example command |
|---|---|---|
| Network interface (*) | -i | ./slips.py -i en0 |
| pcap | -f | ./slips.py -f test.pcap |
| Argus binetflow | -f | ./slips.py -f test.binetflow |
| Zeek/Bro folder/log | -f | ./slips.py -f zeek_files |
| Nfdump flow | -f | ./slips.py -f test.nfdump |
| Suricata flows | -f | ./slips.py -f suricata.json |
| stdin | -f | ./slips.py -f zeek |
| Access Point | -ap | ./slips.py -ap wifi_interface,eth_interface |
(*) To find the interface in Linux, you can use the command ifconfig.
Settings live in
config/slips.yaml.
Daemonized vs interactive mode
Slips can run in two modes:
Mode |
How to start it |
What happens |
|---|---|---|
Interactive (default) |
|
Slips stays in your terminal. Press Ctrl-C to stop it. |
Daemon |
|
Slips runs in the background and gives you your terminal back. |
Slips runs in interactive by default, if you’re unsure, use the default.
Output files go to a dir created and printed to your CLI when you run slips e.g
output/<some_dir>You can pass
-oto override the default generated output dir.By default you don’t need root to run Slips. If you point the output directory to a folder owned by root, run Slips with sudo or give your user write access to that folder.
Running Slips as a daemon
./slips.py -i eth0 -o output/my-network -w -D
What to expect:
Startup: waits up to 30 seconds, then prints the daemon PID and log file.
Startup errors: printed in your terminal.
Follow progress:
tail -f output/my-network/slips.log. The lineSlips daemon core workers startedmeans Slips is up.Logs:
slips.log(messages) anderrors.log(errors) in the output folder. Old logs are kept.One daemon at a time. Normal runs can still run next to it.
PID file:
permanent/slips_daemon.lock. No sudo needed for it.
Find, stop and restart running instances
Run these from the Slips folder, using the same Python environment you used to start Slips:
Command |
What it does |
|---|---|
|
Shows every running Slips instance started from this folder. |
|
Stops Slips if only one instance is running. |
|
Stops the instance with PID |
|
Stops every running instance from this folder. |
|
Restarts the running daemon. |
|
Restarts the daemon with PID |
These commands work alone.
Don’t combine them with
-i,-f,-cor other analysis options.
Listing instances
--list-instances shows each instance’s PID, how it was started, web port, input and output folder.
Finds daemons, terminal runs, and runs started with
&ornohup.Skips Slips’ internal workers and runs from other Slips folders.
A
-in WEB PORT means no web interface was found.Read-only: starts nothing and touches no database.
Stopping
If several instances run,
--stoplists them and asks for a PID.Same as pressing Ctrl-C: Slips saves its data and shuts down cleanly.
Waits up to 45 seconds. If something is still running, it prints the PIDs and exits with an error (no force-kill). Check
errors.log.Stopping a PCAP run early skips the rest of the PCAP.
Saved history and alerts are never deleted.
-S/--stopdaemonis now--stop.
Restarting
--restartstops the daemon, then starts it again with the same command and folder.Daemons only. It can’t restart interactive runs or stopped daemons.
Waits up to 5 minutes for saving, with progress every 10 seconds. If stopping fails, nothing new starts.
Config files are read again, so config changes apply.
Your options (
-i,-o,-c,-w,--web-port,--keep-history) are kept as they were.
On macOS, use the Python from your virtual environment, for example:
.venv-macos/bin/python slips.py --restart
Running Several slips instances
Each Slips run needs Redis. By default Slips starts and uses Redis on port 6379:
Redis database |
What it holds |
Shared between runs? |
Cleared on startup? |
|---|---|---|---|
Port 6379, DB 0 |
The current run’s profiles, time windows and alerts |
No |
Yes (set |
Port 6379, DB 1 |
Cache, such as threat intelligence |
Yes, by all runs |
No |
Use
-mto run several instances at once.Each one gets its own Redis port from 32768 to 32850, or pick one with
-P <port>.
How Slips runs |
Redis port for DB 0 |
|---|---|
Live traffic ( |
6379 |
|
First free port from 32768 to 32850 |
|
The port you give |
All instances share the cache (port 6379, DB 1).
Output goes to
output/<filename>_<timestamp>/.Slips starts the Redis servers it needs automatically.
On macOS, you may get a popup asking to allow the new port. Click Allow.
Running Slips twice on the same input creates a new output folder each time.
Each web interface only shows the run that started it. If you use
-won several runs, give each one its own--web-port.When you are done, close the Redis servers Slips started with
./slips.py --killall.
Analyze a PCAP while a live capture is running
Analyze a PCAP (or a finished Zeek folder) without disturbing a running live capture.
Use
-m,-fand-otogether:
nice -n 15 ./slips.py -m -w \
-c config/slips.yaml \
--web-port 55002 \
-f dataset/test7-malicious.pcap -o output/pcap-analysis-01
Use
-cwith your normal config. No need to copy or edit it.Pick a web port the live capture doesn’t use, then open
http://127.0.0.1:55002/.Use a new
-ofolder for each analysis. Reusing one replaces the old analysis.nicegives the live capture CPU priority. It doesn’t limit memory, so on low-RAM machines analyze PCAPs elsewhere.When it finishes, answer
n(or press Enter) to keep the web interface open. Keep that terminal open.Don’t use
--keep-history,--clearcacheor-P 6379here. Slips refuses them.
Slips keeps this analysis separate from the live one automatically:
What |
Live capture |
PCAP analysis |
|---|---|---|
Redis |
Port 6379, DB 0 |
Its own Redis port (32768-32850) |
Host identity DB |
|
|
Regex generator store |
|
|
T Cell store |
|
|
Threat intelligence feed downloads |
|
The same folder |
Whitelist |
Your whitelist |
The same whitelist (a copy is kept in |
Redis and web passwords |
Yours |
The same files in |
Zeek files |
As configured |
Kept inside the analysis output |
Web interface |
As configured |
Only reachable from this machine (localhost) |
Automatic Slips updates |
As configured |
Turned off |
Threat intelligence cache |
Port 6379, DB 1 |
Shared with the live capture |
Your config file is never changed.
The Configuration tab in the web interface shows the settings the analysis used.
To open the web interface of a remote machine, forward the port over SSH from your own computer:
ssh -N -L 127.0.0.1:55002:127.0.0.1:55002 user@remote-host
Keep detections across a live-interface restart
Use --keep-history with the same interface and output folder every time you
start Slips:
./slips.py -i eth0 -o output/my-network --keep-history -w
First start: no
databases/flows.sqliteyet? Slips starts fresh. No setup needed.Later starts: old alerts, evidence and web history are kept.
Temporary Redis DB 0 data is cleared. The shared cache (DB 1) is kept.
Stop the previous run first. Slips refuses two runs with the same output folder or web port.
Not allowed with
-mor a-Pport other than 6379. A separate PCAP analysis can still run beside it.For a clean start, run without
--keep-history.Slips doesn’t keep everything forever. Old flows, alerts and logs are removed or archived.
Limits and how to change them: How Slips forgets the past.
Each run uses a free Redis port from 32768 to 32850.
If more than one Redis server is open, Slips warns you:
[Main] Warning: You have 2 redis servers running. Run Slips with --killall to stop them.
Close them with:
./slips.py -k
Then choose what to close:
Choose which one to kill [0,1,2 etc..]
[0] Close all servers
[1] dataset/sample_zeek_files - port 32768
[2] dataset/sample_zeek_files - port 32769
[3] dataset/sample_zeek_files - port 32770
Type a number, or
0to close all servers.If every port from 32768 to 32850 is used, Slips can’t start and shows:
All ports from 32768 to 32769 are used. Unable to start slips.
Press Enter to close all ports.
Press Enter to close all ports, then start Slips again.
-gruns Slips on a growing Zeek directory. It was added because running Slips on an interface has issues on macOS.Run Slips in Docker and mount a Zeek folder into the container.
Start Zeek inside the container:
bro -C -i <interface> tcp_inactivity_timeout=60mins tcp_attempt_delay=1min <path_to>/slips/zeek-scripts
Start Slips on that folder:
./slips.py -e 1 -g <zeek_dir> -i <interface>
Slips treats the folder like one made by
-iand keeps waiting for flows until you stop it.Required: pass
-iwith the same interface Zeek is monitoring.
Reading the output
Where to find Slips’ results:
alerts.json and alerts.txt (output folder): all evidence and detections, as text and JSON.
output/alerts/alerts_summary.log: one short summary per alert. Needs thealert_summarymodule.llm-summary/alert_summary.log(output folder): logs of how those summaries were made. Needs thealert_summarymodule. Detail level:alert_summary.log_verbosity.LLM/llm.log(output folder): logs of LLM requests and responses. Needs theLLMmodule.Log folder named current-date-time: traffic split by profile and time window, with a summary of each.
Web interface - browser based GUI for viewing slips detections, incoming and outgoing traffic, and an organized timeline of flows.
The Web Interface
Enable the run-specific local interface with -w:
./slips.py -e 1 -f dataset/test7-malicious.pcap -w
Open
http://localhost:55000/.Or enable it in
config/slips.yamlwithweb_interface.enabled: true. The port isweb_interface.port.Tabs: Overview, Alerts, Evidence and Hosts, with search, sorting and filters.
You can click from an alert to its evidence to its flows.
More details: Local web interface.
Docker on Linux: use
--net=host. The web interface only listens on localhost, so normal port publishing can’t reach it.
Saving the database
You can save slips analysis and load it again if you want to view the analysis details later.
Saving
Slips saves the database automatically when an analysis ends.
Location:
<output_dir>/databases/dump.rdb.If the web interface is running, Slips keeps Redis open instead of saving.
Loading
sudo ./slips.py -d output/<run>/databases/dump.rdb
Replace the path with your saved
.rdbfile.-dcannot be combined with other input flags (-f,-i, …).The web interface cannot upload, browse or switch saved databases. Loading is done only with
-d.
Limits
Loading needs root and is only supported on Linux.
Not supported in Docker because of Redis problems inside containers.
Whitelisting
Whitelist what you don’t want Slips to process: an IP, a domain, a MAC address, a whole organization, or an exact HTTP request path (
uri).Choose the direction: traffic to them, from them, or both.
Choose what to skip:
flows: not processed.
alerts: flows still shown, no alerts.
blocking: everything is still detected, but the IP is never blocked in the firewall or ARP poisoned.
It skips communication to or from these items, not every packet that mentions them.
Example: whitelisting
slack.comstill shows a DNS request to 1.2.3.4 asking forslack.com.Turn the whitelist on or off with
enable_local_whitelistinconfig/slips.yaml.On a live interface, Slips ignores its own lookup connections (update checks,
whois, public-IP lookups).This applies only to the current run, not to imported captures.
Don’t edit the default
config/whitelist.conf. Copy it, edit your copy, and setwhitelists.local_whitelist_pathin your Slips config.
Example:
cp config/whitelist.conf config/my_whitelist.conf
cp config/slips.yaml config/my_slips.yaml
Then set local_whitelist_path: config/my_whitelist.conf in config/my_slips.yaml and run Slips with:
./slips.py -c config/my_slips.yaml -f dataset/test7-malicious.pcap
The attacker and victim of every evidence are checked, plus their related IPs, DNS resolutions, SNI and CNAMEs.
If any of them is whitelisted, the flow or evidence is discarded.
Whitelists use bloom filters to make checks fast.
Flows Whitelist
If you whitelist an IP address, Slips will check all flows and see if you are whitelisting to them or from them.
If you whitelist a domain, Slips will check:
Domains in HTTP Host header
Domains in the SNI field of TLS flows
All the Domains in the DNS resolution of IPs (there can be many) (be careful that the resolution takes time, which means that some flows may not be whitelisted because Slips doesn’t know they belong to a domain).
Domains in the CN of the certificates in TLS
If you whitelist an organization, then:
Every IP is checked against all the known IP ranges of that organization
Every domain (SNI/HTTP Host/IP Resolution/TLS CN certs) is checked against all the known domains of that organization
ASNs of every IP are verified against the known ASN of that organization
If you whitelist a MAC address, then:
The source and destination MAC addresses of all flows are checked against the whitelisted mac address.
Blocking Whitelist
To keep flows, evidence and alerts while preventing firewall blocking and ARP poisoning, put this rule in your copied whitelist file:
ip,192.168.1.128,both,blocking
Alerts Whitelist
To suppress one evidence type only when a specific source IP connects to a specific destination port, add this line to your copied whitelist file:
ip,192.168.1.163->*:902,src,alerts,UNKNOWN_PORT
All three must match: source
192.168.1.163, destination port902, evidence typeUNKNOWN_PORT.*means any destination IP. The source port can be anything.Other sources, ports and evidence types can still alert.
Flows are still processed. Matching future evidence is left out of alert scoring. Old evidence and alerts are not removed.
IPv6 source:
[2001:db8::10]->*:902.The source must be one IP. The port must be 1 to 65535. Needs
src,alerts. ICMP can’t match (no ports).Leave out the fifth column to cover every evidence type.
The source must be recorded in the evidence, not inferred from a domain.
Not the same as
ip,192.168.1.163:902,src,alerts,UNKNOWN_PORT, which matches source port 902.Restart Slips once after upgrading. After that, edits refresh normally. The web editor supports this too.
If you whitelist some piece of data not to generate alerts, the process is the following:
If you whitelisted an IP
We check if the source or destination IP of the flow that generated that alert is whitelisted.
We check if the content of the alert is related to the IP that is whitelisted.
If you whitelisted a domain
We check if any domain in alerts related to DNS/HTTP Host/SNI is whitelisted.
We check also if any domain in the traffic is a subdomain of your whitelisted domain. So if you whitelist ‘test.com’, we also match ‘one.test.com’
If you whitelisted an organization
We check that the ASN of the IP in the alert belongs to that organization.
We check that the range of the IP in the alert belongs to that organization.
We match organization domains and their subdomains, such as
captive.apple.comforapple.com.
If you whitelist a MAC address, then:
The source and destination MAC addresses of all flows are checked against the whitelisted mac address.
Tranco whitelist
Slips uses the Tranco list (a top-sites ranking that is hard to manipulate) to reduce false alerts.
It downloads the top 10k domains and, by default, whitelists their evidence and alerts. Flows are still shown.
The list is updated daily. Change this with
online_whitelist_update_periodinconfig/slips.yaml.Turn it on or off with
enable_online_whitelist.Storage: kept in Redis as
tranco_whitelisted_domains, in download order. Other modules, such asRegexGenerator, read the firstwhitelists.tranco_top_benign_limitentries.
Whitelisting Example
Don’t edit
config/whitelist.conf. Copy it, pointlocal_whitelist_pathin your copied config to the copy, and edit that.Your copied whitelist can contain:
“IoCType”,”IoCValue”,”Direction”,”IgnoreType”,”EvidenceType” ip,1.2.3.4,both,alerts ip,192.168.1.163:5353,dst,alerts ip,[fe80::1]:5353,dst,alerts ip,192.168.1.10->*:902,src,alerts,UNKNOWN_PORT ip,192.168.1.128,both,blocking domain,google.com,src,flows domain,apple.com,both,both ip,94.23.253.72,both,alerts ip,91.121.83.118,both,alerts mac,b1:b1:b1:c1:c2:c3,both,alerts organization,microsoft,both,both organization,facebook,both,both organization,google,both,both organization,apple,both,both organization,twitter,both,both uri,/health,both,flows
Whitelist columns
Write one rule per line, with four required columns and an optional fifth:
IoCType,IoCValue,Direction,IgnoreType,EvidenceType
Separate columns with commas. Don’t quote values.
Use lowercase for type, direction and mode.
Lines starting with
;are comments.Start a rule with
#to disable it.Don’t put a comment after a rule on the same line.
Column |
What it does and why |
|---|---|
|
What to match: |
|
The address, name or path, such as |
|
|
|
What to skip. See the modes below. |
|
Limits an |
The four IgnoreType modes have different effects:
Mode |
Effect |
|---|---|
|
Flows are still processed. Matching evidence is left out of scoring and alerts. Use Show excluded in the web interface to see it. |
|
Matching flows are skipped before detection, so they can’t produce detections. Use |
|
Skip matching flows and leave matching evidence out of scoring and alerts. |
|
Keep everything, but never block or ARP-poison that IP. Needs one IP, |
Supported values and their limits:
IP address: one IPv4 or IPv6 address, on every port. No subnets or ranges (like
192.168.1.0/24).IP and its port:
192.168.1.10:902or[2001:db8::10]:902. Address and port must match on the same side.srcmeans source port,dstmeans destination port.Any IP on a port:
*:902matches that port on the chosen side. One port number (0 to 65535, no leading zeros), no TCP/UDP choice. Use one line per port.Source IP to a destination port:
192.168.1.10->*:902. Needssrc,alertsand a port from 1 to 65535. ICMP can’t match. The evidence must record the source IP and destination port.Domain: a domain and its subdomains, with no
https://or path. Slips must know the domain from DNS or protocol data.Organization:
google,microsoft,apple,facebookortwitter.MAC address: six pairs separated by colons. Slips must have recorded the host’s MAC.
URI: an exact HTTP request path (with the query string, if any). Max 256 characters, no commas.
/healthdoes not match/health?check=1. It is not a prefix or regex.Use
both,flowsorboth,both.Direction and IP/port are ignored.
This rule keeps flows but leaves out only UNKNOWN_PORT evidence for one source connecting to destination port 902:
ip,192.168.1.10->*:902,src,alerts,UNKNOWN_PORT
All conditions on the line must match.
Other whitelist rules still apply, so a broader rule can still suppress the same traffic.
For the same type, value and evidence type, the last rule wins.
Adding a rule does not delete old evidence or alerts.
Popup notifications
Slips can show a desktop notification when a host crosses the alert threshold.
It shows the host IP and name, the latest finding, and the host score. Details stay in the web interface.
Off by default. Turn it on with
popup_alerts: yesinconfig/slips.yaml.Linux: supported, needs root.
Needs
notify-send(thelibnotify-binpackage on Debian/Ubuntu).
Docker: not supported.
macOS: no root needed.
Slips builds a small Slips notification app in
~/Applications/Slips Notifications.app. It needs Apple’s developer tools (swiftc,sips,codesign).Allow notifications for Slips in System Settings → Notifications. Check Focus settings if banners are hidden.
If the app can’t be built, Slips falls back to
osascript. That uses Script Editor’s permission and icon.
Restart Slips after enabling
popup_alertsor updating the notification code.
Slips permissions
Slips doesn’t need root permissions unless you
use the blocking modules (Firewall and ARP poisoner) ( with -p )
load a saved database ( with -d )
To let any user (not only root) capture with Zeek, run:
sudo setcap cap_net_raw,cap_net_admin=eip /<path-to-zeek-bin/zeek
Even with sudo, Slips drops root in modules that don’t need it.
Modifying the configuration file
config/slips.yamlholds Slips’ settings. Below are some you can change.Don’t edit the default file. Copy it and run Slips with your copy using
-c.
Example:
cp config/slips.yaml config/my_slips.yaml
./slips.py -c config/my_slips.yaml -f dataset/test7-malicious.pcap
Generic configuration
Time window width.
Each IP in the traffic gets a profile, split into time windows.
Default window: 1 hour. Change it with
time_window_widthinconfig/slips.yaml.
Analysis Direction
analysis_directionisoutorall.It controls which traffic Slips analyzes.
all: both inbound traffic (incoming attacks) and outbound traffic (data exfiltration).out: only traffic from internal hosts (A) to external hosts (B).Both modes create profiles for internal and external IPs.
Persistent runtime data
permanent_dirsets where data that must survive between runs is stored.This includes
p2p_trust_runtime/,databases/regex_store/, and shared databases such as the Fides cache underdatabases/.
Live Slips auto update
update.auto_update_slipsturns live Slips updates on or off:
update:
auto_update_slips: false
This is separate from
feeds_update_manager, which only updates TI feeds.If a TI feed returns an empty reply, Slips keeps the last valid entries and logs the skip in
slips.log. A later nonempty version loads at the next check.Invalid entries are skipped and logged. The rest of the feed still loads.
Automatic updates may overwrite the default config files. Use your own config copies to keep your changes.
Choose the update channel with
update.channel_to_update_slips_from:stable->origin/masterunstable->origin/developtesting-> uses the branch specified inupdate.testing_branch_to_update_slips_from
Disabling a module
Disable a module by adding its name to the
disablelist.Use the module’s folder name inside
modules/.
ML Detection
mode=train: all received flows are used for training.mode=test: use after training, to test unknown data.Train at least once with Normal data and once with Malicious data before testing.
Blocking
Enabled only with
-p. Needs an interface.Needs root, so Slips can run iptables commands:
sudo ./slips.py -i wlp3s0 -p
In Docker there is no root, so set
IS_IN_A_DOCKER_CONTAINER=Trueto usesudoproperly.The latest Dockerfile sets it. Otherwise, run this in the container:
export IS_IN_A_DOCKER_CONTAINER=True
VirusTotal
Put your VirusTotal API key in
config/vt_api_key.To use another path, set
api_key_file.The file holds only the key, at the start of the first line.
No key means the virustotal module won’t start.
Exporting Alerts
Slips can export alerts to different systems.
Refer to the exporting section of the docs for detailed instructions on how to export.
Logging
To enable the creation of log files, there are two options:
Running Slips with
verboseanddebugflagsUsing errors.log and running.log
Zeek log files
delete_zeek_files(yes/no): delete Zeek logs when Slips stops.Zeek logs grow to GBs. On an interface, Slips deletes them after 1 day (rotation, on by default).
Turn rotation off with
rotation: noinconfig/slips.yaml. See rotation.store_a_copy_of_zeek_files: yes: keep a copy in<output_dir>/zeek_files/when Slips stops. Logs already deleted aren’t included.store_zeek_files_in_the_output_dir: yes: store logs while Zeek is still writing them.If both are on, shutdown keeps the logs already in the output folder.
If you don’t want a copy (
delete_zeek_fileson,store_a_copy_of_zeek_filesoff), large logs such asarp.logare deleted periodically.
Rotation of zeek logs
Rotation stops Zeek logs from growing and saves disk space. It only runs on an interface.
Default: every 1 day. Change it with
rotation_periodinconfig/slips.yaml.Format: a number plus a unit:
usec,msec,sec,min,hrorday. A space and a pluralsare optional. See Zeek rotation interval.keep_rotated_files_for: keep rotated files for this many days before deleting them. Days only.
Running Slips with verbose and debug flags
Two settings,
verboseanddebug, each from 0 to 3.verbose(default 1): how much Slips tells you about its normal work. Example: “Done writing logs to file x.”debug(default 0): errors only, so none are printed by default. Example: “Error reading threat intelligence file, line 4, column 2”Higher number, more detail.
Set them with
-vand-e:
./slips.py -c config/slips.yaml -v 2 -e 1 -f zeek_dir
The levels are below.
Below is a table showing each level of both.
| Verbosity | Debugging | |
| 0 | Don't print | Don't print |
| 1 | Show basic operation, proof of work | Print exceptions |
| 2 | Log I/O operations and filenames | Unsupported and unhandled types (cases that may cause errors) |
| 3 | Log database/profile/timewindow changes | Red warnings that need examination - developer warnings |
Using errors.log and running.log
errors.log: errors, in the output folder. Written in interactive and daemon mode, with or without-e. See Daemonized vs interactive.slips.log: general messages, in the same folder.You can rename both in the
outputconfig section.
Reading Input from stdin
Slips can read text flows from stdin, in interactive mode only.
Supported: Zeek conn.log (JSON), Suricata and Argus.
Start Slips with:
./slips.py -f zeek
or
./slips.py -f suricata
When you see
[InputProcess] Receiving flows from stdin., start sending flows.Zeek lines must be JSON. They are treated as conn.log lines.
Made for network simulators and scripts.
Slips as an access point
Slips can monitor two interfaces with Zeek when it runs as an access point.
Use
--access-pointor-apwith a comma-separated list. List the wifi interface first, then ethernet:
./slips.py --access-point wlan0,eth0
or
./slips.py -ap wlan0,eth0
Zeek logs go to
zeek_files/eth0/andzeek_files/wlan0/in the output folder.Slips detects the host IP, gateway IP and Zeek logs of each interface separately.
Plug in a zeek script
Put your script in the
zeek-scriptsfolder.Add its file name to
zeek-scripts/__load__.zeek. For a script calledarp.zeek:
@load ./arp.zeek
Zeek output is hidden by default, so script errors fail silently.
Exporting strato letters
Turn on
export_strato_lettersinconfig/slips.yaml.Slips writes
strato_letters.tsvto the output folder.Use this file to train the Slips RNN module.
Slips parameters
-cor--configPath to the Slips config file (defaultconfig/slips.yaml). Copy the default and pass your copy instead of editing it.-vor--verboseVerbosity level. This logs more info about Slips.-eor--debugDebugging level. This shows more detailed errors.-for--filepathRead and automatically recognize a Zeek dir, a Zeek conn.log file, a Suricata JSON file, Argus, PCAP.-ior--interfaceRead packets from an interface.-lor--createlogfilesCreate log files with all the traffic info and detections.-For--pcapfilterPacket filter for Zeek. BPF style.-ccor--clearcacheClear the cache database.-por--blockingLet Slips block malicious IPs. Needs root. Uses iptables on Linux and a Packet Filter anchor (com.apple/slips) on macOS.-cbor--clearblockingRemove Slips-owned iptables or macOS Packet Filter rules.-oor--outputStore alerts.json and alerts.txt in the given folder.-dor--dbRead an analysed file (rdb) from disk.-Dor--daemonRun slips in daemon mode-kor--killallKill all unused redis servers--list-instancesList accessible running Slips instances from this Slips folder.--stop [PID|all]Stop the only running instance, a chosen PID, or all instances from this folder.--restart [PID]Stop a running daemon and start it again with its original arguments.-mor--multiinstanceRun multiple instances of slips, don’t overwrite the old one-Por--portThe redis-server port to use--keep-historyKeep the previous live run’s detections and web history in the same-ofolder (starts fresh if there is none). Redis DB 0 is cleared.-gor--growingTreat the given Zeek folder as growing, such as one made when running on an interface.-wor--webinterfaceEnable the local web interface for this Slips run-Vor--versionUsed for checking your running Slips version flags.-imor--input-moduleUsed for reading flows from a module other than input process.-apor--access-pointUsed for reading packets from two interfaces when Slips is running as an access point.
Disk and RAM usage on long runs
When Slips monitors an interface for days or weeks, it removes old data on its own so it does not fill your RAM or disk:
Old time windows are deleted from RAM.
Old flows are deleted from the flow database.
Old alerts and evidence are moved to archive files, which are deleted later.
Slips logs and Zeek logs are rotated.
All limits have safe defaults and can be changed in the flow_retention and detection_history sections of config/slips.yaml
Check How Slips forgets the past for what is kept, for how long, and how to change it.
Limiting Slips resource consumption
Very large PCAP using too much CPU or memory? Lower Slips’ priority:
renice -n 6 -p <Slips-PID>