Back to skill

Security audit

MP3 Tag Cleaner

Security checks for vulnerabilities and agentic risk

Overview

The skill has a legitimate MP3-tag-cleaning purpose, but its implementation can overwrite or corrupt user files without enough scoping, validation, backup, or recovery.

Review this skill carefully before installing. It should only be used on backed-up MP3 copies or a disposable test folder, because malformed inputs or an incorrect file list could permanently alter or corrupt files. The fixed temp paths and missing compiled executable also mean users should verify exactly what will run in their environment.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (3)

T09 · Insecure Skill Coding Practices

Error
Location
tools/ClearID3v12.cs:21
Finding

Unrestricted File Modification Through a Predictable, Unvalidated File List

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
tools/ClearID3v12.cs:99
Finding

Malformed or Unsupported ID3 Data Can Cause Silent File Corruption

Content
View full analysis
= 10) { if (allData[0] == 'I' && allData[1] == 'D' && allData[2] == '3') { int sb1 = allData[6]; int sb2 = allData[7]; int sb3 = allData[8]; int sb4 = allData[9]; id3v2Len = 10 + (((sb1 & 0x7F) << 21) | ((sb2 & 0x7F) << 14) | ((sb3 & 0x7F) << 7) | (sb4 & 0x7F)); } } // Extract MP3 data (between ID3v2 and ID3v1) long mp3Start = id3v2Len; long mp3End = fileLen - id3v1Len; long mp3Len = mp3End - mp3Start; if (mp3Len < 0) mp3Len = 0; ``` ```csharp string frameId = Encoding.ASCII.GetString(allData, pos, 4); int frameSize = (allData[pos + 4] << 24) | (allData[pos + 5] << 16) | (allData[pos + 6] << 8) | allData[pos + 7]; // Frame must be at least 10 bytes (header) if (frameSize <= 0 || pos + 10 + frameSize > id3v2Len) break; ``` ```csharp // Build new file: ID3v2 header + filtered frames + MP3 data (NO ID3v1) long newLen = 10 + newV2Frames.Count + mp3Len; byte[] newData = new byte[newLen]; int writePos = 0; // ID3v2 header if (newV2Frames.Count > 0) { newData[writePos++] = (byte)'I'; newData[writePos++] = (byte)'D'; newData[writePos++] = (byte)'3'; newData[writePos++] = 3; // version 2.3 newData[writePos++] = 0; newData[writePos++] = 0; int sz = newV2Frames.Count; newData[writePos++] = (byte)((sz >> 21) & 0x7F); newData[writePos++] = (byte)((sz >> 14) & 0x7F); newData[writePos++] = (byte)((sz >> 7) & 0x7F); newData[writePos++] = (byte)(sz & 0x7F); for (int i = 0; i < newV2Frames.Count; i++) newData[writePos++] = newV2Frames[i]; } // MP3 data if (mp3Len > 0) { Array.Copy(allData, mp3Start, newData, writePos, mp3Len); } File.Writ ...[truncated 2582 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
tools/ClearID3v12.cs:22
Finding

Recursive Deletion of a Fixed Shared Temporary Directory

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • 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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (4)

Missing User Warnings

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The tool copies modified content back over the original MP3 path with overwrite enabled, permanently changing user files and removing metadata without confirmation, backup retention, or atomic rollback. In an agent or automation context, this can cause irreversible data loss across many files if the input list is wrong or the parser behaves incorrectly.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
92% confidence
Finding

The function writes reconstructed bytes directly to the target file path after parsing and rewriting binary data, with no integrity checks, backup, or recovery path. If parsing is incorrect or the file is malformed, the original media file can be truncated or corrupted, making this a real destructive-file-handling issue.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

This markdown file contains user-facing instructions and behavior descriptions only in Chinese, which effectively forces a specific language for use of the skill. The policy for SQP-3 flags language or locale constraints when the skill does not explicitly offer a user choice or opt-in.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The program recursively deletes the entire temporary working directory and recreates it, but there is no confirmation prompt, warning message, or explanatory comment disclosing this destructive action to the user. Because recursive deletion can remove existing data in that path, users are not explicitly informed before the operation occurs.

Content

No source excerpt is available for this finding.