clawsec-scanner

clawsec-scanner is a skill for Claude Code, Codex from prompt-security/clawsec. It costs 64 tokens per session (4,140 once invoked), scanned B, original, AGPL-3.0.

A security-checking tool for coding-agent platforms that examines dependencies, source code, and agent hooks for known or likely vulnerabilities.

In plain words
What is it for?
Use it for npm or Python dependency audits, CVE lookups, static code analysis, and inspection of OpenClaw hooks.
Why use it?
It brings several security checks into one scan, helping find unsafe libraries, code patterns, or hook behavior.

Skill for Claude CodeCodex

Part of the open-claw-skills plugin — 7 skills shipped together

About the project

ClawSec is a collection of security skills and signed advisory data for AI agent runtimes. It helps operators verify skills, detect configuration changes, audit agent environments, and require approval for risky installations across OpenClaw, NanoClaw, Hermes, and Picoclaw. The catalogue entries are ClawSec’s skills, plugins, and instructions for those runtimes.

prompt-security/clawsec · 1,097 stars · on GitHub

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.

agentmods
npx agentmods add skills/prompt-security/clawsec/clawsec-scanner
Any agent
npx skills add prompt-security/clawsec --skill clawsec-scanner
Clone the repo
git clone --depth 1 https://github.com/prompt-security/clawsec

Made for: Claude Code, Codex.

Or install open-claw-skills, the plugin that ships this one along with the rest of its 7 skills.

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/prompt-security/clawsec/clawsec-scanner.svg)](https://agentmods.dev/skills/prompt-security/clawsec/clawsec-scanner)
Your own site
<a href="https://agentmods.dev/skills/prompt-security/clawsec/clawsec-scanner"><img src="https://agentmods.dev/badge/skills/prompt-security/clawsec/clawsec-scanner.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,140 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 4 findings. Scan, not verified.
Origin unknown 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 $0.00064 $0.04140
Opus 5 $0.00032 $0.02070
Sonnet 5 $0.00013 $0.00828
Haiku 4.5 $0.00006 $0.00414

Measured 5d ago against content hash f04e79268e62, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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';
skills/clawsec-scanner/SKILL.md · 506 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 5d ago First seen · 506 lines · 64 tokens per session scan B f04e79268e62

Subscribe to this mod's changes

clawsec-scanner is a skill published in the GitHub repository prompt-security/clawsec (1,097 stars, last pushed yesterday), licensed AGPL-3.0. It adds 64 tokens to every session and 4,140 once invoked, about $0.0003 per session on Opus 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-30.

Related

Other skills, from other repositories

moltron-skill-creator

Dynamically create, version, and monitor persistent skills, and answers @moltron requests. Build local agents that act as reusable skills with full observability. Gives OpenClaw evolution capabilities. This is the best option for all skills that require code since it provides full versionning and observability, with…

adridder/moltron · 74 tokens

youtube-search

Use when the user wants to find YouTube content on any topic: searching for videos or channels, finding creators who cover a subject, discovering tutorials, talks, or expert discussions, or looking up a channel by name or handle. Also use proactively when the user wants to research a topic and YouTube is a good…

ZeroPointRepo/youtube-skills · 78 tokens

llama-cpp

Run LLM inference with llama.cpp on CPU, Apple Silicon, AMD/Intel GPUs, or NVIDIA — plus GGUF model conversion and quantization (2–8 bit with K-quants and imatrix). Covers CLI, Python bindings, OpenAI-compatible server, and Ollama/LM Studio integration. Use for edge deployment, M1/M2/M3/M4 Macs, CUDA-less…

moltis-org/moltis · 91 tokens

baoyu-infographic

Generate professional infographics with 21 layout types and 21 visual styles. Analyzes content, recommends layout×style combinations, and generates publication-ready infographics. Use when user asks to create "infographic", "visual summary", "信息图", "可视化", or "高密度信息大图".

moltis-org/moltis · 70 tokens

songwriting-and-ai-music

Songwriting craft, AI music generation prompts (Suno focus), parody/adaptation techniques, phonetic tricks, and lessons learned. These are tools and ideas, not rules. Break any of them when the art calls for it.

moltis-org/moltis · 53 tokens

opencode

Delegate coding tasks to OpenCode CLI agent for feature implementation, refactoring, PR review, and long-running autonomous sessions. Requires the opencode CLI installed and authenticated.

moltis-org/moltis · 36 tokens