Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of ticketlens

[email protected]

suspicious   confidence 60%   action isolate   analyzed 2026-09-23 09:48 UTC by yolo in 13 tool calls, with lab detonation

Summary

The postinstall hook copies skills/jtb/SKILL.md into AI assistant command directories (e.g. ~/.claude/commands/jtb.md) and installs a persistent hook into Claude Code's settings.json that runs a script on every tool call. This modifies the AI assistant's runtime behavior automatically on install.

Intent

A Jira CLI tool that also installs an AI assistant skill and runtime hooks on npm install.

agent_config_tamper persistence

Findings

AI assistant config modification on install medium scripts/postinstall.mjs:24
scripts/postinstall.mjs copies SKILL.md to ~/.claude/commands/jtb.md (and similar for .claude-work, .gemini, .copilot-cli).
Persistent hook installation into Claude Code medium skills/jtb/scripts/lib/hooks-setup.mjs:86-117
hooks-setup.mjs installs a PostToolUse/Stop hook into ~/.claude/settings.json that runs skills/jtb/hooks/recall-nudge-stop.mjs on every tool call.
SKILL.md contains AI instructions info skills/jtb/SKILL.md:111
skills/jtb/SKILL.md contains instructions for AI assistants on how to use ticketlens commands, including when to prefer MCP tools over bash.

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