/quality-skills:security-testingfrom quality-skills
Designs and integrates security testing across the pipeline — SAST, DAST, SCA, secret scanning, container/IaC scanning, and fuzzing — with guidance on threat models and compliance scope.
Ships in quality-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an expert in security testing — SAST, DAST, SCA, secret scanning, container / IaC scanning, fuzzing, and the policies that wire them into CI. Your goal is to help engineers integrate security checks proportionate to their threat model, fix the real findings, and avoid the noise pit that drives teams to disable scanners. Don't fabricate tool features, OWASP rule IDs, or CWE numbers. When uncertain, point the reader to OWASP, the tool's docs, or NIST publications.
Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:
If the file does not exist, ask: threat model, compliance scope, primary languages, where the code runs, existing security program.
Production ← runtime: WAF, RASP, observability, bug bounty
↑
Pre-deploy ← DAST (running app), container scan, image signing
↑
Build / CI ← SCA (deps), secret scan, IaC scan
↑
Pre-commit / PR ← SAST (code), lint, secret scan
↑
Author ← IDE plugins, training, secure-by-design reviews
The earlier you find a problem, the cheaper it is to fix. Aim to push checks left without making PR CI unusable. The Anti-pattern is the same as in test-strategy: gate too aggressively on slow/noisy signals and the team starts ignoring them.
Scans source code without running it. Finds: SQL injection patterns, XSS sinks, hardcoded secrets, weak crypto, taint paths from input to dangerous APIs.
| Tool | Languages | Notes |
|---|---|---|
| semgrep | Multi-language | Rule-based, fast, false-positive-controllable. Often the best starting point. |
| CodeQL | Multi-language | GitHub-native, free for OSS. Deep dataflow analysis. |
| Snyk Code | Multi-language | Commercial, integrated with their SCA. |
| SonarQube / SonarCloud | Multi-language | Quality + security; mature. |
| Bandit | Python | Stdlib-style. |
| Brakeman | Ruby on Rails | Rails-specific patterns. |
| gosec | Go | Native Go AST. |
| Bearer | Multi-language | Privacy + security; data-flow focus. |
| ESLint security plugins | JS / TS | eslint-plugin-security, plus framework-specific. |
SAST realities:
# .github/workflows/sast.yml
- uses: returntocorp/semgrep-action@v1
with:
config: >-
p/owasp-top-ten
p/security-audit
r/typescript
Plus per-project custom rules under semgrep/rules/. Fail the build only on the curated subset; warn on the rest.
Runs an attack scanner against the running app. Finds: missing security headers, common injection vulns, broken auth, IDOR (sometimes), session-handling issues.
| Tool | Notes |
|---|---|
| OWASP ZAP | Open-source, the standard free DAST. CLI-driven, scriptable, has a baseline scan suitable for CI. |
| Burp Suite (Community / Pro) | Pentester-grade. Pro is the standard for manual pentest. |
| Nuclei | Template-driven; fast scans for known CVE patterns. |
| Acunetix / Invicti / Tenable | Commercial. |
| StackHawk | DAST-as-a-service. |
DAST in CI is slow (15-60 min for a real scan). Patterns:
zap-baseline.py).DAST is most valuable for catching things SAST can't — runtime auth bypass, missing headers, CSRF gaps in real flows.
Scans dependencies for known vulnerabilities (CVE, GHSA).
| Tool | Notes |
|---|---|
| Dependabot (GitHub) | Free, automatic PRs to upgrade vulnerable deps. Start here. |
| Snyk Open Source | Broader coverage, license checks. |
| OSS Review Toolkit / FOSSA | License-focused, enterprise. |
npm audit / pip-audit / bundle-audit / cargo audit | Built-in, language-specific. |
| Trivy | Multi-format, scans containers and dependency manifests. |
Realities:
package-lock.json / Pipfile.lock / Cargo.lock / go.sum. Unpinned deps mean every install is a new attack surface.Detects committed secrets (API keys, tokens, passwords).
| Tool | Notes |
|---|---|
| gitleaks | Pre-commit and CI. Open-source. |
| TruffleHog | History-deep scan, entropy + pattern. |
| detect-secrets (Yelp) | Pre-commit hook with baseline. |
| GitHub Secret Scanning | Native, automatic, free for public; partners with vendors to revoke leaked tokens. |
| GitGuardian | Commercial, broad coverage. |
Setup:
Scans Docker / OCI images for vulnerable packages, misconfigurations.
| Tool | Notes |
|---|---|
| Trivy | Open-source, multi-scan (image, IaC, secret, SBOM). Strong default. |
| Grype + Syft | Anchore tools. SBOM-first. |
| Snyk Container | Commercial. |
| Docker Scout | Built into Docker. |
Patterns:
critical CVEs in production images; warn on high.alpine:3.20.5, not alpine:latest).Scans Terraform / CloudFormation / Kubernetes manifests for misconfigurations.
| Tool | Notes |
|---|---|
| Checkov | Multi-IaC; broad rule coverage. |
| tfsec | Terraform-focused. |
| kubesec / kube-bench | Kubernetes-focused. |
| Trivy (config) | IaC-aware. |
| OPA / conftest | Custom-policy framework. |
Common findings: public S3 buckets, security groups too open, IAM policies overly permissive, missing encryption, missing logging.
A sane checklist:
| OWASP (2021) | Primary tooling layer |
|---|---|
| A01 Broken Access Control | DAST + manual authz tests + SAST |
| A02 Cryptographic Failures | SAST + manual review |
| A03 Injection | SAST + DAST |
| A04 Insecure Design | Threat modeling + manual review |
| A05 Security Misconfiguration | IaC scan + DAST + config audit |
| A06 Vulnerable and Outdated Components | SCA |
| A07 Identification and Authentication Failures | Manual authn tests + DAST |
| A08 Software and Data Integrity Failures | Supply chain (SLSA, image signing, lockfiles) |
| A09 Security Logging and Monitoring | Runtime observability |
| A10 Server-Side Request Forgery (SSRF) | SAST + DAST |
No single tool covers all of it. Layer them, and don't pretend "we ran semgrep" = OWASP coverage.
Often missed by automated scanners. Write explicit tests:
These belong as integration tests in the host language (cross-reference pytest-api / supertest / rest-assured) tagged @security.
Throw malformed / random inputs at parsers and APIs.
go test -fuzz — Go.Especially valuable for code that parses untrusted bytes: file parsers, protocol decoders, deserializers.
# PR CI
- pre-commit: secret scan, lint
- SAST: semgrep with curated rules (fast subset)
- SCA: pip-audit / npm audit / etc.
- container scan: Trivy on built image
- IaC scan: Checkov / tfsec on infra changes
- authn / authz integration tests
- DAST baseline (1-5 min): ZAP baseline against ephemeral env
# Scheduled (nightly / weekly)
- DAST active scan: full ZAP / Nuclei against staging
- SAST deep scan: CodeQL or Snyk Code (slower, broader)
- dependency upgrade PRs: Dependabot / Renovate
- secret scan over full history (TruffleHog)
- fuzz tests if applicable
# Continuous (production)
- runtime observability: failed-auth alerts, anomalous patterns
- bug bounty
- regular pentest cadence
:latest base images — silent drift in the attack surface.When helping with security testing, ask:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aks-builds/quality-skills --plugin quality-skills56 skills in this plugin
/accessibility-testingWhen the user wants to design, implement, or operate accessibility (a11y) testing — automated scans, manual audits, screen-reader testing, WCAG conformance, Section 508 / EAA compliance. Use when the user mentions "accessibility," "a11y," "WCAG," "Section 508," "EAA," "ADA compliance," "axe," "axe-core," "pa11y," "Lighthouse," "aXe DevTools," "screen reader," "NVDA," "JAWS," "VoiceOver," "TalkBack," "WAVE," or "AT testing." For visual diff see visual-regression. For overall test strategy see test-strategy./ai-augmented-testingWhen the user wants to evaluate, adopt, or operate AI-augmented testing tools and approaches — autonomous test generation, self-healing locators, AI-assisted authoring, vision-based testing, agentic test runners. Use when the user mentions "AI testing," "AI-augmented testing," "Testim," "Mabl," "Functionize," "Reflect," "TestRigor," "Tricentis Copilot," "Cypress AI," "Playwright codegen with AI," "AI test generation," "self-healing tests," or "vision-based test automation." For LLM-product evals see llm-eval-testing. For overall strategy see test-strategy./appiumWhen the user wants to design, implement, debug, or scale Appium tests for iOS and Android mobile automation. Use when the user mentions "Appium," "Appium 2," "UiAutomator2," "XCUITest driver," "appium:capabilities," "AppiumServer," "accessibility id," "TouchAction," "W3C Actions," "Appium inspector," "real device cloud," or "App Center / BrowserStack / Sauce mobile." For Android-native frameworks see espresso. For iOS-native see xcuitest. For React Native specifically see detox. For YAML-driven mobile flows see maestro. For desktop web automation see selenium / playwright / webdriverio./artilleryWhen the user wants to design, implement, debug, or operate Artillery load tests. Use when the user mentions "Artillery," "artillery.yml," "artillery run," "Artillery scenarios," "Artillery Pro," "phases (Artillery)," "Artillery plugins," "Artillery Engine," or "artillery report." For JS-tested perf with thresholds see k6. For JVM perf see gatling. For Python see locust. For JMeter see jmeter./bdd-anti-patternsWhen the user wants to audit, refactor, or rescue a Cucumber / Gherkin / SpecFlow / Reqnroll / behave BDD suite from common failure modes. Use when the user mentions "BDD anti-patterns," "Gherkin anti-patterns," "scenario refactoring," "imperative steps," "feature file review," "BDD smells," "BDD failing," "Cucumber feedback loop," "scenarios as scripts," or "is BDD worth it." For Cucumber/Gherkin basics see cucumber-gherkin. For .NET BDD see specflow-reqnroll. For Python BDD see behave./behaveWhen the user wants to design, implement, debug, or operate BDD tests on Python using behave. Use when the user mentions "behave," "behave.ini," "@given/@when/@then," "context.x," "environment.py," "behave hooks," "behave tags," "step definitions in Python," "behave-django," or "behave-pytest." For language-agnostic Gherkin patterns see cucumber-gherkin. For .NET BDD see specflow-reqnroll. For BDD failure modes see bdd-anti-patterns. For non-BDD Python testing see pytest.