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 mondoohq Verified Orgv2.1.0Apache-2.0In 1 marketplace
Runtime guardrail for AI coding agents: scans an agent's shell commands and written code with xgrep, and its IaC with cnspec, feeding findings back before they land.
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; makes network requests; reads files; reads environment variables (CNSPEC_CONTENT_DIR, CNSPEC_PATH, CNSPEC_POLICY_BUNDLE, CNSPEC_USE_PLATFORM, XGREP_PATH).
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 mod that puts Mondoo's scanners in the loop as an AI agent works — routing each tool call to the right engine:

Shell guard (xgrep) — holds a risky Bash command behind a Proceed / Cancel pane until
you answer. xgrep here keeps secrets and PII from leaving: a token or an SSN in the
command, credential files, a secret sent by variable name, or the whole environment piped
to a remote host. It also holds remote code piped into a shell, reverse shells, and
destructive commands (rm -rf of home or root, a force-push to main, DROP DATABASE,
chmod -R 777 /). Each of these is a category you can tune.
Inline code review (xgrep) — after the agent writes or edits code, scans it and hands high-confidence findings back right after the tool result so the agent fixes them in the same turn. xgrep here enforces the OWASP Top 10 (SAST taint) plus SCA and secrets on the code. The transcript says what Mondoo caught — "Mondoo xgrep found 1 issue in app.py: SQL injection (python-sql-injection), line 15. Sent to Claude to address." — right under the edit, so you can see why the agent touched code you didn't ask about.

IaC policy guard (cnspec) — after the agent writes or edits Terraform, a Dockerfile, or
a Kubernetes / CloudFormation manifest, runs cnspec policy checks and hands violations back
the same way. Terraform and Dockerfiles get the xgrep review too, so a hard-coded secret in
main.tf is still caught.
False-positive reports — when the agent is confident an xgrep finding is wrong, it can report it to this repo with a reproducible case so the rule gets fixed. You review the exact issue and decide whether to file it (details).
So xgrep runs in two complementary modes — prevent secrets/PII leaving (guard) and
enforce the OWASP Top 10 on code (scan) — and cnspec adds IaC policy. This single routing
and finding logic lives in hooks/core.mjs, shared with the other agent
adapters; this file is the Claude Code adapter.
Inline review is advisory (the edit always lands); only the shell guard can hold/block. Everything is fail-open: a scanner that is missing, too old, or errors never wedges your session.
/plugin install secure-guard --marketplace mondoohq/secure-stack
That works in one step on Claude Code 2.1.275 or later. On an older version, add the marketplace first:
claude plugin marketplace add mondoohq/secure-stack
claude plugin install secure-guard@secure-stack
The mod loads in your next session. Run /secure-guard to check it is reaching its engines.
CNSPEC_PATH or cnspec on PATH). If it isn't, the IaC guard stays silently off.The IaC guard works with no configuration. By default it runs the latest public cnspec policy bundles that match the file (Terraform: AWS/Azure/GCP security; Dockerfile and Kubernetes: security and best practices; CloudFormation: AWS security). cnspec downloads them from GitHub when it scans.
Only policies come down. Your files never go up. cnspec evaluates the file on your machine,
runs --incognito, and reports results to nowhere but the agent. The first download in a
session is announced with a toast and a transcript line, so it is never silent.
Other policy sources, in precedence order:
| Set | Policies | Network |
|---|---|---|
CNSPEC_POLICY_BUNDLE | your bundle(s): comma-separated local paths, https:// or s3:// URLs | only if a URL |
CNSPEC_CONTENT_DIR | the same public bundles, from a local cnspec content/ checkout | none, fully offline |
CNSPEC_USE_PLATFORM=1 | the policies assigned in your logged-in Mondoo Platform space | cnspec reports the scan results to your space (opt-in for that reason) |
| (nothing) | the latest public bundles | policies download; nothing is uploaded |
A custom bundle needs policy filters that match the IaC platform you're scanning
(terraform-hcl, dockerfile, k8s, cloudformation), or cnspec has nothing to run.
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 mondoohq/secure-stack --plugin secure-guardPlugins from other owners that cover similar ground