Security Pre-Flight & Code Review Checklist

In Plain Language

The Security Checklist is an engineering defense shield applied to every pull request and pre-release build. It guarantees that developers never commit hardcoded passwords or API keys, sanitize all incoming database queries against SQL injection, verify server-side authorization on every endpoint, and patch vulnerable open-source dependencies before code reaches production.

Plain-Language Executive Summary

The Security Checklist is a protective shield applied to every pull request. It ensures developers never commit passwords or API keys, always sanitize user inputs, and block known open-source software vulnerabilities before code reaches production.

Lifecycle Moment: Code Review, Pre-Commit, and CI/CD Build Gates

Applied at pre-commit git hooks, during pull request reviews, and in continuous integration build runners.

Security Best Practices: Good vs. Bad Examples

Anti-Pattern Practice

Committing an AWS secret key to a private Git repo or concatenating SQL queries with raw user string variables.

Verified Standard

Injecting ephemeral secrets via AWS Secrets Manager and enforcing parameterized ORM query bindings in all repository methods.

Authoritative Security Criteria (5 Items)

SEC-INP-00010-00a0-00

Input Validation & Parameterized Database Queries

CI/CD Automatable

All user-supplied parameters are validated against allowlist schemas and passed to database queries via parameterized placeholders.

Verification: SAST scanner (Semgrep SQL injection rule) and unit test assertions.
OWASP Top 10 A03:2021 & ISO 27001 Control A.8.28
SEC-SEC-00020-00a0-00

Zero Hardcoded Secrets & Token Verification

CI/CD Automatable

Code contains zero API tokens, private keys, or passwords; all secrets are retrieved from centralized secret vaults.

Verification: Automated pre-commit and CI secret scanning hook (Gitleaks / TruffleHog).
ISO 27001 Control A.8.24 (Key Management)
SEC-AUT-00030-00a0-00

Server-Side Access Control & Ownership Verification

Hybrid Automated/Manual

All API endpoints verify user identity and enforce tenant record ownership on every request to prevent IDOR vulnerabilities.

Verification: Automated integration tests asserting 403 Forbidden on cross-tenant requests.
OWASP Top 10 A01:2021 & HIPAA 45 CFR § 164.312(a)
SEC-DEP-00040-00a0-00

Software Composition Analysis (SCA) Clean

CI/CD Automatable

All third-party open source packages (npm, pip, cargo) have zero known Critical or High severity CVE vulnerabilities.

Verification: Automated dependency vulnerability gate (`npm audit` / Snyk / Trivy).
OWASP Top 10 A06:2021 & FedRAMP ConMon
SEC-LOG-00050-00a0-00

Security Audit Logging Without PII/PHI Leakage

Hybrid Automated/Manual

All authentication events, privilege escalations, and sensitive data exports emit structured JSON logs without exposing passwords or PHI.

Verification: Audit log assertion tests and peer review sign-off.
OWASP Top 10 A09:2021 & HIPAA 45 CFR § 164.312(b)

Shift-Left Security Gate Integration in CI/CD

Security checklist criteria run prior to code merge, failing pipeline builds on critical vulnerabilities:

# CI Security Scan Configuration
- name: SEC-SEC-00020: Secret Detection Gate
  run: gitleaks detect --source . --verbose --redact

- name: SEC-INP-00010: SAST Static Security Scan
  run: semgrep scan --config=auto --error

- name: SEC-DEP-00040: Software Composition Analysis (SCA)
  run: npm audit --audit-level=high
Try This with AI: Pull Request Security Audit

Copy this prompt into your AI coding assistant to perform an automated pre-flight security review on your code changes.

You are a Senior Application Security Engineer. Audit this TypeScript API controller and database repository method against our Security Pre-Flight Checklist: 1. 'SEC-INP-00010': Identify unparameterized queries or missing input allowlists. 2. 'SEC-AUT-00030': Check for missing session ownership checks (Broken Object Level Authorization / IDOR). 3. 'SEC-LOG-00050': Verify that audit logs emit without leaking tokens or passwords.

Next Checklist Gate: Compliance & Regulatory Release Checklist

Learn how to verify Design History Files (DHF), risk files, and cryptographic release signatures.

Open Compliance Checklist

Community Discussion & Feedback

Attributed peer feedback and official Netspective architecture notes.

Was this documentation helpful?(100% found this helpful • 0 ratings)

Leave Feedback or Question

○ Loading user info...
0/2000 chars

Discussion (0)

Loading discussion thread...