Back to skill

Security audit

audit

Security checks for vulnerabilities and agentic risk

Overview

This audit skill is not clearly malicious, but it asks for broad file and command powers without enough scoping or user-control detail.

Review this skill carefully before installing. Use it only in a sandboxed, non-administrator environment, limit it to project directories you intend to audit, require explicit confirmation before any file write or command execution, and avoid giving it broad API keys or credentials.

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

Overprivileged Tool Access and Unsafe Privilege-Escalation Guidance

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 21–24 and 231–275
Vulnerability Type: Excessive tool permissions and unsafe operational guidance
Risk Level: Medium

Vulnerable Code Snippets

Lines 21–24 declare broad filesystem and command-execution capabilities:

yaml
tools:
- read
- exec
- write

Lines 231, 257–263, and 275 additionally instruct the operator to modify permissions, execute system commands, or run with administrator privileges. English translations of the relevant source text are:

text
Modify filesystem and command-execution permissions.
Execute system commands in a secure sandbox and collect the results.
If the current user lacks read or write permission, check file permissions and run as administrator.

Technical Analysis

The skill is presented as a security-auditing tool, but it requests unrestricted read, exec, and write capabilities. Many auditing operations can be completed using read-only access and narrowly constrained analysis commands. The documentation does not define:

  • Filesystem path restrictions.
  • A command allowlist.
  • Mandatory user confirmation before execution or modification.
  • Argument validation for commands derived from user-controlled input.
  • A prohibition against privilege escalation.
  • Separation between read-only auditing and active remediation.

The troubleshooting guidance compounds this excessive permission model by recommending permission changes or administrator execution when access is denied. A permission failure should ordinarily be treated as a security boundary, not as an instruction to increase privileges automatically.

No executable implementation is included in the project, so the audit cannot confirm that privilege escalation or arbitrary command execution occurs automatically. The risk arises from the combination of broad declared capabilities and operational instructions that encourage bypassing ...[truncated 1656 chars]

Remediation
View remediation

Remediation Suggestions

  1. Default the skill to read-only operation and remove write unless the user explicitly requests remediation.
  2. Separate audit and remediation modes. Require clear, per-operation user approval before enabling file modifications.
  3. Restrict read and write operations to an explicitly approved project root and reject path traversal or symlink escapes.
  4. Replace unrestricted command execution with a minimal allowlist of audit tools and fixed argument schemas.
  5. Never construct shell commands by concatenating user-controlled paths, filenames, repository content, or audit instructions.
  6. Require explicit confirmation before every command that can change system state.
  7. Remove instructions recommending administrator execution or broad permission changes. Treat permission errors as hard failures unless the user independently confirms a narrowly scoped access change.
  8. Run all analysis commands in an isolated sandbox using an unprivileged account, a read-only project mount, disabled network access by default, and strict resource limits.
  9. Log approved executions and writes without recording credentials or other sensitive values.
  10. Document concrete command, path, network, and privilege boundaries rather than relying on the unsupported statement that execution occurs in a secure sandbox.
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 (5)

Vague Triggers

High
Category
Not specified by scanner
Confidence
94% confidence
Finding

The invocation description is extremely broad, covering security auditing, code generation, development assistance, debugging, deployment, and automation, while the skill also has read, write, and exec capabilities. Overbroad routing criteria can cause the agent to invoke a powerful skill in unintended contexts, increasing the chance of unsafe file modification, command execution, or external interactions without narrowly scoped user intent.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
83% confidence
Finding

The description states '支持中文交互,无需复杂配置即开即用', which presents Chinese interaction as a default capability without offering language choice. This may violate language or locale policy when the skill is expected to support user-preferred language unless the locale restriction is explicit and justified.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill exposes write and exec capabilities and references API usage, but the user-facing description near the top does not clearly warn that it may modify files, run commands, or interact with external services. Missing upfront disclosure increases the risk of users or automated planners invoking the skill without understanding its side effects and security implications.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill advertises that command execution is limited to a whitelist, but the manifest only exposes a general exec capability and provides no enforceable whitelist definition or implementation detail. This creates a trust gap: users or orchestrators may assume commands are constrained when in practice the agent may execute broader shell actions, increasing the risk of arbitrary command execution or unsafe automation.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

L156 claims that all API calls use HTTPS encryption, yet the skill file only generically mentions API integration and external service calls without specifying endpoints, transport validation, or any enforcement mechanism. Because the documentation asserts a universal security property for all API usage while the described implementation surface is generic and unconstrained, this is a documentation-versus-actual-capability mismatch.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.