dargslan-container-audit
Container Security Auditor — Audit Docker/Podman containers for privileged mode, root users, dangerous capabilities, sensitive volume mounts, and host network mode. Zero external dependencies.
Installation
pip install dargslan-container-audit
CLI Usage
# Full security report
dargslan-container report
# List all containers
dargslan-container list
# Check for privileged containers
dargslan-container privileged
# Check for root containers
dargslan-container root
# Check dangerous capabilities
dargslan-container caps
# Check sensitive volume mounts
dargslan-container volumes
# Check host network mode
dargslan-container network
# All issues as JSON
dargslan-container json
# Use Podman instead of Docker
dargslan-container report -r podman
Python API
from dargslan_container_audit import ContainerAudit
ca = ContainerAudit() # auto-detects Docker or Podman
# Full audit
issues = ca.audit()
# Specific checks
privileged = ca.check_privileged()
root = ca.check_root_containers()
caps = ca.check_capabilities()
volumes = ca.check_volumes()
network = ca.check_network_mode()
# Formatted report
ca.print_report()
Security Checks
| Check | Severity | Description |
|---|---|---|
| Privileged mode | Critical | Containers with --privileged flag |
| Root user | Warning | Containers running as root |
| Dangerous capabilities | High | SYS_ADMIN, NET_ADMIN, SYS_PTRACE, etc. |
| Sensitive mounts | High | /etc, /proc, /sys, docker.sock |
| Host network | Warning | Containers using --network host |
More from Dargslan
- Dargslan.com — Linux & DevOps eBook Store
- Free Cheat Sheets — 300+ downloadable PDFs
- Blog & Tutorials — 300+ in-depth articles
- All Python Tools — 20+ CLI packages
License
MIT — see LICENSE
Metadata
Release files for dargslan-container-audit 1.0.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 |
|---|---|---|---|---|
| dargslan_container_audit-1.0.0.tar.gz | 5.8 kB | Without provenance | Details for dargslan_container_audit-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dargslan_container_audit-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for dargslan_container_audit-1.0.0-py3-none-any.whl |
Total release size: 12.7 kB
Release files / dargslan_container_audit-1.0.0.tar.gz
| Download URL | dargslan_container_audit-1.0.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d991f512d37e994fe91f32efd85fe89dc0dda56cbe889d7af56a73995e82892
|
|
BLAKE2b-256 checksum How to use checksums |
5480bf8c5ebb5f50b2c16d242c97addf74ba44454c412feeb12d249820219066
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / dargslan_container_audit-1.0.0-py3-none-any.whl
| Download URL | dargslan_container_audit-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3ab4ef900ac6ca95ddfa031561c6b135e8a7e4b13753d62f56838f1b580a72e
|
|
BLAKE2b-256 checksum How to use checksums |
510c4719b4c52ac5708b4a21b81e9b23d48c0f90ace34ff4562147e51cd39a33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for dargslan-container-audit 1.0.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.