picosnitch
- An ultra lightweight program for linux that monitors your system and notifies you whenever it sees a new program that connects to the network
- Or when the sha256 changes for one of those programs (can also check VirtusTotal)
- And features a curses based UI for browsing past connections
- Inspired by programs such as GlassWire, Little Snitch, and OpenSnitch
getting started
installation
- install from PyPI with
pip3 install picosnitch[full] --upgrade --user - depends on the BPF Compiler Collection (e.g. for Ubuntu)
sudo apt install python3-bpfcc
usage
- run daemon with
picosnitch start - stop daemon with
picosnitch stop - view past connections with
picosnitch view
configuration
- config and list of seen processes are stored in
~/.config/picosnitch/snitch.json - stop picosnitch if it is currently running before making any edits otherwise your changes will be lost
{
"Config": {
"DB write min (sec)": 1, # Minimum time (seconds) between writing logs to snitch.db
"Keep logs (days)": 365, # How many days to keep connection logs
"Log command lines": True, # Log command line args for each executable
"Log remote address": True, # Log remote addresses for each executable
"Log ignore": [80, "chrome", "firefox"], # List of process names (str) or ports (int)
# will omit connections that match any of these from the connection log (snitch.db)
# the process and executable will still be recorded in snitch.json
"VT API key": "", # API key for VirusTotal, leave blank to disable
"VT file upload": False, # Only hashes are uploaded by default
"VT limit request": 15 # Number of seconds between requests
},
"Latest Entries": [], # Log of entries by time
"Names": {}, # Log of processes by name containing respective executable(s)
"Processes": {}, # Log of processes by executable containing respective name(s)
"SHA256": {} # Log of processes by executable containing sha256 hash(es) and VirusTotal results
}
- the connection log is stored in
~/.config/picosnitch/snitch.db - the error log is stored in
~/.config/picosnitch/error.log
building from source
- install from source using python 3 with
python setup.py install --user - required dependencies (installed automatically from PyPI on setup if not already present)
plyer psutil vt-py - additional dependency (requires manual installation)
bcc
Metadata
Release files for picosnitch 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| picosnitch-0.5.0.tar.gz | 27.3 kB | Without provenance | Details for picosnitch-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| picosnitch-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for picosnitch-0.5.0-py3-none-any.whl |
Total release size: 55.2 kB
Release files / picosnitch-0.5.0.tar.gz
| Download URL | picosnitch-0.5.0.tar.gz |
|---|---|
| Size | 27.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eed30fd06fdb4972741101555793747e82f4b53ebeab01b8cd93f253fa7afc64
|
|
BLAKE2b-256 checksum How to use checksums |
631be68bf5fe0bc38f7e54af845a7f426abf3f25d6b3427790f4d984800b003f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
|
Release files / picosnitch-0.5.0-py3-none-any.whl
| Download URL | picosnitch-0.5.0-py3-none-any.whl |
|---|---|
| Size | 28.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5df83dcc87028dfbb447cb1eb0a859d37b04749bd21755997ff4e67cfcdc2eb6
|
|
BLAKE2b-256 checksum How to use checksums |
caf1974d17714625e31be2ef8dc87d30b401a11eee418091f65902015824b7e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
|
Security for picosnitch 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.