Back to skill

Security audit

blog-seo-writer

Security checks for vulnerabilities and agentic risk

Overview

This skill is an SEO-writing prompt package, but it asks for broad file and command authority without a clear need or safe scope.

Review this skill carefully before installing. It does not show malware or persistence, but its requested file and shell authority is much broader than needed for SEO writing. Use it only in a sandboxed agent session with no sensitive files or credentials, and do not grant command execution or broad file write access unless the publisher narrows and documents those permissions.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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 (1)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:25
Finding

Excessive Tool Permissions for an SEO Content-Generation Skill

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 25–28
Vulnerability Type: Excessive file-system and command-execution permissions
Risk Level: Medium

Vulnerable Code

yaml
tools:
- read
- exec
- write

Technical Analysis

The skill requests file-read, file-write, and system-command execution capabilities even though its declared purpose is SEO article generation, keyword analysis, metadata generation, and content optimization. These content-generation operations can ordinarily be performed using user-supplied text and an LLM without granting operating-system command execution or unrestricted file-system access.

The permission declaration contains no path restrictions, command allowlist, external-service allowlist, argument validation requirements, or approval controls. The document also identifies the skill as executable and claims generic command, file-processing, and API capabilities, but provides no implementation demonstrating that these privileges are necessary or safely constrained.

This violates the principle of least privilege. No direct malicious command or active exploitation logic was found, so the issue is classified as Medium rather than High or Critical.

Attack Path

  1. An Agent loads the skill and grants the declared read, write, and exec tools.
  2. The user supplies untrusted content, or externally sourced content is included in an SEO-processing request.
  3. The content contains instructions crafted to influence the Agent into invoking one of the broadly available tools.
  4. Because the skill defines no path, command, or argument restrictions, the Agent may read files unrelated to the SEO task, modify accessible files, or execute an unintended system command.
  5. Information obtained through file access or command output may then be exposed in the Agent response or passed to an external service if API functionality is enabled.

This path depends on the hostin ...[truncated 892 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove exec, read, and write from the tool declaration when the skill operates only on content supplied in the conversation.
  2. If file access is required, replace broad access with a dedicated content-import tool restricted to explicitly selected files and an isolated workspace directory.
  3. Permit writes only to a designated output directory, reject absolute paths and traversal sequences, and prevent overwriting existing files without explicit user approval.
  4. Avoid system-command execution. If it is indispensable, expose narrowly scoped operations through a fixed command allowlist rather than a general-purpose shell.
  5. Validate all command arguments as structured data, prohibit shell metacharacters, and invoke executables without shell interpretation.
  6. Require explicit user confirmation before file modifications, external transmissions, or command execution.
  7. Restrict external requests to documented HTTPS domains and disclose what content is transmitted.
  8. Run the skill in a sandbox with minimal operating-system permissions, no access to unrelated credentials, limited network access, and resource limits.
  9. Update the documentation to explain why each retained tool is required and define enforceable security boundaries for paths, commands, endpoints, and data handling.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill is presented as an SEO blog writer, but its documentation also claims broad file handling, API integration, command execution, and information retrieval capabilities that are unrelated to that narrow purpose. This mismatch increases the chance that an agent or user will authorize dangerous operations under misleading expectations, expanding the attack surface for data access, command abuse, or unintended side effects.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

Advertising command execution for a blog SEO writing skill is dangerous because shell access is a high-risk privilege with no clear functional justification in the stated use case. In an agent environment, this can enable arbitrary local actions, data exfiltration, or execution of harmful commands if the model over-trusts the skill description.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The description says "支持中文交互" and presents the skill as using Chinese interaction, but does not indicate that language is optional or user-selectable. This can violate language/locale policy when a skill imposes a specific language without explicit opt-in.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The documented request/response format describes a generic scoring or audit workflow rather than SEO article generation, indicating the skill may be repurposed, mislabeled, or assembled from unrelated templates. Such inconsistencies are risky because they prevent users and agents from understanding what the skill will actually do, undermining informed consent and making privilege misuse harder to detect.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The usage examples show generic content scoring with strictness levels, which directly conflicts with the skill's claimed purpose of SEO blog writing. This discrepancy suggests poor provenance or template reuse and can conceal actual behavior from users, especially when combined with privileged tools like exec, read, and write.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill advertises file writing, API access, and command execution without a prominent warning about their operational and security impact. In agent settings, lack of clear disclosure can cause users to invoke the skill without realizing it may modify files, contact external services, or execute commands, increasing the risk of unintended side effects and data exposure.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill advertises broad file read/parse/write functionality even though generating SEO blog content does not inherently require unrestricted filesystem access. This can mislead the agent into granting unnecessary file privileges, creating opportunities to overwrite files, read sensitive content, or persist unintended data.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.