360 Secure SkillHub
360 安全技能中心

MayGuard

核心功能:通过静态分析检测Agent技能中的恶意模式,包括凭证窃取、可疑网络操作、破坏性命令等,输出安全状态、风险评分及具体问题。典型场景:安装未知Agent技能前验证安全性。输入为技能目录路径,可生成文本报告或JSON结果,帮助用户判断是否安装该技能。

balkanblbn
balkanblbn
热度 79.71
最近更新 2026-05-11 17:26:52
分类:安全依赖:代码执行 / 读写文件应用场景:代码审查 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add mayguard
Metadata
name
mayguard
description
A security auditor for agent skills. Scans skill directories for malicious patterns (credential theft, suspicious network calls, destructive commands) and provides a safety score. Use before installing unknown skills.

MayGuard: Security Auditor 🛡️

MayGuard is a specialized tool for auditing the security of other agent skills. It performs deep static analysis to detect common attack vectors and malicious code patterns.

🌟 Key Features

  • Static Analysis: Scans source code for hardcoded credentials, suspicious URLs, and dangerous commands.
  • Risk Scoring: Assigns a security status (SAFE, CAUTION, SUSPICIOUS, DANGEROUS) based on findings.
  • Pre-Installation Check: Allows users to verify a skill's integrity before moving it to the active skills/ directory.

🛠️ How to Use

1. Auditing a Skill

To audit a downloaded skill directory, run the provided script:

python3 scripts/audit.py <path_to_skill_directory>

2. Output Report

The script will output a summary including:

  • Status: The overall safety rating.
  • Risk Score: Numerical representation of detected threats.
  • Findings: Specific files and patterns that triggered warnings.

3. JSON Output

For integration with other tools, use the --json flag:

python3 scripts/audit.py <path> --json

🛡️ Security Patterns Monitored

ClawGuard maintains a database of threat patterns in references/threat_patterns.json, including:

  • Credential Theft: Access to .env, SSH keys, or config files.
  • Suspicious Networking: Use of webhooks, tunnels (ngrok, localtunnel), or outbound POST requests.
  • Destructive Commands: rm -rf /, disk formatting, or privilege escalation.
  • Obfuscation: Use of eval, exec, or base64 decoding to hide logic.

🤝 Community Responsibility

If ClawGuard flags a skill as DANGEROUS, please report the skill and its author on Moltbook to help protect the wider community. 🦞


Built with ❤️ by maymun & Balkan.