T08 · Insecure Dependencies
- Location
SKILL.md:26- Finding
Unpinned npm Packages Are Downloaded and Executed
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:26-35; additional occurrences inREADME.md:17-27andreferences/qiguan.md:73-87
Vulnerability Type: Unpinned third-party package retrieval and execution
Risk Level: MediumVulnerable Code
SKILL.md:26-35markdown Use the published `sysu-anything` CLI instead of re-deriving campus APIs. Prefer the installed binary. If `sysu-anything` is missing, install the compiled package with `npm i -g sysu-anything` or use one-off calls via `npx -y sysu-anything@latest ...`. If the user is actively developing the local repo, the checked-out workspace build is also acceptable. If the user explicitly wants Apple Calendar / Apple Reminders integration on macOS, switch to the separate Apple entrypoint described in `references/apple.md`. ## First step 1. Confirm the runtime path: - preferred: `sysu-anything` - one-off fallback: `npx -y sysu-anything@latest` - local-dev fallback inside the repo: `npm run build`README.md:17-27markdown Install for OpenAI Codex / Codex Cloud: ```bash npx -y sysu-anything-cli-skill@latest deploy --target codexBuild a portable AI IDE bundle:
bash npx -y sysu-anything-cli-skill@latest deploy --target ai-ide --dest ./SYSU-Anything.skilltext `references/qiguan.md:73-87` ```markdown If missing, it can be restored locally: ```bash npm install -g qg-skillOr enter the local project:
bash cd /Users/baihe/Documents/岐关车cli npm install npm run build npm linktext ### Technical Analysis The Skill instructs the Agent or user to retrieve and immediately execute mutable npm package releases. In particular, `npx -y ...@latest` automatically accepts installation and executes whatever package version the registry currently identifies as the latest release. Neither an exact package version nor an integrity digest is specified. Global npm installation can ...[truncated 2060 chars]- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an exact, reviewed package version. - Require explicit user approval before downloading or executing a missing package.
- Use a lockfile and npm integrity metadata for development and deployment dependencies.
- Verify package provenance, publisher identity, signatures, and release checksums where supported.
- Avoid global installation when a project-local, locked dependency can be used.
- Use
--ignore-scriptswhere lifecycle scripts are not required, followed by an explicit and reviewed build step. - Document the expected package owner, repository, exact version, and checksum.
- Treat upgrades as separate reviewed actions rather than silently resolving to the latest release.
- Run campus tooling with the minimum filesystem and network privileges necessary, particularly because the runtime can access persisted authentication tokens.
- Replace
