
Sh hardening
Turns security findings and threat models into a prioritised hardening plan
Sh hardening is an open-source agent skill for security. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 44
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Sh hardening
This skill takes what is already known about a system's weaknesses and builds an ordered remediation plan a team can act on. Inputs can include verified review findings, a threat model with its open threats and trust-boundary gaps, engagement results, detection coverage gaps and lessons from an incident report. Findings are grouped by shared root cause rather than listed one by one, so a cluster of related issues becomes a single fix.
Each plan item names a specific change such as a file, setting, version or policy, the findings or gaps it closes, a priority, an effort estimate, the risk the change carries and a way to verify it is done. Items are ordered with quick wins for high-severity issues first, then structural fixes, then defence in depth such as logging, least privilege and dependency updates. Where a recognised benchmark applies, the skill checks the recommendations against configuration it can actually read.
The skill is designed to change nothing on its own unless asked for a specific fix. It writes a markdown plan with a summary, a table, accepted risks with compensating detections, and notes on facts that would change the priority order. It expects a target codebase or run directory and runs with read, write, search and shell tools.
When your agent uses it
Hardening plans: turn security review findings, a threat model, an engagement's results and detection gaps into a prioritised list of fixes and hardening steps, each with the change to make, why (the finding, threat or gap it closes), the effort, the risk of the change, and how to verify it. Use when the user asks what to fix first, for a remediation or hardening plan, secure configuration, or how to reduce the attack surface of a system or codebase.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Write, Grep, Glob, Bash(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 1 file (5 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the indra plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indraOr copy only this skill to ~/.claude/skills/sh-hardening:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-hardening &&
cp -R "$tmp/plugins/indra/skills/sh-hardening" ~/.claude/skills/sh-hardening &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/sh-hardening inside it instead.
Copy the skill folder to ~/.agents/skills/sh-hardening to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sh-hardening &&
cp -R "$tmp/plugins/indra/skills/sh-hardening" ~/.agents/skills/sh-hardening &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/sh-hardening inside it instead.
Copy the skill folder to ~/.cursor/skills/sh-hardening to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sh-hardening &&
cp -R "$tmp/plugins/indra/skills/sh-hardening" ~/.cursor/skills/sh-hardening &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/sh-hardening inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-hardeningOr copy the folder to ~/.gemini/skills/sh-hardening yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/sh-hardening:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-hardening &&
cp -R "$tmp/plugins/indra/skills/sh-hardening" ~/.copilot/skills/sh-hardening &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/sh-hardening inside it instead.
Get the folder:
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.gitThen copy indra/plugins/indra/skills/sh-hardening into your agent's skills folder as sh-hardening. Agents that support SKILL.md read one folder per skill.
What it does
- Root-cause grouping
- Clusters related findings under a shared underlying cause so one fix addresses several issues.
- Concrete change specs
- Each item names the file, setting, version or policy to change rather than a general recommendation.
- Effort and risk rating
- Every item carries an S, M or L effort estimate and a note on what might break.
- Verification steps
- Each item includes a test, command, configuration check or retest to prove it is complete.
- Accepted risk register
- Risks the user chooses not to fix are recorded with compensating detections, an owner and a review date.
- Benchmark alignment
- Checks configuration against relevant CIS or framework security guide recommendations where readable.
Good for
- Decide which security findings to fix first
- Build a remediation plan from a penetration test or code review
- Reduce the attack surface of a codebase or server
- Turn a threat model into concrete engineering tasks
- Review secure configuration for an OS, container or database
- Turn post-incident lessons into hardening work
Sh hardening FAQ
What inputs does Sh hardening need?
It uses whatever exists: verified review findings, a threat model file, engagement detection results, detection coverage reports or an incident report. None is mandatory.
Does Sh hardening change my code?
No. It changes nothing unless you ask for a specific fix, and it never weakens a control or puts secrets in the plan.
Where is the output written?
It writes a markdown plan to a hardening folder in the current directory, named with the date.
Which tools does Sh hardening use?
It is allowed to read, write, search files, match file patterns and run shell commands.
How do I install Sh hardening in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/sh-hardening to use it in all your projects, or to .claude/skills/sh-hardening in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.
Does Sh 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 Sh 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 Sh hardening?
The closest alternatives to Sh hardening are Security remediation, Security and hardening, Risk prioritiser, Security and hardening and V3 Security Overhaul.
Where this comes from
- Description: from the skill's own SKILL.md.
More from dmdhrumilmistry/indra

Lets an agent triage SIEM alerts and logs, sweep indicators and build evidenced timelines
- Open source
- 44 GitHub stars
- Security

Gives a security review agent persistent Markdown memory of past findings and learnings
- Open source
- 44 GitHub stars
- Knowledge and memory

Security-reviews a GitHub pull request and reports findings as inline comments
- Open source
- 44 GitHub stars
- Developer tools

Publishes security review findings as de-duplicated Jira, GitHub, Confluence or Notion
- Open source
- 44 GitHub stars
- Knowledge and memory

Plans and runs approved purple-team tests to check whether SIEM detections fire
- Open source
- 44 GitHub stars
- Security

Re-checks one earlier security finding against current code or recorded traffic
- Open source
- 44 GitHub stars
- Security







