360 Secure SkillHub
360 安全技能中心

Senseguard

SenseGuard 面向 OpenClaw 技能做安全扫描:把 SKILL.md 当作 agent 指令进行语义审查,用规则引擎加可选的 LLM 语义分析(Layer 2)识别提示注入、数据外泄、混淆与持久化攻击,输出 0-100 分评级(SAFE/CAUTION/DANGEROUS/MALICIOUS)、证据与行号及处置建议。

fermionoid
fermionoid
热度 70.63
最近更新 2026-05-11 15:54:29
分类:安全依赖:代码执行 / 读写文件 / 内部调用大模型应用场景:代码审查 / 报告撰写 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add senseguard
Metadata
name
senseguard
description
Semantic security scanner for OpenClaw skills. Detects prompt injection, data exfiltration, and hidden instructions that traditional code scanners miss. Use when user asks to scan skills, check skill safety, or run a security audit.

SenseGuard

Scans OpenClaw skills for natural language security threats — the kind that VirusTotal and traditional code scanners cannot detect.

Traditional scanners see SKILL.md as a text file. SenseGuard sees it as agent instructions and checks for prompt injection, data exfiltration, obfuscation, and persistence attacks.

How to Use

When the user asks to scan a skill:

python3 scripts/scanner.py --target <skill-name-or-path>

Options:

  • --target all — scan all installed skills
  • --deep — force LLM semantic analysis (Layer 2)
  • --no-cache — skip cached results
  • --json — output raw JSON for further processing

Layer 2 (Semantic Analysis)

When --json output contains a layer2_prompt field, process it as a security audit task, then feed the JSON result back to generate the final score. This is how the LLM analyzes intent beyond regex patterns.

Output

The scanner outputs a Markdown risk report with:

  • Score (0-100) and rating: SAFE / CAUTION / DANGEROUS / MALICIOUS
  • Findings with rule IDs, evidence text, and line numbers
  • Actionable recommendations

For CRITICAL findings, clearly advise the user to take action.

Key Differentiator

SenseGuard catches what VirusTotal cannot:

  • "ignore all previous instructions" — prompt injection
  • curl -X POST hidden in Markdown — data exfiltration
  • Zero-width characters hiding commands — obfuscation
  • "modify MEMORY.md" — persistence attacks

These are invisible to traditional malware scanners because they target the AI agent, not the operating system.