Back to skill

Security audit

Poetize Blog Automation

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with high confidence because it reports unsafe local-file uploads and other actions that can change blog or payment data without clear safeguards; some analysis was incomplete.

Treat this as a meaningful review warning before installing. Consider whether you need the skill’s blog-management features, and avoid using it where local files or payment settings could be exposed or changed until the upload, publishing, and external-evaluation behavior has been reviewed. The scan covered 16 of 18 components fully and marked other checks partial, so it cannot establish that the skill is safe.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/poetize_cli.py
Finding

Destructive operations lack executable confirmation gates

Content
View full analysis

Impact

An Agent invocation can remove live content or taxonomy without enforcing the user's required approval of the concrete action.

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/poetize_cli.py
Finding

Payload-only preview performs live uploads and payment configuration

Content
View full analysis

Impact

A debugging or review invocation can transfer assets to blog storage and configure or activate the payment plugin despite requesting payload-only output. Image uploads occur before strategy-brief validation, so even a subsequently rejected invocation can mutate storage.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (38)

Tainted flow: 'url' from os.getenv (line 352, credential/environment) → requests.post (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

Scanner excerpt · scripts/ai_dry_run_test.py (reported line 371)May include surrounding context.

python
last_error: str = ""
    for attempt in range(1, max_retries + 1):
        try:
            response = requests.post(
                url, headers=headers, json=payload, timeout=timeout, stream=stream
            )
            response.raise_for_status()

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The documented external LLM workflow exceeds the nested permissions.network allowlist, which permits only POETIZE_BASE_URL; this makes the permission contract incomplete despite disclosure elsewhere. Sending the complete skill text can disclose local modifications or path information, but the alleged OPENAI_* environment reads cannot be independently verified from this source.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

Most visible behavior matches the description and declared access patterns. However, the description declares image uploading, not deletion or rollback of existing stored resources. The code makes state-changing API calls to /api/api/resource/delete, /api/api/resource/restore, and /api/api/resource/restoreBackup. These are additional user-facing management capabilities, not merely implementation details of uploading images. No unrelated network destination or general-purpose shell execution is visible in this chunk; imported helper implementations were not supplied.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

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

md
filesystem:
    - skill folder read/write
    - user-provided markdown/config/credential files
    - ~/.config/poetize/credentials.json for persisted auth
  environment:
    - POETIZE_BASE_URL
    - POETIZE_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · agents/openai.yaml (reported line 10)May include surrounding context.

yaml
filesystem:
    - skill folder read/write
    - user-provided markdown/config files
    - ~/.config/poetize/credentials.json for persisted auth (0600)
  environment:
    - POETIZE_BASE_URL
    - POETIZE_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 61)May include surrounding context.

python
# ---------------------------------------------------------------------------

try:
    CREDENTIALS_PATH = Path.home() / ".config" / "poetize" / "credentials.json"
except Exception:
    CREDENTIALS_PATH = None

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 65)May include surrounding context.

python
except Exception:
    CREDENTIALS_PATH = None

LOCAL_CREDENTIALS_PATH = Path(__file__).resolve().parent.parent / "credentials.json"


def load_credentials() -> dict[str, str]:

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
*Optional external LLM transmission (dry-run only).** `poetize-blog eval` (and `ai_dry_run_test.py`) reads the *full* SKILL.md and sends it, with a test intent,

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

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

md
only).** `poetize-blog eval` (and `ai_dry_run_test.py`) reads the *full* SKILL.md and sends it, with a test intent, to a user-supplied OpenAI-compatible endpoint to validate AI understanding. It is a local read-only test that never publishes, requires an explicit LLM key/URL and opt-in, and no other command contacts any third party.
- **eval never leaks secrets.** The optional `eval` dry-run transmits only the SKILL.md text and a test scenario to the user-supplied LLM endpoint. It never reads `credentials.json`, API keys, or any local secret, and requires explicit opt-in plus a confirmation that names the destination host before sending. Credential handling and the external dry-run are hard-separated.
- **Network egress is scoped.** All network calls go only to (1) the user-configured `POETIZE_BASE_URL` blog API, or (2) the user-supplied LLM endpoint for the optional dry-run. No telemetry, beaconing, or other exfiltration.
- **No arbitrary execution.** The CLI is a fixed argparse prog

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

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

md
time, not by product name (WorkBuddy/Trae Work/Cursor/Qoder each span local+cloud): (1) framework injects `POETIZE_*` env (OpenClaw, Hermes, QwenPaw) → no action; (2) home dir persists (Trae/Cursor/CodeBuddy desktop, VS Code) → `auth login` global; (3) only skill folder persists (ima copilot, Doubao, cloud agents) → `auth login --local` (`{baseDir}/credentials.json`).
- Credential resolution priority: CLI args > env vars (`POETIZE_BASE_URL` / `POETIZE_API_KEY`) > global file (`~/.config/poetize/credentials.json`) > local file (`{baseDir}/credentials.json`). CWD discovery was removed; never place `credentials.json` in a working directory.
- Run `poetize-blog.sh smoke-test` before the first real write action in a new environment.
- Set `POETIZE_BASE_URL` to the public domain origin without trailing `/api`; requests resolve under `${POETIZE_BASE_URL}/api/api/...`.
- For `publish`, prefer an inline `_brief`; use `--stdin-brief` (with actual piped/heredoc JSON) or `--brief-file` when a sepa

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

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

