How to install Semgrep
Use the same approved rule set for the before-and-after reports.
- Start Claude Code once to register Anthropic’s official marketplace. Then run the install command in your terminal.
- Open a new Claude Code session and check the Installed tab in /plugin before using plugin features.
claude plugin install semgrep@claude-plugins-officialTry a first task
Triage existing Semgrep results for a patch that changes request validation. Confirm the rule, file, and affected input, fix the risky pattern, and compare the findings after the change.
Package components
- add-and-validate-guardian-developer-semgrep-rule
- install-mfw
- remove-guardian-developer-semgrep-rule
- guardian
- Session hooks
Publisher references
add-and-validate-guardian-developer-semgrep-rule write a custom semgrep rule with
install-mfw Install the mfw (Semgrep Malware Firewall) CLI via the curl|sh
remove-guardian-developer-semgrep-rule Remove a custom Semgrep rule from Guardian