T08 · Insecure Dependencies
- Location
SKILL.md:14- Finding
Unpinned Executable npm Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 14–17
Vulnerability Type: Unpinned third-party executable dependency
Risk Level: MediumVulnerable Code
yaml install: - kind: node package: "@migma/cli" bins: [migma]Technical Analysis
The installation configuration specifies
@migma/cliwithout an exact version, lockfile, checksum, or package integrity hash. Consequently, installation may resolve to a newer package release than the one originally reviewed.Because this dependency supplies the executable
migmacommand, a compromised or malicious future release could execute code through npm lifecycle hooks during installation or whenever the CLI is invoked. Normal use also gives the CLI access toMIGMA_API_KEYand passes email content, contact information, recipient addresses, and campaign details to it.The audit found no evidence that the currently referenced package is malicious. The vulnerability is the absence of controls ensuring that future installations retrieve the same reviewed artifact.
Attack Path
- An attacker compromises the npm publisher account, package release process, or another relevant supply-chain component for
@migma/cli. - The attacker publishes an altered release containing malicious installation hooks or CLI behavior.
- A user installs the Skill, and the unversioned dependency resolves to the altered release.
- Malicious code executes during package installation or a subsequent
migmainvocation. - The code accesses data available to the process, potentially including
MIGMA_API_KEY, email content, contacts, recipient information, and campaign configuration. - The attacker may exfiltrate those assets or use the API credential to perform actions permitted by the associated Migma account.
Impact Assessment
Successful exploitation could provide code execution with the privileges of the user or service installing and running the CLI. It could expose the Migma API ...[truncated 418 chars]
- An attacker compromises the npm publisher account, package release process, or another relevant supply-chain component for
- Remediation
View remediation
Remediation Suggestions
- Pin
@migma/clito a reviewed, exact version rather than allowing implicit resolution to the latest release. - Use a lockfile and verify the package with an integrity hash or equivalent reproducible-installation control.
- Configure installation to use the expected npm registry and document the verified package publisher.
- Disable npm lifecycle scripts where operationally feasible, or review all required lifecycle scripts before permitting execution.
- Perform dependency provenance and signature verification when supported by the distribution channel.
- Run the CLI with least privilege and expose
MIGMA_API_KEYonly to the process that requires it. - Scope and rotate API credentials so that compromise has limited duration and account impact.
- Re-audit dependency updates before changing the pinned version.
- Pin
