← 返回
未分类 中文

Security Sentinel Ultimate

Scans a skill directory for security issues and best practices
扫描技能目录的安全问题和最佳实践
liverock
未分类 clawhub v0.3.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 296
下载
💾 0
安装
1
版本
#latest

概述

Security Sentinel

Scans a skill directory for security issues, misconfigurations, and best practices.

What It Detects

CategoryExamplesSeverity
-----------------------------
Dangerous calls (critical)os.system, eval, exec🔴 Critical
Dangerous calls (warning)subprocess.run, os.popen🟡 Warning
Hardcoded secretsAPI keys, tokens, passwords, credentials in string literals🔴 Critical
Network callsrequests.get, urllib.request.urlopen, http.client🟡 Warning
Obfuscationgetattr indirection, __import__/importlib dynamic loading, chr()-encoded strings🔴 Critical
Hidden filesFiles and directories starting with . (e.g. .env, .hidden_script.py)🟡 Warning

Severity Model

The scanner uses a three-tier severity system:

StatusMeaning
-----------------
🔴 CRITICALImmediate security risk — hardcoded secrets, eval/exec, os.system, obfuscation detected. Requires urgent review.
🟡 WARNINGPotential risk — subprocess usage, network calls, hidden files. Review recommended.
🟢 OKNo findings. File is clean.

Each file gets an individual severity rating. The overall status is the highest severity across all files — if even one file is red, the entire scan is marked CRITICAL.

Obfuscation Defenses (Defensive Depth)

The scanner catches three common bypass techniques:

  1. getattr indirectiongetattr(os, 'system')('whoami') is flagged because the second argument resolves to a known dangerous attribute name.
  2. Dynamic imports__import__('subprocess') and importlib.import_module('subprocess') are both detected and flagged as dangerous module loads.
  3. String construction — Secrets built via concatenation (key = "sk-" + "abcd...") or chr() sequences are resolved at scan time and matched against secret patterns.

Usage

The scan_skill tool accepts a path argument pointing to a skill directory. It runs scanner.py against all .py files in that directory tree and returns a Markdown report with tables of findings grouped by file and category.

版本历史

共 1 个版本

  • v0.3.0 当前
    2026-05-07 20:14 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Legal/TOS Diff-er

liverock
获取服务条款文档,保存快照,并进行语义差异比较,以识别隐私风险、财务等方面的关键法律变更。
★ 1 📥 358

Personal CRM Warm-Up

liverock
识别最近未联系的联系人,并提供轻松重新联系的方式。
★ 1 📥 423

Docker Medic

liverock
检查容器健康状态并针对常见错误提供修复建议
★ 1 📥 431