Back to skill

Security audit

agent

Security checks for vulnerabilities and agentic risk

Overview

The skill is only a Markdown persona/agent-style guide, but it asks for broad file and command tools that do not fit that purpose.

Install only if you are comfortable giving this skill broad agent tools despite its narrow persona/style purpose. Prefer a version that removes exec and write access, scopes file reads to explicit paths, and clearly explains any external API calls before use.

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:21
Finding

Excessive Tool Permissions for an Identity and Style Configuration Skill

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:21-26
Related Capability Claims: SKILL.md:220-222
Vulnerability Type: Excessive filesystem and command-execution permissions
Risk Level: Medium

Vulnerable Code:

yaml
tools:
  - read
  - exec
  - write
  - glob
  - grep

Technical Analysis

The skill is presented as a mechanism for defining an agent's identity, personality, voice, and boundaries. This purpose does not inherently require arbitrary system-command execution, filesystem modification, recursive file discovery, or broad file-reading access.

Nevertheless, the skill requests exec, write, glob, grep, and read. The document also explicitly claims support for file processing, external API integration, and command execution at SKILL.md:220-222. No command allowlist, filesystem path restriction, network destination allowlist, user-confirmation boundary, or implementation-level input validation is provided.

Tool declarations do not independently prove that commands will be executed because enforcement depends on the hosting agent platform. However, if the platform grants these tools based on the manifest, the requested capabilities exceed the least privileges needed for the advertised identity and response-style task.

Attack Path

  1. A user or attacker supplies crafted content to the skill as an identity, personality, or style request.
  2. The content includes instructions that induce the agent to inspect files, discover paths, run commands, or modify local content.
  3. The skill operates with the declared read, glob, grep, exec, and write tools.
  4. If the host does not independently constrain tool use, the agent may access or modify resources unrelated to persona generation.
  5. The resulting command output or file contents could be incorporated into responses, while writable files could be altered within the host process's permission boundary.

Thi ...[truncated 896 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove exec, write, and glob unless a concrete, documented feature requires them.
  2. Retain only narrowly scoped tools required to generate identity and style configuration, ideally without any filesystem or command access.
  3. If file access is necessary, restrict it to explicit project-relative paths and reject absolute paths, traversal sequences, symbolic-link escapes, and sensitive directories.
  4. If command execution is unavoidable, replace generic exec access with a strict command and argument allowlist. Run commands in an isolated sandbox with no secrets, minimal filesystem access, disabled network access, resource limits, and a nonprivileged account.
  5. Require explicit user confirmation before reading sensitive files, writing files, executing commands, or making network requests.
  6. Apply network destination allowlists and prevent access to loopback, private networks, cloud metadata endpoints, and unapproved external services.
  7. Define concrete input-validation rules rather than relying only on general documentation statements about filtering and escaping.
  8. Add audit logging for tool requests, approved operations, affected paths, command arguments, and failures.
  9. Ensure the host treats user-provided identity and style content as untrusted data rather than executable tool instructions.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (7)

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

Command execution is not justified for defining agent identity, tone, or boundaries, yet the skill claims that capability. In the context of an AI skill, unnecessary exec access materially expands the attack surface and could enable system-impacting actions if the skill is invoked with untrusted input or misused by an orchestrator.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The invocation guidance says to use this skill broadly for AI model calling, intelligent dialogue, agent orchestration, and LLM applications, which is much wider than persona definition. Overly broad scoping encourages use in contexts with more power or autonomy than intended, making the unjustified tool capabilities more likely to be exercised.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The FAQ says the skill currently mainly supports Chinese, which imposes a language preference in natural-language behavior. The document does not provide a user opt-in, fallback language choice, or a justified region-specific constraint, making this a language policy concern.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The manifest presents this as a persona-definition skill, but the body advertises unrelated capabilities including file processing, API calls, and command execution. That scope mismatch can mislead users and orchestrators into granting powerful tools to a skill whose stated purpose does not require them, increasing the chance of unsafe execution or privilege abuse.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The documentation describes file writing, API use, and command execution but does not present a prominent user-facing warning that these actions can affect the local system or send data externally. In an agent environment, lack of explicit warnings and consent language can cause users to invoke risky behavior without understanding the consequences.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

Read/write file handling is broader than needed for persona configuration and is not clearly justified by the skill's stated purpose. Unnecessary file access can expose sensitive local data or enable unwanted modification of workspace files, especially when a user expects only conversational configuration behavior.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill claims external API integration even though its declared function is persona/style definition. Unnecessary network capability can lead to data exfiltration, unintended transmission of prompts or user content, and a larger trust boundary than users would reasonably expect from this skill.

Content

No source excerpt is available for this finding.