Back to skill

Security audit

internal-comms

Security checks for vulnerabilities and agentic risk

Overview

The skill looks like a generic automation template that asks for broad read and command execution authority despite being presented as an internal communications writing aid.

Install only if you are comfortable granting this skill broad local read and command-execution capability. Treat it as an automation skill, not just a writing helper; avoid giving it secrets or administrator privileges unless the publisher provides a narrower, clearly scoped version.

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

Excessive Tool Permissions and Unsafe Privilege-Escalation Guidance

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 16–18; related administrator-execution guidance at lines 145 and 193
Vulnerability Type: Excessive execution capability and privilege escalation
Risk Level: Medium

yaml
tools:
  - read
  - exec

Technical Analysis

The skill declares both unrestricted file-reading and command-execution capabilities even though its stated purpose is producing internal communications. Command execution is not demonstrated as necessary for that purpose, resulting in a violation of the principle of least privilege.

The risk is compounded by troubleshooting guidance at lines 145 and 193 that recommends running with administrator privileges when permissions are insufficient. If an agent or operator follows this advice, commands subsequently invoked through the declared exec capability could run with elevated operating-system privileges.

No executable script or explicit malicious command is included in the audited project. Consequently, exploitation is conditional on the hosting agent exposing the declared tools and choosing to execute commands based on untrusted task content. Nevertheless, the permission declaration creates an unnecessary command-execution channel, while the administrator guidance can increase the privileges available through that channel.

Attack Path

  1. The skill is loaded by an agent that grants the read and exec tools declared in SKILL.md.
  2. An attacker supplies crafted internal-communications content or task parameters that encourage the agent to inspect local files or invoke a shell command.
  3. The skill's broad tool declaration permits the agent to use file-reading or command-execution functionality outside the legitimate writing task.
  4. If a permission error occurs, the troubleshooting guidance may persuade an operator or automated environment to rerun the operation with administrator privileges.
  5. A resulting command may then ...[truncated 746 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove the exec tool because command execution is not required for generating internal communications.
  2. Restrict file access to explicitly supplied documents or a dedicated workspace rather than granting general-purpose read access.
  3. Remove the recommendations at lines 145 and 193 to run as administrator. Replace them with instructions to correct ownership, narrowly scoped access-control entries, or workspace permissions.
  4. If command execution is genuinely required, document the exact use case and enforce a fixed allowlist of commands and arguments. Do not construct commands from user-controlled content.
  5. Run the skill in a sandbox under a dedicated, unprivileged account with read-only access by default, no access to secrets, and no ability to elevate privileges.
  6. Require explicit human approval before every command invocation and display the complete executable, arguments, working directory, and effective user.
  7. Validate and canonicalize all paths, constrain them to an approved workspace, and reject traversal, symbolic-link escapes, shell metacharacters, and unexpected file types.
  8. Add tests confirming that communication content cannot trigger shell execution, read files outside the approved workspace, or cause the agent to request elevated privileges.
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 (9)

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill is presented as an internal-communications writing aid, but its documented scope expands into automation, data processing, API usage, file handling, and command execution. This mismatch undermines informed consent and creates an opportunity for the agent to invoke powerful capabilities in contexts where the user would reasonably expect only text generation.

Content

No source excerpt is available for this finding.

Vague Triggers

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The activation description is broad and ambiguous, increasing the likelihood that the agent may invoke the skill outside its legitimate purpose. Overbroad routing is dangerous here because the skill declares powerful capabilities, so accidental activation can expose exec, network, or file behaviors in inappropriate contexts.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

Advertising exec capability for a skill whose stated purpose is writing internal communications violates least privilege and materially increases the blast radius of prompt misuse or activation confusion. If the skill is auto-selected for writing tasks, command execution could be exposed in workflows that do not need it, enabling unintended local actions.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill exposes command execution capability without a clear user-facing warning in the markdown. This deprives users and integrators of informed understanding of a high-risk capability and makes accidental trust or deployment more likely.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The FAQ states that the skill '仅支持中文输入输出', which imposes a language restriction without offering the user a choice or documenting a justified regional constraint. This is a natural-language policy issue because it forces a specific language by default.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The documentation introduces API keys, external connections, and network-dependent operations that are unrelated to an internal-comms writing skill. This broadens the trust boundary to external systems and secrets handling without clear necessity, increasing the risk of credential misuse, data exfiltration, or accidental outbound requests.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The inclusion of file-processing and path-handling behaviors is inconsistent with a writing-focused communications skill and introduces filesystem risk unnecessarily. Even without executable code shown, such scope expansion can lead to unintended file access, overwrites, or exposure of local data if the agent treats the skill as authorized for file operations.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The documentation references API keys and external API use without a clear warning that the skill may handle secrets and communicate with external services. Lack of disclosure increases the risk that users provide credentials or sensitive content without understanding the exposure path.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The trigger condition states the skill activates whenever the user needs related operations, without clear constraints or examples of when it must not run. In combination with the skill's scope creep, this weak gating increases the chance of inappropriate automatic use and downstream misuse of privileged tools.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.