Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of ticketlens

[email protected]

suspicious   confidence 72%   action isolate   analyzed 2026-09-23 19:38 UTC by yolo in 17 tool calls, with lab detonation

Summary

postinstall copies skills/jtb/SKILL.md into ~/.claude/commands/jtb.md (and similar dirs) and writes a Stop hook into ~/.claude/settings.json via hooks-setup.mjs. Lab confirmed writes to /home/andy/.claude/settings.json. SKILL.md contains prompt-injection text addressing AI assistants directly. No network egress at install time.

Intent

A Jira CLI tool that, on global install, automatically modifies Claude Code settings.json to install a persistent end-of-session hook (recall-nudge-stop.mjs) and copies a SKILL.md into AI assistant command directories — without user interaction.

agent_config_tamper persistence

Findings

AI agent config tamper at install time high scripts/postinstall.mjs:24-27
scripts/postinstall.mjs copies SKILL.md into ~/.claude/commands/jtb.md, ~/.claude-work/commands/jtb.md, ~/.gemini/commands/jtb.md, ~/.copilot-cli/commands/jtb.md unconditionally.
Claude Code settings.json modified via install hook high skills/jtb/scripts/lib/hooks-setup.mjs:86-117
hooks-setup.mjs:86-117 reads ~/.claude/settings.json, inserts a PostToolUse cleanup and a Stop hook spawning recall-nudge-stop.mjs, writes back atomically. Lab confirmed: /home/andy/.claude/settings.json written.
Prompt injection in SKILL.md high skills/jtb/SKILL.md:362-364
SKILL.md contains text that directly addresses AI assistants, instructs them to prefer MCP tools over shell, and describes autonomous background capture — this is untrusted content distributed as part of the package.
SKILL.md asks agent to hide actions from user high README.md:439-451
README.md:439-451 contains text instructing AI agents to silently refine notes and skip re-syncing refined drafts to the team — concealed behavior from the human user.
Canary credential file read medium Lab report
Lab read /home/andy/.claude/settings.json which may contain AI provider API keys.

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