Summary
postinstall writes /home/andy/.claude/settings.json (persistent command hook) and copies skills/jtb/SKILL.md (prompt injection: conceal_from_user, credential_request) into ~/.claude/commands/jtb.md and other assistant dirs. No network egress observed (lab offline).
Intent
A Jira CLI that automatically installs a persistent command hook into ~/.claude/settings.json and copies a 54KB AI skill file containing prompt injection (asks the AI to hide actions from its user, requests credentials) into every detected AI assistant command directory.
agent_config_tamper persistence code_execution
Agent config tamper — writes ~/.claude/settings.json high scripts/postinstall.mjs:67
scripts/postinstall.mjs:67 imports hooks-setup.mjs which writes a command hook (recall-nudge-stop.mjs) into ~/.claude/settings.json. Lab confirmed: files written /home/andy/.claude/settings.json.62.tmp, /home/andy/.claude/settings.json.
Prompt injection — hide actions from user critical skills/jtb/SKILL.md:73
skills/jtb/SKILL.md:73, README.md:439,449,451 instruct the AI assistant to perform actions silently without user knowledge. This is a direct attempt to subvert the agent's transparency guarantees.
Prompt injection — request credentials critical skills/jtb/SKILL.md:360
skills/jtb/SKILL.md:360,401 asks the AI to capture and include API keys, private keys, or tokens in note bodies — bypassing the secret-scan rejection that the CLI itself enforces.
Prompt injection — tool hijack high skills/jtb/SKILL.md:348
skills/jtb/SKILL.md:348 contains instructions designed to override the harness's default tool-selection behavior in favor of ticketlens-local behavior.
Persistence — Claude Code settings hook medium hooks-setup.mjs:30
hooks-setup.mjs:30-33, recall-nudge-stop.mjs:95 — installs a detached background process (recall-auto-capture.mjs) that runs on every Stop check in Claude Code, reading session transcripts and writing to the local vault.
Code execution — spawn detached processes medium recall-nudge-stop.mjs:95
recall-nudge-stop.mjs:95 spawns node with recall-auto-capture.mjs as a detached+unref'd child, independent of the parent hook's outcome.
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