Back to skill

Security audit

algorithmic-art

Security checks for vulnerabilities and agentic risk

Overview

The skill mostly looks like a generic automation template rather than a focused p5.js art helper, and it asks for command execution with vague credential and file guidance.

Review this skill carefully before installing. It does not contain an executable payload, but its instructions are too broad for an algorithmic-art helper and may lead an agent to use shell commands, credentials, file access, or administrator privileges without clear scoping. Prefer a version limited to p5.js sketch creation and user-owned project files, with no generic admin, API-key, or command-execution guidance unless explicitly needed.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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 (1)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:179
Finding

Unsafe Recommendation to Execute Operations with Administrator Privileges

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, line 179; duplicated at line 218
Vulnerability Type: T05: Unauthorized Access and Privilege Escalation
Risk Level: Medium

Complete snippet translated into English:

markdown
| Insufficient permissions | The current user lacks read/write permissions | Check file permissions and run as administrator |

The skill also declares access to command execution:

yaml
tools:
  - read
  - exec

Technical Analysis

The troubleshooting guidance recommends running with administrator privileges whenever the current user lacks file read or write access. This is an overly broad response to a routine permissions error and violates the principle of least privilege.

Algorithmic-art generation does not ordinarily require system-wide privileges. Permission failures should instead be resolved by selecting a user-owned output directory, correcting permissions only on the required project resources, or requesting narrowly scoped user approval.

The risk is increased by the skill's declaration of the unrestricted exec capability. Although the package contains no scripts or concrete commands that automatically elevate privileges, an agent following this guidance could retry an unspecified command or processing operation in an elevated context. User-controlled filenames, paths, parameters, or generated command arguments would consequently be handled with administrator authority.

The same unsafe recommendation appears twice, at lines 179 and 218, reinforcing it as general recovery guidance rather than a narrowly documented exceptional procedure.

Attack Path

  1. An attacker or untrusted input causes the skill workflow to access a protected file or output directory.
  2. The operation fails because the current account lacks read or write permission.
  3. The skill's troubleshooting instructions advise retrying the operation as an administrator.
  4. The use ...[truncated 1277 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove both recommendations to run with administrator privileges at lines 179 and 218.
  2. Replace them with least-privilege troubleshooting guidance:
    • Verify that the requested path belongs to the intended project workspace.
    • Use a user-owned input and output directory.
    • Correct permissions only on the specific required file or directory.
    • Refuse access to protected system paths unless the task explicitly and legitimately requires it.
  3. Require explicit, informed user confirmation before any privileged operation. The confirmation should display the exact command, affected paths, purpose, and expected changes.
  4. Do not automatically retry failed commands in an elevated context.
  5. Remove the exec tool declaration if algorithmic-art generation can be completed without shell access. If execution is necessary, define an allowlist of permitted commands and validate all arguments.
  6. Reject shell metacharacters and untrusted path traversal sequences in user-controlled parameters before constructing commands.
  7. Run generated art tooling in a sandbox or container with a user-owned working directory, restricted filesystem access, no unnecessary network access, and a non-administrator account.
  8. Add a security test confirming that permission failures produce a safe error rather than elevation instructions.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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
Findings (6)

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill claims to be for p5.js algorithmic art, but most of the manifest and documentation describe a generic automation, API, file, and command-execution workflow. This mismatch can cause an agent or user to grant broad capabilities under false pretenses, increasing the chance of unintended command execution, data handling, or integration behavior outside the expected art-generation scope.

Content

No source excerpt is available for this finding.

Vague Triggers

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The trigger conditions are overly broad, combining algorithmic-art requests with unrelated automation, data analysis, and workflow orchestration scenarios. Overbroad activation criteria make accidental or inappropriate invocation more likely, which is especially dangerous when the skill also declares read and exec capabilities.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The inline instructions tell users to configure API keys, establish API connections, prepare files, and execute commands, which contradicts the art-focused description and normalizes sensitive operations without clear necessity. This can mislead operators into exposing credentials or authorizing risky filesystem and command actions for a skill that appears harmless on its face.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The summary and description combine Chinese and English phrasing, and the document continues primarily in Chinese without stating that language is configurable based on user preference. This can impose a language/locale experience on users without opt-in.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The declared exec capability is broader than what is needed for a skill whose stated purpose is creating algorithmic art with p5.js. Unnecessary execution privileges expand the attack surface and could allow arbitrary local commands or scripts to run if the skill is invoked or extended in unsafe ways.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The documentation introduces API keys, file handling, and command execution late in the skill without a clear upfront warning that using the skill may involve sensitive credentials or local system actions. This weakens informed consent and can lead users to authorize actions they would not expect from an algorithmic-art skill.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.