Back to skill

Security audit

Maddy Mail

Security checks for vulnerabilities and agentic risk

Overview

The verdict is benign with medium confidence: one scanner reported no issues, while a partial scan flagged command execution, elevated access, and undeclared tool scope that were assessed as consistent with the skill’s purpose.

The verdict is benign, not risk-free. Before installing, consider whether the detected shell and environment access fit your needs. The scan was partial because a referenced path could not be matched to a bundled artifact, so the evidence is incomplete.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • 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 (4)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, shell.

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.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/maddy-mail (reported line 20)May include surrounding context.

text
except KeyError: raise SystemExit(f"unknown account: {name}")

def shell(cmd, *, input_bytes=None, check=True):
    p = subprocess.run(cmd, input=input_bytes, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    if check and p.returncode:
        sys.stderr.write(p.stderr.decode(errors="replace"))
        raise SystemExit(p.returncode)

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/maddy-mail (reported line 27)May include surrounding context.

text
return p.stdout, p.stderr, p.returncode

def ssh_maddy(cfg, args, *, input_bytes=None, check=True):
    remote = "sudo -u maddy " + shlex.quote(cfg.get("maddy_path", "/usr/local/bin/maddy")) + " " + " ".join(shlex.quote(a) for a in args)
    return shell(["ssh", cfg["ssh_host"], remote], input_bytes=input_bytes, check=check)

def maddy_user(acc): return acc["email"]

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/maddy-mail (reported line 108)May include surrounding context.

text
# a pipeline belongs in a small script that password_cmd points at.
    argv=cmd if isinstance(cmd, list) else shlex.split(cmd)
    argv=[os.path.expanduser(a) for a in argv]
    out=subprocess.check_output(argv)
    return out.decode().strip()

def smtp_tls_context():