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 extractumiov1.0.0MITIn 1 marketplace
Blocks curl-to-shell pipes, secret exfiltration and edits to Claude's own settings on macOS. Hooks run on every tool call and can block commands; malformed payloads fail closed.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
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.
A Claude Code plugin that hardens a personal macOS workstation against secret exfiltration, prompt injection, persistence, and hook-tampering.
Ships two hooks (PreToolUse, PostToolUse), a pattern library, a trusted-host
allowlist, and a 54-case regression test suite. Stdlib Python only — no pip
dependencies.
Exfiltration
curl|sh, wget|bash, eval $(curl …), bash <(curl …) — alwayscurl|python / |node / |perl / |ruby — unless every URL targets a
host in scripts/allowlist.txt and no secret or sensitive path is presentenv / printenv / keychain dump piped to a network commandln -s from a sensitive source, $FOO_KEY/$FOO_TOKEN dereferencesPersistence
~/.zshrc, ~/.bashrc, LaunchAgents, cron, /etc/profile*Prompt injection
ignore-previous-instructions-class
patterns (see scripts/patterns.py for the full list) and for private-key
headers of the form -----BEGIN ... KEY-----; hard-blocks a private key
in output, warns on the restSelf-defense
~/.claude/CLAUDE.md, or
~/.claude/settings.json is refused unless the session marker is present
(see "Unlocking for plugin updates" below)rm, sed -i, > redirect, mv/cp INTO) targeting
the same paths are blockedFrom a clone of this repo:
# from the repo root:
claude --plugin-dir "$(pwd)/plugins/harden-macos-claude"
# or, if you've already cd'd into the plugin dir:
claude --plugin-dir "$PWD"
That's it. Hooks are wired automatically via hooks/hooks.json.
Inside a Claude Code session, register this repo as a marketplace and install the plugin:
/plugin marketplace add extractumio/extractum-skills
/plugin install harden-macos-claude@extractum-skills
Verify:
/plugin marketplace list
/plugin list
Later, pick up upstream updates with:
/plugin marketplace update extractum-skills
/plugin update harden-macos-claude@extractum-skills
Claude Code plugins cannot merge into the user's global CLAUDE.md, so the
plugin ships an installer that manages its charter inside a delimited block.
After the marketplace install above, the plugin lives at
~/.claude/plugins/marketplaces/extractum-skills/plugins/harden-macos-claude/
(or, for Option A, wherever you cloned it). Run its install.sh from your
shell, not from inside a Claude Code session:
# marketplace install:
~/.claude/plugins/marketplaces/extractum-skills/plugins/harden-macos-claude/install.sh
# local clone (Option A): from the plugin directory
./install.sh
# or from the repo root:
./plugins/harden-macos-claude/install.sh
What it does:
~/.claude/ if missing, and ~/.claude/CLAUDE.md if missing.~/.claude/CLAUDE.md.bak-<ts>.<!-- BEGIN harden-macos-claude charter (managed block — do not edit by hand) -->
... charter body ...
<!-- END harden-macos-claude charter -->
install.sh --remove strips the managed block and leaves your own content.Run it from your shell — the hooks (once enabled) will correctly block writes
to ~/.claude/CLAUDE.md from inside a Claude session. If you must run it
through Claude, first set the unlock marker (see "Unlocking" below).
# from the plugin directory:
/usr/bin/python3 ./scripts/tests/run_tests.py
# → Passed: 54
# from the plugin directory:
./uninstall.sh # interactive
./uninstall.sh --yes # non-interactive
# then stop passing --plugin-dir, or:
claude plugin remove harden-macos-claude
The uninstaller strips the managed charter block from ~/.claude/CLAUDE.md
(anything you added outside the markers is preserved), removes the session
unlock marker, and writes a timestamped backup. It leaves
~/.claude/security.log in place as your audit trail.
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 extractumio/extractum-skills --plugin harden-macos-claudePlugins from other owners that cover similar ground