🛡️ SafeAgentSkills

WeChat Article Writer

· v2.4.1

High Risk

End-to-end 微信公众号 (WeChat Official Account) article writing and publishing pipeline. 9-step multi-agent workflow: topic research → Chinese-first writing → blind quality review → fact-check → formatting → human preview → scrapbook illustrations → draft box publish. Use when user asks to write, draft, or publish a WeChat article, or says "forge write/draft/publish/topic/voice/status".

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

⚠️ Hazard Flags

EXEC CODE_EXEC FS_READ_WORKSPACE FS_WRITE_WORKSPACE FS_WRITE_USER FS_DELETE NET_EGRESS_ANY CREDS_ENV PI_WEB

📋 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

Base64 decode + execute pattern in: SKILL.md critical

Mitigation: Decode and review obfuscated content before use.

Code obfuscation detected in: scripts/renderer/md/extensions/plantuml.ts medium

Mitigation: Deobfuscate and review code before use.

Unauthorized tool use: MCP_SYS_CRITICAL_ACCESS high

Mitigation: Avoid accessing system directories unless absolutely necessary.

Command injection risk: COMMAND_INJECTION_USER_INPUT, MCP_SQL_BLIND, COMMAND_INJECTION_EVAL critical

Mitigation: Validate and sanitize all user inputs before using in commands

Social engineering indicators: SOCIAL_ENG_VAGUE_DESCRIPTION low

Mitigation: Provide clear, detailed description of skill functionality

Data exfiltration patterns: DATA_EXFIL_NETWORK_REQUESTS, DATA_EXFIL_HTTP_POST critical

