Back to skill

Security audit

Anygen Diagram Generator

Security checks for vulnerabilities and agentic risk

Overview

The skill mostly does what it claims, but it asks agents to install an external dependent skill with automatic confirmation and handles third-party rendering/authentication in ways users should review first.

Install only if you are comfortable sending diagram descriptions to AnyGen and allowing a dependent AnyGen skill to be installed. Review the dependency source/version first, avoid `-y` automatic confirmation, prefer `ANYGEN_API_KEY` or an interactive/browser login over pasting real keys into command arguments, and do not submit proprietary architecture or workflow details unless your AnyGen account and data handling terms are acceptable.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (2)

T08 · Insecure Dependencies

Error
Location
SKILL.md:87
Finding

Unpinned External Skill Installation with Automatic Confirmation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:87-94
Vulnerability Type: Supply-chain exposure through an unpinned external dependency
Risk Level: High

Vulnerable Code

bash
anygen skill install --platform claude-code -y

The surrounding instructions state that this command installs the required anygen-workflow-generate Skill and that -y skips interactive confirmation. However, the command does not identify that dependency by name, pin an immutable version, specify a trusted registry, or require signature or checksum verification.

Technical Analysis

The Skill directs the Agent to install remotely resolved Skill content while suppressing user confirmation. Because the dependency is neither explicitly selected nor pinned to a reviewed version, the effective installed content may differ between executions.

This creates a supply-chain trust boundary: compromise of the external Skill registry, mutable upstream content, package-resolution behavior, or dependency identity could cause unreviewed instructions or executable components to be installed. The risk is amplified because the Skill declares read, write, and exec tools, and a downloaded Skill could potentially direct the Agent to use those capabilities.

This finding is based on unsafe dependency installation instructions. The audited artifact does not contain the AnyGen CLI or downloaded dependency, so compromise of those external components was not directly verified.

Attack Path

  1. An attacker compromises the external Skill source, replaces mutable dependency content, or influences resolution to select an unintended package.
  2. The Agent follows SKILL.md and executes the installation command with -y.
  3. The installation proceeds without an interactive review of package identity, version, contents, or requested permissions.
  4. The Agent loads or follows the newly installed Skill.
  5. Attacker-controlled instructions or code ...[truncated 653 chars]
Remediation
View remediation

Remediation Suggestions

  1. Specify the exact dependency name in the installation command.
  2. Pin the dependency to an immutable, reviewed version rather than resolving the latest mutable release.
  3. Specify an approved registry or repository explicitly.
  4. Verify a cryptographic signature or published checksum before loading the dependency.
  5. Remove -y and require users to review the dependency identity, source, version, permissions, and installation plan.
  6. Install and execute third-party Skills in a restricted sandbox with minimal filesystem, command-execution, credential, and network access.
  7. Maintain a dependency lock file or allowlist and periodically audit installed Skill content.
  8. Fail closed if package identity, provenance, or integrity cannot be verified.

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:67
Finding

API Key Exposure Through Command-Line Arguments

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:67-71
Vulnerability Type: Sensitive credential exposure through process arguments and command logging
Risk Level: Medium

Vulnerable Code

bash
anygen auth login --api-key sk-your-api-keyxxxxxxxxxxxx

The displayed value is a placeholder rather than a real embedded secret. The vulnerability arises when a user replaces it with a genuine API key and passes that key directly as a command-line argument.

Technical Analysis

Command-line arguments may be exposed through shell history, process inspection utilities, terminal capture, Agent execution transcripts, telemetry, diagnostic output, or centralized command logs. Passing a secret via --api-key therefore expands its exposure beyond the authentication process.

The document separately recommends an environment variable, but it uses inconsistent names: authentication guidance refers to ANYGEN_API_KEY, while line 113 demonstrates the unrelated generic name API_KEY. This inconsistency can encourage users to fall back to the unsafe command-line form or misconfigure secret handling.

Attack Path

  1. A user substitutes a valid AnyGen API key into the documented command.
  2. The Agent or user executes the command in a shell.
  3. The complete command is retained in shell history, an Agent transcript, process metadata, terminal logs, telemetry, or another logging system.
  4. A local user, support operator, log reader, compromised process, or other party with access to those records obtains the key.
  5. The exposed key is replayed against AnyGen services until it is revoked or expires.

Impact Assessment

An attacker could obtain the same AnyGen service permissions granted to the compromised API key. Depending on the account and key scope, this could include unauthorized diagram-generation requests, consumption of paid quotas, access to resources exposed through the AnyGen account, and activity attri ...[truncated 248 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove instructions that place API keys directly in command-line arguments.
  2. Prefer an operating-system credential store, protected configuration file, or interactive stdin prompt that does not echo the secret.
  3. If environment variables are supported, consistently use the service-specific name ANYGEN_API_KEY.
  4. Ensure authentication commands and secret values are redacted from Agent transcripts, command logs, telemetry, and error reports.
  5. Disable shell tracing and command echoing around authentication operations.
  6. Warn users not to paste credentials into chat prompts or committed configuration files.
  7. Scope keys to the minimum required permissions, rotate them regularly, and revoke any key suspected of appearing in logs or process arguments.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • 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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (3)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The invocation guidance is overly broad, covering generic data analysis, reporting, and visualization tasks rather than narrowly scoping the skill to diagram generation. In agent ecosystems, vague trigger boundaries can cause the skill to activate in unrelated contexts, increasing the chance that sensitive user content is routed through its exec/network-enabled workflow and remote rendering service unnecessarily.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill sends user-provided diagram descriptions to www.anygen.io for server-side rendering, but the description does not present a prominent privacy warning at the point of use. This can lead users or agents to transmit proprietary architecture details, workflows, API interactions, or other sensitive content to a third-party service without informed consent.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill claims only whitelisted commands should be executed, yet its documented workflow directs the agent to run authentication and package installation commands that can modify the environment and establish external trust relationships. In an agent setting with exec/write tools, this expands the attack surface and can be abused to trigger unintended external installs or authentication flows, especially if later steps incorporate user-controlled parameters or platform identifiers.

Content

No source excerpt is available for this finding.