Back to skill

Security audit

Fidacy Crabtrap Verdicts

Security checks for vulnerabilities and agentic risk

Overview

The skill is coherent, but it asks users to install an unpinned external adapter that handles local audit events and an API key while understating the remaining risks.

Review this before installing. Use a pinned and audited package version if available, run it under a dedicated low-privilege account, scope and rotate the Fidacy API key, and confirm what CrabTrap event data is transmitted, logged, retained, and redacted.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T08 · Insecure Dependencies

Warning
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: Medium

The 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/crabtrap does 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:write scope. 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

  1. Pin the adapter and verifier to exact, reviewed versions rather than allowing npm to resolve the current release.
  2. Provide a package manifest and committed lockfile so direct and transitive dependency versions are reproducible.
  3. Use npm integrity metadata and package provenance verification; document the expected publisher, package identity, digest, and provenance checks.
  4. 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.
  5. Review package lifecycle scripts and disable unnecessary installation scripts where operationally feasible.
  6. Run the adapter under a dedicated, unprivileged service account with a minimal filesystem view and an allowlisted network policy.
  7. Store the API key in an approved secret manager, issue only the required scope, rotate it regularly, and monitor it for unexpected use.
  8. Minimize or redact event content before external transmission. Document the exact fields transmitted, external retention policy, access controls, and deletion process.
  9. 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.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (1)

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 36)May include surrounding context.

md
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.