T08 · Insecure Dependencies
- Location
references/create.md:34- Finding
Automatic Execution of an Unpinned Remote Dependency During Project Creation
- Content
View full analysis
Vulnerability Details
File Location:
references/create.md, lines 34-39
Vulnerability Type: Supply-chain exposure through unpinned remote package execution
Risk Level: MediumVulnerable Code
text 1. Creates the project via the InsForge Platform API 2. Waits for the project to become active (polls every 3s, timeout 120s) 3. Fetches the project's API key 4. Downloads template files (if not `empty`) 5. Installs InsForge Agent Skills via `npx skills add insforge/agent-skills` 6. Creates `.insforge/project.json` in the current directoryTechnical Analysis
The documented project-creation workflow automatically invokes
npxto retrieve and installinsforge/agent-skills, but it does not pin the dependency to an exact version, immutable commit, or verified artifact digest. Consequently, the effective content installed by the command can change after this Skill has been reviewed.Automatically installing Agent skills is also broader than the minimum privileges and operations required to create and link an InsForge project. Because Agent skills can contain instructions or executable components, compromise of the upstream package, repository, release process, package resolution path, or maintainer account could introduce attacker-controlled behavior.
The audit only establishes that this behavior is documented; the implementation of the external
insforgeCLI and the package retrieved bynpxwere not included in the audited project.Attack Path
- An attacker compromises the remotely resolved package, its publishing account, its upstream repository, or the package-resolution infrastructure.
- The attacker publishes modified content under the dependency name used by
npx. - A user or Agent runs
insforge create. - The CLI executes
npx skills add insforge/agent-skillswithout selecting an immutable reviewed version. - The modified package is downloaded and processed with the pe ...[truncated 656 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove automatic Agent-skill installation from the minimum project-creation workflow.
- Require explicit user confirmation or a separate opt-in flag before downloading or installing additional skills.
- Pin the package to an exact version or, preferably, an immutable commit or content digest.
- Verify downloaded artifacts using a trusted checksum or cryptographic signature before installation.
- Use a lockfile and a trusted package registry with strict namespace controls.
- Disable package lifecycle scripts unless they are required and independently reviewed.
- Display the source, selected version, integrity value, and destination directory before installation.
- In CI/CD, run installation in an isolated, least-privileged environment without unrelated secrets.
