Back to skill

Security audit

qy-123

Security checks for vulnerabilities and agentic risk

Overview

This skill is a coding-guidance document with no executable payload, but it overreaches by trying to become mandatory for nearly every coding task.

Review this skill before installing if you do not want a coding-style policy to activate across most development tasks. Its guidance is largely conventional, but the global mandatory wording should be narrowed or treated as subordinate to user instructions, repository policy, and higher-priority safety rules.

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

Warning
Location
SKILL.md:3
Finding

Skill-Wide Instruction Hijacking Through Mandatory Override Directives

Content
View full analysis
Mandatory coding discipline rules that prevent common AI coding anti-patterns. MUST be loaded for ALL code writing, editing, reviewing, bug fixing, and testing tasks. Trigger on: writing code, editing code, fixing bugs, writing tests, implementing features, refactoring, code review, creating functions, adding error handling, debugging. This skill enforces fail-fast principles, proper error propagation, meaningful tests, and disciplined debugging workflows. Always active when Claude writes or modifies code. --- # AI Coding Discipline > These rules override default AI coding tendencies. Follow them in ALL code you write or modify. ``` ### Technical Analysis The skill uses explicit global-control language such as “MUST be loaded,” “Always active,” and “override default AI coding tendencies.” These directives attempt to make the skill authoritative for every code-writing, editing, review, debugging, and testing task rather than limiting its instructions to the task for which the skill was intentionally invoked. Once loaded, the skill can alter the agent's current goals and workflow by requiring its rules to be applied universally. The later absolute requirements—such as always using a specific test-first sequence and never removing diagnostic logs during the same change as a fix—may conflict with explicit user instructions, repository policies, incident-response requirements, or task-specific constraints. This is instruction hijacking because the behavior is achieved through the skill text itself and is intended to influence the agent's active instruction processing. The audited file does not contain evidence of persistent memory modification, code execution, external payload retrieval, system persistence, privilege escalation, dependency attac ...[truncated 1684 chars]
Remediation
View remediation
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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
Findings (1)

Vague Triggers

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill declares itself as mandatory for essentially all code-writing, editing, reviewing, testing, debugging, and refactoring tasks, making it effectively always-on in common development workflows. Even though the content appears focused on coding discipline rather than overtly malicious behavior, an over-broad trigger creates a policy-injection surface where this skill can systematically override or bias agent behavior in many contexts, including contexts where its rules may conflict with safer task-specific instructions.

Content

No source excerpt is available for this finding.