T08 · Insecure Dependencies
Warning
- Location
- references/create.md:34
- Finding
- Automatic Execution of an Unpinned Remote Dependency During Project Creation## Vulnerability Details **File Location**: `references/create.md`, lines 34-39 **Vulnerability Type**: Supply-chain exposure through unpinned remote package execution **Risk Level**: Medium ### Vulnerable 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 directory ``` ### Technical Analysis The documented project-creation workflow automatically invokes `npx` to retrieve and install `insforge/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 `insforge` CLI and the package retrieved by `npx` were not included in the audited project. ### Attack Path 1. An attacker compromises the remotely resolved package, its publishing account, its upstream repository, or the package-resolution infrastructure. 2. The attacker publishes modified content under the dependency name used by `npx`. 3. A user or Agent runs `insforge create`. 4. The CLI executes `npx skills add insforge/agent-skills` without selecting an immutable reviewed version. 5. The modified package is downloaded and processed with the pe ...[truncated 656 chars]
- Remediation
- ## Remediation Suggestions 1. Remove automatic Agent-skill installation from the minimum project-creation workflow. 2. Require explicit user confirmation or a separate opt-in flag before downloading or installing additional skills. 3. Pin the package to an exact version or, preferably, an immutable commit or content digest. 4. Verify downloaded artifacts using a trusted checksum or cryptographic signature before installation. 5. Use a lockfile and a trusted package registry with strict namespace controls. 6. Disable package lifecycle scripts unless they are required and independently reviewed. 7. Display the source, selected version, integrity value, and destination directory before installation. 8. In CI/CD, run installation in an isolated, least-privileged environment without unrelated secrets.
