Security Audit errors

Common error signatures

Failures in SecurityAuditWorkflow typically fall into three categories:

How to diagnose

  1. Check whether the failure is pre-scan or mid-scan. An error before any subagent output points to path validation (_validate_file_path) or workflow initialization (SecurityAuditWorkflow.__init__). An error after partial output points to a subagent — check which of the four names (vuln-scanner, secret-detector, auth-reviewer, remediation-planner) last appeared in the report.

  2. Inspect the SecurityViolation and Severity fields. The security module exports SecurityViolation and Severity directly. If you catch a SecurityViolation, its severity level tells you whether the audit halted on a policy violation or logged and continued.

  3. Verify the alert engine database. AlertEngine defaults to .attune/alerts.db. If that path is not writable, get_alert_engine() fails on first call. Run attune alerts metrics to confirm the engine can read telemetry; a failure here means the SQLite file is missing or locked.

  4. Check for failed notification backends. After check_and_trigger() fires, call MultiBackend.get_failed_backends() to see which backends did not accept the AlertEvent. A non-empty list means at least one deliver_webhook or deliver_email call returned False.

  5. Validate webhook URLs before adding alerts. _validate_webhook_url is called inside AlertEngine.add_alert. If init fails with a validation error, re-run with explicit flags (--webhook-url, --email, --channel) to isolate which field is rejected.

Source files

Tags: security, audit, owasp, scanning, cve