rea
Reverse engineer anything with agents, from app behavior down to native binaries.
Star on GitHub if Hardstop keeps you safe! Pre-execution safety validation for AI coding agents.
Claude Code
> /plugin marketplace add frmoretto/hardstop> /plugin install hs@hardstop
Codex
$ npx skills add frmoretto/hardstop -a codex
Cursor
$ npx skills add frmoretto/hardstop -a cursor
Gemini CLI
$ npx skills add frmoretto/hardstop -a gemini-cli
GitHub Copilot
$ copilot plugin marketplace add frmoretto/hardstop$ copilot plugin install hs@hardstop
OpenCode
$ npx skills add frmoretto/hardstop -a opencode
Windsurf
$ npx skills add frmoretto/hardstop -a windsurf
π β Star on GitHub if Hardstop keeps you safe!
Pre-execution safety validation for AI coding agents. Validates every shell command against 428 security patterns before execution β blocking destructive operations, credential theft, infrastructure teardown, and prompt injection. Fail-closed: blocks by default when uncertain.
Ecosystem: The detection patterns are published separately as hardstop-patterns (GitHub) β reusable in any Node.js tool.
Installation β’ How It Works β’ Commands β’ Report Issue
You trust your AI, but you shouldn't trust it with rm -rf / or reading your ~/.aws/credentials. Hardstop sits between the LLM and your system, enforcing a strict Fail-Closed policy on dangerous operations.
&&, |, ;).ssh, .aws, .env) (v1.3)Claude tries to ruin your day? Hardstop says no.
# Claude attempts a home directory deletion
$ rm -rf ~/
π BLOCKED: Deletes home directory
# Claude tries to read your AWS credentials
$ Read ~/.aws/credentials
π BLOCKED: AWS credentials file
# You check the status
$ /hs status
Hardstop v1.4.3
Status: π’ Enabled
Session Risk: Moderate (35/100)
Blocked: 2 commands this session
# One-time bypass for a command you trust
$ /hs skip
βοΈ Next command will skip safety check
# Multi-skip: bypass next 3 commands (v1.3.2)
$ /hs skip 3
βοΈ Next 3 commands will skip safety check
# View recent security decisions
$ /hs log
2026-01-20 10:30:45 π [pattern] rm -rf ~/
ββ Deletes home directory
Hardstop uses a two-layer verification system for Bash commands and pattern-based protection for file reads.
graph TD
A[Tool Call] --> B{Bash or Read?};
B -- Bash --> C{Layer 1: Patterns};
C -- Dangerous Pattern --> D[π BLOCK];
C -- Safe Pattern --> E[β
ALLOW];
C -- Unknown --> F{Layer 2: LLM Analysis};
F -- Risky --> D;
F -- Safe --> E;
B -- Read --> G{Credential File?};
G -- .ssh/.aws/.env --> D;
G -- Source Code --> E;
D --> H[Log to Audit];
E --> I[Execute];
The 428 detection patterns (Layer 1) are published as a standalone npm package: hardstop-patterns β usable in any Node.js tool, not just Hardstop.
PatchPilot - Package vulnerability scanner that blocks risky npm/pip/brew installations.
| Tool | Focus | What It Protects |
|---|---|---|
| Hardstop | Command execution safety | Blocks dangerous commands (rm -rf /, credential theft) |
| PatchPilot | Package installation security | Blocks packages with known CVEs |
Use both for complete Claude Code security:
# Install PatchPilot (package vulnerability scanning)
npx patchpilot-cli install
# Install Hardstop (command execution safety)
npx hardstop install
Why both? PatchPilot secures your dependencies, Hardstop secures your execution layer. No overlapβthey're complementary.
Install with a single command:
npx hardstop install
Or install globally:
npm install -g hardstop
hardstop install
macOS / Linux:
git clone https://github.com/frmoretto/hardstop.git && cd hardstop && ./install.sh
Windows:
git clone https://github.com/frmoretto/hardstop.git
cd hardstop
powershell -ExecutionPolicy Bypass -File install.ps1
Restart Claude Code / Desktop / Cowork, then:
/hs status
You should see:
Hardstop v1.4.3
Status: π’ Enabled
Session Risk: Low (0/100)
262 patterns loaded (MITRE ATT&CK mapped)
macOS / Linux:
cd hardstop && ./uninstall.sh
Windows:
cd hardstop
powershell -ExecutionPolicy Bypass -File uninstall.ps1
The uninstaller removes plugin files, skills, and hooks from settings. State/audit logs are optionally preserved.
Control Hardstop directly from the chat prompt.
| Command | Action |
|---|---|
/hs on | Enable protection (Default) |
/hs off | Disable temporarily |
/hs skip | Bypass checks for the next command |
/hs skip [n] | Bypass checks for the next n commands (v1.3.2) |
/hs status | Check system health |
/hs log | View recent security decisions |
π§ Unix (macOS/Linux) Bash Triggers
rm -rf ~/, rm -rf /, mkfs, shred/dev/tcp, nc -e)curl/wget of .ssh, .aws credentialscurl | bash)chmod 777 /, recursive permission changessudo rm -rf /, sudo ddπͺ Windows Bash Triggers
rd /s /q, format C:, bcdedit /deletereg delete HKLM, Persistence via Run keysmimikatz, cmdkey /list, SAM database accesscertutil, bitsadmin, mshtapowershell -e <base64>net user /add, net localgroup administratorsπ Read Tool Triggers (v1.3)
Blocked (Credentials):
~/.ssh/id_rsa, ~/.ssh/id_ed25519~/.aws/credentials, ~/.config/gcloud/credentials.db.env, .env.local, .env.production~/.docker/config.json, ~/.kube/config~/.npmrc, ~/.pypircAllowed (Safe):
.py, .js, .ts, .go, .rsREADME.md, CHANGELOG.md, LICENSE.env.example, .env.templateAll decisions are logged to ~/.hardstop/audit.log in JSON-lines format:
{"timestamp": "2026-01-20T10:30:45", "version": "1.3.0", "command": "rm -rf ~/", "cwd": "/home/user", "verdict": "BLOCK", "reason": "Deletes home directory", "layer": "pattern"}
View recent entries with /hs log.
| File | Purpose |
|---|---|
~/.hardstop/state.json | Enabled/disabled state |
~/.hardstop/skip_next | One-time bypass flag |
~/.hardstop/audit.log | Decision audit log |
For Claude.ai Projects or Claude Desktop without hook support, use the SKILL.md file directly:
skills/hs/SKILL.md to your Project's knowledge baseThis is useful for platforms that don't support hooks but can load custom instructions.
Note on SKILL.md Files: The skill files contain imperative LLM instructions ("ALWAYS block", "Your task is to run..."). If you integrate these into a RAG system or multi-tool agent, scope them tightly to the Hardstop safety context only. The directive language is intentional but should not affect unrelated tools.
| Feature | Hardstop | cc-safety-net | damage-control | Leash |
|---|---|---|---|---|
| Fail-closed by default | β | β (opt-in) | β | β |
| LLM fallback layer | β | β | β | β |
| Windows support | β | β | β | β |
| Read tool protection | β | β | β | β |
| LLM behavioral skill | β | β | β | β |
Hardstop is a robust safety net, but it is not a guarantee.
Pattern-Based Detection:
Secrets in Code Files:
.py, .js, or other "safe" extensions will NOT be blockedconfig.json, settings.json) trigger warnings but are allowedRecommended Practices:
/hs skip sparingly and intentionallyYou should never blindly trust any security toolβincluding this one.
Before installing Hardstop, we encourage you to review the code yourself.
Every release tarball is signed with Sigstore via GitHub's build provenance attestation. Verify that a package was built from this repo's CI:
gh attestation verify hardstop-*.tgz --repo frmoretto/hardstop
Get the full codebase in LLM-friendly format: https://gitingest.com/frmoretto/hardstop
Copy the output and use this prompt with your preferred LLM:
Reverse engineer anything with agents, from app behavior down to native binaries.
A skill pack for authorized reverse engineering, security research, and penetration testing that routes tasks to the right skill and sets up needed tools on demand. It covers API security assessment and Android APK analysis, among others.
Gives an AI agent the step-by-step workflow a senior security analyst follows, covering when to use each technique, what to check first, how to run it and how to verify the result. Covers incident response, forensics, threat intelligence, malware analysis, penetration testing and red teaming.
Agent skill + stdlib Python service to strip multi-vendor AI provenance marks from text and files, for privacy and hygiene on content you own. The skill is a thin client: it drives the machinery over HTTP, so the agent host needs no Python.
Star on GitHub if Hardstop keeps you safe! Pre-execution safety validation for AI coding agents. Install it with the command on its page. It includes hs. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it