Back to skill

Security audit

LLM助手中枢

Security checks for vulnerabilities and agentic risk

Overview

The skill appears to be a document-analysis prompt skill, but it asks for command and file-write authority that its own instructions say are not needed.

Review this skill before installing in an agent that grants tools from the manifest. It is best treated as a prompt-only document-analysis workflow unless the publisher narrows or removes exec/write permissions and clarifies whether any API keys, network calls, or command execution are actually required.

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

Excessive Tool Permissions Violate Least Privilege

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 22–27
Vulnerability Type: Excessive execution and file-write permissions
Risk Level: Medium

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

Technical Analysis

The skill declares access to the exec and write tools even though its documented purpose is to analyze, segment, compare, and summarize documents. The same file describes the skill as pure Markdown whose core functionality requires only LLM capability and no command-line execution.

Shell execution and arbitrary file modification are therefore unnecessary for the stated task and violate the principle of least privilege. Because analyzed documents are untrusted input, adversarial text could attempt to influence the agent into invoking these unnecessarily available tools. The actual exploitability depends on the host agent's tool authorization, sandboxing, path restrictions, and confirmation controls.

No executable implementation, malicious command, or instruction explicitly directing such misuse was found. This finding concerns the dangerous permission boundary created by the declared tool set.

Attack Path

  1. An attacker supplies a commercial, legal, or other document containing adversarial instructions disguised as document content.
  2. The skill loads and analyzes that untrusted content.
  3. The content attempts to induce the agent to treat embedded instructions as operational directions.
  4. The agent invokes the unnecessarily declared exec or write tool.
  5. If the hosting platform lacks effective confirmation, sandboxing, and path restrictions, commands may execute or files may be created or modified with the agent process's permissions.

Impact Assessment

Successful exploitation could permit command execution and filesystem modification within the privileges and accessible scope of the hosting agent. Potential consequences include alteration of project files, destruction or corruption of data, access t ...[truncated 397 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove exec and write from the declared tool list because they are not required for the documented analysis workflow.
  2. Retain only the minimum capabilities needed, preferably constrained read access to files explicitly selected by the user.
  3. If output files are genuinely required, replace general write access with a dedicated export operation restricted to a designated output directory and non-executable file types.
  4. Treat all document text as untrusted data and explicitly prohibit following commands or operational instructions embedded in analyzed content.
  5. Require interactive approval for any command execution or filesystem mutation if those capabilities are introduced later.
  6. Enforce workspace-scoped canonical paths, reject path traversal and symbolic-link escapes, and deny access to credentials, configuration directories, and system paths.
  7. Add regression tests using documents containing prompt-injection attempts to verify that document content cannot trigger tools or alter the skill's operating instructions.
Vulnerability Patterns
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (5)

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill claims it is 'pure Markdown' and does not need command execution or external tools, yet the manifest declares exec/read/write/grep/glob capabilities and later operational guidance discusses command execution, API connectivity, and environment setup. This mismatch can mislead users or orchestration layers into granting broader privileges than the documented purpose appears to require, increasing the chance of unsafe execution in a higher-trust context.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The description says to use the skill whenever AI model calls, intelligent chat, agent orchestration, or LLM applications are needed. This scope is so broad that it could match many ordinary assistant requests, making unintended activation more likely and leaving unclear where this skill should not apply beyond a single exclusion for deterministic decisions.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The declared exec capability is not justified by the stated purpose of long-document reasoning and structured analysis, which appears achievable with read-only and LLM-native processing. Unnecessary command execution expands the attack surface substantially, because any later prompt injection, misconfiguration, or user confusion could route untrusted content into shell-capable flows.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
85% confidence
Finding

The capability coverage lists many keywords and says they correspond to declared usage scenarios, but it does not define precise trigger phrases or boundaries for activation. Broad keywords like 'LLM', '助手中枢', and contract analysis terms can create ambiguity about when the skill should activate versus when a general-purpose assistant should respond normally.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The document states both that no extra API key is needed and elsewhere that some functionality requires API keys. Contradictory authentication requirements create operator confusion, which can lead to insecure ad hoc credential handling, accidental key exposure, or enabling external access paths that reviewers believed were absent.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.