md
rk/Cursor/Qoder each span local+cloud): (1) framework injects `POETIZE_*` env (OpenClaw, Hermes, QwenPaw) → no action; (2) home dir persists (Trae/Cursor/CodeBuddy desktop, VS Code) → `auth login` global; (3) only skill folder persists (ima copilot, Doubao, cloud agents) → `auth login --local` (`{baseDir}/credentials.json`).
- Credential resolution priority: CLI args > env vars (`POETIZE_BASE_URL` / `POETIZE_API_KEY`) > global file (`~/.config/poetize/credentials.json`) > local file (`{baseDir}/credentials.json`). CWD discovery was removed; never place `credentials.json` in a working directory.
- Run `poetize-blog.sh smoke-test` before the first real write action in a new environment.
- Set `POETIZE_BASE_URL` to the public domain origin without trailing `/api`; requests resolve under `${POETIZE_BASE_URL}/api/api/...`.
- For `publish`, prefer an inline `_brief`; use `--stdin-brief` (with actual piped/heredoc JSON) or `--brief-file` when a separate audit trail is needed. Never pass `--st

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

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

md
s `POETIZE_*` env (OpenClaw, Hermes, QwenPaw) → no action; (2) home dir persists (Trae/Cursor/CodeBuddy desktop, VS Code) → `auth login` global; (3) only skill folder persists (ima copilot, Doubao, cloud agents) → `auth login --local` (`{baseDir}/credentials.json`).
- Credential resolution priority: CLI args > env vars (`POETIZE_BASE_URL` / `POETIZE_API_KEY`) > global file (`~/.config/poetize/credentials.json`) > local file (`{baseDir}/credentials.json`). CWD discovery was removed; never place `credentials.json` in a working directory.
- Run `poetize-blog.sh smoke-test` before the first real write action in a new environment.
- Set `POETIZE_BASE_URL` to the public domain origin without trailing `/api`; requests resolve under `${POETIZE_BASE_URL}/api/api/...`.
- For `publish`, prefer an inline `_brief`; use `--stdin-brief` (with actual piped/heredoc JSON) or `--brief-file` when a separate audit trail is needed. Never pass `--stdin-brief` without stdin data, and do not create a Python wr

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

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

md
`: `--format openclaw` for OpenClaw, `--format env` for IDE agents or shell.
- Credential persistence — choose by what survives a restart in your runtime, not by product name (WorkBuddy/Trae Work/Cursor/Qoder each span local+cloud): (1) framework injects `POETIZE_*` env (OpenClaw, Hermes, QwenPaw) → no action; (2) home dir persists (Trae/Cursor/CodeBuddy desktop, VS Code) → `auth login` global; (3) only skill folder persists (ima copilot, Doubao, cloud agents) → `auth login --local` (`{baseDir}/credentials.json`).
- Credential resolution priority: CLI args > env vars (`POETIZE_BASE_URL` / `POETIZE_API_KEY`) > global file (`~/.config/poetize/credentials.json`) > local file (`{baseDir}/credentials.json`). CWD discovery was removed; never place `credentials.json` in a working directory.
- Run `poetize-blog.sh smoke-test` before the first real write action in a new environment.
- Set `POETIZE_BASE_URL` to the public domain origin without trailing `/api`; requests resolve under `${POETIZE_B

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 57)May include surrounding context.

python
# ---------------------------------------------------------------------------
# Credentials storage (~/.config/poetize/credentials.json, local fallback)
# ---------------------------------------------------------------------------

try:

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 71)May include surrounding context.

python
def load_credentials() -> dict[str, str]:
    """Load saved credentials. Returns {base_url, api_key} or empty dict.
    Checks:
    1. Global: ~/.config/poetize/credentials.json
    2. Local: {baseDir}/credentials.json

    CWD credential discovery (./credentials.json) was removed for security:

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 72)May include surrounding context.

python
"""Load saved credentials. Returns {base_url, api_key} or empty dict.
    Checks:
    1. Global: ~/.config/poetize/credentials.json
    2. Local: {baseDir}/credentials.json

    CWD credential discovery (./credentials.json) was removed for security:
    a planted file in the working directory could otherwise hijack the

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 74)May include surrounding context.

python
1. Global: ~/.config/poetize/credentials.json
    2. Local: {baseDir}/credentials.json

    CWD credential discovery (./credentials.json) was removed for security:
    a planted file in the working directory could otherwise hijack the
    resolved base_url and exfiltrate article content. Env vars and explicit
    CLI args are the trusted sources; files are a convenience fallback only.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 131)May include surrounding context.

python
Env vars are explicit per-session intent and take precedence over
    persisted credential files, which are a convenience fallback. This avoids
    a stale or planted credentials.json shadowing the user's environment.
    Called once in main() after argparse, before dispatching to cmd_*.
    """
    if not getattr(args, "base_url", None):

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 292)May include surrounding context.

python
def add_global_args(parser: argparse.ArgumentParser) -> None:
    parser.add_argument("--base-url", default=None, help="Poetize base URL. Falls back to POETIZE_BASE_URL env or ~/.config/poetize/credentials.json.")
    parser.add_argument("--api-key", default=None, help="Poetize API key. Falls back to POETIZE_API_KEY env or ~/.config/poetize/credentials.json.")
    parser.add_argument("--wait", action="store_true", help="Poll async task until completion. No-op for synchronous commands.")
    parser.add_argument("--poll-interval", type=_positive_float, default=2.0, help="Seconds between poll requests (default: 2.0).")

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 293)May include surrounding context.

python
def add_global_args(parser: argparse.ArgumentParser) -> None:
    parser.add_argument("--base-url", default=None, help="Poetize base URL. Falls back to POETIZE_BASE_URL env or ~/.config/poetize/credentials.json.")
    parser.add_argument("--api-key", default=None, help="Poetize API key. Falls back to POETIZE_API_KEY env or ~/.config/poetize/credentials.json.")
    parser.add_argument("--wait", action="store_true", help="Poll async task until completion. No-op for synchronous commands.")
    parser.add_argument("--poll-interval", type=_positive_float, default=2.0, help="Seconds between poll requests (default: 2.0).")
    parser.add_argument("--timeout", type=_positive_float, default=900.0, help="Maximum wait time in seconds (default: 900.0).")

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 1920)May include surrounding context.

python
parser.add_argument("--output", required=True, help="Path to write the generated config file.")
    parser.add_argument("--format", choices=["openclaw", "env"], default="openclaw", help="Output format: openclaw (JSON, default) or env (shell-sourceable KEY=VALUE).")
    parser.add_argument("--existing-config", help="Optional existing OpenClaw JSON config to merge into (openclaw format only).")
    parser.add_argument("--api-key", default=None, help="Poetize API key. Falls back to env or ~/.config/poetize/credentials.json.")
    parser.add_argument("--base-url", default=None, help="Poetize base URL. Falls back to env or ~/.config/poetize/credentials.json.")
    parser.add_argument("--allow-placeholder-api-key", action="store_true", help="Allow placeholder apiKey.")
    parser.add_argument("--disable-watch", action="store_true", help="Do not set watch config (openclaw format only).")

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 1921)May include surrounding context.

python
parser.add_argument("--format", choices=["openclaw", "env"], default="openclaw", help="Output format: openclaw (JSON, default) or env (shell-sourceable KEY=VALUE).")
    parser.add_argument("--existing-config", help="Optional existing OpenClaw JSON config to merge into (openclaw format only).")
    parser.add_argument("--api-key", default=None, help="Poetize API key. Falls back to env or ~/.config/poetize/credentials.json.")
    parser.add_argument("--base-url", default=None, help="Poetize base URL. Falls back to env or ~/.config/poetize/credentials.json.")
    parser.add_argument("--allow-placeholder-api-key", action="store_true", help="Allow placeholder apiKey.")
    parser.add_argument("--disable-watch", action="store_true", help="Do not set watch config (openclaw format only).")

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 1990)May include surrounding context.

python
# ---------------------------------------------------------------------------

def add_smoke_test_args(parser: argparse.ArgumentParser) -> None:
    parser.add_argument("--base-url", default=None, help="Poetize base URL. Falls back to env or ~/.config/poetize/credentials.json.")
    parser.add_argument("--api-key", default=None, help="Poetize API key. Falls back to env or ~/.config/poetize/credentials.json.")
    parser.add_argument("--size", type=int, default=1, help="Number of articles to request (default: 1).")
    parser.add_argument("--search-key", help="Optional search filter for list-articles.")

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 1991)May include surrounding context.

python
def add_smoke_test_args(parser: argparse.ArgumentParser) -> None:
    parser.add_argument("--base-url", default=None, help="Poetize base URL. Falls back to env or ~/.config/poetize/credentials.json.")
    parser.add_argument("--api-key", default=None, help="Poetize API key. Falls back to env or ~/.config/poetize/credentials.json.")
    parser.add_argument("--size", type=int, default=1, help="Number of articles to request (default: 1).")
    parser.add_argument("--search-key", help="Optional search filter for list-articles.")

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/poetize_cli.py (reported line 2103)May include surrounding context.

python
"base_url": cli_url,
                "api_key": "***" if cli_key else None,
            },
            "resolution_order": "CLI > env > ~/.config/poetize/credentials.json > {baseDir}/credentials.json",
        }
        print(json.dumps(result, ensure_ascii=False, indent=2))
    elif args.auth_command == "clear":