Mitigation: Ensure network access is necessary and documented

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:wechat-article-writer:2.4.1",
    "ssds_version": "0.2.0",
    "scanner_version": "0.4.0+fe6fd9123d50",
    "created_at": "2026-03-05T15:41:30.094Z",
    "created_by": {
      "agent": "safeagentskills-cli/generate-ssds"
    },
    "language": "en",
    "notes": "Auto-generated SSDS. Manual review recommended."
  },
  "skill": {
    "name": "WeChat Article Writer",
    "version": "2.4.1",
    "format": "agent_skill",
    "description": "End-to-end 微信公众号 (WeChat Official Account) article writing and publishing pipeline. 9-step multi-agent workflow: topic research → Chinese-first writing → blind quality review → fact-check → formatting → human preview → scrapbook illustrations → draft box publish. Use when user asks to write, draft, or publish a WeChat article, or says \"forge write/draft/publish/topic/voice/status\".",
    "publisher": "unknown",
    "source": {
      "channel": "local"
    },
    "artifact": {
      "sha256": "22f245fc34e36fa3f8af49b331830ee703cf97bc8b2e394cba4d4bcc2b0d9691",
      "hash_method": "files_sorted"
    }
  },
  "capabilities": {
    "execution": {
      "can_exec_shell": true,
      "can_exec_code": true,
      "privilege_level": "user",
      "can_install_deps": true,
      "can_persist": false
    },
    "filesystem": {
      "reads_workspace": true,
      "reads_user_home": false,
      "reads_system": false,
      "writes_workspace": true,
      "writes_user_home": true,
      "writes_system": false,
      "can_delete": true
    },
    "network": {
      "egress": "any",
      "ingress": false
    },
    "credentials": {
      "reads_env_vars": true,
      "reads_credential_files": false,
      "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"
    ],
    "content_types": [
      "general"
    ]
  },
  "hazards": {
    "hdac": {
      "H": 4,
      "D": 4,
      "A": 1,
      "C": 1
    },
    "flags": [
      "EXEC",
      "CODE_EXEC",
      "FS_READ_WORKSPACE",
      "FS_WRITE_WORKSPACE",
      "FS_WRITE_USER",
      "FS_DELETE",
      "NET_EGRESS_ANY",
      "CREDS_ENV",
      "PI_WEB"
    ],
    "custom_flags": [
      {
        "code": "BASE64_EXEC",
        "name": "Base64 Execute",
        "description": "Decodes and executes obfuscated code in: SKILL.md"
      },
      {
        "code": "OBFUSCATED_CODE",
        "name": "Obfuscated Code",
        "description": "Contains obfuscated code patterns in: scripts/renderer/md/extensions/plantuml.ts"
      },
      {
        "code": "FILE_DELETE",
        "name": "File Deletion",
        "description": "Can delete files in: scripts/renderer/main.ts"
      },
      {
        "code": "TOOL_ABUSE",
        "name": "Unauthorized Tool Use",
        "description": "MCP_SYS_CRITICAL_ACCESS: Access to critical system directories"
      },
      {
        "code": "SOCIAL_ENGINEERING",
        "name": "Social Engineering Risk",
        "description": "SOCIAL_ENG_VAGUE_DESCRIPTION: Skill description is too vague or missing"
      },
      {
        "code": "COMMAND_INJECTION",
        "name": "Command Injection Risk",
        "description": "COMMAND_INJECTION_USER_INPUT, MCP_SQL_BLIND, COMMAND_INJECTION_EVAL: User input used in command substitution - potential injection risk"
      },
      {
        "code": "DATA_EXFILTRATION",
        "name": "Data Exfiltration Risk",
        "description": "DATA_EXFIL_NETWORK_REQUESTS, DATA_EXFIL_HTTP_POST: HTTP client library imports that enable external communication"
      }
    ],
    "confidence": {
      "level": "medium",
      "basis": [
        "static_analysis"
      ],
      "notes": "Detected 7 security patterns (17 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": "Base64 decode + execute pattern in: SKILL.md",
        "severity": "critical",
        "mitigation": "Decode and review obfuscated content before use."
      },
      {
        "risk": "Code obfuscation detected in: scripts/renderer/md/extensions/plantuml.ts",
        "severity": "medium",
        "mitigation": "Deobfuscate and review code before use."
      },
      {
        "risk": "Unauthorized tool use: MCP_SYS_CRITICAL_ACCESS",
        "severity": "high",
        "mitigation": "Avoid accessing system directories unless absolutely necessary."
      },
      {
        "risk": "Command injection risk: COMMAND_INJECTION_USER_INPUT, MCP_SQL_BLIND, COMMAND_INJECTION_EVAL",
        "severity": "critical",
        "mitigation": "Validate and sanitize all user inputs before using in commands"
      },
      {
        "risk": "Social engineering indicators: SOCIAL_ENG_VAGUE_DESCRIPTION",
        "severity": "low",
        "mitigation": "Provide clear, detailed description of skill functionality"
      },
      {
        "risk": "Data exfiltration patterns: DATA_EXFIL_NETWORK_REQUESTS, DATA_EXFIL_HTTP_POST",
        "severity": "critical",
        "mitigation": "Ensure network access is necessary and documented"
      }
    ],
    "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": "README.md",
      "file_path": "README.md"
    },
    {
      "evidence_id": "EV:file-2",
      "type": "file_excerpt",
      "title": "scripts/format.sh",
      "file_path": "scripts/format.sh"
    },
    {
      "evidence_id": "EV:file-3",
      "type": "file_excerpt",
      "title": "scripts/publish_via_api.py",
      "file_path": "scripts/publish_via_api.py"
    },
    {
      "evidence_id": "EV:file-4",
      "type": "file_excerpt",
      "title": "scripts/renderer/main.ts",
      "file_path": "scripts/renderer/main.ts"
    },
    {
      "evidence_id": "EV:file-5",
      "type": "file_excerpt",
      "title": "scripts/renderer/md/cli.ts",
      "file_path": "scripts/renderer/md/cli.ts"
    },
    {
      "evidence_id": "EV:file-6",
      "type": "file_excerpt",
      "title": "scripts/renderer/md/constants.ts",
      "file_path": "scripts/renderer/md/constants.ts"
    },
    {
      "evidence_id": "EV:file-7",
      "type": "file_excerpt",
      "title": "scripts/renderer/md/extend-config.ts",
      "file_path": "scripts/renderer/md/extend-config.ts"
    },
    {
      "evidence_id": "EV:file-8",
      "type": "file_excerpt",
      "title": "scripts/renderer/md/extensions/alert.ts",
      "file_path": "scripts/renderer/md/extensions/alert.ts"
    },
    {
      "evidence_id": "EV:file-9",
      "type": "file_excerpt",
      "title": "scripts/renderer/md/extensions/footnotes.ts",
      "file_path": "scripts/renderer/md/extensions/footnotes.ts"
    },
    {
      "evidence_id": "EV:file-10",
      "type": "file_excerpt",
      "title": "scripts/renderer/md/extensions/index.ts",
      "file_path": "scripts/renderer/md/extensions/index.ts"
    },
    {
      "evidence_id": "EV:cisco-1",
      "type": "file_excerpt",
      "title": "COMMAND_INJECTION_USER_INPUT [MEDIUM] scripts/format.sh:19: BAOYU=\"$(cd \"$(dirname \"$0\")\" && pwd)/renderer/main.ts\"",
      "file_path": "scripts/format.sh"
    },
    {
      "evidence_id": "EV:cisco-2",
      "type": "file_excerpt",
      "title": "MCP_SYS_CRITICAL_ACCESS [HIGH] scripts/format.sh:1: #!/usr/bin/env bash",
      "file_path": "scripts/format.sh"
    },
    {
      "evidence_id": "EV:cisco-3",
      "type": "file_excerpt",
      "title": "DATA_EXFIL_NETWORK_REQUESTS [MEDIUM] scripts/publish_via_api.py:28: import requests",
      "file_path": "scripts/publish_via_api.py"
    },
    {
      "evidence_id": "EV:cisco-4",
      "type": "file_excerpt",
      "title": "DATA_EXFIL_HTTP_POST [CRITICAL] scripts/publish_via_api.py:68: resp = requests.post(",
      "file_path": "scripts/publish_via_api.py"
    },
    {
      "evidence_id": "EV:cisco-5",
      "type": "file_excerpt",
      "title": "MCP_SQL_BLIND [HIGH] scripts/publish_via_api.py:78: time.sleep(delay)",
      "file_path": "scripts/publish_via_api.py"
    },
    {
      "evidence_id": "EV:cisco-6",
      "type": "file_excerpt",
      "title": "COMMAND_INJECTION_EVAL [CRITICAL] scripts/renderer/md/extensions/alert.ts:116: const match = /^:::\\s*(\\w+)\\s*\\n([\\s\\S]*?)\\n:::/.exec(src)",
      "file_path": "scripts/renderer/md/extensions/alert.ts"
    },
    {
      "evidence_id": "EV:cisco-7",
      "type": "file_excerpt",
      "title": "COMMAND_INJECTION_EVAL [CRITICAL] scripts/renderer/md/extensions/infographic.ts:94: const match = /^```infographic\\r?\\n([\\s\\S]*?)\\r?\\n```/.exec(src)",
      "file_path": "scripts/renderer/md/extensions/infographic.ts"
    },
    {
      "evidence_id": "EV:cisco-8",
      "type": "file_excerpt",
      "title": "COMMAND_INJECTION_EVAL [CRITICAL] scripts/renderer/md/extensions/markup.ts:21: const match = rule.exec(src)",
      "file_path": "scripts/renderer/md/extensions/markup.ts"
    },
    {
      "evidence_id": "EV:cisco-9",
      "type": "file_excerpt",
      "title": "COMMAND_INJECTION_EVAL [CRITICAL] scripts/renderer/md/extensions/plantuml.ts:266: const match = /^```plantuml\\r?\\n([\\s\\S]*?)\\r?\\n```/.exec(src)",
      "file_path": "scripts/renderer/md/extensions/plantuml.ts"
    },
    {
      "evidence_id": "EV:cisco-10",
      "type": "file_excerpt",
      "title": "COMMAND_INJECTION_USER_INPUT [MEDIUM] scripts/renderer/md/extensions/plantuml.ts:176: .map(([key, value]) => `${key.replace(/([A-Z])/g, `-$1`).toLowerCase()}: ${value",
      "file_path": "scripts/renderer/md/extensions/plantuml.ts"
    }
  ]
}