/secure-sdlc-agents:security-and-hardeningfrom secure-sdlc-agents
Enforces secure coding standards, reviews code for OWASP Top 10 vulnerabilities, and provides a PR security checklist covering input validation, authentication, cryptography, and dependency management.
Ships in secure-sdlc-agents. 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.
None: SKILL.md is the whole skill.
This skill enforces the secure coding standards and PR review discipline that prevent the most common vulnerability classes from reaching production. It covers OWASP Top 10 categories, ASVS control requirements, and the review process that catches issues before they merge — not after they breach.
Before reviewing, identify which categories are in scope:
| Surface | Key risks |
|---|---|
| Input handling | Injection (SQL, LDAP, OS command, template, XSS) |
| Authentication | Weak passwords, missing MFA, session fixation |
| Access control | IDOR, broken object-level auth, privilege escalation |
| Cryptography | Weak algorithms, hardcoded keys, improper key storage |
| File handling | Path traversal, type confusion, SVG XSS, unrestricted upload |
| Dependencies | Known CVEs, unmaintained packages, licence risk |
| Error handling | Stack trace leakage, verbose error messages |
docs/security-requirements.md are satisfied| Severity | Action |
|---|---|
| CRITICAL | Block merge immediately. No exceptions. Fix and re-review. |
| HIGH | Block merge unless risk is formally accepted with CISO sign-off. |
| MEDIUM | Must have fix or accepted-risk entry in risk register before release. |
| LOW / INFO | Track in risk register. Does not block. |
## Security Review: PR #[N] — [Title]
### CRITICAL / HIGH — Block merge
- [Issue]: [Plain English description + CWE reference + concrete fix]
### MEDIUM — Fix before release
- [Issue]: [Description + remediation suggestion]
### Positive observations
- [Good security practice observed — reinforce it]
After remediation:
docs/sast-findings.md with the resolution status.| Excuse | Counter |
|---|---|
| "It's internal-only, not a real risk" | Internal endpoints are breached via SSRF, pivot attacks, and insider threat. Internal ≠ safe. |
| "I'll add input validation later" | Injection vulnerabilities are introduced at write time. "Later" is too late once it ships. |
| "The ORM handles SQL injection" | ORMs do not protect against raw queries, JSON operators, or second-order injection. Verify. |
| "We'll rotate the hardcoded key before production" | Keys committed to git are already compromised. Rotate now; remove from history. |
| "This dependency vulnerability isn't reachable" | Reachability analysis is hard. Upgrade unless you can prove the affected code path is never hit. |
| "The client validates it too" | Client-side validation is UX. Server-side validation is security. Both are required. |
eval(), exec(), subprocess.run(shell=True) with user-controlled dataAuthorization header or session token logged anywherecatch (e) {} — swallowed errors that may be masking a security eventDo not close this review until:
docs/sast-findings.md is updated with finding statusdocs/risk-register.md is updated if any risk was acceptedWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
owasp, secure-coding, pr-review, vulnerability-remediation, sast
4 skills in this plugin
/ai-securityUse when building any feature that calls an LLM API, processes user input sent to a model, uses RAG or embeddings, deploys an AI agent with tool access, or makes AI-generated output visible to users or downstream systems.
/compliance-and-auditUse when a project requires a compliance framework mapping, when risks need formal documentation, when audit evidence must be collected, or when producing a compliance attestation before release. Applies to SOC 2, ISO 27001, GDPR, PCI DSS, NIST CSF, and DORA.
/threat-modelingUse when a new feature, architecture, or significant design decision is being made. Run before any code is written. Produces a structured STRIDE threat model and architecture review that feeds directly into security requirements and PR review.
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents.0: Invalid string: must start with "./", agents.1: Invalid string: must start with "./", agents.2: Invalid string: must start with "./", agents.3: Invalid string: must start with "./", agents.4: Invalid string: must start with "./", agents.5: Invalid string: must start with "./", agents.6: Invalid string: must start with "./", agents.7: Invalid string: must start with "./"
.claude-plugin/plugin.json: agents.0: Invalid string: must start with "./", agents.1: Invalid string: must start with "./", agents.2: Invalid string: must start with "./", agents.3: Invalid string: must start with "./", agents.4: Invalid string: must start with "./", agents.5: Invalid string: must start with "./", agents.6: Invalid string: must start with "./", agents.7: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job