T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:23- Finding
Unrestricted Recursive Reading of Audit Targets
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a legitimate skill-auditing tool, but it asks agents to read every file in a target skill without enough boundaries for secrets, symlinks, or prompt-injection content.
Install only if you are comfortable giving the agent read access to the skill directories you explicitly choose. Use it on trusted, scoped skill folders; avoid running it on directories containing .env files, private keys, credentials, large unrelated repositories, or symlinks unless the agent has additional guardrails to skip and redact sensitive content.
SKILL.md:23Unrestricted Recursive Reading of Audit Targets
SKILL.md:45Missing Trust Boundary for Adversarial Files Under Audit
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
- 输出格式定义清晰:明确要求单行JSON输出 ✓
⚠️ **警告项:**
- 全大写命令词使用较多(如"**Always invoke**", "**Strict Output Rule**", "**IMPORTANT**"),共发现5处,但都有充分的理由说明,属于合理使用
### 维度4: 渐进式披露设计(得分:13/15)
The suggested trigger wording says the skill must activate whenever users mention any time-related terms, which is overly broad and can cause unintended activations. Over-triggering increases the chance that the skill runs in irrelevant contexts, crowding out more appropriate skills and potentially causing users to follow incorrect or overreaching instructions.
Referenced artifact was not completely inspected
1. `SKILL.md` — always required, read in full
The example recommends activating on broad, common phrasing without defining boundaries, which can make the skill match many ordinary requests outside its intended domain. In multi-skill environments this can crowd out more relevant skills, causing misapplication of instructions and increasing the attack surface for prompt-routing failures.
Repeating the recommendation to make descriptions 'pushy' institutionalizes over-triggering as a best practice, which is unsafe in systems where descriptions influence automatic skill selection. This creates a systemic routing weakness: skills can capture requests too aggressively, leading to unintended execution paths or loading of irrelevant instructions.
The phrase 'any kind of company data' is extremely broad and effectively teaches authors to claim wide swaths of user intent, making false-positive activation likely. In skill-based agents, this kind of trigger inflation can redirect workflows away from better-matched skills and amplify the effect of any problematic instructions contained in the over-triggered skill.
This markdown file contains natural-language instructions and examples that require producing a Chinese report, such as '输出中文的测评报告markdown' and '我将...生成中文报告'. For a general skill-quality reporting artifact, mandating a specific language without offering the user a choice is a locale/language policy violation under SQP-3.
The example report recommends adding allowed-tools: "Read Exec" to a compliance-review skill even though the described purpose is auditing SKILL.md/spec compliance, not executing local code. This normalizes unnecessary tool escalation and could cause downstream users or authors to grant execution privileges to skills that only need read-only analysis, increasing attack surface.
Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
The validation rules in this skill are based on:
- **[Agent Skills Specification](https://agentskills.io/specification)** — the official spec defining SKILL.md format, frontmatter fields, directory structure, and progressive disclosure requirements
- **[anthropics/skills — skill-creator](https://github.com/anthropics/skills/blob/main/skills/skill-creator/SKILL.md)** — Anthropic's official skill-creation guide, which defines best practices for writing style, description optimization, trigger tuning, and the "why over MUST" principle
- **[anthropics/skills repository](https://github.com/anthropics/skills)** — real-world skill examples used as reference for what good looks like
Key principles derived from skill-creator:
The description contains very broad trigger phrases like 'check my skill', 'test this skill', and generic review language that can overlap with many ordinary repository-review requests. Because skill descriptions are a primary routing signal, this can cause over-triggering and unintended activation in contexts where the user did not specifically want this skill, leading to misrouting, unnecessary file access, or the wrong workflow being applied.
The skill unconditionally forces report language based on detected user language and defaults to English when the language is ambiguous, without confirming the user's preference first. This can cause the agent to override user intent, produce outputs in an unwanted language, and make security or compliance findings less understandable or reviewable, especially in mixed-language or multilingual environments.
The guidance explicitly encourages descriptions to be 'pushy' so skills trigger more often, which can cause scope collisions and unnecessary activation of this skill in unrelated contexts. In an agent ecosystem, overbroad trigger criteria can degrade routing reliability and increase the chance that a skill is loaded where its instructions or resources are not appropriate.
No suspicious patterns detected.