T08 · Insecure Dependencies
- Location
SKILL.md:23- Finding
Unpinned and Unverifiable Third-Party CLI Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:23-31
Vulnerability Type: Supply-chain exposure through unpinned package installation and execution
Risk Level: MediumVulnerable Code
bash npm install -g @posteahora/cli # or pnpm install -g @posteahora/climarkdown The installed command is `posteahora`. It can also run via `npx @posteahora/cli`.The same unsafe installation pattern is also documented at:
README.md:49-62QUICK_START.md:5-9
Technical Analysis
The Skill instructs the agent to install or execute
@posteahora/cliwithout pinning a reviewed package version or requiring integrity or provenance verification. Global installation also makes the selected package executable outside an isolated project environment. Using an unversionednpxcommand may download and immediately execute the package currently resolved by the registry.The audited project contains only Markdown documentation and does not include the CLI implementation, a lockfile, an integrity hash, or another locally reviewable artifact. Consequently, this audit cannot verify the external package's lifecycle scripts, runtime behavior, credential handling, filesystem access, media-upload implementation, or network requests.
This behavior is relevant to the pre-scan warning concerning sensitive network transmission. The documented API-key validation, account discovery, analytics access, post publication, and media upload are consistent with the Skill's declared functionality. However, their implementation is delegated to the unreviewed dependency. The latest package resolved at installation time may differ from the version intended when the Skill was reviewed.
Attack Path
- An attacker compromises the package publisher account, registry distribution path, or a future package release.
- The malicious version is published under the same package name.
- The agent follows the Skill instructions and runs an unversioned global installatio ...[truncated 1537 chars]
- Remediation
View remediation
Remediation Suggestions
-
Pin the CLI to an explicitly reviewed version, for example:
bash npm install -g @posteahora/cli@X.Y.Z -
Prefer a project-local installation over a global installation and invoke the pinned local binary.
-
Commit a lockfile that records the exact resolved package and integrity metadata.
-
Verify package provenance, publisher identity, registry source, signatures where available, and integrity hashes before execution.
-
Avoid unversioned
npxexecution. Ifnpxis retained, specify an exact version and prevent unexpected package resolution. -
Include the reviewed CLI source or a reproducibly built, integrity-verified artifact in the audit scope.
-
Execute the CLI in a restricted environment with access only to required media files and configuration.
-
Use a narrowly scoped API key if the service supports scopes, and rotate it after suspected package or host compromise.
-
Document the exact network destinations used for authentication, API requests, and presigned uploads. Restrict outbound traffic to those expected destinations where practical.
-
Ensure the credential file has owner-only permissions and avoid passing live keys in command-line arguments, where process listings or shell history may expose them.
-
