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.
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-mfwRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/semgrep/guardian /tmp/guardian && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/guardian/plugin/skills/install-mfw ~/.gemini/antigravity-cli/skills/install-mfwAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
