security-and-hardening

security-and-hardening is a skill for Claude Code from Kaademos/secure-sdlc-agents. It costs 46 tokens per session (1,211 once invoked), scanned A, original, MIT.

A set of secure-coding and code-review instructions for software involving sensitive areas such as user input, logins, permissions, encryption, file uploads, or dependencies.

In plain words
What is it for?
Reviewing security-sensitive changes, assessing risks such as injection or broken access control, checking cryptography and file handling, and addressing security-analysis findings.
Why use it?
It helps identify common security weaknesses before code is released or merged.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the secure-sdlc-agents plugin — 4 skills, 8 agents shipped together

Good fit Reviewing security-sensitive changes, assessing risks such as injection or broken access control, checking cryptography and file handling, and addressing security-analysis findings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kaademos/secure-sdlc-agents/security-and-hardening
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Kaademos/secure-sdlc-agents --skill security-and-hardening
Clone the repo
git clone --depth 1 https://github.com/Kaademos/secure-sdlc-agents

Made for: Claude Code.

Or install secure-sdlc-agents, the plugin that ships this one along with the rest of its 4 skills, 8 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-and-hardening

README.md
[![agentmods](https://agentmods.dev/badge/skills/kaademos/secure-sdlc-agents/security-and-hardening/github.svg)](https://agentmods.dev/skills/kaademos/secure-sdlc-agents/security-and-hardening)
Your own site
<a href="https://agentmods.dev/skills/kaademos/secure-sdlc-agents/security-and-hardening"><img src="https://agentmods.dev/badge/skills/kaademos/secure-sdlc-agents/security-and-hardening/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security-and-hardening

Your own site · 80×15
<a href="https://agentmods.dev/skills/kaademos/secure-sdlc-agents/security-and-hardening"><img src="https://agentmods.dev/badge/skills/kaademos/secure-sdlc-agents/security-and-hardening.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,211 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.01211
Opus 5 $0.00023 $0.00606
Sonnet 5 $0.00009 $0.00242
Haiku 4.5 $0.00005 $0.00121

Measured 11d ago against content hash f6a0b92812f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

security-and-hardening scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Any `eval()`, `exec()`, `subprocess.run(shell=True)` with user-controlled data
skills/security-and-hardening/SKILL.md · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Security and Hardening

Overview

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.

When to Use

  • Any code handling user-supplied input (forms, APIs, file uploads, query params)
  • Authentication, session management, or access control changes
  • Cryptographic operations — hashing, encryption, key management
  • Dependency additions or upgrades
  • Pull request review on any security-sensitive component
  • SAST finding triage and remediation

Process

Step 1 — Classify the security surface

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

Step 2 — Apply the PR security checklist

  • No hardcoded secrets, API keys, or credentials anywhere in the diff
  • All user-controlled inputs validated server-side (type, length, format, range)
  • SQL/NoSQL queries use parameterised statements — no string concatenation with input
  • Object-level authorisation checks present (not just resource-type checks)
  • New dependencies reviewed: CVE status, maintenance activity, licence, download count
  • Error messages returned to the client are generic; detail is server-side only
  • Log entries do not include PII, credentials, session tokens, or payment data
  • Cryptographic operations use approved algorithms (AES-256-GCM, Argon2id, SHA-256+)
  • File upload handlers validate MIME type, magic bytes, size, and destination path
  • ASVS requirements from docs/security-requirements.md are satisfied

Read the full file on GitHub · 118 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 118 lines · 46 tokens per session scan A f6a0b92812f3

Subscribe to this mod's changes

security-and-hardening is a skill published in the GitHub repository Kaademos/secure-sdlc-agents (13 stars, last pushed 1mo ago), licensed MIT. It adds 46 tokens to every session and 1,211 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.