T08 · Insecure Dependencies
- Location
SKILL.md:69- Finding
Unpinned Package Execution During Setup
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 69
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumVulnerable Code Snippet:
bash npx @inariwatch/mcp initTechnical Analysis
The recommended setup command invokes
@inariwatch/mcpthroughnpxwithout specifying an exact package version or integrity constraint. Consequently, the package resolved from the registry when the command is run may differ from the version reviewed during this audit.npxdownloads and executes package code locally. If the package, its dependency chain, its publisher account, or the package registry is compromised, a modified release could execute arbitrary commands under the invoking user's account. This is an insecure supply-chain practice even though no malicious behavior is present in the audited file itself.Attack Path
- An attacker compromises the package publisher, a transitive dependency, or the relevant registry distribution path.
- The attacker publishes a malicious version that satisfies the unversioned package request.
- A user follows the documented setup procedure and runs
npx @inariwatch/mcp init. npxretrieves the attacker-controlled version and executes its CLI or lifecycle code locally.- The payload operates with the invoking user's privileges and may access files, environment variables, credentials, and agent configuration available to that account.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the user running the setup command. The accessible scope may include the user's local files, environment variables, OpenClaw configuration, stored credentials, and
INARIWATCH_TOKENif it is present in the process environment or readable configuration. Any further privilege gain would depend on the invoking account's existing permissions; the audited material does not establish administrat ...[truncated 22 chars]- Remediation
View remediation
Remediation Suggestions
-
Pin the command to a reviewed, immutable package version, for example:
bash npx --yes @inariwatch/mcp@X.Y.Z init -
Document the expected package publisher, registry, release version, and integrity digest.
-
Verify package provenance and signatures where supported by the distribution platform.
-
Audit direct and transitive dependencies before updating the pinned version.
-
Use a lockfile and integrity-checked installation workflow where practical.
-
Consider installing the reviewed package in a restricted environment before execution.
-
Avoid exposing unrelated secrets to the setup process and apply least-privilege filesystem and environment access.
-
