Security Sentinel Ultimate
简介
Security Sentinel Ultimate
原始描述
Scans a skill directory for security issues and best practices
通过你的 Agent 添加
安装目录:security-sentinel-ultimate/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: security-sentinel-ultimate description: Scans a skill directory for security issues and best practices tools:
- name: scan_skill
description: Analyzes a skill directory for security vulnerabilities, misconfigurations, and compliance with best practices.
arguments:
- name: path description: The file path to the skill directory to scan. type: string required: true execution: command: python3 {{SKILL_DIR}}/scanner.py "{{path}}" output_format: markdown
Security Sentinel
Scans a skill directory for security issues, misconfigurations, and best practices.
What It Detects
Category
Examples
Severity
Dangerous calls (critical)
os.system, eval, exec
🔴 Critical
Dangerous calls (warning)
subprocess.run, os.popen
🟡 Warning
Hardcoded secrets
API keys, tokens, passwords, credentials in string literals
🔴 Critical
Network calls
requests.get, urllib.request.urlopen, http.client
🟡 Warning
Obfuscation
getattr indirection, __import__/importlib dynamic loading, chr()-encoded strings
🔴 Critical
Hidden files
Files and directories starting with . (e.g. .env, .hidden_script.py)
🟡 Warning
Severity Model
| Category | Examples | Severity |
|---|---|---|
| Dangerous calls (critical) | os.system, eval, exec |
🔴 Critical |
| Dangerous calls (warning) | subprocess.run, os.popen |
🟡 Warning |
| Hardcoded secrets | API keys, tokens, passwords, credentials in string literals | 🔴 Critical |
| Network calls | requests.get, urllib.request.urlopen, http.client |
🟡 Warning |
| Obfuscation | getattr indirection, __import__/importlib dynamic loading, chr()-encoded strings |
🔴 Critical |
| Hidden files | Files and directories starting with . (e.g. .env, .hidden_script.py) |
🟡 Warning |
The scanner uses a three-tier severity system:
| Status | Meaning |
|---|---|
| 🔴 CRITICAL | Immediate security risk — hardcoded secrets, eval/exec, os.system, obfuscation detected. Requires urgent review. |
| 🟡 WARNING | Potential risk — subprocess usage, network calls, hidden files. Review recommended. |
| 🟢 OK | No 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:
getattrindirection —getattr(os, 'system')('whoami')is flagged because the second argument resolves to a known dangerous attribute name.- Dynamic imports —
__import__('subprocess')andimportlib.import_module('subprocess')are both detected and flagged as dangerous module loads. - String construction — Secrets built via concatenation (
key = "sk-" + "abcd...") orchr()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.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。