Docker¶
netaudit is available as a Docker image from the GitHub Container Registry (GHCR).
The image is built on python:3.12-slim with strace pre-installed, so no local
setup is required.
Quick start¶
Run a command and audit its network calls:
docker run --rm \
--cap-add SYS_PTRACE \
-v "$(pwd)/netaudit.yaml:/netaudit.yaml" \
ghcr.io/cybersecauto-labs/netaudit \
run --allowlist /netaudit.yaml -- curl https://example.com
SYS_PTRACE capability
strace requires the SYS_PTRACE capability.
Add --cap-add SYS_PTRACE (or --privileged for debugging) to every docker run invocation.
Image tags¶
| Tag | Description |
|---|---|
latest |
Most recent release |
X.Y.Z |
Exact version (e.g. 0.3.0) |
X.Y |
Latest patch for a minor version (e.g. 0.3) |
Offline analysis¶
Mount a strace log produced outside of Docker and analyse it without re-running:
docker run --rm \
-v "$(pwd)/strace.log:/strace.log" \
-v "$(pwd)/netaudit.yaml:/netaudit.yaml" \
ghcr.io/cybersecauto-labs/netaudit \
analyze --allowlist /netaudit.yaml /strace.log