Offensive testing across the lifecycle
- Design: threat-model new features; note which ones change authentication, authorisation or data exposure.
- Commit and pull request: secret scanning, SAST and dependency checks.
- Staging deploy: dynamic tests of the running application, prioritising changed services.
- Scheduled: full autonomous pentests weekly or monthly; attack-surface monitoring daily.
- Periodic: human-led testing of business logic and high-risk flows.
Ownership and triage
Findings need an owner, and in DevSecOps that is the team that owns the service, not the security team. Security's job is to make findings trustworthy (verified, deduplicated, with evidence) and to set severity policy. Agree service-level targets per severity, such as fixing critical issues within days, and make them visible. A finding that lands in a security dashboard nobody on the product team opens is not in the loop.
Building a fast feedback loop
- Deliver findings where engineers already work: code scanning alerts, pull request comments, the team's issue tracker.
- Include a reproducible request or proof of concept so the engineer can confirm the bug locally.
- Rerun the specific test automatically after the fix merges, and close the issue only when it passes.
- Feed recurring classes of bug back into secure coding guidance and static analysis rules.
Common failure modes
- Too many unverified findings, so engineers stop trusting the tool and start ignoring alerts.
- Findings routed to the security team instead of the owning service team.
- Dynamic tests only against an outdated staging environment that no longer matches production.
- Gating builds on medium-severity findings before false positives are under control.
- Measuring the number of findings rather than how quickly they are fixed.
Metrics that show progress
Count fewer things and measure them consistently: time from discovery to fix by severity, the number of verified findings reopened after a fix, the share of internet-facing assets under regular testing, and how many issues a periodic human test finds that automation missed. That last number tells you where to invest next.
Pentest-Swarm in a DevSecOps programme
Pentest-Swarm gives DevSecOps teams an open-source dynamic testing stage that speaks the formats pipelines already use.
- Source-side stage:
pentestswarm playbook run ci-cd-security(secrets, SAST, dependency audit) with SARIF output. - Dynamic stage:
pentestswarm scan $STAGING_HOST --scope $STAGING_HOST --safe-mode --followafter staging deploys. - Findings include evidence, severity and CVSS;
--verify(beta) adds non-LLM verification. - Self-hosted with any model, including local ones, so findings stay inside your environment.
- Armur's managed tier adds continuous scheduled pentests, human review and retests after fixes.
Where it falls short
Pentest-Swarm tests web applications and APIs; it does not do infrastructure-as-code policy enforcement, container image scanning or runtime protection, for which dedicated tools exist. Its adaptive runs are slower and less deterministic than SAST, so they belong after deploy rather than on every commit. It does not replace human review of business logic.
Questions
Is pentesting part of DevSecOps?
It should be. DevSecOps covers security throughout delivery, and dynamic offensive testing of the running application is the stage most programmes are missing.
Who should own pentest findings in DevSecOps?
The team that owns the affected service, with the security team setting severity policy and ensuring findings are verified.
Does shift-left mean no more annual pentest?
Not necessarily. Continuous testing reduces what the annual test finds; whether you still need one depends on customers and auditors.