Back to skill

Security audit

文档知识库工程师 技能索引与知识库

Security checks for vulnerabilities and agentic risk

Overview

This is a documentation-routing skill that asks the agent to read and update repository AI documentation, with no hidden execution, persistence, credential use, or network behavior.

Install this only in repositories where you want an agent to read and update AI-facing documentation, skill indexes, routing references, and migration reports. Review its source-material paths if your repository treats internal skill documents as sensitive, but the artifact does not show hidden or unsafe behavior.

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
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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
Findings (5)

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

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.

Content

Scanner excerpt · SKILL.md (reported line 23)May include surrounding context.

md
- `AI-README.md`
- `CLAUDE.md`
- `dev/ai/skills/_index.md`
- `dev/ai/skills/weline-framework-skill-router/SKILL.md`
- `dev/ai/skills/documentation-standards/SKILL.md`

# Responsibilities

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

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.

Content

Scanner excerpt · SKILL.md (reported line 24)May include surrounding context.

md
- `CLAUDE.md`
- `dev/ai/skills/_index.md`
- `dev/ai/skills/weline-framework-skill-router/SKILL.md`
- `dev/ai/skills/documentation-standards/SKILL.md`

# Responsibilities

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
70% confidence
Finding

The file mixes Chinese and English in user-facing identifiers and instructions, but does not explain whether language choice is intentional or user-selected. This can be a natural-language policy concern if the organization expects explicit language choice rather than implicit locale behavior.

Content

No source excerpt is available for this finding.

Vague Triggers

Low
Category
Not specified by scanner
Confidence
83% confidence
Finding

The invocation guidance includes broad phrases like "knowledge base" and "AI docs structure" without explicit exclusions or tighter scope boundaries. In a markdown skill file, this can create ambiguity about when this specific skill should activate versus other documentation-related skills.

Content

No source excerpt is available for this finding.

Scope Creep

Low
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · SKILL.md (reported line 86)May include surrounding context.

md
- Know the Weline AI agent roster defined in the shared skill and `dev/ai/agent/README.md`.
- Keep work inside this specialist's ownership boundary.
- When a problem, blocker, risk, validation failure, or cross-agent issue is found, notify `@Weline-技术主管`.
- Do not silently expand scope to fix another agent's area.
- Include collaboration status in the final report.