Skip to main content

picosnitch

  • Monitors your system to notify you whenever a program makes its first remote network connection (while picosnitch has been running)
  • Or when the sha256 changes for one of these programs
  • Logs and config are stored in ~/.config/picosnitch/snitch.json
  • Inspired by programs such as:
    • GlassWire
    • Little Snitch
    • OpenSnitch
    • simplewall
    • tinysnitch
  • picosnitch only provides monitoring and notification capabilities, see the above programs for features such as a GUI, bandwidth tracking, firewall configuration, or filtering

getting started

linux

  • install from PyPI with
    pip3 install picosnitch --upgrade --user
  • depends on the BPF Compiler Collection
    sudo apt install python3-bpfcc
  • run daemon with
    sudo -E python3 -m picosnitch

windows

  • no longer supported for now, use a version <= v0.2.5

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)
    filelock plyer psutil python-daemon vt-py
  • additional dependency (requires manual installation)
    bcc
  • picosnitch.py can also be run directly

configuration

  • stored in ~/.config/picosnitch/snitch.json
  • terminate picosnitch if it is currently running before making any edits otherwise your changes will be lost
{
  "Config": {
    "Log command lines": True, # Log command line args for each executable
    "Log remote address": True, # Log remote addresses for each executable
    "Only log connections": True, # Only log processes that make remote network connections
    # otherwise log every new process from exec()
    "Remote address unlog": [80, "chrome", "firefox"], # List of process names (str) or ports (int)
    # will omit connections that match any of these from the log of remote addresses to avoid clutter
    # the process and executable will still be logged if it has not been already
    "VT API key": "", # API key for VirusTotal, leave blank otherwise
    "VT file upload": False, # Only hashes are uploaded by default
    "VT limit request": 15 # Number of seconds between requests
  },
  "Errors": [], # Log of errors by time
  "Latest Entries": [], # Log of entries by time
  "Names": {}, # Log of processes by name containing respective executable(s)
  "Processes": {}, # Log of processes by executable containing:
  # cmdlines, days seen, first seen, last seen, name, ports, remote addresses
  # some cmdlines are consolidated using * as a wildcard
  "Remote Addresses": {} # Log of remote addresses containing respective executable(s)
}

Metadata

Release files for picosnitch 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for picosnitch 0.3.4
File Size Uploaded Provenance Actions
picosnitch-0.3.4.tar.gz 24.6 kB Without provenance Details for picosnitch-0.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for picosnitch 0.3.4
File Interpreter ABI Platform Actions
picosnitch-0.3.4-py3-none-any.whl Python 3 none any Details for picosnitch-0.3.4-py3-none-any.whl

Total release size: 49.7 kB

Release files / picosnitch-0.3.4.tar.gz

Download URL picosnitch-0.3.4.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
95f46d543cc2cf7ec1a1aa56298de3cd8ddec18981974991e95468fc8151617f
BLAKE2b-256 checksum
How to use checksums
740d2b6b9be7289fa9ca0e6f007e6302b3966ba78bd86a8f548cc032d4058110
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release files / picosnitch-0.3.4-py3-none-any.whl

Download URL picosnitch-0.3.4-py3-none-any.whl
Size 25.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d25f331238e4b4a8fd03be1549ba5d0b368bdbd0884c80de43818e4d12b4c66c
BLAKE2b-256 checksum
How to use checksums
a3736e5704dfbc73da69e1bdb09b891326c6a489adf7ff5c696aed3db8cb0fa4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Security for picosnitch 0.3.4

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.

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page