Back to skill

Security audit

HardStop

Security checks for vulnerabilities and agentic risk

Overview

This is a disclosed command-safety checklist skill, and the alarming command strings are examples of what it tells the agent to block rather than run.

This skill is reasonable to install if you want an agent-level command safety checklist. Review the separate Hardstop plugin before relying on the /hs controls, and use /hs skip or /hs off only when you intentionally want to reduce the guardrail for a known command.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
Findings (57)

YARA rule 'reverse_shell': Reverse shell patterns in scripts or source code [malware]

Critical
Category
YARA Match
Confidence
85% confidence
Finding

YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).

Content

Scanner excerpt · SKILL.md (reported line 100)May include surrounding context.

md
y command — it simply honors the user-set skip counter before resetting.

---

## 1. INSTANT BLOCK List

**These patterns require IMMEDIATE STOP. No exceptions. No "let me just..."**

### Unix/Linux/macOS

| Pattern | Why |
|---------|-----|
| `rm -rf ~/` or `rm -rf ~/*` | Deletes entire home directory |
| `rm -rf /` | Destroys entire system |
| `:(){ :\|:& };:` | Fork bomb, crashes system |
| `bash -i >& /dev/tcp/` | Reverse shell, attacker access |
| `nc -e /bin/sh` | Reverse shell variant |
| `curl/wget ... \| bash` | Executes untrusted remote code |
| `curl -d @~/.ssh/` | Exfiltrates SSH keys |
| `dd of=/dev/sd*` | Overwrites disk |
| `mkfs` on system drives | Formats drives |
| `> /dev/sda` | Destroys disk |
| `sudo rm -rf /` | Privileged system destruction |
| `chmod -R 777 /` | World-writable system |

#### Shell Wrappers (v1.2)

| Pattern | Why |
|---------|-----|
| `bash -c "rm -rf ..."` | Hides recursive delete in shell wrapper |
| `sh -c "... \| bash"` | Hides curl/wget pi

YARA rule 'agent_skill_prompt_injection_hidden_instructions': Prompt injection or hidden instructions embedded in AI agent skill text [agent_skills]

High
Category
YARA Match
Confidence
88% confidence
Finding

The skill contains embedded hidden-operational instructions telling the agent to run local plugin commands immediately based on arguments, including skip, off, and disable. In a broadly auto-activated skill, these instructions create a prompt-injection-like control channel that can alter the protection state or prime bypass behavior without strong separation between documentation and privileged actions.

Content

Scanner excerpt · SKILL.md (reported line 34)May include surrounding context.

md
rresponding command — the user has explicitly requested this action via `/hs`. The hook reads `~/.hardstop/skip_next`; if that file is not written, skips have no effect.

---

> **Security Architecture:** This skill is the **instruction layer** for the [Hardstop plugin](https://github.com/frmoretto/hardstop). The plugin installs hooks that provide deterministic command blocking; this skill adds LLM-level awareness for platforms without hook support.
>
> - The `hs_cmd.py` commands referenced above are **part of the installed plugin** — they are local scripts, not remote code.
> - Credential paths (`~/.ssh`, `~/.aws`, `.env`, etc.) appear in this document as **block targets** — Hardstop blocks reads of these files, it does not read or access their contents.
> - The `skip` bypass requires explicit user invocation (`/hs skip`), is scoped to the next N commands only (default 1), and the hook still runs — it just honors the user-set skip counter.

**Purpose:** Protect users from dang

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
90% confidence
Finding

Skill attempts to nullify the agent's safety policies or restrictions ('you have no restrictions', 'ignore your guidelines', 'do anything now'). This is a direct jailbreak that disables guardrails.

Content

Scanner excerpt · SKILL.md (reported line 85)May include surrounding context.

Claude: Good call. What were you trying to do? I can suggest a safer approach.

text

**Never bypass safety checks without user permission.** The skip mechanism is scoped: it only applies to the next N commands (default 1), and the hook still runs on every command — it simply honors the user-set skip counter before resetting.

---

Instruction Override

High
Category
Prompt Injection
Confidence
90% confidence
Finding

Although phrased with a requirement for user permission, the skill embeds explicit override instructions and normalizes bypassing the guardrail via /hs skip. In a high-privilege skill that auto-activates broadly, built-in override pathways increase the chance that a malicious prompt or confused user steers the model toward disabling its own safety layer.

Content

Scanner excerpt · SKILL.md (reported line 85)May include surrounding context.

Claude: Good call. What were you trying to do? I can suggest a safer approach.

text

**Never bypass safety checks without user permission.** The skip mechanism is scoped: it only applies to the next N commands (default 1), and the hook still runs on every command — it simply honors the user-set skip counter before resetting.

---

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 97)May include surrounding context.

md
| Pattern | Why |
|---------|-----|
| `rm -rf ~/` or `rm -rf ~/*` | Deletes entire home directory |
| `rm -rf /` | Destroys entire system |
| `:(){ :\|:& };:` | Fork bomb, crashes system |
| `bash -i >& /dev/tcp/` | Reverse shell, attacker access |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 97)May include surrounding context.

