πŸ›‘οΈ SafeAgentSkills

gmailcleanerfall

Β· v1.0.0

High Risk

Read/search Gmail via gog CLI (preferred) or Python scripts (fallback). Inbox check, email search, content retrieval, IMAP support.

H:4 D:4 A:1 C:1

⚠️ Hazard Flags

EXEC PERSISTENCE FS_READ_WORKSPACE FS_READ_USER FS_WRITE_WORKSPACE FS_WRITE_USER NET_EGRESS_ANY CREDS_ENV CREDS_FILES PI_WEB PI_DOCUMENTS

πŸ“‹ Capabilities

Execution

  • βœ… Shell execution
  • ❌ Code execution
  • ❌ Install dependencies
  • βœ… Persistence
  • Privilege: user

Filesystem

  • βœ… Read workspace
  • βœ… Write workspace
  • βœ… Read home
  • βœ… Write home
  • ❌ Read system
  • ❌ Delete

Network

  • Egress: any
  • ❌ Ingress

Credentials

  • βœ… Environment vars
  • βœ… Credential files
  • ❌ Browser data
  • ❌ Keychain

Actions

❌ send messages❌ post public❌ purchase❌ transfer money❌ deploy❌ delete external

πŸ”’ Containment

Level: maximum

Required:
  • SANDBOX_CONTAINER: Code execution capability
Recommended:
  • LOG_ACTIONS: Audit trail for all actions

⚑ Risks

Prompt injection patterns detected in: analyzer.py, mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md high

Mitigation: Review SKILL.md for hidden instructions. Do not use with untrusted input.

Unauthorized tool use: INSTRUCTED_BINARY_INSTALL high

Mitigation: Avoid instructing agents to install arbitrary binaries; bundle dependencies or use sandboxed environments

Command injection risk: MCP_SQL_BLIND high

Mitigation: Remove SQL exploitation patterns.

Social engineering indicators: SOCIAL_ENG_VAGUE_DESCRIPTION, SOCIAL_ENG_ANTHROPIC_IMPERSONATION low

Mitigation: Provide clear, detailed description of skill functionality

Data exfiltration patterns: DATA_EXFIL_ENV_VARS, INSTRUCTED_SENSITIVE_SERVICE_ACCESS high

Mitigation: Minimize access to environment variables

Want a deeper analysis?

This report was generated by static analysis. Get an LLM-powered deep review with behavioral reasoning and attack surface mapping.

🧠 Deep Analysis β€” $5.00

🚨 Incident Response

Kill switch: Stop the agent process

Containment: Review logs for unexpected actions

Recovery: Depends on skill capabilities

