Security checks for vulnerabilities and agentic risk
Overview
This skill is a disclosed RunComfy wrapper for GPT Image 2 image generation and editing, with some installation and trigger-scope cautions but no hidden or malicious behavior found.
Install only if you intend to use RunComfy for image generation, are comfortable sending prompts and public reference-image URLs to RunComfy, and can manage the RunComfy token stored locally. Prefer a pinned or local CLI install where possible, and use explicit GPT Image 2 wording to avoid accidental routing of generic image requests.
Insecure DependenciesIntroduces malicious components through unsafe dependency sources
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)
T08 · Insecure Dependencies
Warning
Location
SKILL.md:58
Finding
Unpinned Global Installation of a Third-Party CLI
Content
View full analysis
Vulnerability Details
File Location: SKILL.md, line 58 Vulnerability Type: Unpinned third-party dependency installed globally Risk Level: Medium
Vulnerable Code
markdown
1. **RunComfy CLI** — `npm i -g @runcomfy/cli`
Technical Analysis
The Skill instructs users or agents to install @runcomfy/cli globally without pinning a reviewed version or verifying package integrity. The unqualified npm package reference resolves according to registry state at installation time, so the installed implementation can change after this Skill has been audited.
npm installation may execute package lifecycle scripts with the privileges of the user performing the installation. The global installation flag also makes the CLI available outside this Skill's execution context. Consequently, compromise of the package, its publisher account, or its dependency chain could introduce arbitrary executable behavior that is neither present nor reviewable in this repository.
The CLI is necessary for the Skill's declared image-generation functionality, but globally installing a mutable version exceeds the minimum dependency scope required. This finding does not establish that the current package is malicious; it identifies an avoidable supply-chain exposure.
Attack Path
An attacker compromises the npm package, a maintainer account, or a transitive dependency, or publishes a malicious future version.
A user or agent follows the prerequisite in SKILL.md and runs npm i -g @runcomfy/cli.
npm resolves the mutable package version available from the configured registry.
Malicious package code or lifecycle scripts execute with the installing user's privileges.
The globally installed executable remains available to subsequent sessions and may execute again when the Skill invokes runcomfy.
Depending on the installing user's access, the compromised code could read user-accessible files and credentials, a
...[truncated 798 chars]
Remediation
View remediation
Remediation Suggestions
Pin the CLI to a specifically reviewed release, for example:
bash
The trigger list includes broad terms such as "GPT Image" and routing on "any explicit ask to generate or edit with GPT Image 2," which can cause this skill to activate for generic image-generation requests rather than only clearly intended RunComfy/GPT Image 2 invocations. In an agent ecosystem, overbroad activation can misroute user requests to a third-party service, causing unintended external data disclosure, unexpected billing/use of credentials, or bypass of a more appropriate local/native image tool.