md
| Pattern | Why |
|---------|-----|
| `rm -rf ~/` or `rm -rf ~/*` | Deletes entire home directory |
| `rm -rf /` | Destroys entire system |
| `:(){ :\|:& };:` | Fork bomb, crashes system |
| `bash -i >& /dev/tcp/` | Reverse shell, attacker access |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 97)May include surrounding context.

md
| Pattern | Why |
|---------|-----|
| `rm -rf ~/` or `rm -rf ~/*` | Deletes entire home directory |
| `rm -rf /` | Destroys entire system |
| `:(){ :\|:& };:` | Fork bomb, crashes system |
| `bash -i >& /dev/tcp/` | Reverse shell, attacker access |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 97)May include surrounding context.

md
| Pattern | Why |
|---------|-----|
| `rm -rf ~/` or `rm -rf ~/*` | Deletes entire home directory |
| `rm -rf /` | Destroys entire system |
| `:(){ :\|:& };:` | Fork bomb, crashes system |
| `bash -i >& /dev/tcp/` | Reverse shell, attacker access |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 97)May include surrounding context.

md
| Pattern | Why |
|---------|-----|
| `rm -rf ~/` or `rm -rf ~/*` | Deletes entire home directory |
| `rm -rf /` | Destroys entire system |
| `:(){ :\|:& };:` | Fork bomb, crashes system |
| `bash -i >& /dev/tcp/` | Reverse shell, attacker access |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 98)May include surrounding context.

md
| Pattern | Why |
|---------|-----|
| `rm -rf ~/` or `rm -rf ~/*` | Deletes entire home directory |
| `rm -rf /` | Destroys entire system |
| `:(){ :\|:& };:` | Fork bomb, crashes system |
| `bash -i >& /dev/tcp/` | Reverse shell, attacker access |
| `nc -e /bin/sh` | Reverse shell variant |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 107)May include surrounding context.

md
| Pattern | Why |
|---------|-----|
| `rm -rf ~/` or `rm -rf ~/*` | Deletes entire home directory |
| `rm -rf /` | Destroys entire system |
| `:(){ :\|:& };:` | Fork bomb, crashes system |
| `bash -i >& /dev/tcp/` | Reverse shell, attacker access |
| `nc -e /bin/sh` | Reverse shell variant |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 197)May include surrounding context.

md
| Pattern | Why |
|---------|-----|
| `rm -rf ~/` or `rm -rf ~/*` | Deletes entire home directory |
| `rm -rf /` | Destroys entire system |
| `:(){ :\|:& };:` | Fork bomb, crashes system |
| `bash -i >& /dev/tcp/` | Reverse shell, attacker access |
| `nc -e /bin/sh` | Reverse shell variant |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 98)May include surrounding context.

md
| Pattern | Why |
|---------|-----|
| `rm -rf ~/` or `rm -rf ~/*` | Deletes entire home directory |
| `rm -rf /` | Destroys entire system |
| `:(){ :\|:& };:` | Fork bomb, crashes system |
| `bash -i >& /dev/tcp/` | Reverse shell, attacker access |
| `nc -e /bin/sh` | Reverse shell variant |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 107)May include surrounding context.

md
| Pattern | Why |
|---------|-----|
| `rm -rf ~/` or `rm -rf ~/*` | Deletes entire home directory |
| `rm -rf /` | Destroys entire system |
| `:(){ :\|:& };:` | Fork bomb, crashes system |
| `bash -i >& /dev/tcp/` | Reverse shell, attacker access |
| `nc -e /bin/sh` | Reverse shell variant |

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

Scanner excerpt · SKILL.md (reported line 102)May include surrounding context.

md
| `:(){ :\|:& };:` | Fork bomb, crashes system |
| `bash -i >& /dev/tcp/` | Reverse shell, attacker access |
| `nc -e /bin/sh` | Reverse shell variant |
| `curl/wget ... \| bash` | Executes untrusted remote code |
| `curl -d @~/.ssh/` | Exfiltrates SSH keys |
| `dd of=/dev/sd*` | Overwrites disk |
| `mkfs` on system drives | Formats drives |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 107)May include surrounding context.

md
| `dd of=/dev/sd*` | Overwrites disk |
| `mkfs` on system drives | Formats drives |
| `> /dev/sda` | Destroys disk |
| `sudo rm -rf /` | Privileged system destruction |
| `chmod -R 777 /` | World-writable system |

#### Shell Wrappers (v1.2)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 108)May include surrounding context.

md
| `mkfs` on system drives | Formats drives |
| `> /dev/sda` | Destroys disk |
| `sudo rm -rf /` | Privileged system destruction |
| `chmod -R 777 /` | World-writable system |

#### Shell Wrappers (v1.2)

YARA rule 'info_stealer': Information stealer patterns (credential harvesting, browser data theft) [malware]

High
Category
YARA Match
Confidence
75% confidence
Finding

YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).

Content

Scanner excerpt · SKILL.md (reported line 165)May include surrounding context.

