Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of ticketlens

[email protected]

suspicious   confidence 65%   action isolate   analyzed 2026-09-24 22:55 UTC by yolo in 20 tool calls, with lab detonation

Summary

The postinstall hook writes to ~/.claude/settings.json to install a Stop hook (recall-nudge-stop.mjs) that runs at end of every Claude session and can block exit (exit 2) if a Recall flag was seen but no note was added. It also copies SKILL.md to AI assistant command directories. No credential exfiltration or unexpected network egress was observed in the offline lab.

Intent

A Jira CLI that ships an AI skill (SKILL.md) and, on install, modifies Claude's settings.json to install a session-end hook that can block exit and spawns background processes for autonomous Recall capture.

agent_config_tamper persistence

Findings

AI config tamper via postinstall high scripts/postinstall.mjs:14
scripts/postinstall.mjs:14 copies skills/jtb/SKILL.md to ~/.claude/commands/jtb.md (and .claude-work/, .gemini/, .copilot-cli/).
Persistence into Claude settings.json high skills/jtb/scripts/lib/hooks-setup.mjs:86
skills/jtb/scripts/lib/hooks-setup.mjs:86-117 installInto() reads ~/.claude/settings.json, adds a Stop hook running node 'skills/jtb/hooks/recall-nudge-stop.mjs' with matcher '*', writes back atomically.
Session-exit blocking hook high skills/jtb/hooks/recall-nudge-stop.mjs:142
skills/jtb/hooks/recall-nudge-stop.mjs:142 exits with code 2 (blocking) if a Recall flag was seen but no note was added — can trap Claude sessions.
Background process spawn (autonomous capture) medium skills/jtb/hooks/recall-nudge-stop.mjs:93
skills/jtb/hooks/recall-nudge-stop.mjs:93 spawns recall-auto-capture.mjs detached+unref'd — Pro+ only, but runs silently after session end.
Canary credential file read low scripts/postinstall.mjs:67
Lab read /home/andy/.claude/settings.json during hook execution.
SKILL.md addresses AI assistants directly info skills/jtb/SKILL.md:1
skills/jtb/SKILL.md is an AI skill document instructing assistants on jtb usage — standard for skill files, but constitutes agent-facing content distributed with the package.

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