clawsec-scanner
Automated vulnerability scanner for agent platforms.
Skill by prompt-security
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/prompt-security-clawsec-scanner
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, security, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/clawsec-scanner
What's inside
- Skill name
clawsec-scanner- Description
- Automated vulnerability scanner for agent platforms. Performs dependency scanning (npm audit, pip-audit), multi-database CVE lookup (OSV, NVD, GitHub Advisory), SAST analysis (Semgrep, Bandit), and agent-specific static hook inspection for OpenClaw hooks.
- License
- AGPL-3.0
- Instructions
- 496 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Files (26)
- CHANGELOG.md
- README.md
- SKILL.md
- .gitkeep · hooks/
- HOOK.md · hooks/clawsec-scanner-hook/
- handler.ts · hooks/clawsec-scanner-hook/
- .gitkeep · lib/
- report.mjs · lib/
- types.ts · lib/
- utils.mjs · lib/
- .gitkeep · scripts/
- dast_hook_executor.mjs · scripts/
- dast_runner.mjs · scripts/
- query_cve_databases.mjs · scripts/
- runner.sh · scripts/
- sast_analyzer.mjs · scripts/
- scan_dependencies.mjs · scripts/
- setup_scanner_hook.mjs · scripts/
- skill.json
- .gitkeep · test/
- cve_integration.test.mjs · test/
- dast_harness.test.mjs · test/
- dependency_scanner.test.mjs · test/
- test_harness.mjs · test/lib/
- reviewer_regressions.test.mjs · test/
- sast_engine.test.mjs · test/
SKILL.md (first lines)
# 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 static analysis of OpenClaw hook metadata and handler source without importing or invoking target code
- **Unified Reporting**: Consolidated vulnerability reports with severity classification and remediation guidance
- **Continuous Monitoring**: OpenClaw hook integration for automated periodic scanning
## Vercel Skills Installation
Install with the Vercel Skills CLI for this harness:
```bash
npx skills add prompt-security/clawsec --skill clawsec-scanner -a openclaw -y
```
## 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
4. **Dynamic Analysis (DAST)**
- Static hook inspection for OpenClaw hook handlers discovered from `HOOK.md` metadata
- Verifies coverage and source-level risk signals without importing, transpiling, or invoking target handlers
- Note: Traditional web DAST tools (ZAP, Burp) do not apply to agent platforms - this provides agent-specific testing
### Unified Reporting
All scan types emit a consistent `ScanReport` JSON schema:
```typescript
{
scan_id: string; // UUID
timestamp: string; // ISO 8601
target: string; // Scanned path
vulnerabilities: Vulnerability[];
summary: {
critical: number;
high: number;
medium: number;
low: number;
info: number;
}
}
```
Each `Vulnerability` object includes:
- `id`: CVE-2023-12345 or GHSA-xxxx-yyyy-zzzz
- `source`: npm-audit | pip-audit | osv | nvd | github | sast | dast
- `severity`: critical | high | medium | low | info
- `package`: Package name (or 'N/A' for SAST/DAST)
- `version`: Affected version
- `fixed_version`: First version with fix (if available)
- `title`: Short description
- `description`: Full advisory text
- `references`: URLs for more info
- `discovered_at`: ISO 8601 timestamp
### OpenClaw Integration
Automated continuous monitoring via hook:
- Runs scanner on configurable interval (default: 86400s / 24 hours)
- Triggers on `agent:bootstrap` and `command:new` events
- Posts findings to `event.messages` array with severity summary
- Rate-limited by `CLAWSEC_SCANNER_INTERVAL` environment variable
## Installation
### Prerequisites
Verify required binaries are available:
```bash
# Core runtimes
node --version # v20+
npm --version
python3 --version # 3.10+
# Scanning tools
pip-audit --version # Install: uv pip install pip-audit
semgrep --version # Install: pip install semgrep OR brew install semgrep
bandit --version # Install: uv pip install bandit
# Utilities
jq --version
curl --version
```
### Option A: Via clawhub (recommended)
```bash
npx clawhub@latest install clawsec-scanner
```
### Option B: Manual installation with verification
```bash
set -euo pipefailFrom prompt-security/clawsec, AGPL-3.0.
More from prompt-security/clawsec
- 0.824score
clawsec-suite
prompt-security
ClawSec suite manager with embedded advisory-feed monitoring, cryptographic signature verification, approval-gated malicious-skill response, and guided setup…
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.808score
clawsec-feed
prompt-security
Security advisory feed package for OpenClaw-related threats and vulnerabilities.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.778score
picoclaw-security-guardian
prompt-security
Picoclaw security posture skill with advisory awareness, configuration drift detection, and supply-chain verification guidance.
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.778score
picoclaw-traffic-guardian
prompt-security
Picoclaw runtime traffic monitoring baseline for lightweight AI gateway proxy inspection, egress detection, and posture integration.
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.778score
openclaw-traffic-guardian
prompt-security
OpenClaw runtime traffic monitoring baseline for opt-in HTTP/HTTPS proxy inspection, egress detection, inbound injection detection, and social-account policy…
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.778score
hermes-traffic-guardian
prompt-security
Hermes runtime traffic monitoring baseline for opt-in proxy inspection, egress detection, and attestation-aware traffic posture.
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.778score
openclaw-audit-watchdog
prompt-security
Automated daily security audits for OpenClaw agents with DM delivery and optional email reporting.
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.775score
picoclaw-self-pen-testing
prompt-security
Picoclaw-only local posture-review skill focused on read-only findings and safe operator remediation guidance.
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.775score
clawsec-clawhub-checker
prompt-security
ClawHub reputation checker for clawsec-suite.
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.775score
hermes-attestation-guardian
prompt-security
Hermes-only runtime security attestation and drift detection skill for operator-managed Hermes infrastructure.
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.775score
soul-guardian
prompt-security
Drift detection + baseline integrity guard for agent workspace files with automatic alerting support
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.772score
nanoclaw-traffic-guardian
prompt-security
NanoClaw runtime traffic monitoring baseline for host-side proxy inspection with container-safe MCP and IPC status surfaces.
SkillBFreshness: B★ 1.1KClaude Code +9
Signals
- Stars
- 1,125
- Forks
- 112
- Open issues
- 2
- Last commit (this folder)
- Jun 23, 2026 (4 months ago)
- Last release
- Sep 7, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- AGPL-3.0
- Repository
- github.com/prompt-security/clawsec
- Website
- prompt.security/clawsec
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from prompt-security
- 0.824score
clawsec-suite
prompt-security
ClawSec suite manager with embedded advisory-feed monitoring, cryptographic signature verification, approval-gated malicious-skill response, and guided setup…
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.808score
clawsec-feed
prompt-security
Security advisory feed package for OpenClaw-related threats and vulnerabilities.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.778score
openclaw-traffic-guardian
prompt-security
OpenClaw runtime traffic monitoring baseline for opt-in HTTP/HTTPS proxy inspection, egress detection, inbound injection detection, and social-account policy…
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.778score
hermes-traffic-guardian
prompt-security
Hermes runtime traffic monitoring baseline for opt-in proxy inspection, egress detection, and attestation-aware traffic posture.
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.778score
openclaw-audit-watchdog
prompt-security
Automated daily security audits for OpenClaw agents with DM delivery and optional email reporting.
SkillBFreshness: B★ 1.1KClaude Code +9 - 0.778score
picoclaw-security-guardian
prompt-security
Picoclaw security posture skill with advisory awareness, configuration drift detection, and supply-chain verification guidance.
SkillBFreshness: B★ 1.1KClaude Code +9
Cite this page
clawsec-scanner skill. Agent Mart. https://agentmart.dev/skills/prompt-security-clawsec-scanner (last updated 2026-10-24)