How valakchigo-arch/scanner-cis works
Clear Scanner audits endpoint hardening through two distinct Windows paths—a YAML rule engine and a target-local checklist—and a Linux Lynis path. Findings are evaluated or parsed, then packaged and sent to the n8n webhook; failed deliveries can be spooled for later retry. The graph preserves documented baseline, scoring, and optional Windows scanner capabilities. Some subsystem links rely on README statements or SOURCE INDEX references because their full implementations were not sampled.
Main entry points: beacon_contract.py Payload and Transport · executor.py Rule Executor · cis_scanner_windows.py Windows Checklist · rule_scanner_windows.py Windows Rule Scanner
Components 21
Windows Rule Engine
- Rule Baseline Runner
run_rules_live.py
Endpoint Scanners
- Windows Checklist
scanner/windows/cis_scanner_windows.py - Windows Rule Scanner
scanner/windows/rule_scanner_windows.py - THOR Scanner
scanner/windows/thor_scanner.py - Linux Lynis Scanner
scanner/linux/cis_scanner_linux.py
Beacon Delivery
- Payload and Transport
scanner/common/beacon_contract.py - Windows Beacon
scanner/windows/beacon.py - Linux Beacon
scanner/linux/beacon.py - Retry Spool
scanner/common/spool.py
Rule Engine Internals
- Rule Loader
scanner/core/rule_loader.py - Rule Executor
scanner/core/executor.py - Probe Registry
scanner/core/probe_registry.py - PowerShell Probe
scanner/core/probes/windows_powershell.py - Registry Probe
scanner/core/probes/windows_registry.py - PowerShell Runtime
scanner/core/probes/_powershell.py - Condition Evaluator
scanner/core/evaluator.py - Finding Emitter
scanner/core/finding_emitter.py - Risk Scoring
scanner/core/scoring.py - Contract Adapter
scanner/core/contract_adapter.py
Other components
- Scanner Operator
- n8n Webhook
Connections 29
- Scanner Operator → Rule Baseline Runner: runs baseline
- Scanner Operator → Windows Checklist: runs scan
- Scanner Operator → Windows Rule Scanner: runs scan
- Scanner Operator → Linux Lynis Scanner: runs scan
- Scanner Operator → THOR Scanner: runs scan
- Rule Baseline Runner → Rule Executor: executes rules
- Rule Baseline Runner → Rule Loader: loads rules
- Rule Executor → Probe Registry: dispatches probes
scanner/core/executor.py - Rule Executor → Condition Evaluator: evaluates conditions
scanner/core/executor.py - Rule Executor → Finding Emitter: emits findings
scanner/core/executor.py - Probe Registry → PowerShell Probe: registers provider
scanner/core/__init__.py - Probe Registry → Registry Probe: registers provider
scanner/core/__init__.py - Registry Probe → PowerShell Runtime: runs fallback
scanner/core/probes/windows_registry.py - PowerShell Probe → PowerShell Runtime: runs commands
scanner/core/probes/windows_powershell.py - Windows Rule Scanner → Rule Executor: runs rule engine
scanner/windows/rule_scanner_windows.py - Windows Rule Scanner → Contract Adapter: adapts results
scanner/windows/rule_scanner_windows.py - Windows Rule Scanner → Risk Scoring: scores findings
scanner/windows/rule_scanner_windows.py - Windows Checklist → Payload and Transport: builds payload
scanner/windows/cis_scanner_windows.py - Windows Checklist → Windows Beacon: sends result
scanner/windows/cis_scanner_windows.py - Windows Checklist → Retry Spool: stores failed send
scanner/windows/cis_scanner_windows.py - Linux Lynis Scanner → Payload and Transport: builds payload
scanner/linux/cis_scanner_linux.py - Linux Lynis Scanner → Linux Beacon: sends result
scanner/linux/cis_scanner_linux.py - Linux Lynis Scanner → Retry Spool: stores failed send
scanner/linux/cis_scanner_linux.py - THOR Scanner → Payload and Transport: builds payload
scanner/windows/thor_scanner.py - THOR Scanner → Retry Spool: stores failed send
scanner/windows/thor_scanner.py - Windows Beacon → Payload and Transport: sends payload
scanner/windows/beacon.py - Linux Beacon → Payload and Transport: sends payload
scanner/linux/beacon.py - Payload and Transport → n8n Webhook: posts findings
- Retry Spool → Payload and Transport: retries payload