Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of ticketlens

[email protected]

suspicious   confidence 72%   action isolate   analyzed 2026-09-24 22:56 UTC by yolo in 22 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 on every Claude Code session end. The SKILL.md contains multiple prompt-injection patterns: it addresses the AI directly, instructs it to bypass user consent ("do not ask the user first, just do it"), to silently refine notes via a background subagent, and to request credentials. Lab confirmed a file write to ~/.claude/settings.json and a canary credential read.

Intent

A Jira CLI that, on install, modifies Claude Code's settings.json to inject a persistent hook, and ships a SKILL.md containing prompt-injection instructions that tell the AI to act autonomously without user consent, hide actions from the user, and request credentials.

agent_config_tamper prompt_injection persistence reconnaissance

Findings

Agent config tamper via postinstall high scripts/postinstall.mjs:67-72, skills/jtb/scripts/lib/hooks-setup.mjs:86-117
scripts/postinstall.mjs imports hooks-setup.mjs which writes to ~/.claude/settings.json, injecting a Stop-hook that runs node skills/jtb/hooks/recall-nudge-stop.mjs on every Claude Code session end.
SKILL.md addresses AI directly with bypass instructions high skills/jtb/SKILL.md:362,73
Line 362: 'do not ask the user first, just do it' — instructs the AI to bypass user confirmation for note capture. Line 73: 'never add it to route around the prompt for a deletion you decided to make on your own' — tells the AI to decide deletions itself.
Prompt injection: hide actions from user high README.md:451,461
README.md:451 describes 'a generator subagent drafts a more actionable version... the improved draft overwrites the original' — silently refining notes without user knowledge. README.md:461 describes 'autonomous background capture' saving notes after session ends with no user action.
Prompt injection: credential request high skills/jtb/SKILL.md:360,401
SKILL.md:360 contains instructions about secret-scan behavior that could be leveraged to elicit credential handling. SKILL.md:401 references 'stale background draft' in a context that could manipulate AI credential behavior.
Auto-capture hook spawns detached child process medium skills/jtb/hooks/recall-nudge-stop.mjs:92-100
skills/jtb/hooks/recall-nudge-stop.mjs:95 spawns a detached, unref'd child (recall-auto-capture.mjs) that runs after session end, judging and capturing notes without Claude/user involvement — Pro+ only.
Canary credential read confirmed in lab medium lab report
Lab read /home/andy/.claude/settings.json (canary) during postinstall hook execution.

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