clawsec-scanner

clawsec-scanner is a skill for Claude Code, Codex from opencue/cuecards. It costs 66 tokens per session (4,128 once invoked), scanned B, original, MIT.

A security scanner for software used by coding agents. It checks dependencies, source code, known vulnerability databases, and OpenClaw hooks, which are scripts that run in response to agent events.

In plain words
What is it for?
Use it to find vulnerable npm or Python packages, hardcoded secrets, unsafe code patterns, and problems in OpenClaw hooks.
Why use it?
It brings several security checks into one scan and combines the results into a report with severity levels and suggested fixes.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: positional $N argument; installed under .agents/ (shared by several agents); built for openclaw.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is "$SCANNER_DIR/scripts/runner.sh" --target ./skills/ --output report.json --format json.

Good fit Use it to find vulnerable npm or Python packages, hardcoded secrets, unsafe code patterns, and problems in OpenClaw hooks.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/opencue/cuecards
agentmods
npx agentmods add skills/opencue/cuecards/clawsec-scanner

Made for: Claude Code, Codex.

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 clawsec-scanner

README.md
[![agentmods](https://agentmods.dev/badge/skills/opencue/cuecards/clawsec-scanner/github.svg)](https://agentmods.dev/skills/opencue/cuecards/clawsec-scanner)
Your own site
<a href="https://agentmods.dev/skills/opencue/cuecards/clawsec-scanner"><img src="https://agentmods.dev/badge/skills/opencue/cuecards/clawsec-scanner/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 clawsec-scanner

Your own site · 80×15
<a href="https://agentmods.dev/skills/opencue/cuecards/clawsec-scanner"><img src="https://agentmods.dev/badge/skills/opencue/cuecards/clawsec-scanner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,128 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 4 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.00066 $0.04128
Opus 5.5 $0.00026 $0.01651
Sonnet 5.5 $0.00013 $0.00826
Haiku 4.5 $0.00007 $0.00413

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

Security

Grade B, and why

clawsec-scanner scanned grade B with 4 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 3mo ago.

The scan reads SKILL.md. This mod also ships 17 executable files (hooks/clawsec-scanner-hook/handler.ts, lib/report.mjs, lib/types.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 600 "$DEST/skill.json"

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

trap 'rm -rf "$TEMP_DIR"' EXIT

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

bins: [node, npm, python3, pip-audit, semgrep, bandit, jq, curl]

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

import { spawn } from 'node:child_process';
.agents/skills/clawsec-scanner/SKILL.md · 498 lines

How it starts

The opening of the file, as written. The whole thing — 498 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ClawSec Scanner

Comprehensive security scanner for agent platforms that automates vulnerability detection across multiple dimensions:

  • Dependency Scanning: Analyzes npm and Python dependencies using npm audit and pip-audit with structured JSON output parsing
  • CVE Database Integration: Queries OSV (primary), NVD 2.0, and GitHub Advisory Database for vulnerability enrichment
  • SAST Analysis: Static code analysis using Semgrep (JavaScript/TypeScript) and Bandit (Python) to detect hardcoded secrets, command injection, path traversal, and unsafe deserialization
  • DAST Framework: Agent-specific dynamic analysis with real OpenClaw hook execution harness (malicious input, timeout, output bounds, event mutation safety)
  • Unified Reporting: Consolidated vulnerability reports with severity classification and remediation guidance
  • Continuous Monitoring: OpenClaw hook integration for automated periodic scanning

Features

Multi-Engine Scanning

The scanner orchestrates four complementary scan types to provide comprehensive vulnerability coverage:

  1. Dependency Scanning

    • Executes npm audit --json and pip-audit -f json as subprocesses
    • Parses structured output to extract CVE IDs, severity, affected versions
    • Handles edge cases: missing package-lock.json, zero vulnerabilities, malformed JSON
  2. CVE Database Queries

    • OSV API (primary): Free, no authentication, broad ecosystem support (npm, PyPI, Go, Maven)
    • NVD 2.0 (optional): Requires API key to avoid 6-second rate limiting
    • GitHub Advisory Database (optional): GraphQL API with OAuth token
    • Normalizes all API responses to unified Vulnerability schema
  3. Static Analysis (SAST)

    • Semgrep for JavaScript/TypeScript: Detects security issues using --config auto or --config p/security-audit
    • Bandit for Python: Leverages existing pyproject.toml configuration
    • Identifies: hardcoded secrets (API keys, tokens), command injection (eval, exec), path traversal, unsafe deserialization

Read the full file on GitHub · 498 lines

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. 3mo ago First seen · 498 lines · 66 tokens per session scan B b1af8227bf95

Subscribe to this mod's changes

clawsec-scanner is a skill published in the GitHub repository opencue/cuecards (10 stars, last pushed yesterday), licensed MIT. It adds 66 tokens to every session and 4,128 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 4 findings (asks for root, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

clawsec-scanner compared with skills from other repositories

clawsec-scanner next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
clawsec-scanneropencue/cuecardsSkill10yesterdayMITB66Claude Code, Codex
agentloop-audit-dashboardalibaba/loongsuite-pilotSkill2703d agoApache-2.0A149Claude Code, Codex
loongsuite-pilot-opsalibaba/loongsuite-pilotSkill2703d agoApache-2.0A15Claude Code, Codex
atomic-visual-optionsdamusix/atomic-claudeSkill117yesterdayMITA150Claude Code, Codex
agentloop-audit-queryalibaba/loongsuite-pilotSkill2703d agoApache-2.0A54Claude Code, Codex
atomic-tdddamusix/atomic-claudeSkill117yesterdayMITA142Claude Code, Codex
atomic-verifydamusix/atomic-claudeSkill117yesterdayMITA100Claude Code, Codex