Automated SAST excels at pattern-matching syntactic sinks (formatted SQL queries, shell=True, hardcoded secrets, vulnerable dependencies), while manual architectural review is essential for business logic, authorization checks, session integrity, and template escaping context. SecureCodeAudit pairs both.
| Category | Manual Verification Questions | SAST Coverage |
|---|---|---|
| A01:2025 — Broken Access Control | Are object/route permissions verified server-side on every endpoint? Are state-changing actions restricted to POST/PATCH/DELETE with CSRF protection? Are outbound URLs protected from SSRF and file paths validated for traversal (CWE-22)? |
Partial (catches path sinks/SSRF patterns; misses missing @login_required or CSRF absence) |
| A02:2025 — Security Misconfiguration | Is framework debug mode disabled in production? Are TLS, HttpOnly, SameSite, and CSP headers configured? Are default/privileged container flags disabled? |
Strong (debug=True, Docker/YAML rules) |
| A03:2025 — Software Supply Chain Failures | Are dependencies pinned in deterministic lockfiles? Do pinned versions have known OSV/CVE advisories? Are third-party rules/configs isolated? | Strong (static manifest parser + OSV Batch API) |
| A04:2025 — Cryptographic Failures | Are passwords hashed with slow salted KDFs (scrypt, Argon2id, bcrypt) rather than plaintext or bare MD5/SHA1? Are TLS certs verified (verify=True) and tokens generated via CSPRNG (secrets)? |
High (MD5, random, verify=False caught; plaintext DB comparison often requires manual check) |
| A05:2025 — Injection | Are SQL queries parameterized? Are OS commands passed without shell=True? Is template rendering auto-escaped (safe filter avoided on user data)? |
Very High (Bandit + Semgrep + AST consensus; HTML template safe filter requires template check) |
| A06:2025 — Insecure Design | Are rate limits, account lockouts, password complexity, timeouts, and secure temp files enforced? | Partial (timeouts, mktemp caught; complexity stubs like return True require manual inspection) |
| A07:2025 — Authentication Failures | Are session tokens cryptographically signed/verified? Are credentials free of hardcoded secrets and compared in constant time? | Mixed (hardcoded secrets caught; unsigned base64 cookies require manual review) |
| A08:2025 — Software or Data Integrity Failures | Is untrusted deserialization (pickle, yaml.load, Marshal.load) avoided? Are uploaded archives checked for zip-slip and bombs? |
High (pickle, yaml.load, tarfile checks) |
| A09:2025 — Security Logging & Alerting Failures | Are secrets and passwords excluded from logs and set_trace_callback output? Are security-relevant failures logged? |
Low (manual review required to catch set_trace_callback(print)) |
| A10:2025 — Mishandling of Exceptional Conditions | Do error handlers avoid failing open (except Exception: pass returning empty auth/session state) and avoid leaking stack traces? |
High (except: pass caught by Bandit; fail-open logic checked manually) |
- Intra-procedural Taint Scope:
ast_pythontraces flows within individual functions/route handlers; multi-hop cross-module helper chains and dynamic runtime dispatch require manual review. - Unpinned Dependency Ranges: Without executing
pip/npm(disallowed for safety), range specifiers (Flask>=2.0) cannot be deterministically matched against CVEs without a lockfile. - Authorization & Business Logic: SAST cannot know whether an endpoint ought to enforce admin-only ownership checks unless annotated explicitly.
- Per-Language Depth: Python receives 3 independent code engines (
bandit,semgrep,ast_python) plussecrets/deps; JS/TS, Java, PHP, Go, C/C++, Ruby, and config files rely on Semgrep rulesets plussecretsanddeps(where lockfiles are supported).