How kaithepallivijayvardhan08-spec/shadow-linux-hardening-tool works
SHADOW is a terminal-based Linux security assessment and hardening framework. Its principal workflow starts with a CLI request, runs checks across security domains, assesses risk, and presents results in terminal and generated reports; hardening and restore are separate user-invoked workflows. The graph preserves the README’s documented security categories and capabilities. Some subsystem dispatches are documented but their implementation wiring is not shown, so those edges are dashed with no evidence path.
Main entry points: scanner.py System scanner · main.py CLI entry · engine.py Operation engine · hardener.py Hardening engine
Components 26
CLI and orchestration
- CLI entry
shadow/main.py - Operation engine
shadow/core/engine.py
Assessment and risk
- System scanner
shadow/core/scanner.py - Risk engine
shadow/core/risk_engine.py - Terminal HUD
shadow/core/cyborg_display.py
Security domains
- Authentication
shadow/modules/authentication - Remote access
shadow/modules/remote_access - Network security
shadow/modules/network - File security
shadow/modules/file_security - Service security
shadow/modules/services - Storage security
shadow/modules/storage - Monitoring
shadow/modules/monitoring - Package updates
shadow/modules/updates - Kernel security
shadow/modules/kernel - Process security
shadow/modules/processes - System audit
shadow/modules/audit - Access control
shadow/modules/access_control - Scheduled tasks
shadow/modules/scheduled_tasks - File integrity
shadow/modules/integrity
Remediation and output
- Hardening engine
shadow/core/hardener.py - Restore manager
shadow/core/restore.py - Terminal report
shadow/reports/terminal_report.py - JSON report
shadow/reports/json_report.py - HTML report
shadow/reports/html_report.py - PDF report
shadow/reports/pdf_report.py
Other components
- Security operator
Connections 27
- Security operator → CLI entry: requests operation
- CLI entry → Operation engine: starts scan
shadow/main.py - CLI entry → Restore manager: starts restore
shadow/main.py - Operation engine → System scanner: runs checks
- System scanner → Authentication: checks domain
- System scanner → Remote access: checks domain
- System scanner → Network security: checks domain
- System scanner → File security: checks domain
- System scanner → Service security: checks domain
- System scanner → Storage security: checks domain
- System scanner → Monitoring: checks domain
- System scanner → Package updates: checks domain
- System scanner → Kernel security: checks domain
- System scanner → Process security: checks domain
- System scanner → System audit: checks domain
- System scanner → Access control: checks domain
- System scanner → Scheduled tasks: checks domain
- System scanner → File integrity: checks domain
- Operation engine → Risk engine: assesses findings
- System scanner → Terminal HUD: updates display
shadow/core/scanner.py - Operation engine → Terminal report: renders results
shadow/core/engine.py - CLI entry → Hardening engine: starts hardening
- Hardening engine → File integrity: uses detection
shadow/core/hardener.py - CLI entry → Terminal report: requests report
shadow/main.py - CLI entry → JSON report: generates report
- CLI entry → HTML report: generates report
- CLI entry → PDF report: generates report