Back to skill

Security audit

统计指定目录的文件类型和数量,生成Markdown格式报表

Security checks for vulnerabilities and agentic risk

Overview

The skill is a straightforward directory file-count reporter, but it asks for local file write access that its documented workflow does not need.

Review this before installing. The core task only needs read access to a user-selected directory, so remove or reject filesystem.write unless the skill is updated to clearly document confirmed, user-chosen file output.

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
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (3)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest description, procedural instructions, triggers, and example dialogue are all written to operate in Chinese, with no indication that the user can choose another language. This creates a locale/language policy concern because the skill appears to mandate a specific language without explicit opt-in or justification.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The trigger phrases are broad enough to activate on common conversational requests such as file counting or directory analysis outside a tightly scoped context. Overbroad activation can cause the skill to engage unexpectedly and prompt filesystem access when the user may have intended a different action.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill requests filesystem.write permission even though its documented behavior only returns a Markdown report in chat and does not require writing files. This creates unnecessary privilege that could enable unintended file creation or modification if the skill implementation or downstream agent behavior diverges from the documentation.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.