Back to skill

Security audit

npm

Security checks for vulnerabilities and agentic risk

Overview

The npm features fit their purpose, but a missing dependency can trigger execution of an unverified online installer without separate user approval.

Review the dependency setup before use. Install an independently verified CLI release yourself and require approval before the agent runs downloaded installers. Consider OOMOL's credential handling, npm permissions, and billing. The bundled text shows no credential theft or destructive behavior, but the external installer and hosted service remain unverified.

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
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (6)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The fallback setup expands a read-oriented npm task into downloading and executing an installer, without requiring explicit approval for local system changes. Installing the disclosed connector is a legitimate dependency rather than evidence of malicious purpose, but a missing CLI can trigger unverified remote code execution with the agent process's privileges.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied command performs authentication rather than the declared npm search/read operations. Nothing in the chunk establishes that this login is a supporting step for npm access. The command alone does not establish which service is authenticated or how credentials are handled.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

md
## Available actions

- `audit_package_versions` — Get npm security advisories for requested exact package versions.
- `get_current_user` — Get the npm username associated with the connected access token.
- `get_package` — Get a compact summary and version list for an npm package.
- `get_package_download_counts` — Get download totals for up to 128 npm packages over an inclusive period.
- `get_package_download_trend` — Get daily download counts for one npm package over an inclusive period.

External Script Fetching

High
Category
Supply Chain
Confidence
99% confidence
Finding

Piping the HTTPS response directly into Bash executes whatever the installer endpoint serves with the current process's privileges. HTTPS protects transport but does not establish that the script is an approved, immutable release, so endpoint or release-pipeline compromise could lead to local code execution and data theft.

Content

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

Fallback setup executes downloaded installation scripts without warning about remote code execution or system changes.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

Both setup examples execute downloaded code immediately, without an integrity check or explicit approval for installation and system changes. The missing-command prerequisite limits when this occurs, but it does not protect against a compromised installer endpoint or an unexpectedly invasive installer.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
80% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
- **`OOMOL_INSUFFICIENT_CREDIT`** — OOMOL billing stop. Recharge at `https://console.oomol.com/billing/token-recharge` before retrying.

- **HTTP 402 without `OOMOL_INSUFFICIENT_CREDIT`** — the third-party account itself has no active plan or credit. Report the provider error message as is; do not ask the user to recharge OOMOL.

## Resources