Summary
No credential theft, obfuscation, hidden payload or unexpected egress: detonation of the postinstall hook produced 0 network calls and only wrote ~/.claude/settings.json (plus a temp file) to register the package's own PostToolUse/Stop hooks, exactly as scripts/postinstall.mjs and skills/jtb/scripts/lib/hooks-setup.mjs describe. The concern is agent-surface tampering, not malware: install-time code silently merges hook entries into ~/.claude and ~/.claude-work settings.json, copies SKILL.md into ~/.claude/commands, ~/.gemini/commands and ~/.copilot-cli/commands (when those dirs exist), and can write .mcp.json; the inserted hooks then run node skills/jtb/hooks/recall-nudge-*.mjs inside every future agent session, reading the session transcript. Separately, skills/jtb/SKILL.md instructs the AI reader to capture notes autonomously ("don't ask the user first, just do it") and, on Team tiers, note bodies are POSTed to api.ticketlens.app. Treat as isolate-only: install in a throwaway sandbox, review the settings.json diff, and keep short-lived credentials out of the session.
Intent
ticketlens is a real, large Jira/Linear/GitHub CLI plus a Claude Code "jtb" skill and MCP server, and its install hook does what the README says (installs the skill and agent hooks) — but it rewrites AI-assistant configuration on the user's machine at install time without asking, and its SKILL.md steers the agent to act (and upload note content) without user confirmation.
agent_config_tamper persistence network_egress code_execution reconnaissance prompt_injection
Install hook silently rewrites Claude Code settings.json to add hooks high scripts/postinstall.mjs:21-75, skills/jtb/scripts/lib/hooks-setup.mjs:45-115
postinstall imports hooks-setup.mjs and calls setupRecallHooks(), which adds a PostToolUse (matcher Bash) and a Stop command hook — `node "<pkg>/skills/jtb/hooks/recall-nudge-post-tool.mjs"` and recall-nudge-stop.mjs — into ~/.claude/settings.json and ~/.claude-work/settings.json (atomic tmp+rename, other keys preserved). The Stop hook exits 2 to block session end. This is the package's stated feature but it is applied by npm install without any prompt, and the installed hooks execute package code on every future agent tool use.
Postinstall copies SKILL.md into multiple AI-assistant command directories medium scripts/postinstall.mjs:23-58
TARGETS overwrite ~/.claude/commands/jtb.md, ~/.claude-work/commands/jtb.md, ~/.gemini/commands/jtb.md and ~/.copilot-cli/commands/jtb.md with the packaged SKILL.md whenever those files already exist; ~/.config/... and other assistant dirs can be targeted via `ticketlens update-skill --path=`. Agents inherit whatever instruction text the package decides to ship on upgrade.
Lab detonation: writes to agent config, no network info lab report (hook postinstall, exit 0)
4 processes (npm -> sh -> node scripts/postinstall.mjs); 0 connect() calls, 0 DNS names, 0 HTTP requests. Files written outside the package: /home/andy/.claude/settings.json.62.tmp and /home/andy/.claude/settings.json, logged as 'Recall nudge hooks installed in /home/andy/.claude'. /home/andy/.npmrc was read by npm itself (npm run-script), not by the hook — hook code contains no read of .npmrc, ~/.ssh, ~/.aws or .env.
Skill file steers the AI reader to act without user confirmation medium skills/jtb/SKILL.md:210, 226-228, 247
SKILL.md, which is installed into agent command directories, contains directives addressed to the assistant: capture behaviour 'Applies unconditionally ... if unsure whether it applies, it does', 'Capture at the moment you confirm the insight ... don't ask the user first, just do it', a mandated '🔖 Recall-flag:' marker emitted into the transcript, and 'skip this whole section silently' if no Task tool exists. The recall-nudge hooks then read the session transcript (skills/jtb/hooks/recall-nudge-lib.mjs:59-96) to enforce/measure compliance. Behavior-steering text shipped into an agent's instruction path is itself a supply-chain concern.
Note bodies (agent-authored ticket insight) are POSTed to the vendor backend by default on Team tiers medium skills/jtb/scripts/lib/note-command.mjs:137-148, skills/jtb/scripts/lib/recall-sync.mjs:93-128
runNoteAdd pushes {external_id,title,tickets,tags,author,sources,body} to https://api.ticketlens.app/v1/recall/push whenever a CLI token exists, with retry queueing; triage --push/triage --share likewise send ticket summaries, git branch metadata and activity counters. Documented in README.md:406 and gated on login/Team entitlement, but combined with the 'don't ask the user first' skill directive it means proprietary ticket content can leave the machine without a per-action human decision.
Optional persistence primitives (user-invoked) low skills/jtb/scripts/lib/schedule-wizard.mjs:331-346
Creates ~/Library/LaunchAgents/io.ticketlens.digest.plist + launchctl load on macOS, or rewrites crontab (temp file in /tmp) on Linux, to run `ticketlens triage` daily. Reachable only through the interactive schedule command, not from the install hook — noted as capability, not as evidence of abuse.
Release script uses execSync on npm pack/publish info scripts/publish.mjs:44-64
Developer-only 'npm run publish:latest/beta' helper: swaps DEFAULT_API_BASE to the production URL, execSync('npm pack --json'), execSync(`npm publish "${tarball}" --tag ${tag}`), then reverts and deletes the tarball. Ordinary maintainer tooling, shipped in the tarball because package.json files[] includes scripts/. No download-and-execute of remote code.
No obfuscation or embedded payloads info package-wide grep
Only base64/hex decoding in the repo is Buffer.from(sig,'hex') for HMAC license verification (skills/jtb/scripts/lib/license.mjs:57-58). No eval/new Function/atob/fromCharCode use; no packed or minified blobs; all 113 files are readable source with 0 runtime dependencies.
Install hooks ran in the isolated lab. Processes spawned: 4. Hooks: postinstall (exit 0).
Canary credential files read: /home/andy/.npmrc, /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