Back to skill

Security audit

批量文件重命名

Security checks for vulnerabilities and agentic risk

Overview

This is a disclosed local batch-renaming helper; the main caution is that it can rename files in a chosen folder, so users should preview and back up first.

Install only if you want a Chinese-language local file renaming tool. Run with --dry-run first, use it only on folders you intentionally select, and keep a backup when renaming important files because the script does not prevent name collisions.

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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • 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 (3)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
94% confidence
Finding

The skill describes and invokes a local batch-renaming script that reads directory contents and renames files, but the manifest does not declare any tool scope such as file read/write permissions. This creates an authorization and transparency gap: users and hosts cannot easily validate what filesystem access the skill expects, increasing the risk of unintended or overly broad file modification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
86% confidence
Finding

The file presents the skill name, usage instructions, and operational guidance entirely in Chinese. Under the policy criteria, forcing a specific language without user opt-in can be a natural-language policy violation unless the locale restriction is explicitly documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

The help string for --ext is written only in Chinese (只处理该扩展名,如 .jpg), which imposes a specific language in user-facing text without any opt-in or alternative. The policy explicitly calls for flagging language or locale constraints when the skill does not offer a choice or clearly justify the restriction.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.