T08 · Insecure Dependencies
- Location
SKILL.md:25- Finding
Unpinned Third-Party npm Package Operates on Sensitive Audit Events
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 25-34
Vulnerability Type: Unpinned and unaudited third-party dependency
Risk Level: MediumThe skill directs users to install an external npm package without pinning a reviewed version or providing an integrity constraint:
text 1. Install the adapter next to your CrabTrap deployment: `npm i @fidacy/crabtrap` (Apache-2.0). You need a free engine API key from https://app.fidacy.com/signup (scope assess:write). 2. Point it at CrabTrap's event stream (SSE) and it does the rest: for each local decision it requests a signed Fidacy verdict (kind: custom) and logs the pair. Observe mode means zero risk: nothing in CrabTrap's enforcement path changes. 3. Verify any produced verdict independently with `@fidacy/verify` against the public JWKS at https://api.fidacy.com/.well-known/jwks.json, or at https://fidacy.com/verify. `signing_valid: true` is the artifact you hand the counterparty.Technical Analysis
The command
npm i @fidacy/crabtrapdoes not specify an exact package version or integrity digest. Consequently, the code installed and executed depends on whichever release the npm registry resolves at installation time. The repository contains no package manifest, lockfile, integrity hash, vendored implementation, or adapter source from which that external code's behavior could be verified.This dependency is especially security-sensitive because the instructions give it access to CrabTrap's SSE decision stream and require an API credential with
assess:writescope. It also sends decision information to an external service. A compromised maintainer account, malicious future release, registry compromise, or dependency-chain compromise could therefore introduce behavior not represented in the audited repository.The statement that observe mode presents “zero risk” applies only to CrabTrap's enforcement path. It does n ...[truncated 1847 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the adapter and verifier to exact, reviewed versions rather than allowing npm to resolve the current release.
- Provide a package manifest and committed lockfile so direct and transitive dependency versions are reproducible.
- Use npm integrity metadata and package provenance verification; document the expected publisher, package identity, digest, and provenance checks.
- Publish or vendor the adapter source corresponding to the pinned version so its handling of event data, credentials, logs, and network requests can be audited.
- Review package lifecycle scripts and disable unnecessary installation scripts where operationally feasible.
- Run the adapter under a dedicated, unprivileged service account with a minimal filesystem view and an allowlisted network policy.
- Store the API key in an approved secret manager, issue only the required scope, rotate it regularly, and monitor it for unexpected use.
- Minimize or redact event content before external transmission. Document the exact fields transmitted, external retention policy, access controls, and deletion process.
- Avoid the absolute “zero risk” claim. Clearly state that observe mode avoids changing enforcement decisions but still introduces dependency, confidentiality, credential, privacy, and availability risks.
