Install
openclaw skills install @yottameta/yotta-security-auditopenclaw skills install @yottameta/yotta-security-auditYottaMeta 自有安全扫描引擎,面向 AI 技能供应链与所在系统:
纯 Python 3.8+ 标准库实现,零依赖;Windows + Linux 通用。
Do NOT trigger:本工具只读检测。发现风险后应向用户报告并给出建议,不得自行删除、隔离或修复。
# 扫描所有已发现的技能(17 类智能体目录)
python3 scripts/yotta_audit.py --target skill
# 扫描单个技能目录
python3 scripts/yotta_audit.py --path ./some-skill
# 系统安全基线(当前平台)
python3 scripts/yotta_audit.py --target system --platform auto
# JSON 输出 + 生成 Markdown 报告
python3 scripts/yotta_audit.py --path ./some-skill --json --report report.md
# 只报告 high 及以上
python3 scripts/yotta_audit.py --path ./some-skill --severity high
Windows 下同样用 python 运行;控制台编码已加固(GBK 环境不崩)。
| 检测器 | 关注点 | 默认级别 |
|---|---|---|
| DownloadExec | 下载后通过管道或落地文件交给 shell 执行 | critical |
| Obfuscation | 动态求值、编码字符串构造、base64 解码后执行 | high |
| Persistence | 定时任务、启动代理/守护、shell 配置、注册表启动项写入 | high |
| Exfiltration | 读取敏感文件后外传、打包上传 | high |
| CredentialTheft | SSH/云凭据/浏览器数据/钥匙串访问 | critical |
| NetworkCall | 反向连接、原始套接字、HTTP 客户端(多为上下文相关) | medium |
| PrivilegeEscalation | 权限位修改、setuid、加入管理员组 | high |
| SocialEngineering | 社会工程话术命名(文件名) | medium |
| Base64 | 超长 base64 编码串(解码含敏感关键字则升级) | medium→high |
| IOCMatch | 已知恶意 IP/域名/URL 模式/文件哈希 | critical |
| PostInstallHook | 安装期生命周期脚本(下载/执行为 critical) | high→critical |
| HiddenChar | 零宽字符与双向覆盖字符 | medium |
| Entropy | 高熵编码串(疑似混淆/加密载荷) | medium |
规则表位于 scripts/audit_rules.py(签名数据文件,自扫豁免),可用 --ioc-db 传入自有威胁情报。
| 值 | 含义 |
|---|---|
| 0 | 干净 / 仅有 low 提示 |
| 1 | 存在 medium |
| 2 | 存在 high |
| 3 | 存在 critical |
| 4 | 扫描器自身错误(参数错误/致命异常) |