Back to skill

Security audit

Claude SEO for WorkBuddy

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this SEO skill suspicious with medium confidence, citing several undeclared capabilities and security concerns alongside incomplete scanner coverage.

Consider avoiding installation until the undeclared image-generation and configuration changes are reviewed and the incomplete coverage is resolved. If you proceed, review the installation instructions and hook behavior first, and be aware that workflows may send your inputs to external services.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
Findings (442)

Tainted flow: 'req' from os.environ.get (line 83, credential/environment) → urllib.request.urlopen (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 · extensions/banana/scripts/edit.py (reported line 91)May include surrounding context.

python
)

    try:
        with urllib.request.urlopen(req, timeout=120) as resp:
            result = json.loads(resp.read().decode("utf-8"))
    except urllib.error.HTTPError as e:
        error_body = _redact_google_api_key(

Tainted flow: 'req' from os.environ.get (line 76, credential/environment) → urllib.request.urlopen (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 · extensions/banana/scripts/generate.py (reported line 84)May include surrounding context.

python
)

    try:
        with urllib.request.urlopen(req, timeout=120) as resp:
            result = json.loads(resp.read().decode("utf-8"))
    except urllib.error.HTTPError as e:
        error_body = _redact_google_api_key(

Tainted flow: 'headers' from os.environ.get (line 279, 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/dataforseo_merchant.py (reported line 120)May include surrounding context.

python
url = f"{API_BASE}{ENDPOINTS[endpoint_key]}"
    print(f"Posting task to {endpoint_key}...", file=sys.stderr)

    resp = requests.post(url, json=payload, headers=headers, timeout=30, verify=True)
    resp.raise_for_status()
    data = resp.json()

Tainted flow: 'url' from os.environ.get (line 140, credential/environment) → requests.get (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/dataforseo_merchant.py (reported line 151)May include surrounding context.

python
)
        time.sleep(delay)

        resp = requests.get(url, headers=headers, timeout=30, verify=True)
        resp.raise_for_status()
        data = resp.json()

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied code's primary purpose is image generation, not SEO auditing or analysis. It exposes image-specific settings such as aspect ratio, resolution, and output modalities, then writes decoded image data to disk. Although the declared toolkit mentions image analysis and Gemini search visibility, neither describes generating images through Gemini. These network, credential, and filesystem operations support an undeclared image-generation capability rather than the stated SEO functionality. This assessment applies to the supplied chunk, not any unseen toolkit components.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied code's primary purpose is general-purpose image editing, which is not disclosed by the SEO toolkit description. Although the description mentions images and Gemini, those references concern SEO assessment and AI search visibility, not sending local images to Gemini for modification. The script performs no SEO auditing or optimization analysis. Its external image-processing request and generated-image output are therefore materially different capabilities, not merely supporting implementation details.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied code has a materially different primary purpose from SEO auditing: it manages an image-generation spending ledger. It reads pricing.json and reads or writes costs.json and costs.lock in a Banana-specific directory. These operations are not presented as supporting any SEO workflow, and the declared description does not disclose image-generation budget management. The code performs no SEO analysis or network requests; the Google pricing URL is only printed as guidance.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied code has a materially different primary purpose from the declaration. It manages visual-style configuration files and implements no SEO analysis or auditing. Although an SEO toolkit could include supporting image tools, this standalone brand/style preset manager has no demonstrated connection to SEO workflows. Deletion requires --confirm, and preset names are sanitized; these safeguards do not resolve the purpose mismatch. This assessment applies only to the supplied code chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied script's primary purpose is preparing image-generation requests, not auditing or optimizing SEO. Although the description includes image SEO analysis, this code does not inspect images or evaluate their SEO properties. It instead processes creative prompts and generation settings, a materially different capability not declared in the description. Its observed effects are limited to reading the specified local CSV and printing validation results and a plan.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied script's primary purpose is setup validation for @ycse/nanobanana-mcp, ending with a readiness message for image generation. These configuration checks and filesystem changes are not described by, or demonstrably supporting, the declared SEO toolkit. The script checks whether an API key is present but does not print its value, transmit it, invoke npx, or generate images.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The reported plaintext persistence of a Google AI API key in user-level MCP configuration creates a credential-exposure risk through configuration reads, backups, or accidental sharing. Persistently registering executable third-party integration code also affects future sessions beyond a single SEO task; the underlying implementation was not supplied, so this assessment relies on the static finding's description rather than direct code verification.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The description includes image auditing as an SEO capability but does not disclose generative image creation or integration with an external image-generation service. This chunk's primary purpose is installing that separate capability, not performing SEO analysis. File copying and runtime configuration can be legitimate supporting implementation details, but here they support an undeclared image-generation extension. The code stores the supplied API key locally with restrictive permissions; it does not itself demonstrate credential exfiltration or execute an image-generation request.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied code is an extension uninstaller, not an SEO auditing tool. Although the description mentions images and bundled tooling, it does not disclose image-generation extension removal or modification of global Claude MCP configuration. These are materially different capabilities, not merely implementation details of an SEO audit. The deletions and conditional configuration change occur without an interactive confirmation.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied script's primary purpose is repository maintenance and integrity checking, which is materially different from the declared website SEO functionality. It reads local repository files and invokes git ls-files; it does not examine websites, SEO metrics, structured data, or analytics services. Although it could support development of the SEO toolkit, it is a standalone maintenance utility rather than an implementation detail of a declared SEO audit operation. No network access, file modification, or data exfiltration is evident.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied script primarily modifies prose and strips Unicode artifacts rather than auditing or assessing SEO. Although editorial cleanup can support an SEO workflow, AI-pattern rewriting and text-watermark cleanup are distinct capabilities not disclosed by the declared description. No network access, exfiltration, or unrelated system access is evident. This assessment concerns the supplied script, not whether other components implement the advertised SEO features.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The code is SEO-related, but its primary capability goes beyond the declared auditing and analysis purpose: it sends authenticated notifications to Google through urlNotifications().publish(). The description does not disclose Indexing API submissions or URL-removal notifications. These operations are substantive external actions, not merely implementation details of an audit. The status-query functionality fits the declared indexability focus. URL_DELETED reports a removal; it does not itself delete website content or guarantee deindexing. The supplied code shows no unrelated exfiltration or malicious behavior.

Content

No source excerpt is available for this finding.

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 65)May include surrounding context.

md
| Local SEO, Google Business Profile | `skills/seo-local/SKILL.md` |

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · agents/seo-sxo.md (reported line 78)May include surrounding context.

md
- Local intent in SERP? Recommend `/seo local` for GBP analysis
- Thin content? Recommend `/seo page` for page-level audit

## Output Rules

- SXO score is SEPARATE from SEO Health Score -- always label it "SXO Gap Score"
- Lead with mismatch finding if one exists (this is the key insight)

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · docs/ARCHITECTURE.md (reported line 214)May include surrounding context.

md
1. Create `skills/seo-newskill/SKILL.md`
2. Add YAML frontmatter with name and description
3. Write skill instructions
4. Update main `skills/seo/SKILL.md` to route to new skill

### Adding a New Subagent

Agent Config Directory Access

High
Category
Agent Snooping
Confidence
90% confidence
Finding

Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.

Content

Scanner excerpt · docs/INSTALLATION.md (reported line 131)May include surrounding context.

bash claude-seo/uninstall.sh

text

`uninstall.sh` removes all installed sub-skills, sub-agents, and the plugin's MCP entries from `~/.claude/settings.json`. Do not maintain a hand-coded `rm` list. The shipped uninstaller is the canonical source.

## Upgrading

Agent Config Directory Access

High
Category
Agent Snooping
Confidence
90% confidence
Finding

Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.

Content

Scanner excerpt · extensions/ahrefs/install.ps1 (reported line 17)May include surrounding context.

text
$SkillDir = Join-Path $HOME ".claude/skills"
# MCP servers live in ~/.claude.json (the file `claude mcp add` writes).
# NOT ~/.claude/settings.json - `mcpServers` is not a key Claude Code reads
# there, so entries written to settings.json silently never load.
$McpConfigJson = Join-Path $HOME ".claude.json"

Chaining Abuse

High
Category
Tool Misuse
Confidence
97% confidence
Finding

The pipe connects remote content directly to a command interpreter, creating the same execution risk identified by the external-script finding on this line. This is not evidence of malicious intent, but it removes the opportunity to verify the uninstall code before it runs.

Content

Scanner excerpt · docs/INSTALLATION.md (reported line 141)May include surrounding context.

bash
# Uninstall current version
curl -fsSL https://raw.githubusercontent.com/AgriciDaniel/claude-seo/main/uninstall.sh | bash

# Install new version
curl -fsSL https://raw.githubusercontent.com/AgriciDaniel/claude-seo/main/install.sh | bash

Chaining Abuse

High
Category
Tool Misuse
Confidence
97% confidence
Finding

The shell pipeline turns remotely supplied installation content into executable commands without a verification step. This duplicates the external-script risk on this line and could expose all resources accessible to the invoking user if upstream content is compromised.

Content

Scanner excerpt · docs/INSTALLATION.md (reported line 144)May include surrounding context.

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 · docs/MCP-INTEGRATION.md (reported line 38)May include surrounding context.

md
"command": "npx",
      "args": ["-y", "mcp-server-gsc"],
      "env": {
        "GOOGLE_CREDENTIALS_PATH": "/path/to/credentials.json"
      }
    }
  }

Chaining Abuse

High
Category
Tool Misuse
Confidence
99% confidence
Finding

Piping the network response directly into bash crosses the boundary between remotely supplied data and executable commands without an inspection or verification gate. This is the same supply-chain execution weakness identified by SC2, not evidence of a separate malicious chaining campaign.

Content

Scanner excerpt · docs/MIGRATION-v1-to-v2.md (reported line 168)May include surrounding context.

bash
# Pull v2.0.0
curl -fsSL https://raw.githubusercontent.com/AgriciDaniel/claude-seo/main/install.sh | bash

# Verify the new requirements pin landed
pip install -r requirements.txt