mayguard
由 balkanblbn 提供
Coding Agents & IDEs简介
A security auditor for agent skills.
描述
该技能的功能
Static analysis tool that scans agent skill directories for security threats before installation. Detects credential theft patterns, suspicious network calls, destructive commands, and code obfuscation. Returns a safety rating (SAFE, CAUTION, SUSPICIOUS, or DANGEROUS) with specific findings per file.
Catches attack patterns specific to agent skill architectures, like env file exfiltration and eval-based obfuscation, that general-purpose linters miss.
何时使用
- Auditing a downloaded skill before moving it to the active skills folder
- Detecting hardcoded API keys or env file access in third-party skills
- Identifying outbound webhook or tunnel calls in untrusted skill code
- Scanning community-shared skills before running them locally
- Checking for privilege escalation or destructive commands in a new skill
示例工作流
User asks: Audit the skill I downloaded to ~/Downloads/new-skill before I install it
- 1
Run
python3 scripts/audit.py ~/Downloads/new-skillagainst the target directory - 2
Scan source files for credential access patterns including .env and SSH key references
- 3
Check for suspicious network calls such as webhook endpoints and ngrok or localtunnel usage
- 4
Detect obfuscation techniques including eval, exec, and base64 decoding
- 5
Compute a numerical risk score and assign an overall safety rating
Report showing status CAUTION, risk score, and a list of flagged patterns with the specific files and lines that triggered each warning
安装
clawhub install balkanblbn/mayguard运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。