Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By better-ismsv1.0.0MITIn 1 marketplace
A seatbelt for coding agents: blocks the common download-and-run moves and anything macOS flagged as downloaded.
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Your agent reads your email. Don't let it run what the email says.
Blocks the common download-and-run moves (curl | bash, running files from Downloads, installers, stripping macOS quarantine) and anything macOS flagged as downloaded. A seatbelt, not a sandbox. Known bypasses listed.

Real Claude Code session in bypass mode; only the idle start and end are trimmed. Asked to set up a downloaded project, the agent reads the setup script, decides it is harmless, and runs it. clickfix-guard stops it because macOS flagged the file as downloaded. The script here only prints two lines; in a real attack it would not look any different.
ClickFix is the phishing trick where a page or an email tells you to "fix" something by pasting a command into Terminal. It is how a lot of macOS malware (AMOS and friends) gets installed. Coding agents now read email, issues, READMEs and web pages, and they are very good at following setup instructions. The same trick works on them, with no human in the loop to hesitate. Researchers have already shown it against Claude Code: in 0DIN's proof of concept (June 2026) a repo's README walked the agent into a setup script that fetched a reverse shell from a DNS record.
Honest note: clickfix-guard would not have stopped that exact chain. The payload was fetched inside a script, into a variable, and a command-line check does not see that (see KNOWN-BYPASSES.md). It stops the simpler and far more common moves: the pasted one-liner, the downloaded script, the installer, the quarantine strip.
In bypass or auto mode, your agent's own judgment is often the only thing between an injected instruction and a shell. clickfix-guard adds a deterministic check in front of every shell command. It adds roughly 150 to 200 ms per command.
| Move | Example |
|---|---|
| Download piped into a shell or interpreter | curl ... | bash, wget -qO- ... | python3, bash <(curl ...), eval "$(curl ...)", sh -c "$(curl ...)" |
| Inline code that downloads and executes | python3 -c "exec(urlopen(...).read())", php -r "eval(file_get_contents('https://...'))" |
| Download, then run the same file | curl -o /tmp/x.sh ... && bash /tmp/x.sh, and later in the same session |
| Anything macOS flagged as downloaded (macOS only) | a script saved from Safari or Mail, even after it was copied or unzipped elsewhere (com.apple.quarantine) |
| Running files from the Downloads folder | bash ~/Downloads/fix.sh, chmod +x ~/Downloads/x, open ~/Downloads/x.command (localized folder names too) |
| Gatekeeper bypass | xattr -d com.apple.quarantine, xattr -c, spctl --master-disable |
| Installers and disk images | installer -pkg, hdiutil attach, open x.dmg, dpkg -i, apt install ./x.deb, rpm -i |
| AppleScript shell escapes | osascript -e 'do shell script ...', JXA doShellScript |
On Linux every rule runs except the quarantine check, which is a macOS feature.
What still works: curl api | jq, curl api | python3 -c 'import json...', downloading files, reading and copying files in Downloads, opening PDFs and documents (even quarantined ones), running your own project scripts.
/plugin marketplace add better-isms/clickfix-guard
/plugin install clickfix-guard@clickfix-guard
Clone the repo somewhere stable, then add to ~/.codex/hooks.json:
{
"hooks": {
"PreToolUse": [{ "matcher": "Bash", "hooks": [{ "type": "command", "command": "/path/to/clickfix-guard/scripts/clickfix-guard --harness codex", "timeout": 10 }] }],
"PostToolUse": [{ "matcher": "Bash", "hooks": [{ "type": "command", "command": "/path/to/clickfix-guard/scripts/clickfix-guard --harness codex --post", "timeout": 10 }] }]
}
}
Then run /hooks in Codex once and trust the two hooks. Codex skips hooks you have not trusted.
Put the same JSON as above in ~/.grok/hooks/clickfix-guard.json, with --harness grok. Hooks in ~/.grok/hooks/ are always trusted, so there is no trust step. Check with grok inspect: it lists two matcher=Bash hooks. Grok also reads the hooks in ~/.claude/settings.json and can discover Claude plugins; those routes are not live-tested, the explicit file is.
There is deliberately no curl | bash installer. Clone with git, read scripts/clickfix-guard (one bash file), and pin a tag. Needs bash, jq, grep, sed, awk. Without jq it falls back to matching the raw event and says so on stderr.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub better-isms/clickfix-guard --plugin clickfix-guardPlugins from other owners that cover similar ground