πŸ“„ Raw SSDS JSON click to expand
{
  "meta": {
    "document_id": "ssds:auto:email-reader:1.0.0",
    "ssds_version": "0.2.0",
    "scanner_version": "0.4.0+fe6fd9123d50",
    "created_at": "2026-03-05T16:07:44.511Z",
    "created_by": {
      "agent": "safeagentskills-cli/generate-ssds"
    },
    "language": "en",
    "notes": "Auto-generated SSDS. Manual review recommended."
  },
  "skill": {
    "name": "gmailcleanerfall",
    "version": "1.0.0",
    "format": "agent_skill",
    "description": "Read/search Gmail via gog CLI (preferred) or Python scripts (fallback). Inbox check, email search, content retrieval, IMAP support.",
    "publisher": "unknown",
    "source": {
      "channel": "local"
    },
    "artifact": {
      "sha256": "cc9fd397d64ad845f386e641fbc07e12d5bec79c58910c6601f2bb1ee12a9a06",
      "hash_method": "files_sorted"
    }
  },
  "capabilities": {
    "execution": {
      "can_exec_shell": true,
      "can_exec_code": false,
      "privilege_level": "user",
      "can_install_deps": false,
      "can_persist": true
    },
    "filesystem": {
      "reads_workspace": true,
      "reads_user_home": true,
      "reads_system": false,
      "writes_workspace": true,
      "writes_user_home": true,
      "writes_system": false,
      "can_delete": false
    },
    "network": {
      "egress": "any",
      "ingress": false
    },
    "credentials": {
      "reads_env_vars": true,
      "reads_credential_files": true,
      "reads_browser_data": false,
      "reads_keychain": false
    },
    "services": [],
    "actions": {
      "can_send_messages": false,
      "can_post_public": false,
      "can_purchase": false,
      "can_transfer_money": false,
      "can_deploy": false,
      "can_delete_external": false
    },
    "prompt_injection_surfaces": [
      "web",
      "documents"
    ],
    "content_types": [
      "general"
    ]
  },
  "hazards": {
    "hdac": {
      "H": 4,
      "D": 4,
      "A": 1,
      "C": 1
    },
    "flags": [
      "EXEC",
      "PERSISTENCE",
      "FS_READ_WORKSPACE",
      "FS_READ_USER",
      "FS_WRITE_WORKSPACE",
      "FS_WRITE_USER",
      "NET_EGRESS_ANY",
      "CREDS_ENV",
      "CREDS_FILES",
      "PI_WEB",
      "PI_DOCUMENTS"
    ],
    "custom_flags": [
      {
        "code": "PROMPT_INJECTION",
        "name": "Prompt Injection Risk",
        "description": "Contains prompt injection patterns in: analyzer.py, mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md"
      },
      {
        "code": "PERSISTENCE",
        "name": "Persistence Mechanism",
        "description": "Creates scheduled tasks or startup entries in: mnt/user-data/outputs/email-manager-v3/email-scheduler/SKILL.md"
      },
      {
        "code": "TOOL_ABUSE",
        "name": "Unauthorized Tool Use",
        "description": "INSTRUCTED_BINARY_INSTALL: Instructs agent to install external binary or package"
      },
      {
        "code": "SOCIAL_ENGINEERING",
        "name": "Social Engineering Risk",
        "description": "SOCIAL_ENG_VAGUE_DESCRIPTION, SOCIAL_ENG_ANTHROPIC_IMPERSONATION: Skill description is too vague or missing"
      },
      {
        "code": "COMMAND_INJECTION",
        "name": "Command Injection Risk",
        "description": "MCP_SQL_BLIND: Blind SQL injection, system table access, or stored procedure abuse"
      },
      {
        "code": "DATA_EXFILTRATION",
        "name": "Data Exfiltration Risk",
        "description": "DATA_EXFIL_ENV_VARS, INSTRUCTED_SENSITIVE_SERVICE_ACCESS: Reading environment variables that may contain secrets"
      }
    ],
    "confidence": {
      "level": "medium",
      "basis": [
        "static_analysis"
      ],
      "notes": "Detected 6 security patterns (26 vendored rule hits). Review recommended."
    },
    "rationale": {
      "H": "H4: Critical: Privilege escalation or malware detected",
      "D": "D4: Critical: Credential theft or data exfiltration",
      "A": "A1: Local side effects only",
      "C": "C1: General content"
    }
  },
  "containment": {
    "level": "maximum",
    "required": [
      {
        "control": "SANDBOX_CONTAINER",
        "reason": "Code execution capability"
      }
    ],
    "recommended": [
      {
        "control": "LOG_ACTIONS",
        "reason": "Audit trail for all actions"
      }
    ],
    "uncontained_risk": "Risk level depends on manual review of actual capabilities."
  },
  "risks": {
    "risks": [
      {
        "risk": "Prompt injection patterns detected in: analyzer.py, mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md",
        "severity": "high",
        "mitigation": "Review SKILL.md for hidden instructions. Do not use with untrusted input."
      },
      {
        "risk": "Unauthorized tool use: INSTRUCTED_BINARY_INSTALL",
        "severity": "high",
        "mitigation": "Avoid instructing agents to install arbitrary binaries; bundle dependencies or use sandboxed environments"
      },
      {
        "risk": "Command injection risk: MCP_SQL_BLIND",
        "severity": "high",
        "mitigation": "Remove SQL exploitation patterns."
      },
      {
        "risk": "Social engineering indicators: SOCIAL_ENG_VAGUE_DESCRIPTION, SOCIAL_ENG_ANTHROPIC_IMPERSONATION",
        "severity": "low",
        "mitigation": "Provide clear, detailed description of skill functionality"
      },
      {
        "risk": "Data exfiltration patterns: DATA_EXFIL_ENV_VARS, INSTRUCTED_SENSITIVE_SERVICE_ACCESS",
        "severity": "high",
        "mitigation": "Minimize access to environment variables"
      }
    ],
    "limitations": [
      "Static analysis only - runtime behavior not verified"
    ]
  },
  "incident_response": {
    "kill_switch": [
      "Stop the agent process"
    ],
    "containment": [
      "Review logs for unexpected actions"
    ],
    "recovery": [
      "Depends on skill capabilities"
    ]
  },
  "evidence": [
    {
      "evidence_id": "EV:file-1",
      "type": "file_excerpt",
      "title": "analyzer.py",
      "file_path": "analyzer.py"
    },
    {
      "evidence_id": "EV:file-2",
      "type": "file_excerpt",
      "title": "auth.py",
      "file_path": "auth.py"
    },
    {
      "evidence_id": "EV:file-3",
      "type": "file_excerpt",
      "title": "fetch_emails.py",
      "file_path": "fetch_emails.py"
    },
    {
      "evidence_id": "EV:file-4",
      "type": "file_excerpt",
      "title": "fetch_thread.py",
      "file_path": "fetch_thread.py"
    },
    {
      "evidence_id": "EV:file-5",
      "type": "file_excerpt",
      "title": "imap_fetch.py",
      "file_path": "imap_fetch.py"
    },
    {
      "evidence_id": "EV:file-6",
      "type": "file_excerpt",
      "title": "list_folders.py",
      "file_path": "list_folders.py"
    },
    {
      "evidence_id": "EV:file-7",
      "type": "file_excerpt",
      "title": "manage_labels.py",
      "file_path": "manage_labels.py"
    },
    {
      "evidence_id": "EV:file-8",
      "type": "file_excerpt",
      "title": "mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md",
      "file_path": "mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md"
    },
    {
      "evidence_id": "EV:file-9",
      "type": "file_excerpt",
      "title": "mnt/user-data/outputs/email-manager-v3/email-organizer/SKILL.md",
      "file_path": "mnt/user-data/outputs/email-manager-v3/email-organizer/SKILL.md"
    },
    {
      "evidence_id": "EV:file-10",
      "type": "file_excerpt",
      "title": "mnt/user-data/outputs/email-manager-v3/email-reporter/SKILL.md",
      "file_path": "mnt/user-data/outputs/email-manager-v3/email-reporter/SKILL.md"
    },
    {
      "evidence_id": "EV:cisco-1",
      "type": "file_excerpt",
      "title": "DATA_EXFIL_ENV_VARS [MEDIUM] analyzer.py:34: key=os.environ.get(\"ANTHROPIC_API_KEY\")",
      "file_path": "analyzer.py"
    },
    {
      "evidence_id": "EV:cisco-2",
      "type": "file_excerpt",
      "title": "DATA_EXFIL_ENV_VARS [MEDIUM] auth.py:20: CREDS = os.environ.get(\"GMAIL_CREDENTIALS_PATH\", \"credentials.json\")",
      "file_path": "auth.py"
    },
    {
      "evidence_id": "EV:cisco-3",
      "type": "file_excerpt",
      "title": "DATA_EXFIL_ENV_VARS [MEDIUM] imap_fetch.py:30: p.add_argument(\"--password\", default=os.environ.get(\"IMAP_PASSWORD\"))",
      "file_path": "imap_fetch.py"
    },
    {
      "evidence_id": "EV:cisco-4",
      "type": "file_excerpt",
      "title": "PROMPT_INJECTION_IGNORE_INSTRUCTIONS [HIGH] mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md:64: Patrones: \"Ignore previous instructions\", \"You are now\", \"Act as\", \"Forget your ",
      "file_path": "mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md"
    },
    {
      "evidence_id": "EV:cisco-5",
      "type": "file_excerpt",
      "title": "INSTRUCTED_BINARY_INSTALL [HIGH] mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md:96: - `gog` missing β†’ `brew install steipete/tap/gogcli`",
      "file_path": "mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md"
    },
    {
      "evidence_id": "EV:cisco-6",
      "type": "file_excerpt",
      "title": "INSTRUCTED_SENSITIVE_SERVICE_ACCESS [HIGH] mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md:3: description: Analyze Gmail via gog CLI + AI (preferred) or Python scripts (fallb",
      "file_path": "mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md"
    },
    {
      "evidence_id": "EV:cisco-7",
      "type": "file_excerpt",
      "title": "SOCIAL_ENG_VAGUE_DESCRIPTION [LOW] mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md:1: ---",
      "file_path": "mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md"
    },
    {
      "evidence_id": "EV:cisco-8",
      "type": "file_excerpt",
      "title": "SOCIAL_ENG_ANTHROPIC_IMPERSONATION [MEDIUM] mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md:12: description: \"API Key de Anthropic para anΓ‘lisis IA\"",
      "file_path": "mnt/user-data/outputs/email-manager-v3/email-analyzer/SKILL.md"
    },
    {
      "evidence_id": "EV:cisco-9",
      "type": "file_excerpt",
      "title": "INSTRUCTED_BINARY_INSTALL [HIGH] mnt/user-data/outputs/email-manager-v3/email-organizer/SKILL.md:109: - `gog` missing β†’ `brew install steipete/tap/gogcli`",
      "file_path": "mnt/user-data/outputs/email-manager-v3/email-organizer/SKILL.md"
    },
    {
      "evidence_id": "EV:cisco-10",
      "type": "file_excerpt",
      "title": "INSTRUCTED_SENSITIVE_SERVICE_ACCESS [HIGH] mnt/user-data/outputs/email-manager-v3/email-organizer/SKILL.md:3: description: Organize Gmail via gog CLI (preferred) or Python scripts (fallback)",
      "file_path": "mnt/user-data/outputs/email-manager-v3/email-organizer/SKILL.md"
    }
  ]
}