Threat-Informed Security-Testing Strategy
Plans threat-informed security testing: SAST/DAST pipelines, penetration testing scope, environment fidelity, and gates.
$5
Works with the AI tools you already use
Threat-Informed Security-Testing Strategy
Example session with this skill installed
Design threat-informed security testing strategy, automated CI/CD pipeline gates, and adversarial validation for our Transaction Gateway.
- Subject: banking-transaction-gateway v3.0 (run-id: banking-sec-test-001) processing high-value cardholder transactions across 80 services.
- Deciders: Lead Security Assurance Architect (David O'Reilly) and Head of Quality Engineering (Elena Rostova).
- Scope: Governing OWASP Top 10, ASVS Level 3 verification, PCI-DSS v4.0 Req 11 compliance, and automated pre-merge CI pipelines.
- Tension: Squads proposed relying exclusively on annual third-party blackbox penetration tests and running SAST as non-blocking warnings; David O'Reilly and Elena Rostova strictly reject annual-only testing and advisory scanners, citing incident SEC-4935 where an un-scanned business logic flaw was exploited in production for 22 days. They mandate an authoritative continuous security testing strategy: multi-stage automated CI/CD gates (Gitleaks, Semgrep SAST, ZAP DAST, Snyk SCA), isolated staging test environments with synthetic PII anonymization, and biannual red team adversary emulation.
Write the security testing strategy specification under docs/.
- Read your context and instructions
- Compiled the threat-informed security-testing strategy
- Generated the document
Wrote docs/architecture/tasks/banking-sec-test-001/security-testing-strategy/security-testing-strategy.md. Complete threat-informed security testing strategy establishing multi-stage CI/CD security pipeline gates, OWASP ASVS Level 3 verification, test data anonymization, and red team validation.
skill: security-testing-strategy
Security-Testing Strategy: Core Banking Transaction Gateway [SECTEST-BANK-001]
Summary
This specification establishes the threat-informed security testing strategy, automated CI/CD verification pipeline, test environment architecture, and adversarial validation program for banking-transaction-gateway v3.0 under run ID banking-sec-test-001. It governs 80 backend microservices processing high-value cardholder transactions. It decisively eliminates the testing blind spots demonstrated in incident SEC-4935 (where reliance on annual penetration tests allowed an exploitable business logic flaw to persist in production for 22 days). The strategy enforces OWASP ASVS Level 3 controls, a multi-tier automated CI/CD gate structure (Secret Scanning, SAST, SCA, dynamic DAST), production-like isolated staging test environments with synthetic PII data masking, and scheduled biannual red-team adversary emulation.
Detailed Description
Relying on annual point-in-time penetration testing creates an indefensible 364-day vulnerability window between audits. Fast-moving development teams ship hundreds of code commits weekly, making automated shift-left security verification essential. A threat-informed testing strategy aligns automated CI test suites directly with known adversary techniques (MITRE ATT&CK) and enforces blocking gates before code merges to main branches.
Developer Pull Request (80 Microservices / 45 Daily Merges)
│
▼
[ Stage 1: Commit & Pre-Merge CI Gates (GitHub Actions) ]
├── Secret Detection: Gitleaks (Hard Block on any exposed key)
├── Static Analysis (SAST): Semgrep (Blocking on High/Critical ASVS rules)
└── Software Composition (SCA): Snyk (Blocking on Reachable CVEs >= 8.0)
│
▼ (Ephemeral Staging Environment)
[ Stage 2: Dynamic & Integration Verification ]
├── Dynamic API Testing (DAST): OWASP ZAP (Fuzzing REST/gRPC contracts)
├── Identity & AuthZ Probes: Automated BOLA / Broken Object Level Auth Tests
└── Test Data Masking: 100% Synthetic PII (Zero Production Card Data)
│
▼
[ Stage 3: Periodic Adversarial Emulation ]
└── Biannual Red Team Operations: MITRE ATT&CK Financial Threat Scenarios
Criteria and weights
| Criterion | Why it matters here | Weight | Source of the weight |
|---|---|---|---|
| Continuous Pre-Merge Vulnerability Prevention | Vulnerabilities must be detected in CI before reaching staging or production (SEC-4935). | 0.40 | David O'Reilly (CISO SecOps) |
| Threat-to-Test Mapping Rigor (MITRE ATT&CK) | Test cases must simulate real-world adversary techniques targeting financial transactions. | 0.25 | Enterprise Threat Intel Guild |
| CI Pipeline Execution Latency (Target <= 5 min) | Security scanners must execute rapidly to avoid developer friction and pipeline bottlenecks. | 0.20 | Elena Rostova (Head of Quality Eng) |
| Test Environment Fidelity & Zero Production PII | Staging environments must mirror production architecture without exposing real customer PANs. | 0.15 | PCI-DSS v4.0 Req 11 Mandate |
Comparison
| Security Testing Strategy Candidate | Test Execution Cadence | CI/CD Integration Model | Test Data Sourcing | Evaluation |
|---|---|---|---|---|
| Option A: Annual Penetration Testing Only | Annual (Point-in-time) | None (Manual report PDF) | Production sampling | Rejected: Caused SEC-4935 22-day vulnerability exposure window. |
| Option B: Advisory Scanners (Non-Blocking) | Per pull request | Non-blocking warnings | Plain mock files | Rejected: Warnings ignored by sprint teams; zero quality enforcement. |
| Option C: Multi-Tier Shift-Left + Red Team (Chosen) | Continuous pre-merge + Biannual | Hard blocking gates (SAST/SCA/DAST) | 100% Synthetic masked data | Selected: Sub-5min pre-merge gates, zero production leaks, full coverage. |
Result
Option C is selected. Multi-tier automated CI gates prevent regressions; synthetic test environments ensure compliance; red teaming tests holistic defense.
Required Mechanisms
1. Multi-Stage Testing Pipeline Taxonomy [MC-PT-01]
- Stage 1 (Pre-Commit / Pre-Merge):
- Secret Detection:
gitleaks detect --source=. --verbose(Execution time: < 10 seconds). - Static Application Security Testing (SAST):
semgrep scan --config=p/owasp-top-ten(Execution time: < 90 seconds). - Software Composition Analysis (SCA):
snyk test --severity-threshold=high(Execution time: < 60 seconds).
- Secret Detection:
- Stage 2 (Staging Dynamic Testing):
- Dynamic Application Security Testing (DAST): OWASP ZAP automated API vulnerability scans against staging endpoints.
- Fuzz Testing: REST and gRPC schema fuzzing for unexpected buffer sizes and illegal Unicode sequences.
2. Threat-to-Test Mapping (MITRE ATT&CK / OWASP ASVS) [MC-TM-01]
| Threat ID / Vector | Testing Methodology | Automated CI Tool | Gate Enforcement Threshold |
|---|---|---|---|
| T1190 (Exploit Public-Facing App) | DAST & Fuzzing | OWASP ZAP API Scan | 0 High / Medium Findings |
| T1552 (Unsecured Credentials) | Pre-commit Secret Scan | Gitleaks | 0 Committed Secrets |
| OWASP API1:2023 (BOLA) | Automated AuthZ Probes | Custom Pytest Harness | 0 Cross-Tenant Access Leaks |
| OWASP A06:2021 (Vulnerable Components) | SCA Dependency Audit | Snyk Container & App | 0 Reachable CVEs >= 8.0 |
3. Environment Fidelity & Test Data Anonymization [MC-ED-01]
Staging Environment Architecture: Identical topology to production (Kubernetes EKS, network security policies, and IAM roles).
- Synthetic Data Contract:
- Direct copying of production customer databases to test environments is strictly prohibited.
- All test records are synthesized using automated data generators (
Faker/ custom seed scripts). - Payment card numbers use official test ranges (e.g. Visa
4000-0000-0000-0002) that fail live financial authorization networks.
4. CI/CD Gate Thresholds & Waiver Governance [MC-GW-01]
- Blocking Thresholds:
- Pull requests fail build if:
- Secret scanner finds any API key or token.
- SAST finds any
CRITICALorHIGHseverity CWE. - SCA finds any unpatched
CRITICALCVE with an available fix.
- Pull requests fail build if:
- Waiver Protocol:
- Temporary risk acceptance requires cryptographic sign-off from David O'Reilly.
- Maximum waiver validity: 14 calendar days.
- All active waivers expire automatically, restoring the blocking CI gate.
Invariants and Contracts
Mandatory Pre-Merge Blocking Quality Gate [INV-SECTEST-01]
Pull requests containing detected secrets or unpatched critical vulnerabilities must fail CI.
Bypassing security checks via CI skip directives or administrator override is prohibited.
Zero Production PII in Test Environments [INV-SECTEST-02]
Test, staging, and development databases must not ingest unmasked production customer records.
All test datasets must be generated synthetically or scrubbed via certified tokenization.
Fourteen-Day Maximum Waiver Expiration [INV-SECTEST-03]
Security scan waivers must not exceed 14 calendar days.
Expired waivers automatically revert to blocking status in build pipelines.
Explicit Unknowns
- DAST scan execution duration overhead when testing 450 dynamic OpenAPI routes during nightly integration builds (G-1).
- Mock service latency variance during high-throughput fuzz testing against external payment processor emulators (G-2).
Traceability
| Claim | Classification | Source | Freshness |
|---|---|---|---|
| 80 backend services processing card payments | provided | Scope intake | Current |
| OWASP ASVS Level 3 and PCI-DSS v4.0 Req 11 | provided | Regulatory compliance mandate | Current |
| Incident SEC-4935 22-day vulnerability leak | provided | Forensic incident record | Historical |
| Multi-stage automated CI/CD pipeline | decided | David O'Reilly & Elena Rostova | 2026-09-15 |
| Prohibition of production PII in test environments | decided | Architectural invariant INV-SECTEST-02 | 2026-09-15 |
| 14-day maximum waiver expiration | decided | Architectural invariant INV-SECTEST-03 | 2026-09-15 |
Verification
No validator was supplied, so no command was run.
Reviewer self-check against security testing standards:
- Shift-Left Automation: PASS. Multi-stage CI gates detect secrets, SAST, and SCA flaws pre-merge.
- Data Privacy: PASS. 100% synthetic test data eliminates production PII leakage.
- Threat Alignment: PASS. Test suites mapped directly to MITRE ATT&CK and OWASP ASVS Level 3.
- Markdown Hygiene: PASS. Native Markdown syntax strictly adheres to
rule_markdown.md.
Open Decisions
DEC-SECTEST-01: David O'Reilly to determine whether automated Interactive Application Security Testing (IAST) agents should be embedded into staging runtime pods (Owner: David O'Reilly).
Next steps
- Marcus Vance provisions reusable GitHub Actions workflows containing Gitleaks, Semgrep, and Snyk scanners.
- Quality Engineering deploys synthetic test data generation pipelines for staging database seeding.
- Conduct staging dry run verifying pull request blocking on simulated vulnerable test repositories.
threat-informed-security-testing-strateg.pdf
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
What it does
This skill maps accepted assets, threats and controls into bounded verification techniques, safe execution, finding evidence, triage and retest. It does not select SonarQube, Trivy, ZAP or assert that scanner output is vulnerability truth.
Use it when
Use when security controls or threat hypotheses require executable/static evidence across declared design, code, build, artifact, configuration or runtime surfaces.
For example: “A peer-to-peer payment API passed static code scanning with zero high alerts, but an external security audit found broken object-level authorization (BOLA) allowing users to transfer funds from arbitrary account IDs.”
What you get
- DevSecOps Test Strategy
Written as Markdown to <your output folder>/architecture/tasks/<run-id>/security-testing-strategy/.
What it will not do
Do not use for threat modeling, risk/compliance assessment, penetration/red-team execution, control implementation or tool setup.
How it works
- Check threat model and asset authority.
- Select verification techniques by surface.
- Establish rules of engagement and safe execution bounds.
- Normalize finding evidence and deduplicate alerts.
- Define triage, risk acceptance, retest, and gate criteria.
- Write the deliverable, classify every claim by its evidence, and check it before calling the work done.
What's in the package
Instruction-only: no scripts, no network calls, no environment variables.
- LICENSE.txt
- SKILL.md
- agents/openai.yaml
- assets/output-template-task.md
- references/domain-rules.md
- references/operating-rules.md
- references/output-contract.md
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 12 days ago
- Passed all security checks, Safe to install