Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of ticketlens

[email protected]

suspicious   confidence 60%   action isolate   analyzed 2026-09-24 22:53 UTC by yolo in 21 tool calls, with lab detonation

Summary

The postinstall hook writes to ~/.claude/settings.json, installing a Stop hook (recall-nudge-stop.mjs) that runs at Claude Code session end. This hook can spawn a detached child process (recall-auto-capture.mjs) to autonomously save notes from session transcripts (Pro+ only, uses user's existing login). No credentials were stolen; no unexpected network egress occurred in the lab.

Intent

A Jira CLI that automatically installs a background hook into Claude Code's settings on global npm install, enabling session-end nudges and (Pro+) autonomous note capture from session transcripts.

agent_config_tamper code_execution persistence

Findings

AI agent config tamper on install high scripts/postinstall.mjs:24-27, hooks-setup.mjs:86-117
scripts/postinstall.mjs copies SKILL.md to ~/.claude/commands/jtb.md and installs a Stop hook into ~/.claude/settings.json (recall-nudge-stop.mjs) that runs at session end.
Autonomous background note capture (Pro+) medium skills/jtb/hooks/recall-nudge-stop.mjs:93
recall-nudge-stop.mjs spawns recall-auto-capture.mjs as a detached, unref'd child process to judge and save notes from session transcripts without user action.
Canary credential file touched low Lab report
Lab read /home/andy/.claude/settings.json (the AI harness config) during postinstall. No canary credential files were read.
Publish script modifies source before npm pack info scripts/publish.mjs:54-69
scripts/publish.mjs swaps DEFAULT_API_BASE to prod URL, runs npm pack, reverts. Developer-only, not run during normal install.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 4. Hooks: postinstall (exit 0).

Canary credential files read: /home/andy/.claude/settings.json, /home/andy/.claude/settings.json.62.tmp

Files written outside the package: /home/andy/.claude/settings.json.62.tmp, /home/andy/.claude/settings.json