9 releases (breaking)
|0.8.0||Aug 8, 2018|
|0.7.0||Jun 1, 2018|
|0.6.0||May 22, 2018|
|0.4.1||Feb 16, 2018|
|0.4.0||Nov 18, 2017|
#56 in Command line utilities
103 downloads per month
sniffglue is a network sniffer written in rust. Network packets are parsed concurrently using a thread pool to utilize all cpu cores. Project goals are that you can run sniffglue securely on untrusted networks and that it must not crash when processing packets. The output should be as useful as possible by default.
There is an official package available for archlinux:
pacman -S sniffglue
To build from source, make sure you have libpcap and libseccomp installed,
cargo install sniffglue
- dropbox beacons
You can build sniffglue as a docker image to debug container setups. The image is currently about 11.1MB. It is recommended to push it to your own registry.
docker build -t sniffglue . docker run -it --init --rm --net=host sniffglue eth0
To report a security issue please contact kpcyrd on ircs://irc.hackint.org.
To ensure a compromised process doesn't compromise the system, sniffglue uses seccomp to restrict the syscalls that can be used after the process started. This is done in two stages, first at the very beginning (directly after env_logger initialized) and once after the sniffer has been setup, but before packets are read from the network.
During the second stage, there's also some general hardening that is applied
before all unneeded syscalls are finally disabled. Those are system specific,
so a configuration file is read from
/etc/sniffglue.conf. This config
file specifies an empty directory for
chroot and an unprivileged account
user that is used to drop root privileges.
This project includes a small boxxy-rs based shell that can be used to explore the sandbox at various stages during and after initialization. This is also used by travis to ensure the sandbox actually blocks syscalls.
cargo run --example boxxy
This project is tested using reprotest. Currently the following variations are excluded:
-time- needed because the crates.io cert expires in the future
-domain_host- requires root for unshare(2) and has been excluded
Don't forget to install the build dependencies.
The packet processing of sniffglue can be fuzzed using cargo-fuzz.
Everything you should need is provided in the
fuzz/ directory that is
distributed along with its source code. Please note that this program links
to libpcap which is not included in the current fuzzing configuration.
cargo fuzz run read_packet
- linux syscallz 0.7
- ansi_term 0.11
- atty 0.2
- clap 2
- dhcp4r 0.1.0
- dns-parser 0.8
- env_logger 0.5
- log 0.4
- nix 0.11
- nom 3.2
- num_cpus 1.6
- pcap 0.7.0
- reduce 0.1.1
- serde 1.0
- serde_derive 1.0
- serde_json 1.0
- sha2 0.7
- threadpool 1.7
- tls-parser 0.5
- toml 0.4
- users 0.7