@darkhunt-security/endpoint-claude-code@0.9.25
Darkhunt endpoint adapter for Claude Code: hook codec, transcript mapper, plugin manifest.
AI Security Review
scanned 1mo ago · by lpm-firewall-aiThis is a first-party Claude Code capture plugin with no npm lifecycle hook. Session reads and uploads start only after explicit enrollment and send traces to that enrolled Darkhunt API, so the agent-path reads are package-aligned and user-invoked.
Decision evidence
public snapshot- package.json has no preinstall, install, or postinstall scripts. The only bin is endpoint-claude-code pointing at dist/bin/enroll.mjs.
- The forwarder, status, and backfill transcript mappers list only ~/.claude/projects as session roots. They run after the user enrolls, not during npm install.
- Enrollment takes a caller-supplied API key and defaults the API base to https://api.darkhunt.ai when no flag, environment value, or saved base is present.
- The forwarder constructs DarkhuntTelemetry with baseUrl and apiKey from the local enrolled config and posts traces there.
- spool.mjs appends events and spawns the forwarder only when loadRuntimeSettings succeeds and both enabled and capture.enabled are true. A missing config throws and is swallowed.
- logout.mjs clears the local Darkhunt endpoint credential file and marks the local config signed out.
- After the user installs the Claude plugin and enrolls, later sessions automatically spool transcripts and a detached forwarder ships them to the enrolled Darkhunt endpoint.
- Once a config file exists, capture defaults to enabled unless the user signs out or turns it off.
Source & flagged code
5 flaggedPackage source references child process execution.
dist/bin/enroll.mjsView on unpkg · L325Source sends credentials or rich application records to a package-controlled external receiver enabled by default.
dist/bin/logout.mjsView on unpkg · L10Findings
Affected versions and remediation
This report applies to @darkhunt-security/endpoint-claude-code@0.9.25.
See all versions of @darkhunt-security/endpoint-claude-code for other recorded verdicts.
- Review the evidence and your use of @darkhunt-security/endpoint-claude-code@0.9.25 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.