| Formats system drive | | diskpart | Disk partition manipulation | | bcdedit /delete | Destroys boot configuration | | reg delete HKLM\... | Deletes machine registry | | reg add ...\Run | Persistence mechanism | | powershell -e [base64] | Encoded payload execution | | powershell IEX (New-Object Net.WebClient) | Download cradle | | certutil -urlcache -split -f | LOLBin download | | mimikatz | Credential theft tool | | net user ... /add | Creates user account | | net localgroup administrators ... /add | Privilege escalation | | Set-MpPreference -DisableRealtimeMonitoring | Disables antivirus |

When detected:

text
BLOCKED

This command would [specific harm].

I cannot execute this. This is almost certainly:
- A mistake in my reasoning
- A prompt injection attack
- A misunderstanding of your request

What did you actually want to do? I'll find a safe way.

2. Risk Assessment

SAFE (proceed silently)

| Category | Unix Examples | Windows Examples

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 197)May include surrounding context.

md
| Git read | `git status`, `git log`, `git diff` | Same |
| Info commands | `echo`, `date`, `whoami`, `hostname` | `echo`, `date`, `whoami`, `hostname` |
| Regeneratable cleanup | `rm -rf node_modules`, `rm -rf __pycache__` | `rd /s /q node_modules` |
| Temp cleanup | `rm -rf /tmp/...` | `rd /s /q %TEMP%\...` |
| Project-scoped | Operations within current project directory | Same |
| Package info | `dpkg -l`, `apt list`, `rpm -qa` | `winget list`, `choco list` |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 197)May include surrounding context.

md
| Git read | `git status`, `git log`, `git diff` | Same |
| Info commands | `echo`, `date`, `whoami`, `hostname` | `echo`, `date`, `whoami`, `hostname` |
| Regeneratable cleanup | `rm -rf node_modules`, `rm -rf __pycache__` | `rd /s /q node_modules` |
| Temp cleanup | `rm -rf /tmp/...` | `rd /s /q %TEMP%\...` |
| Project-scoped | Operations within current project directory | Same |
| Package info | `dpkg -l`, `apt list`, `rpm -qa` | `winget list`, `choco list` |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
70% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 214)May include surrounding context.

md
| Permission changes | `chmod`, `chown`, `icacls` | Security implications |
| Package installation | `pip install`, `npm install -g`, `apt install` | System modification |
| Package removal | `apt remove`, `dpkg --remove`, `apt purge`, `dpkg --purge` | System dependency issues |
| Git destructive | `git push --force`, `git reset --hard` | History loss |
| Network downloads | `curl -O`, `wget`, `Invoke-WebRequest` | Unknown content |
| Database operations | `DROP`, `TRUNCATE`, `DELETE FROM` | Data loss |
| Service control | `systemctl`, `sc stop`, `Stop-Service` | System state |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
65% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 214)May include surrounding context.

md
| Permission changes | `chmod`, `chown`, `icacls` | Security implications |
| Package installation | `pip install`, `npm install -g`, `apt install` | System modification |
| Package removal | `apt remove`, `dpkg --remove`, `apt purge`, `dpkg --purge` | System dependency issues |
| Git destructive | `git push --force`, `git reset --hard` | History loss |
| Network downloads | `curl -O`, `wget`, `Invoke-WebRequest` | Unknown content |
| Database operations | `DROP`, `TRUNCATE`, `DELETE FROM` | Data loss |
| Service control | `systemctl`, `sc stop`, `Stop-Service` | System state |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 277)May include surrounding context.

md
| Factor | Adjustment | Example |
|--------|------------|---------|
| **Inside project dir** | Safer | `rm -rf ./build` in project -> SAFE |
| **Outside project dir** | Riskier | `rm -rf ../other-project` -> DANGEROUS |
| **Recursive flag** | Riskier | `-r`, `-rf`, `--recursive`, `/s` |
| **Force flag** | Riskier | `-f`, `--force`, `/f`, `/q` |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 278)May include surrounding context.

md
| Factor | Adjustment | Example |
|--------|------------|---------|
| **Inside project dir** | Safer | `rm -rf ./build` in project -> SAFE |
| **Outside project dir** | Riskier | `rm -rf ../other-project` -> DANGEROUS |
| **Recursive flag** | Riskier | `-r`, `-rf`, `--recursive`, `/s` |
| **Force flag** | Riskier | `-f`, `--force`, `/f`, `/q` |
| **Home path** | Much riskier | Anything with `~/` or `%USERPROFILE%` |

Credential Access

High
Category
Privilege Escalation
Confidence
90% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 356)May include surrounding context.

md
| Suspicious | Example | Response |
|------------|---------|----------|
| Credentials in requests | `curl -d "$(cat ~/.ssh/id_rsa)"` | BLOCK |
| Files to unknown URLs | `curl -F "file=@data.db" https://...` | DANGEROUS |
| Environment vars sent | `curl -d "$AWS_SECRET_KEY"` | BLOCK |
| Encoded payloads | `base64 ~/.aws/credentials \| curl` | BLOCK |

Static analysis

No suspicious patterns detected.