Home / Claude Code mods / Security / package-guard

package-guard

package-guard is a Claude Code mod by LupusMalusDeviant that before Claude installs or runs a package (npm, pnpm, yarn, bun, npx, pip, uv, poetry, pipx, cargo), asks the public registry about it. Holds the command when the package does not exist (a.

Updated 2026-11-30

What is package-guard?

package-guard is a Claude Code mod by LupusMalusDeviant that before Claude installs or runs a package (npm, pnpm, yarn, bun, npx, pip, uv, poetry, pipx, cargo), asks the public registry about it. Holds the command when the package does not exist (a. It is listed under Security and has 1 GitHub stars.

TypeClaude code mod
AuthorLupusMalusDeviant
RepositoryLupusMalusDeviant/mod-box
Popularity1 GitHub stars
CategorySecurity
SecurityLow risk (88/100)
Rank#3,866 of 9,397 Claude Code mods; #475 in Security
LicenseMIT
Last commit2026-11-30
Hooks4 events
SeesBash calls
Draws onAbovePrompt

Is package-guard safe to install?

package-guard scores 88/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 7 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.process.runruns processes
$.state.get
$.state.set
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install package-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/LupusMalusDeviant/mod-box
    claude plugin validate ./mod-box/plugins/package-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add LupusMalusDeviant/mod-box && claude plugin install package-guard@mod-box

Or ask Claude to set it up

Paste this into Claude Code and it installs package-guard for you:

Install the "package-guard" Claude Code mod from https://github.com/LupusMalusDeviant/mod-box/tree/main/plugins/package-guard. Run claude plugin validate on it first and show me what it can access before you enable it.

More from LupusMalusDeviant/mod-box

This repository has at least 9 Claude Code mods on MCPMods.

  • mod-box: 21 Claude Code mods in one plugin, each switchable on its own; /mod-box opens the window to switch, configure and import (Low risk)
  • blast-radius: Holds risky shell commands (rm -rf, git reset --hard, git clean, force push, migrations) and shows what they would hit. (Review before installing)
  • cache-meter: Band: time left on the warm cache, hit rate, context as weather with its trend over 12 turns, plan limits, compact and k (Review before installing)
  • ci-watch: After every git push, follows the GitHub Actions runs (via gh) until they finish; with an open pull request (also after (Review before installing)
  • handoff: /handoff writes a handoff note to .claude/handoff.local.md; a new session offers to continue from it. (Low risk)
  • pet: A desktop pet and little companion on the Windows desktop, always on top and in front of borderless games: a cardboard b (High risk)
  • read-guard: Holds a whole-file Read (no offset/limit) of a file above the limit, a lockfile, minified code or a source map, and the (Low risk)
  • relay: Main agent dispatches tasks to persistent worker sessions via CLI (Claude Code, Codex, OpenCode or the Werkbank servers (High risk)