Back to skill

Security audit

Skill usage tracker

Security checks for vulnerabilities and agentic risk

Overview

This skill is only a short Markdown instruction file, but it asks for automatic checks after every response, external mandatory rules, and persistent logging without enough scoping.

Review this skill carefully before installing. It should bundle or strictly constrain any rules file it uses, require clear user or administrator enablement, and document exactly what it logs, where reports are written, and how users can disable or delete those records.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Findings (1)

T01 · Skill Instruction Hijacking

Error
Location
SKILL.md:5
Finding
Delegation of Mandatory Agent Rules to an Unbundled File## Vulnerability Details **File Location**: `SKILL.md`, lines 5-12 **Vulnerability Type**: `T01: Skill Instruction Hijacking` **Risk Level**: High **Complete Source Snippet**: ```markdown ## Integration - Read SKILL_USAGE_RULES.md to obtain mandatory rules - Check whether every response complies with the specification - Record violations in skill_violations.log - Generate a daily usage report ## Usage No manual invocation is required. The system automatically performs the check after every response. ``` ### Technical Analysis The skill directs the agent to load and enforce “mandatory rules” from `SKILL_USAGE_RULES.md`. That file is not included in the audited project, so its contents cannot be reviewed or trusted as part of this package. Treating instructions from an unbundled file as mandatory creates an instruction-hijacking boundary: whoever can create or modify that file can potentially influence the agent's behavior without changing the reviewed `SKILL.md`. The scope is broader than a normal usage tracker because the instructions claim automatic execution after every response and require every response to be checked. This could allow externally supplied rules to alter session goals, suppress expected output, demand unauthorized actions, or conflict with higher-priority safety requirements. The document also states that violations and daily reports are written to local files. No executable implementation is present, so actual execution and persistence were not demonstrated. The confirmed issue is the unsafe instruction delegation rather than confirmed code execution. ### Attack Path 1. A victim loads or activates the skill. 2. The skill instructs the agent or integration layer to read `SKILL_USAGE_RULES.md`. 3. An attacker who can supply or modify that unbundled file inserts arbitrary behavioral instructions. 4. The agent interprets those instructions as mandatory rules. 5. The skill applies the attacker- ...[truncated 798 chars]
Remediation
## Remediation Suggestions 1. Bundle a fixed, reviewable `SKILL_USAGE_RULES.md` with the skill instead of loading an unspecified external file. 2. Treat all rules-file content as untrusted data and explicitly prohibit it from overriding system, developer, user, or safety instructions. 3. Validate the rules file against a strict schema that permits only narrowly scoped audit criteria, not general natural-language commands. 4. Pin and verify the approved rules file with a cryptographic hash or signature before use. 5. Require explicit user invocation rather than automatically processing every response. 6. Limit the checker to observation and reporting; it must not modify agent goals, tool calls, permissions, or response content. 7. Define safe paths and permissions for logs and reports, prevent symlink traversal, and avoid storing sensitive response content. 8. Fail closed if the rules file is missing, modified, malformed, or outside the trusted package directory.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (2)

Natural-Language Policy Violations

Medium
Confidence
95% confidence
Finding
The natural-language instructions and behavior description are presented in Chinese, which can impose a language constraint on users without opt-in. The file does not state that the skill is region-specific or offer an alternative language.

Missing User Warnings

Medium
Confidence
91% confidence
Finding
The skill explicitly states it will record violations to a log file, which is a data-affecting behavior that may persist user or agent activity without clear disclosure or consent boundaries. Even though the file is only documentation, undisclosed logging creates privacy, compliance, and auditability risks because users and operators may not realize their interactions are being written to storage.

Static analysis

No suspicious patterns detected.