security

security is a command for Claude Code from NickRomanek/clawbridge. It costs 0 tokens per session (465 once invoked), scanned A, original, Apache-2.0.

A pre-release security-check procedure using automated scanning, deeper review, and a findings report.

In plain words
What is it for?
Use it to run Semgrep checks, review findings with a security auditor, classify risks, and document issues or false positives before running the release process.
Why use it?
It helps identify security problems before deployment, including unsafe network settings, subprocess use, exposed secrets, prompt injection, and cross-site scripting.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents; built for openclaw.

Good fit Use it to run Semgrep checks, review findings with a security auditor, classify risks, and document issues or false positives before running the release process.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nickromanek/clawbridge/security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/NickRomanek/clawbridge

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security

README.md
[![agentmods](https://agentmods.dev/badge/commands/nickromanek/clawbridge/security/github.svg)](https://agentmods.dev/commands/nickromanek/clawbridge/security)
Your own site
<a href="https://agentmods.dev/commands/nickromanek/clawbridge/security"><img src="https://agentmods.dev/badge/commands/nickromanek/clawbridge/security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security

Your own site · 80×15
<a href="https://agentmods.dev/commands/nickromanek/clawbridge/security"><img src="https://agentmods.dev/badge/commands/nickromanek/clawbridge/security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 465 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00465
Opus 5.5 $0.00000 $0.00186
Sonnet 5.5 $0.00000 $0.00093
Haiku 4.5 $0.00000 $0.00047

Measured 1mo ago against content hash 2bbdb73e4234, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/security.md · 44 lines

What it actually says

Pre-Release Security Scan

Run this before /deploy to catch security issues. Three-step process: scan, triage, report.

Step 1: Run Semgrep locally

pip install semgrep 2>/dev/null
semgrep scan --config auto --config p/python --config p/secrets --config p/owasp-top-ten --severity WARNING clawbridge.py clawbridge_mcp.py

If Semgrep is not installed, install it first. Parse the output and categorize findings by severity.

Step 2: Run the security-auditor agent

After Semgrep completes, launch the security-auditor subagent to do a deeper review focusing on:

  • Any Semgrep findings that need human judgment (true positive vs false positive)
  • Memory/context poisoning paths
  • Prompt injection vectors
  • Network exposure (WebSocket, CORS, rate limiting)
  • Subprocess security (engine launches, key handling)
  • Dashboard XSS (especially in dynamically rendered content)

Step 3: Report

Present a summary table with:

  • CRITICAL/HIGH findings that MUST be fixed before deploy
  • MEDIUM findings that should be tracked
  • LOW/informational findings to note
  • False positives to ignore (explain why)

Past findings to watch for

  • v0.5.5: --host 127.0.0.1 was not a valid OpenClaw flag — broke the gateway silently. Always verify CLI flags against --help.
  • v0.5.5: Python \n in JS regex broke entire dashboard script block. Semgrep won't catch this — it's a Python-in-JS escaping issue.
  • v0.5.3: Engine error messages leaked API keys before safety_redact() was applied.
  • Ongoing: No CSP header on dashboard. Memory poisoning via task result previews in daily logs. WebSocket accepts missing Origin header when no auth is set.

Decision guide

  • 0 CRITICAL/HIGH → Safe to /deploy
  • Any CRITICAL → Fix before deploying, no exceptions
  • HIGH only → Fix if quick (<30 min), otherwise document and track for next release
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 44 lines · 0 tokens per session scan A 2bbdb73e4234

Subscribe to this mod's changes

security is a command published in the GitHub repository NickRomanek/clawbridge (23 stars, last pushed 7mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 465 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.