How bramcps/web-security-auditor works
SiteAudit scans a submitted website and returns an evidence-backed security report with findings and a weighted A–F grade. Users submit targets through either the web interface or CLI; the scanner normalizes the URL, fetches the landing page, inspects TLS, runs passive checks and optional authorization-gated active probes, then grades the findings. The web endpoint also enforces consent, active-mode configuration, and rate limits. README capabilities include discovery, frontend, network, and server checks; these are represented under the check modules. Relationships reflect shown calls and documented behavior; unsampled details are not expanded.
Main entry points: Scanner.php Scan coordinator · Http.php Safe HTTP client · scan.php JSON endpoint · Advanced.php Advanced checks
Components 16
User interfaces
- Web interface
public/app.js - JSON endpoint
api/scan.php - CLI runner
bin/scan.php
Scan orchestration
- Scan coordinator
src/Scanner.php - Safe HTTP client
src/Http.php - TLS inspection
src/Tls.php
Security checks
- Passive checks
src/Checks.php - Advanced checks
src/Advanced.php - Active probes
src/Active.php
Report output
- Weighted grader
src/Grade.php - Web report
public/app.js - CLI report
bin/scan.php
Other components
- Web user
- CLI user
- Target website
- DNS records
Connections 21
- Web user → Web interface: submits target
README.md - Web interface → JSON endpoint: posts scan
public/app.js - JSON endpoint → Scan coordinator: runs scan
api/scan.php - CLI user → CLI runner: starts scan
README.md - CLI runner → Scan coordinator: runs scan
bin/scan.php - Scan coordinator → Safe HTTP client: fetches page
src/Scanner.php - Scan coordinator → TLS inspection: inspects TLS
src/Scanner.php - Scan coordinator → Passive checks: runs checks
src/Scanner.php - Scan coordinator → Advanced checks: runs checks
src/Scanner.php - Scan coordinator → Active probes: runs when enabled
src/Scanner.php - Scan coordinator → Weighted grader: grades findings
src/Scanner.php - Safe HTTP client → Target website: requests pages
src/Http.php - TLS inspection → Target website: opens TLS connection
src/Tls.php - Passive checks → Safe HTTP client: fetches paths
src/Checks.php - Advanced checks → Safe HTTP client: fetches resources
src/Advanced.php - Advanced checks → DNS records: queries records
README.md - Active probes → Safe HTTP client: sends probes
src/Active.php - Active probes → Target website: tests parameters
README.md - JSON endpoint → Web report: returns JSON
public/app.js - Web report → Web user: shows report
public/app.js - CLI report → CLI user: prints report
bin/scan.php