How andrejsemionov/netaudit works
NetAudit audits networks, websites, and servers through registered checks, available from both CLI and web UI. Users select checks and parameters; the engine dispatches each check, which probes external targets or gathers server evidence over SSH, then returns findings and scores. Reports can be analyzed by AI and saved for history and trends. The map preserves the documented audit domains and major internal layers; several check families are represented by their exact directory because their individual implementations were not sampled.
Main entry points: ssh_auth_audit.py SSH log audit · app.py Web API · engine.py Check engine · netaudit.py CLI
Components 22
Check runtime
- Check registry
netaudit_pkg/registry.py - Check engine
netaudit_pkg/engine.py - SSH executor
netaudit_pkg/ssh.py - Live checks
netaudit_pkg/streaming.py
Audit capabilities
- Audit plugins
netaudit_pkg/checks - Server security
netaudit_pkg/checks/server_security.py - Nginx hardening
netaudit_pkg/checks/nginx_hardening.py - SSH log audit
netaudit_pkg/checks/ssh_auth_audit.py - Log discovery
netaudit_pkg/log_discovery.py - Auth parser
netaudit_pkg/ssh_auth_parser.py - Auth detection
netaudit_pkg/ssh_auth_detection.py
Findings and analysis
- Finding model
netaudit_pkg/findings.py - Hardening scores
netaudit_pkg/scoring.py - Report redaction
netaudit_pkg/redaction.py - AI analysis
History and state
- SQLite storage
netaudit_pkg/storage.py - Report history
netaudit_pkg/history.py - Trend analysis
netaudit_pkg/trends.py
Other components
- Operator
- Anthropic API
Connections 28
- Operator → CLI: runs checks
README.md - Operator → Web API: selects checks
README.md - CLI → Check engine: runs checks
netaudit.py - Web API → Check engine: runs checks
web/app.py - Check engine → Check registry: looks up checks
netaudit_pkg/engine.py - Audit plugins → Check registry: register checks
netaudit_pkg/checks/__init__.py - Check engine → Audit plugins: dispatches checks
netaudit_pkg/engine.py - Server security → SSH executor: connects over SSH
netaudit_pkg/checks/server_security.py - Nginx hardening → SSH executor: uses SSH session
netaudit_pkg/checks/nginx_hardening.py - SSH log audit → SSH executor: connects over SSH
netaudit_pkg/checks/ssh_auth_audit.py - SSH log audit → Log discovery: probes log sources
netaudit_pkg/checks/ssh_auth_audit.py - SSH log audit → Auth parser: parses collected logs
netaudit_pkg/checks/ssh_auth_audit.py - Auth detection → Auth parser: consumes parsed events
netaudit_pkg/ssh_auth_detection.py - SSH log audit → Auth detection: detects log signals
netaudit_pkg/checks/ssh_auth_audit.py - SSH log audit → Finding model: builds findings
netaudit_pkg/checks/ssh_auth_audit.py - Server security → Finding model: reports findings
netaudit_pkg/checks/server_security.py - Nginx hardening → Hardening scores: uses scoring
netaudit_pkg/checks/nginx_hardening.py - Check engine → Report redaction: redacts report
netaudit_pkg/engine.py - Web API → SQLite storage: saves reports
web/app.py - SQLite storage → Report redaction: redacts before save
netaudit_pkg/storage.py - CLI → Report history: shows history
netaudit.py - Report history → SQLite storage: reads and writes
netaudit_pkg/history.py - CLI → Trend analysis: requests trends
netaudit.py - Web API → Trend analysis: requests trends
web/app.py - Trend analysis → SQLite storage: reads saved reports
netaudit_pkg/trends.py - Web API → Live checks: streams checks
web/app.py - Operator → AI analysis: requests analysis
README.md - AI analysis → Anthropic API: sends report
README.md