# Security and hardening

> Security and hardening is an open-source agent skill for security. Gives your coding agent a checklist to find and fix security flaws in code. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ajyadav013/claude-kit/tree/main/skills/security-and-hardening
- **Repository:** https://github.com/ajyadav013/claude-kit
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** security-and-hardening
- **Collection:** https://github.com/ajyadav013/claude-kit
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill guides an AI coding agent through reviewing and hardening an implementation for security weaknesses. It walks through per-class rules covering injection, broken authentication, XSS, access control, misconfiguration, sensitive data exposure, CSRF and outbound TLS, and sets three tiers of behaviour: rules to always follow, changes that need human approval, and things never to do.

Beyond the rules, it includes a pre-commit style review checklist, a verification list to run after security-relevant changes, and a set of red flags to look for. Code patterns and deeper practices are split into reference files that the agent loads only when needed, covering schema validation, file upload and archive safety, ReDoS, dependency audit triage and SBOM generation, and guardrails for LLM features.

The skill assumes a Python-style web stack with a typed validation framework, an ORM and optional multi-tenant scoping, and it points to companion rule files that the surrounding project is expected to provide. It ships no scripts; its work is guidance and review carried out by the agent.

## When your agent uses it

> Find and fix vulnerabilities in code — input handling, auth, data storage, integrations. Use when asked to harden, secure, or security-review an implementation. Not for STRIDE enumeration (use threat-model) or a DAST scan (use zap-vapt-scanning).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/security-and-hardening)
- [License: MIT](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/security-and-hardening)

## Features

- **Three-tier security rules:** Lists practices to always follow, changes needing human approval, and actions never to take.
- **Per-class OWASP guidance:** Gives one rule for each OWASP Top 10 class, with deeper patterns in linked reference files.
- **Input and upload hardening:** Covers schema validation at the boundary, file upload checks, archive extraction and ReDoS defenses.
- **Dependency audit triage:** Explains how to prioritise CVE findings by severity and reachability and document deferrals.
- **Security review checklist:** Provides a checklist for authentication, authorization, input, data, logging and infrastructure.
- **LLM feature guardrails:** Offers opt-in input and output guardrails for AI features that call a model.

## Good for

- Review my login endpoint for security weaknesses
- Harden the file upload handler against malicious archives
- Check my API for missing authorization on tenant data
- Audit my dependencies and triage the vulnerabilities found
- Make sure my cookies and CORS settings are secure

## Install

### Claude Code

This skill ships in the `claude-kit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kit
```

Or copy only this skill to `~/.claude/skills/security-and-hardening`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/security-and-hardening &&
cp -R "$tmp/skills/security-and-hardening" ~/.claude/skills/security-and-hardening &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/security-and-hardening` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/security-and-hardening` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/security-and-hardening &&
cp -R "$tmp/skills/security-and-hardening" ~/.agents/skills/security-and-hardening &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/security-and-hardening` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/security-and-hardening` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/security-and-hardening &&
cp -R "$tmp/skills/security-and-hardening" ~/.cursor/skills/security-and-hardening &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/security-and-hardening` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ajyadav013/claude-kit.git --path skills/security-and-hardening
```

Or copy the folder to `~/.gemini/skills/security-and-hardening` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/security-and-hardening`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/security-and-hardening &&
cp -R "$tmp/skills/security-and-hardening" ~/.copilot/skills/security-and-hardening &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/security-and-hardening` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git
```

Then copy `claude-kit/skills/security-and-hardening` into your agent's skills folder as `security-and-hardening`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Security and hardening run any scripts or tools?

No scripts are included. The skill gives the agent rules, checklists and reference patterns to apply during a review.

### When does Security and hardening trigger?

It is meant for requests to harden, secure or security-review an implementation. It excludes STRIDE threat enumeration and DAST scanning, which belong to other skills.

### Does Security and hardening cover AI or LLM features?

Yes, as an opt-in section covering prompt injection screening, output handling and tool least-privilege for features that call a model.

### How do I install Security and hardening in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/security-and-hardening to use it in all your projects, or to .claude/skills/security-and-hardening in one project. Or install the claude-kit plugin, which includes it: /plugin marketplace add ajyadav013/claude-kit, then /plugin install claude-kit@claude-kit.

### Does Security and hardening run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Security and hardening?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Security and hardening?

The closest alternatives to Security and hardening are Security review, Security and hardening, Security review edho ferdian, Security review and Security.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Security review](https://ai-powered.com/skills/security-review-getsentry): Security review is an open-source agent skill for security.
- [Security and hardening](https://ai-powered.com/skills/security-and-hardening): Security and hardening is an open-source agent skill for security.
- [Security review edho ferdian](https://ai-powered.com/skills/security-review-edho-ferdian): Security review edho ferdian is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-nabwinsaud): Security review is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-sorah): Security is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-jasgujral): Security is an open-source agent skill for security.
- [Agent security hardening](https://ai-powered.com/skills/agent-security-hardening): Agent security hardening is an open-source agent skill for security.
- [Adversarial code review pass security](https://ai-powered.com/skills/adversarial-code-review-pass-security): Adversarial code review pass security is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/security-and-hardening-ajyadav013-2
