Back to skill

Security audit

MayGuard

Security checks for vulnerabilities and agentic risk

Overview

MayGuard is a local skill-auditing script with no apparent harmful payload, but it can read outside the chosen audit folder through symlinks and can miss hidden files, so it should be reviewed before use.

Use this only as a lightweight helper, not as a definitive safety gate. Audit untrusted skills in a sandbox, do not rely on a `SAFE` result unless hidden files, archives, and symlinks have also been handled, and prefer a fixed version that rejects symlinks and reports skipped files.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (2)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
scripts/audit.py:27
Finding

Symlink Traversal Allows Reads Outside the Audit Target

Content
View full analysis
`. 3. `os.walk()` lists the symlink as a file. 4. `open(file_path, ...)` follows the link and reads the external target with the victim's filesystem privileges. 5. Content from the out-of-scope file is tested again ...[truncated 722 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/audit.py:29
Finding

Hidden-File Exclusion Creates a Direct Static-Analysis Bypass

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (8)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 39)May include surrounding context.

md
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

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/threat_patterns.json (reported line 3)May include surrounding context.

json
{
  "credential_theft": [
    "\\.env",
    "id_rsa",
    "openclaw\\.json",
    "credentials",

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 39)May include surrounding context.

md
"aiohttp"
  ],
  "destructive_commands": [
    "rm -rf /",
    "truncate",
    "chmod 777",
    "chown root",

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/threat_patterns.json (reported line 22)May include surrounding context.

json
"aiohttp"
  ],
  "destructive_commands": [
    "rm -rf /",
    "truncate",
    "chmod 777",
    "chown root",

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/threat_patterns.json (reported line 22)May include surrounding context.

json
"aiohttp"
  ],
  "destructive_commands": [
    "rm -rf /",
    "truncate",
    "chmod 777",
    "chown root",

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/threat_patterns.json (reported line 24)May include surrounding context.

json
"destructive_commands": [
    "rm -rf /",
    "truncate",
    "chmod 777",
    "chown root",
    "mkfs",
    "dd if=/dev/zero"

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
80% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · references/threat_patterns.json (reported line 24)May include surrounding context.

json
"destructive_commands": [
    "rm -rf /",
    "truncate",
    "chmod 777",
    "chown root",
    "mkfs",
    "dd if=/dev/zero"