扫描报告
30 /100
authlock
MFA-bound secret protection with TOTP encryption
AuthLock provides legitimate TOTP-based secret encryption but contains an undocumented subprocess execution feature with shell=True that poses command injection risk.
谨慎使用
Review the --exec functionality and consider sanitizing the command argument or removing shell=True. The feature appears designed for legitimate use cases but lacks proper input validation.
安全发现 3 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 高危 | Shell command injection vulnerability in --exec | authlock_cli.py:336 |
| 中危 | Sensitive path access not prominently documented | SKILL.md:45 |
| 低危 | TOTP seed stored in plaintext config | authlock_cli.py:103 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 文件系统 | READ,WRITE | READ,WRITE | ✓ 一致 | SKILL.md:seal/open commands; authlock_cli.py:cmd_seal,cmd_open |
| 命令执行 | NONE | WRITE | ✗ 越权 | authlock_cli.py:336 - subprocess.run(cmd, shell=True) |
| 环境变量 | NONE | READ | ✓ 一致 | SKILL.md:OPENCLAW_WORKSPACE,AUTHLOCK_HOME usage |
| 网络访问 | NONE | NONE | — | No network requests found |
目录结构
2 文件 · 29.5 KB · 986 行 Python 1f · 728L
Markdown 1f · 258L
├─
authlock_cli.py
Python
└─
SKILL.md
Markdown
依赖分析 3 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
cryptography | * | pip | 否 | Standard encryption library |
pyotp | * | pip | 否 | TOTP generation |
qrcode | * | pip | 否 | QR code display |
安全亮点
✓ TOTP-based MFA provides strong authentication for decryption
✓ AES-256-GCM with PBKDF2-SHA256 for encryption (industry standard)
✓ No evidence of network exfiltration or data theft
✓ Security notes prohibit echoing plaintext in conversation
✓ PIN optional second factor implemented
✓ Temporary files cleaned up after execution
✓ File permissions set to 0o600 for decrypted secrets