Back to skill

Security audit

MIDI Music Composer

Security checks for vulnerabilities and agentic risk

Overview

This skill coherently generates MIDI music and stores local taste preferences, with no evidence of hidden network access, credential use, or destructive behavior.

Install only if you are comfortable with the skill saving local music-preference history, including optional feedback notes, under your home directory. Avoid putting sensitive personal information in feedback unless you intend it to be stored, and delete ~/.hermes/music-composer-preferences.json if you want to reset its learned taste profile.

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
  • Rogue AgentSelf-Modification, Session Persistence
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (17)

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill stores persistent preference memory and infers ratings/tags from free-form feedback, but this data collection and profiling behavior is not clearly surfaced in the core purpose statement. In context, this is more dangerous because the skill repeatedly prompts for subjective feedback and then reuses it across sessions, creating silent session-to-session persistence.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill stores persistent preference memory and infers ratings/tags from free-form feedback, but this data collection and profiling behavior is not clearly surfaced in the core purpose statement. In context, this is more dangerous because the skill repeatedly prompts for subjective feedback and then reuses it across sessions, creating silent session-to-session persistence.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill stores persistent preference memory and infers ratings/tags from free-form feedback, but this data collection and profiling behavior is not clearly surfaced in the core purpose statement. In context, this is more dangerous because the skill repeatedly prompts for subjective feedback and then reuses it across sessions, creating silent session-to-session persistence.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill stores persistent preference memory and infers ratings/tags from free-form feedback, but this data collection and profiling behavior is not clearly surfaced in the core purpose statement. In context, this is more dangerous because the skill repeatedly prompts for subjective feedback and then reuses it across sessions, creating silent session-to-session persistence.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
95% confidence
Finding

The skill directs the agent to run local Python scripts, read/write manifests, store preferences, and invoke shell commands, but it declares no explicit tool scope or permission boundaries. That creates an avoidable over-privilege condition where the hosting agent may permit broader filesystem and shell access than the user would reasonably expect from a music composition skill.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
80% confidence
Finding

The skill establishes continuity across interactions by instructing the agent to keep track of prior manifests, stable musical world choices, and learned user taste, which implies session persistence beyond a single request. In context this is moderately risky because the persistence is tied to preference learning and cross-session adaptation, yet the retention boundary is not clearly disclosed to the user.

Content

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

md
## Overview

Create a short original MIDI composition from a title. The skill turns the title into a stable musical world: genre, tempo, time signature, key, chord progression, instruments, sectional form, and one main melody owner.

Use the bundled generator for candidate artifacts, select the best-scoring candidate, then revise only within the same musical world unless the user asks for a different direction. When the user wants to improve taste, compare versions, or help the critic learn, use blind audition mode.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill instructs the agent to record user opinions as persistent preference memory after delivery, but it does not clearly warn users that their feedback will be retained and reused. This is a privacy vulnerability because it enables silent collection of behavioral preference data across sessions under the guise of a simple follow-up question.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

In blind audition mode, the skill stores ratings and optional notes, potentially including free-form personal text, without clearly warning the user that this information becomes persistent preference-learning data. Because blind audition solicits comparative judgments and optional commentary, it can collect richer profiling information than a normal rating flow.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The manifest describes a skill for creating MIDI/instrumental song artifacts, but this code also invokes local executables (fluidsynth or timidity) via subprocesses to render WAV audio. Launching external programs is a materially broader capability than generating MIDI in-process and is not clearly justified by the stated skill purpose.

Content

No source excerpt is available for this finding.

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/generate_song.py (reported line 582)May include surrounding context.

python
fluidsynth = shutil.which("fluidsynth")
    timidity = shutil.which("timidity")
    if fluidsynth and soundfont and soundfont.exists():
        subprocess.run(
            [fluidsynth, "-ni", str(soundfont), str(midi_path), "-F", str(wav_path), "-r", "44100"],
            check=True,
            stdout=subprocess.DEVNULL,

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/generate_song.py (reported line 590)May include surrounding context.

python
)
        return wav_path
    if timidity:
        subprocess.run(
            [timidity, str(midi_path), "-Ow", "-o", str(wav_path)],
            check=True,
            stdout=subprocess.DEVNULL,

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The script persists detailed preference profiling data to a long-lived file under the user's home directory, including liked/disliked genres, instruments, harmony traits, ratings history, critic alignment, and free-form notes. For a music composition skill, this goes beyond transient task fulfillment and creates a behavioral profile without any visible consent flow, retention control, or minimization, which increases privacy risk if the file is later accessed, exfiltrated, or reused for unrelated personalization.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

The script writes user ratings and free-form opinion text directly to a persistent JSON file without any explicit warning, confirmation, or privacy boundary beyond command-line flags. Free-form notes can contain sensitive personal data, and storing them in plaintext in a predictable location under the home directory increases the chance of unintended disclosure through local access, backups, logs, or later processing by other components.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The script persists preference data, free-form notes, and song-rating history to a user profile file under the home directory, creating durable behavioral data unrelated to the core act of generating a MIDI artifact. In this skill context, long-term storage of genres, instruments, opinions, and notes can reveal personal tastes or sensitive free-text content and increases privacy risk if the data is later accessed by other components or an attacker.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The code writes user-derived notes and inferred preference data directly to disk without any visible disclosure, consent check, or sanitization boundary, which means users may unknowingly have free-form feedback permanently stored. In a music-composition skill, this is more concerning because the user likely expects artifact generation, not silent profile building, and notes may contain personal information beyond music preferences.

Content

No source excerpt is available for this finding.

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/render_audio.py (reported line 17)May include surrounding context.

python
fluidsynth = shutil.which("fluidsynth")
    timidity = shutil.which("timidity")
    if fluidsynth and soundfont and soundfont.exists():
        subprocess.run(
            [fluidsynth, "-ni", str(soundfont), str(midi_path), "-F", str(out_path), "-r", "44100"],
            check=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/render_audio.py (reported line 23)May include surrounding context.

python
)
        return "fluidsynth"
    if timidity:
        subprocess.run([timidity, str(midi_path), "-Ow", "-o", str(out_path)], check=True)
        return "timidity"
    raise SystemExit("No MIDI renderer found. Install timidity, or fluidsynth plus a soundfont.")