Back to skill

Security audit

职场沟通写作免费版

Security checks for vulnerabilities and agentic risk

Overview

The skill mostly contains normal workplace-writing templates, but it asks for command execution and file read/write access that its drafting purpose does not justify.

Review before installing. The writing guidance itself is ordinary, but this skill should not need command execution, file reading, file writing, or API key handling. Install only if your platform strips or tightly controls those permissions, or if the publisher revises the skill to remove or scope them.

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

Excessive Tool Permissions for a Documentation-Only Writing Skill

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 29–32
Vulnerability Type: Excessive tool permissions and violation of least privilege
Risk Level: Medium

Vulnerable Code

yaml
tools:
  - read
  - exec
  - write

Technical Analysis

The Skill generates workplace communications such as status emails, escalation requests, and Slack or Teams messages. Its documented workflows operate on user-provided text and do not require local filesystem access or command execution.

Nevertheless, the manifest requests three powerful capabilities:

  • read can expose files accessible to the hosting agent.
  • write can modify or create files within the agent's permitted scope.
  • exec can run local commands under the agent process's operating-system privileges.

These permissions exceed the Skill's stated functional requirements. This unnecessarily increases the consequences of prompt injection, malicious user input, future instruction changes, or compromise of the Skill. The presence of these declarations does not prove that the current Skill executes malicious commands, but granting them breaks least-privilege boundaries and creates an avoidable privilege-escalation surface.

Attack Path

  1. An agent loads the Skill and grants the declared read, write, and exec tools.
  2. The Skill processes attacker-controlled or otherwise untrusted communication content.
  3. Malicious injected instructions attempt to induce an agent tool call unrelated to workplace writing.
  4. Because the Skill has unnecessary tool access, the agent may read accessible local data, modify files, or execute commands if its tool-policy controls do not block the request.
  5. The resulting access occurs with the permissions of the hosting agent process and within any additional sandbox restrictions imposed by the platform.

No malicious invocation is present in the reviewed file; this path describes the risk enabled by the excessive permission declaration.

Impact

...[truncated 539 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove read, write, and exec because the documented text-generation workflows do not require them.
  2. Use an empty tool declaration or omit the tools field if supported by the agent platform.
  3. If persistence of generated output becomes a genuine requirement, grant only narrowly scoped write access:
    • Restrict writes to one dedicated output directory.
    • Prevent overwriting existing files by default.
    • Reject traversal and absolute paths.
    • Require explicit user approval before writing.
  4. Do not grant exec unless a concrete, documented feature requires command execution. If later introduced:
    • Use a fixed command allowlist.
    • Prohibit shell interpolation.
    • Validate every argument.
    • Run in a sandbox with minimal filesystem and network access.
    • Require explicit confirmation for each execution.
  5. Apply platform-level controls so Skill-declared tools are not automatically trusted and untrusted message content cannot authorize tool use.
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)

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The write capability is broader than necessary for a skill whose described function is drafting communication text. Unnecessary file-writing permissions increase the chance that generated content, prompts, or other data could be written to disk or workspace files without a clear user need, which can lead to data leakage or unwanted modification of project artifacts.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

The write capability is broader than necessary for a skill whose described function is drafting communication text. Unnecessary file-writing permissions increase the chance that generated content, prompts, or other data could be written to disk or workspace files without a clear user need, which can lead to data leakage or unwanted modification of project artifacts.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

Because this is a markdown file, vague-trigger review applies. The usage text says to call the skill in an AI Agent conversation and reference its related capabilities, but it does not provide specific trigger phrases, activation constraints, or negative examples showing when the skill should not be invoked. This ambiguity could cause unintended activation for generic workplace-writing requests.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill is presented as a professional communication drafting assistant, but later introduces execution-oriented environment setup, API key configuration, and an MD+EXEC classification unrelated to its stated purpose. This mismatch can cause an agent or operator to grant unnecessary execution privileges and handle secrets in a context that should only require text generation, expanding attack surface without functional justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The statement that templates reflect the communication habits of mainstream technical teams implies a default normative communication style, but the document does not offer users a language/locale choice or explain how style should vary by region or audience. Under the policy, forcing a specific locale or communication norm without opt-in can be a natural-language policy issue.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.