Back to skill

Security audit

MP3 to M4B

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill benign with medium confidence: it found no AIG issues, and its three contextual findings are considered compatible with the skill’s stated audio conversion purpose, though review coverage was partial.

The verdict is benign, not a guarantee of zero risk. Before installing, consider that the tool scope is undeclared and that the analysis is marked partial because several local path references could not be resolved. Review the permissions your environment grants and approve any system package installation only if you intend it.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • 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
Findings (10)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: file_read, file_write, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
the Xcode command line tools: `xcode-select --install`.
- Windows: `winget install Gyan.FFmpeg` and `winget install Python.Python.3.13`.
- Linux: ffmpeg and python3 from the system's package manager, for example
  `sudo apt install ffmpeg python3`.

Name the command, wait for the person's yes, then go on. Install nothing
else: the script uses only Python's standard library.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/m4b.py (reported line 47)May include surrounding context.

python
def probe(path):
    r = subprocess.run(['ffprobe', '-v', 'error', '-print_format', 'json', '-show_format', '-show_streams',  # nosec B603 B607
                        '-show_chapters', path], capture_output=True, text=True, check=False)
    if r.returncode:
        die('ffprobe cannot read ' + path + ': ' + r.stderr.strip()[:200])

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/m4b.py (reported line 100)May include surrounding context.

python
if ch != 2:
        return False
    def level(expr):
        r = subprocess.run(['ffmpeg', '-v', 'info', '-nostats', '-t', '300', '-i', path, '-af',  # nosec B603 B607
                            'pan=mono|c0=' + expr + ',volumedetect', '-f', 'null', '-'],
                           capture_output=True, text=True, check=False)
        m = re.search(r'mean_volume: (-?[\d.]+|-inf) dB', r.stderr)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/m4b.py (reported line 214)May include surrounding context.

python
def encoder():
    r = subprocess.run(['ffmpeg', '-hide_banner', '-encoders'], capture_output=True, text=True, check=False).stdout  # nosec B603 B607
    for e in ('aac_at', 'libfdk_aac'):
        if re.search(r'\s' + e + r'\s', r):
            return e

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/m4b.py (reported line 277)May include surrounding context.

python
audio = os.path.join(work, 'audio.m4a')
        cmd = ['ffmpeg', '-v', 'error', '-y', '-f', 's16le', '-ar', str(rate), '-ac', str(ch), '-i', '-',
               '-c:a', enc, '-b:a', '%dk' % kbps, audio]
        encp = subprocess.Popen(cmd, stdin=subprocess.PIPE)  # nosec B603
        starts, total = [], 0
        print('encoding %d parts with %s, %d kbps %s %d Hz...' % (len(parts), enc, kbps,
              'mono' if ch == 1 else 'stereo', rate), flush=True)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/m4b.py (reported line 283)May include surrounding context.

python
'mono' if ch == 1 else 'stereo', rate), flush=True)
        for p in parts:
            starts.append(total // (2 * ch))  # bytes of s16 PCM -> samples
            dec = subprocess.Popen(['ffmpeg', '-v', 'error', '-i', p['file'], '-map', '0:a:0', '-f', 's16le',  # nosec B603 B607
                                    '-ac', str(ch), '-ar', str(rate), '-'], stdout=subprocess.PIPE)
            while True:
                b = dec.stdout.read(1 << 20)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/m4b.py (reported line 326)May include surrounding context.

python
if cover.endswith('#embedded'):
                src = cover[:-9]
                cimg = os.path.join(work, 'cover.jpg')
                subprocess.run(['ffmpeg', '-v', 'error', '-y', '-i', src, '-map', '0:v:0', '-frames:v', '1',  # nosec B603 B607
                                '-vf', "scale='min(1400,iw)':-2", cimg], check=True)
            else:
                cimg = os.path.join(work, 'cover.jpg')

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/m4b.py (reported line 330)May include surrounding context.

python
'-vf', "scale='min(1400,iw)':-2", cimg], check=True)
            else:
                cimg = os.path.join(work, 'cover.jpg')
                subprocess.run(['ffmpeg', '-v', 'error', '-y', '-i', cover, '-frames:v', '1', '-q:v', '2',  # nosec B603 B607
                                '-vf', "scale='min(1400,iw)':-2", cimg], check=True)
            cmd += ['-i', cimg, '-map', '0:a', '-map', '2:v', '-disposition:v:0', 'attached_pic']
        else:

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/m4b.py (reported line 338)May include surrounding context.

python
cmd += ['-map_metadata', '1', '-map_chapters', '1', '-c', 'copy', '-metadata', 'media_type=2',
                # 1000 keeps the chapter track: with a cover, ffmpeg 9 otherwise drops it (issue 25317)
                '-movie_timescale', '1000', '-f', 'mp4', '-brand', 'M4B ', '-movflags', '+faststart', out]
        r = subprocess.run(cmd, capture_output=True, text=True, check=False)  # nosec B603
        if r.returncode:
            die('ffmpeg could not write the m4b: ' + r.stderr.strip()[-300:], 4)
    finally: