Threat-Informed Security-Testing Strategy

    1

    Plans threat-informed security testing: SAST/DAST pipelines, penetration testing scope, environment fidelity, and gates.

    $5

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseOpenClawOpenClaw+21 more

    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

    CriterionWhy it matters hereWeightSource of the weight
    Continuous Pre-Merge Vulnerability PreventionVulnerabilities must be detected in CI before reaching staging or production (SEC-4935).0.40David O'Reilly (CISO SecOps)
    Threat-to-Test Mapping Rigor (MITRE ATT&CK)Test cases must simulate real-world adversary techniques targeting financial transactions.0.25Enterprise Threat Intel Guild
    CI Pipeline Execution Latency (Target <= 5 min)Security scanners must execute rapidly to avoid developer friction and pipeline bottlenecks.0.20Elena Rostova (Head of Quality Eng)
    Test Environment Fidelity & Zero Production PIIStaging environments must mirror production architecture without exposing real customer PANs.0.15PCI-DSS v4.0 Req 11 Mandate

    Comparison

    Security Testing Strategy CandidateTest Execution CadenceCI/CD Integration ModelTest Data SourcingEvaluation
    Option A: Annual Penetration Testing OnlyAnnual (Point-in-time)None (Manual report PDF)Production samplingRejected: Caused SEC-4935 22-day vulnerability exposure window.
    Option B: Advisory Scanners (Non-Blocking)Per pull requestNon-blocking warningsPlain mock filesRejected: Warnings ignored by sprint teams; zero quality enforcement.
    Option C: Multi-Tier Shift-Left + Red Team (Chosen)Continuous pre-merge + BiannualHard blocking gates (SAST/SCA/DAST)100% Synthetic masked dataSelected: 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).
    • 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 / VectorTesting MethodologyAutomated CI ToolGate Enforcement Threshold
    T1190 (Exploit Public-Facing App)DAST & FuzzingOWASP ZAP API Scan0 High / Medium Findings
    T1552 (Unsecured Credentials)Pre-commit Secret ScanGitleaks0 Committed Secrets
    OWASP API1:2023 (BOLA)Automated AuthZ ProbesCustom Pytest Harness0 Cross-Tenant Access Leaks
    OWASP A06:2021 (Vulnerable Components)SCA Dependency AuditSnyk Container & App0 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:
        1. Secret scanner finds any API key or token.
        2. SAST finds any CRITICAL or HIGH severity CWE.
        3. SCA finds any unpatched CRITICAL CVE with an available fix.
    • 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

    ClaimClassificationSourceFreshness
    80 backend services processing card paymentsprovidedScope intakeCurrent
    OWASP ASVS Level 3 and PCI-DSS v4.0 Req 11providedRegulatory compliance mandateCurrent
    Incident SEC-4935 22-day vulnerability leakprovidedForensic incident recordHistorical
    Multi-stage automated CI/CD pipelinedecidedDavid O'Reilly & Elena Rostova2026-09-15
    Prohibition of production PII in test environmentsdecidedArchitectural invariant INV-SECTEST-022026-09-15
    14-day maximum waiver expirationdecidedArchitectural invariant INV-SECTEST-032026-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

    1. Marcus Vance provisions reusable GitHub Actions workflows containing Gitleaks, Semgrep, and Snyk scanners.
    2. Quality Engineering deploys synthetic test data generation pipelines for staging database seeding.
    3. Conduct staging dry run verifying pull request blocking on simulated vulnerable test repositories.

    threat-informed-security-testing-strateg.pdf

    PDF · document

    Generated

    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

    Map threat models to specific SAST, DAST, and manual test casesDefine safe execution bounds and ROE for automated scannersEstablish finding normalization and production deployment gatesAlign security testing fidelity with asset classification levels

    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

    1. Check threat model and asset authority.
    2. Select verification techniques by surface.
    3. Establish rules of engagement and safe execution bounds.
    4. Normalize finding evidence and deduplicate alerts.
    5. Define triage, risk acceptance, retest, and gate criteria.
    6. 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.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 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

    Listed12 days ago

    What's inside

    Frequently Asked Questions