Security Checklists
Overview
Welcome to the Security Checklists section. This directory contains practical, actionable security verification lists designed for different stages of the development and deployment lifecycle.
These checklists ensure consistent application of security controls, prevent regressions, and provide a standardized approach to security verification across teams.
π Available Checklists
PR Security Review Checklist
For: Code reviewers, security team, and
maintainers
When: Every pull request with code
changes
Duration: 5-15 minutes per PR
Purpose: Prevent security vulnerabilities from
entering the codebase
Key Areas Covered:
- β Authentication & Authorization (tokens, sessions, access control)
- β Input Validation & XSS Prevention (form validation, React safety, DOM operations)
- β API Security (requests, responses, error handling, CORS)
- β Data Protection & Logging (sensitive data, error messages, audit trails)
- β Dependencies & Third-party Code (npm audit, vulnerabilities, supply chain)
- β Cryptography & Secrets (environment variables, secrets management)
- β Code Quality & Best Practices (TypeScript, ESLint, error handling)
- β Testing (security test coverage, test execution)
- β Documentation & Comments (code comments, PR descriptions)
- β Manual Security Testing (functional verification, security testing)
Checklist Structure:
- 10 major categories
- 40+ specific items to verify
- Sign-off section for reviewer accountability
- Reference links to detailed documentation
Use this checklist when:
- Reviewing code changes from team members
- Preparing to merge PRs to master
- Verifying security practices in new code
- Training new reviewers on security standards
Pre-Release Security Checklist
For: DevOps teams, SRE, and release
managers
When: 1-2 days before every production
release
Duration: 30-60 minutes per release
Purpose: Ensure all security controls are
active and verified before production deployment
Key Areas Covered:
- β HTTPS & TLS Security (certificates, protocols, cipher suites, HSTS)
- β Security Headers Configuration (CSP, X-Frame-Options, HSTS, Referrer-Policy)
- β Environment & Secrets Configuration (environment variables, API keys, secret rotation)
- β Authentication & Authorization (token validation, login security, RBAC)
- β CORS & Cross-Origin Security (allowed origins, headers, preflight handling)
- β Data Protection & Privacy (encryption, logging, audit trails)
- β Dependencies & Vulnerabilities (npm audit, vulnerability assessment, build security)
- β Deployment & Infrastructure (web server config, access controls, network security)
- β Deployment Verification (health checks, security header validation, SSL/TLS testing)
- β Rollback & Contingency (rollback procedures, incident response)
Checklist Structure:
- 10 major categories
- 60+ specific items to verify
- Multi-phase approach (pre-deployment, deployment day, post-deployment)
- Sign-off section with team accountability
- Post-deployment metrics to monitor
Use this checklist when:
- Preparing for production deployment
- Setting up new environments
- Verifying configuration before release
- Compliance audits and security reviews
- Infrastructure changes or updates
π― Checklist Selection Guide
Based on Your Role
π¨βπΌ Code Reviewer / Developer β Use: PR Security Review Checklist
- Quick review of code changes
- Before approving PRs to master
- ~5-15 minutes per PR
π DevOps / SRE / Release Manager β Use: Pre-Release Security Checklist
- Before production releases
- Environment configuration verification
- ~30-60 minutes per release
π Security Team Lead β Use: Both checklists
- During code reviews
- Before releases
- Quarterly audits
π QA / Testing β Use: PR Security Review (H1-H2 sections only)
- Security test coverage verification
- Test execution validation
π How to Use These Checklists
For Pull Request Reviews
- Copy the PR Security Review Checklist into a GitHub comment or local document
- Work through each section systematically:
- Skip items marked N/A (e.g., if PR doesn't touch API)
- β Check items that pass
- β οΈ Note items that need attention
- β Block PR if critical issues found
- Document findings with specific code references
- Sign off with reviewer name and date
- Approve or request changes in GitHub
For Pre-Release Verification
- Schedule 1-2 days before planned release
- Gather team (DevOps lead, security lead, product manager)
- Work through each section on
deployment/staging environment:
- Test actual configurations
- Run validation scripts (SSL Labs, curl tests, etc.)
- Verify monitoring and alerting
- Document any exceptions with risk assessment
- Get sign-offs from all required stakeholders
- Execute deployment with team monitoring
- Run post-deployment validation within 24 hours
π Checklist Statistics
PR Security Review Checklist
| Category | Items | Estimated Time |
|---|---|---|
| Authentication & Authorization | 7 | 2 min |
| Input Validation & XSS | 6 | 2 min |
| API Security | 9 | 3 min |
| Data Protection & Logging | 6 | 2 min |
| Dependencies | 6 | 2 min |
| Secrets Management | 4 | 1 min |
| Code Quality | 9 | 2 min |
| Testing | 4 | 1 min |
| Documentation | 4 | 1 min |
| Manual Testing | 6 | 2 min |
| TOTAL | 41 | 5-15 min |
Pre-Release Security Checklist
| Category | Items | Estimated Time |
|---|---|---|
| HTTPS & TLS | 9 | 5 min |
| Security Headers | 11 | 5 min |
| Environment & Secrets | 7 | 5 min |
| Authentication & Authorization | 8 | 5 min |
| CORS | 6 | 3 min |
| Data Protection | 10 | 5 min |
| Dependencies & Vulnerabilities | 9 | 5 min |
| Deployment & Infrastructure | 10 | 5 min |
| Verification | 12 | 10 min |
| Rollback & Contingency | 5 | 3 min |
| TOTAL | 87 | 30-60 min |
π Checklist Implementation
Integrating into Workflow
GitHub Branch Protection Rules
# Require security checklist to be completed
Required status checks:
- "Security Review Complete" (comment from reviewer)
CODEOWNERS:
/src/ @security-teamRelease Procedure
Release Process:
1. Code β PR with security review β
2. Staging deployment
3. Pre-release security checklist β
4. Production deployment
5. Post-deployment verification β
CI/CD Integration
# Example GitHub Actions workflow trigger
name: Pre-Release Security Check
on:
workflow_dispatch: # Manual trigger before release
jobs:
security-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: SSL/TLS Validation
run: npm run security:check:tls
- name: Security Headers Check
run: npm run security:check:headers
- name: Dependency Scan
run: npm audit --audit-level=highπ Metrics & Tracking
Track These Metrics
PR Review Metrics
ββ PRs reviewed with checklist: 100%
ββ Average review time: < 15 min
ββ Security issues caught in review: [track trends]
ββ False positives: [track trends]
Release Metrics
ββ Pre-release checklists completed: 100%
ββ Release duration: < 30 min
ββ Security issues in production: 0
ββ Post-release rollbacks due to security: 0
Dashboard Example
Security Checklist Compliance
βββββββββββββββββββββββββββββββββββββββ
PR Security Reviews:
Last 30 days: 45 PRs reviewed
Completion rate: 100% β
Average score: 95%
Issues found: 12
Issues resolved: 11
Pre-Release Checklists:
Last 5 releases: 100% completion
Average time: 42 minutes
No security issues in production β
Team Training:
New reviewers trained: 8
Avg reviewer confidence: 8.5/10
π Maintaining Checklists
Update Checklist When:
- β New security threat emerges
- β New tools or technologies are adopted
- β Security incident occurs (add lessons learned)
- β Compliance requirements change
- β Quarterly security review (planned)
- β Major architecture changes
Versioning
Current Version: 1.0.0 (November 13, 2025)
Changes are tracked in:
- Commit messages in git history
- Version history in each checklist file
- Security team meeting minutes
π Integration with Other Documentation
These checklists reference and support:
PR Security Review β Links to:
Pre-Release Checklist β Links to:
β FAQ
Q: Should we skip items marked N/A?
A: Yes. If a PR only changes documentation, you can skip code-related items. Document which items were skipped and why.
Q: How long should a PR review take?
A: 5-15 minutes depending on complexity. Use this as a guideβquality matters more than speed.
Q: What if we find a security issue?
A: Assign an issue, discuss with the author, and re-review after fixes. Block merge until resolved (unless accepted risk).
Q: Can we customize the checklists?
A: Yes! Customize based on your team's needs, but maintain consistency. Document customizations in your security documentation.
Q: How often should we update the checklists?
A: Quarterly reviews at minimum. Update immediately if new threats or incidents occur.
π€ Contributing
Found an issue or want to improve a checklist?
- Create an issue describing the change
- Reference the specific checklist and item
- Include evidence of the security concern
- Request review from security team
π Support & Questions
For questions about using these checklists:
- For PR reviews: Ask in #security channel or mention @security-team
- For releases: Contact DevOps lead or security team
- For updates: Submit issue or PR with proposed changes
π Compliance & Standards
These checklists implement controls from:
- OWASP ASVS v4.0 β Level 2 standard controls
- OWASP Top 10 2021 β All 10 vulnerabilities
- GDPR β Data protection requirements
- PCI DSS β Payment security (where applicable)
- SOC 2 β Security controls
See Compliance & Standards for detailed mapping.
π Checklist Templates
Minimal PR Review (For docs-only PRs)
## Security Review (Docs-Only)
- [ ] No hardcoded secrets in documentation
- [ ] Security information is accurate
- [ ] No sensitive examples or real credentials
- [ ] Links to security docs are correct
Reviewed by: _________________ Date: _________Standard PR Review (Code changes)
β Use full PR Security Review Checklist
Quick Pre-Release Check (Minor update)
## Quick Pre-Release Check
- [ ] npm audit passes (no high/critical)
- [ ] Security headers verified (curl -I)
- [ ] 401/403 error handling works
- [ ] No console errors in production
Verified by: _________________ Date: _________Full Pre-Release Check (Major release)
β Use full Pre-Release Security Checklist
Last Updated: November 13, 2025
Version: 1.0.0
Maintained By: StockEase Security Team
Review Cycle: Quarterly
Classification: Internal - Security Team &
Developers