The postinstall hook silently enables telemetry on a fresh install, including prompt capture, which meets the warning-level rule for install-hook telemetry enabled by default. The hook itself only writes a preference, and the default telemetry endpoint is localhost.
Static reason
One or more suspicious static signals were detected.
Trigger
npm install when no telemetry preference file exists and HAR_SKIP_TELEMETRY_POSTINSTALL is not set to 1.
Impact
Subsequent HAR telemetry setup can export agent activity, including user prompt text, without an explicit opt-in during installation.
Mechanism
The hook writes an enabled preference with metrics, logs, prompts, and traces set to true. HAR later configures telemetry exporters using the Control API URL.
Evidence
package.jsonscripts/ensure-telemetry-default.cjsdist/index.js~/.har/telemetry.json
Network endpoints3
localhost:3847/api/otel/v1/traceslocalhost:3847/api/otel/v1/metricslocalhost:3847/api/otel/v1/logs