Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

install-mfw

Skill by semgrep

Installs the mfw (Semgrep Malware Firewall) CLI and walks the user through the trust store, PATH shims, shell integration and background daemon. Built for users onboarding mfw on a machine, including those with managed shell config files.

  • Score 53
  • 24 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install install-mfw

Built from the published package, never by AI.

git clone --depth 1 https://github.com/semgrep/guardian /tmp/guardian && mkdir -p ~/.claude/skills && cp -r /tmp/guardian/plugin/skills/install-mfw ~/.claude/skills/install-mfw

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install install-mfw in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill installs mfw, Semgrep's Malware Firewall CLI, on the current machine and guides the user through setup. mfw is a local MITM proxy that checks package-manager downloads (pip, npm, pnpm, uv, cargo, maven, gem, nuget, composer and go) against Semgrep's backend before the bytes reach disk. The skill runs the curl installer, which downloads and checksum-verifies the binary, then runs mfw fixup to set up the trust store, shims, shell integration and a background daemon.

Before installing, the skill inspects the user's shell config. If the rc files are managed by nix, home-manager, chezmoi, GNU stow or a dotfiles git repo, it does not edit them in place. Instead it adds mfw's one-line source hook to the source of truth. It is aimed at users who want to install, set up or onboard mfw on their own machine.

Written from the project's SKILL.md and checked against it.

What it can do

  • Install mfwRuns the curl installer, which downloads and checksum-verifies the mfw binary to ~/.local/bin/mfw.
  • Inspect shell configRuns a script that checks whether the shell rc files are symlinked or managed by another tool.
  • Managed config hookAdds mfw's source line to the right source of truth for nix, chezmoi, GNU stow or dotfiles repos.
  • Trust store setupGuides installing the mfw CA into the system store, or tells the user to run the step themselves.
  • Login guidanceExplains how the user can run mfw login or set SEMGREP_APP_TOKEN to authenticate.
  • Verify with doctorRuns mfw doctor and walks the user through any failed checks.
  • Upgrade and restartNotes that mfw upgrade forces an update and mfw restart bounces the daemon.
  • Uninstall referenceExplains that mfw uninstall reverses the setup and deletes the mfw binary.

What you need

  • Linux on x86_64 or aarch64, or macOS on Apple silicon (arm64)
  • curl or wget
  • sudo rights for the system certificate store on Linux
  • A Semgrep account with the malware firewall enabled, for login and scanning
  • zsh or bash shell rc files

Try asking

  • Install mfw on this machine and walk me through the setup.
  • Set up mfw, but my zshrc is managed by home-manager.
  • Check whether mfw is protecting this machine after install.

Good to know

  • No published build exists for Windows or Intel macOS.
  • Login uses a browser OAuth flow that the user must complete themselves.
  • Gated downloads fail TLS checks until the mfw CA is trusted.
  • Managed rc files are not edited in place because fixup can replace symlinks.

Security check

C
  • Downloads a script from the internet and runs itIn plugin/skills/install-mfw/SKILL.md: curl|sh
  • Asks for administrator rights (sudo)In plugin/skills/install-mfw/SKILL.md: `sudo
  • Allowed to use Edit, Write without limitsIn SKILL.md

Checked automatically: plugin/skills/install-mfw/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: AskUserQuestionReadEditWriteBash(uname:*)Bash(command -v *)Bash(sh ${CLAUDE_SKILL_DIR}/scripts/*)Bash(${CLAUDE_SKILL_DIR}/scripts/*)Bash(curl -fsSL https://*/dist/mfw/install.sh | sh)Bash(mfw *)Bash(~/.local/bin/mfw *)Bash(sudo mfw *)Bash(readlink *)Bash(realpath *)Bash(ls -l *)Bash(stat *)Bash(grep *)Bash(head *)Bash(home-manager *)Bash(darwin-rebuild *)

Alternatives to install-mfw

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

install-mfw: common questions

Which platforms does mfw support?

The source lists Linux on x86_64 and aarch64, and macOS on Apple silicon (arm64). Windows and Intel macOS have no published build.

What does mfw fixup change on the machine?

It generates a local CA and adds it to the OS trust store, drops package-manager shim symlinks, writes rc-setup.sh, and installs a background daemon. The daemon auto-updates mfw on a schedule by default.

How do I remove mfw?

Run mfw uninstall. The source says it undoes the setup and also deletes the mfw binary.

How do I install install-mfw?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is install-mfw free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is install-mfw safe to use?

It scores 53 of 100. Grades: maintenance A, licence F, quality C. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.

What are alternatives to install-mfw?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

install-mfw Install

Add to stack

Loading.