{"package":"ticketlens","version":"0.38.55","known":true,"status":"done","discovered_at":1790183813969,"has_install_script":true,"report_url":"https://andymal.com/packages/ticketlens/0.38.55","verdict":"suspicious","action":"isolate","confidence":0.6,"summary":"The postinstall hook writes to ~/.claude/settings.json, installing a Stop hook (recall-nudge-stop.mjs) that runs at Claude Code session end. This hook can spawn a detached child process (recall-auto-capture.mjs) to autonomously save notes from session transcripts (Pro+ only, uses user's existing login). No credentials were stolen; no unexpected network egress occurred in the lab.","intent":"A Jira CLI that automatically installs a background hook into Claude Code's settings on global npm install, enabling session-end nudges and (Pro+) autonomous note capture from session transcripts.","capabilities":["agent_config_tamper","code_execution","persistence"],"iocs":{"domains":[],"urls":[],"ips":[],"paths":["/home/andy/.claude/settings.json"],"hashes":["ae4ca31560997336392a0e2c07c72047d8a850b0"]},"analyzed_at":1790290428534,"detonated":true,"model":"yolo","post_url":"https://andymal.com/blog/2026-09-24-ticketlens-0.38.55","findings":[{"title":"AI agent config tamper on install","detail":"scripts/postinstall.mjs copies SKILL.md to ~/.claude/commands/jtb.md and installs a Stop hook into ~/.claude/settings.json (recall-nudge-stop.mjs) that runs at session end.","severity":"high","location":"scripts/postinstall.mjs:24-27, hooks-setup.mjs:86-117"},{"title":"Autonomous background note capture (Pro+)","detail":"recall-nudge-stop.mjs spawns recall-auto-capture.mjs as a detached, unref'd child process to judge and save notes from session transcripts without user action.","severity":"medium","location":"skills/jtb/hooks/recall-nudge-stop.mjs:93"},{"title":"Canary credential file touched","detail":"Lab read /home/andy/.claude/settings.json (the AI harness config) during postinstall. No canary credential files were read.","severity":"low","location":"Lab report"},{"title":"Publish script modifies source before npm pack","detail":"scripts/publish.mjs swaps DEFAULT_API_BASE to prod URL, runs npm pack, reverts. Developer-only, not run during normal install.","severity":"info","location":"scripts/publish.mjs:54-69"}],"lab":{"ok":true,"lab_version":2,"duration_ms":3206,"lab_ip":"10.77.0.154","hooks":[{"name":"postinstall","command":"node scripts/postinstall.mjs","exit":0,"timed_out":false,"seconds":0,"stdout_tail":"\n> ticketlens@0.38.55 postinstall\n> node scripts/postinstall.mjs\n\n  ℹ /jtb skill not installed in any known location.\n    To install: ticketlens update-skill\n  ✔ Recall nudge hooks installed in /home/andy/.claude\n\nTicketLens v0.38.55 (alias: tl) — Stop tab-switching. Start building. — https://github.com/ralphmoran/ticket-lens · https://npmjs.com/package/ticketlens · https://ticketlens.app · Ralph Moran\n\n  → New here? Run  tl  to launch the guided setup.\n  → Using an MCP-capable AI harness? Run  tl mcp install  in a project to register Recall as native tools.\n\n","stderr_tail":""}],"process_count":4,"processes":["npm run-script postinstall --if-present --ignore-scripts=false","node /usr/local/bin/npm run-script postinstall --if-present --ignore-scripts=false","sh -c node scripts/postinstall.mjs","node scripts/postinstall.mjs"],"network":{"connects":[],"dns":[],"http":[],"tls":[],"tcp":[]},"files_written":["/home/andy/.claude/settings.json.62.tmp","/home/andy/.claude/settings.json"],"files_deleted":[],"canary_reads":["/home/andy/.claude/settings.json","/home/andy/.claude/settings.json.62.tmp"],"canary_leaks":[],"persistence":["/home/andy/.claude/settings.json.62.tmp","/home/andy/.claude/settings.json"],"notes":[]},"static":{"manifest":{"name":"ticketlens","version":"0.38.55","description":"Jira CLI for developers — fetch ticket context, triage your queue, and stop tab-switching. Zero dependencies, all local.","scripts":{"test":"node --test 'skills/jtb/scripts/test/**/*.test.mjs'","postinstall":"node scripts/postinstall.mjs","prepublishOnly":"node scripts/preflight.mjs","publish:beta":"node scripts/publish.mjs --tag=beta","publish:latest":"node scripts/publish.mjs --tag=latest"},"install_hooks":{"postinstall":"node scripts/postinstall.mjs"},"bin":{"ticketlens":"bin/ticketlens.mjs","tl":"bin/ticketlens.mjs"},"dependencies":[],"author":"Ralph Moran","repository":"git+https://github.com/ralphmoran/ticket-lens.git","homepage":"https://github.com/ralphmoran/ticket-lens","license":"MIT","hasInstallScript":true},"files":[{"path":"scripts/publish.mjs","size":3196,"kind":"text","score":0.9692333333333334,"hits":["download_execute","code_execution","registry_abuse"]},{"path":"skills/jtb/scripts/lib/summarizer.mjs","size":8610,"kind":"text","score":0.7518333333333334,"hits":["credential_access","agent_config_tamper"]},{"path":"skills/jtb/hooks/recall-nudge-stop.mjs","size":7486,"kind":"text","score":0.7122333333333333,"hits":["code_execution","agent_config_tamper","browser_theft"]},{"path":"skills/jtb/SKILL.md","size":53066,"kind":"text","score":0.602,"hits":["download_execute","agent_config_tamper","inj:tool_hijack","inj:instruction_to_ai","inj:credential_request","inj:conceal_from_user"]},{"path":"skills/jtb/hooks/recall-nudge-lib.mjs","size":18213,"kind":"text","score":0.5880666666666667,"hits":["code_execution","agent_config_tamper","reconnaissance"]},{"path":"skills/jtb/scripts/lib/jira-client.mjs","size":36429,"kind":"text","score":0.568,"hits":["credential_harvest","network_egress"]},{"path":"skills/jtb/scripts/lib/mcp-server.mjs","size":33867,"kind":"text","score":0.5346666666666666,"hits":["credential_harvest","persistence"]},{"path":"skills/jtb/scripts/fetch-ticket.mjs","size":62111,"kind":"text","score":0.5345666666666666,"hits":["credential_harvest","code_execution"]},{"path":"skills/jtb/scripts/lib/profile-resolver.mjs","size":14644,"kind":"text","score":0.5013333333333334,"hits":["credential_harvest","persistence"]},{"path":"skills/jtb/scripts/lib/schedule-wizard.mjs","size":11988,"kind":"text","score":0.45089999999999997,"hits":["code_execution","persistence"]},{"path":"README.md","size":76802,"kind":"text","score":0.4175,"hits":["agent_config_tamper","inj:instruction_to_ai","inj:conceal_from_user"]},{"path":"skills/jtb/scripts/lib/doctor-checks.mjs","size":11300,"kind":"text","score":0.4175,"hits":["agent_config_tamper"]},{"path":"skills/jtb/scripts/lib/help.mjs","size":75042,"kind":"text","score":0.4175,"hits":["agent_config_tamper"]},{"path":"skills/jtb/scripts/lib/update-skill.mjs","size":3801,"kind":"text","score":0.4175,"hits":["agent_config_tamper"]},{"path":"skills/jtb/scripts/lib/machine-secret.mjs","size":1850,"kind":"text","score":0.401,"hits":["obfuscation"]},{"path":"package.json","size":1213,"kind":"text","score":0.3511666666666667,"hits":["agent_config_tamper","install_hook_shell"]},{"path":"scripts/postinstall.mjs","size":4281,"kind":"text","score":0.33416666666666667,"hits":["agent_config_tamper"],"role":"entry"},{"path":"skills/jtb/scripts/fetch-my-tickets.mjs","size":26603,"kind":"text","score":0.33416666666666667,"hits":["credential_harvest"]},{"path":"skills/jtb/scripts/lib/alias-status.mjs","size":2969,"kind":"text","score":0.33416666666666667,"hits":["credential_harvest"]},{"path":"skills/jtb/scripts/lib/jira-attachment-client.mjs","size":4118,"kind":"text","score":0.33416666666666667,"hits":["credential_harvest"]},{"path":"skills/jtb/scripts/lib/mcp-install.mjs","size":4129,"kind":"text","score":0.33416666666666667,"hits":["agent_config_tamper"]},{"path":"skills/jtb/scripts/lib/note-command.mjs","size":16048,"kind":"text","score":0.30100000000000005,"hits":["agent_config_tamper","reconnaissance"]},{"path":"skills/jtb/hooks/recall-auto-capture.mjs","size":4990,"kind":"text","score":0.25083333333333335,"hits":["agent_config_tamper"]},{"path":"skills/jtb/scripts/lib/attachment-downloader.mjs","size":6695,"kind":"text","score":0.25083333333333335,"hits":["credential_harvest"]},{"path":"skills/jtb/scripts/lib/triage-history.mjs","size":13551,"kind":"text","score":0.2505,"hits":["persistence"]},{"path":"skills/jtb/scripts/lib/branch-scanner.mjs","size":2104,"kind":"text","score":0.2004,"hits":["code_execution"]},{"path":"skills/jtb/scripts/lib/commit-linker.mjs","size":1977,"kind":"text","score":0.2004,"hits":["code_execution"]},{"path":"skills/jtb/scripts/lib/compliance-checker.mjs","size":4782,"kind":"text","score":0.2004,"hits":["code_execution"]},{"path":"skills/jtb/scripts/lib/drift-tracker.mjs","size":4315,"kind":"text","score":0.2004,"hits":["code_execution"]},{"path":"skills/jtb/scripts/lib/pr-assembler.mjs","size":6126,"kind":"text","score":0.2004,"hits":["code_execution"]},{"path":"skills/jtb/scripts/lib/browser-login.mjs","size":4610,"kind":"text","score":0.1604,"hits":["code_execution"]},{"path":"skills/jtb/scripts/lib/interactive-list.mjs","size":9765,"kind":"text","score":0.1604,"hits":["code_execution"]},{"path":"skills/jtb/scripts/lib/config-wizard.mjs","size":20820,"kind":"text","score":0.1505,"hits":["persistence"]},{"path":"skills/jtb/scripts/lib/hook-installer.mjs","size":4411,"kind":"text","score":0.1505,"hits":["persistence"]},{"path":"skills/jtb/scripts/lib/run-history.mjs","size":2191,"kind":"text","score":0.1505,"hits":["persistence"]},{"path":"skills/jtb/scripts/lib/triage-exporter.mjs","size":3168,"kind":"text","score":0.1505,"hits":["persistence"]},{"path":"skills/jtb/scripts/lib/triage-push.mjs","size":4876,"kind":"text","score":0.1505,"hits":["persistence"]},{"path":"skills/jtb/scripts/lib/triage-share.mjs","size":3295,"kind":"text","score":0.1505,"hits":["persistence"]},{"path":"skills/jtb/scripts/lib/mcp-handshake-checker.mjs","size":2705,"kind":"text","score":0.12040000000000001,"hits":["code_execution"]},{"path":"skills/jtb/scripts/lib/ticket-command.mjs","size":46758,"kind":"text","score":0.08350000000000002,"hits":["reconnaissance"]},{"path":"skills/jtb/scripts/lib/license.mjs","size":9702,"kind":"text","score":0.06683333333333333,"hits":["reconnaissance"]},{"path":"bin/ticketlens.mjs","size":36983,"kind":"text","score":0,"hits":[],"role":"entry"},{"path":"LICENSE","size":1068,"kind":"text","score":0,"hits":[]},{"path":"scripts/dev-license.mjs","size":1849,"kind":"text","score":0,"hits":[]},{"path":"scripts/leak-scanner.mjs","size":3461,"kind":"text","score":0,"hits":[]},{"path":"scripts/preflight.mjs","size":3068,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/activity-counter.mjs","size":7697,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/adapters/github-adapter.mjs","size":16112,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/adapters/jira-adapter.mjs","size":11888,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/adapters/linear-adapter.mjs","size":23411,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/adf-converter.mjs","size":3547,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/ansi.mjs","size":3944,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/api-utils.mjs","size":926,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/arg-validator.mjs","size":7187,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/attachment-text.mjs","size":996,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/attachment-uploader.mjs","size":3700,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/attention-scorer.mjs","size":8869,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/banner.mjs","size":6978,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/brief-assembler.mjs","size":9683,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/brief-cache.mjs","size":6809,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/budget-pruner.mjs","size":10873,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/cache-manager.mjs","size":18795,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/cli-auth.mjs","size":6905,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/cli.mjs","size":4593,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/cloud-keys.mjs","size":3890,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/code-ref-parser.mjs","size":3322,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/collision-reporter.mjs","size":1661,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/config.mjs","size":3458,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/confirm.mjs","size":1044,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/confluence-client.mjs","size":3189,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/connection-tester.mjs","size":2804,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/consensus-checker.mjs","size":7817,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/diff-analyzer.mjs","size":2149,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/doctor-command.mjs","size":9425,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/duplicate-scorer.mjs","size":2638,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/error-classifier.mjs","size":4316,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/frontmatter.mjs","size":3054,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/gap-diff.mjs","size":2587,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/handoff-assembler.mjs","size":4409,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/hooks-setup.mjs","size":5067,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/init-wizard.mjs","size":28226,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/ledger.mjs","size":4269,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/login-flow.mjs","size":4142,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/mcp-tool-schemas.mjs","size":25133,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/note-structural-check.mjs","size":2438,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/onboarding.mjs","size":10083,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/pr-review-assembler.mjs","size":5374,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/profile-picker.mjs","size":8307,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/profile-set-team.mjs","size":2892,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/profile-switcher.mjs","size":5982,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/prompt-helpers.mjs","size":7979,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/quick-start-panel.mjs","size":1502,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/recall-command.mjs","size":7277,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/recall-matcher.mjs","size":1407,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/recall-queue.mjs","size":11629,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/recall-settings-sync.mjs","size":7958,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/recall-strictness.mjs","size":383,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/recall-sync.mjs","size":12204,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/recall-vault.mjs","size":18696,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/requirement-extractor.mjs","size":6055,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/resolve-adapter.mjs","size":1451,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/run-collisions.mjs","size":3205,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/run-issue-types.mjs","size":8799,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/run-stats.mjs","size":4718,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/secret-scanner.mjs","size":32285,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/select-prompt.mjs","size":7064,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/setup-state.mjs","size":1719,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/spinner.mjs","size":1167,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/standup-assembler.mjs","size":4498,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/styled-assembler.mjs","size":13582,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/sync.mjs","size":9897,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/table-formatter.mjs","size":2036,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/team-jira-sync.mjs","size":7229,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/template-resolver.mjs","size":3771,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/ticket-action-cooldown.mjs","size":2773,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/ticket-action-log.mjs","size":2830,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/ticket-create-enrichment.mjs","size":4723,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/ticket-metadata-cache.mjs","size":6081,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/ticket-payload.mjs","size":906,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/update-check.mjs","size":3395,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/usage-tracker.mjs","size":1688,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/vcs-detector.mjs","size":391,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/wizard-pickers.mjs","size":5398,"kind":"text","score":0,"hits":[]},{"path":"skills/jtb/scripts/lib/wordmark.mjs","size":3433,"kind":"text","score":0,"hits":[]}],"file_count":124,"unpacked_size":1199754,"findings":[{"title":"Install hook","detail":"postinstall: node scripts/postinstall.mjs","severity":"low","location":"package.json"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"ens mcp install` in a project to write that entry into its `.mcp.json` for you (creates the file if it doesn't exist, merges in i","severity":"high","location":"README.md:465"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"would be updated (no writes) ticketlens update-skill --path=~/.gemini/commands # Sync to a specific assistant directory ticketlen","severity":"high","location":"README.md:627"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"Suppress output (useful in scripts) ``` Copies the latest `SKILL.md` to every AI assistant command directory where `/jtb` is al","severity":"high","location":"README.md:631"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"pported assistants detected automatically: - Claude Code — `~/.claude/commands/jtb.md` - Claude Code (work) — `~/.claude-work/comm","severity":"high","location":"README.md:634"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"}, \"files\": [ \"bin/\", \"scripts/\", \"skills/jtb/SKILL.md\", \"skills/jtb/hooks/\", \"skills/jtb/scripts/lib/\",","severity":"high","location":"package.json:13"},{"title":"Install hook runs a script","detail":"\"node --test 'skills/jtb/scripts/test/**/*.test.mjs'\", \"postinstall\": \"node scripts/postinstall.mjs\", \"prepublishOnly\": \"node scripts/preflight.mjs\", \"p","severity":"medium","location":"package.json:21"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"lly after `npm install -g ticketlens`. * Copies the latest SKILL.md into every detected AI assistant command directory. * Sile","severity":"high","location":"scripts/postinstall.mjs:4"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"; const SKILL_SRC = join(__dirname, '..', 'skills', 'jtb', 'SKILL.md'); const OWN_BIN = join(__dirname, '..', 'bin', 'ticketlens","severity":"high","location":"scripts/postinstall.mjs:14"},{"title":"Download-and-execute chain","detail":"; try { log(`Swapping DEFAULT_API_BASE → ${prodUrl}`); writeFileSync(API_UTILS, swapped, 'utf8'); log('Running npm pack...'); const raw = execSync('npm pack --json', { cwd: ROOT }).toString().trim(); ","severity":"critical","location":"scripts/publish.mjs:56"},{"title":"Download-and-execute chain","detail":"ly { log('Reverting DEFAULT_API_BASE → local dev URL'); writeFileSync(API_UTILS, original, 'utf8'); } try { log(`Publishing ${tarball} --tag ${tag}...`); execSync(`npm publish \"${tarball}\" --tag ${tag","severity":"critical","location":"scripts/publish.mjs:68"},{"title":"Executes commands or dynamic code","detail":"dFileSync, writeFileSync, rmSync } from 'node:fs'; import { execSync } from 'node:child_process'; import { dirname, join, resolv","severity":"medium","location":"scripts/publish.mjs:16"},{"title":"Executes commands or dynamic code","detail":"nc, rmSync } from 'node:fs'; import { execSync } from 'node:child_process'; import { dirname, join, resolve } from 'node:path'; impor","severity":"medium","location":"scripts/publish.mjs:16"},{"title":"Executes commands or dynamic code","detail":"ped, 'utf8'); log('Running npm pack...'); const raw = execSync('npm pack --json', { cwd: ROOT }).toString().trim(); cons","severity":"medium","location":"scripts/publish.mjs:59"},{"title":"Executes commands or dynamic code","detail":"} try { log(`Publishing ${tarball} --tag ${tag}...`); execSync(`npm publish \"${tarball}\" --tag ${tag}`, { cwd: ROOT, stdio","severity":"medium","location":"scripts/publish.mjs:73"},{"title":"Automated registry publishing (worm / squatting bot)","detail":"} try { log(`Publishing ${tarball} --tag ${tag}...`); execSync(`npm publish \"${tarball}\" --tag ${tag}`, { cwd: ROOT, stdio: 'inherit' }","severity":"high","location":"scripts/publish.mjs:73"},{"title":"Download-and-execute chain","detail":"e wrong unit and will make every patch silently no-op. Use `node -e \"console.log(require('fs').statSync('PATH').mtimeMs)\"` instea","severity":"critical","location":"skills/jtb/SKILL.md:391"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"etlens mcp install` writes (or merges into) this project's `.mcp.json` — don't run it yourself unprompted, since it changes what","severity":"high","location":"skills/jtb/SKILL.md:381"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"the backend's fixed capture-judgment * prompt (same 3-part SKILL.md rule Claude is asked to apply in-session), * and on a `cap","severity":"high","location":"skills/jtb/hooks/recall-auto-capture.mjs:10"},{"title":"Executes commands or dynamic code","detail":"RecentNag above, but throttles the autonomous background * spawn (recall-auto-capture.mjs) itself, independent of the sync nag","severity":"medium","location":"skills/jtb/hooks/recall-nudge-lib.mjs:171"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"ilently inert once ticket work moved to MCP * tools, which SKILL.md tells Claude to prefer over Bash whenever available. */ i","severity":"high","location":"skills/jtb/hooks/recall-nudge-lib.mjs:6"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"server alias is whatever the user // named it in their own .mcp.json, so only the tool-name suffix is fixed. export const NOTE_A","severity":"high","location":"skills/jtb/hooks/recall-nudge-lib.mjs:19"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"nagged, even though // nothing about it could ever satisfy SKILL.md's own capture rule. export const MUTATING_ACTION_RE = /\\bti","severity":"high","location":"skills/jtb/hooks/recall-nudge-lib.mjs:40"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"about WHERE each pattern is allowed to match — jtb's * own SKILL.md instructions contain the literal strings \"🔖 Recall-flag:\"","severity":"high","location":"skills/jtb/hooks/recall-nudge-lib.mjs:210"},{"title":"System reconnaissance","detail":"= typeof process.getuid === 'function' ? process.getuid() : os.userInfo().username; const dir = path.join(os.tmpdir(), `ticketlens-","severity":"low","location":"skills/jtb/hooks/recall-nudge-lib.mjs:92"},{"title":"Executes commands or dynamic code","detail":"two * happen to coincide. */ import { spawn } from 'node:child_process'; import { fileURLToPath } from 'node:url'; import { readSt","severity":"medium","location":"skills/jtb/hooks/recall-nudge-stop.mjs:71"},{"title":"Executes commands or dynamic code","detail":"astAutoCaptureAttemptAt(cwd, Date.now()); const child = spawn(process.execPath, [AUTO_CAPTURE_SCRIPT, transcriptPath, tick","severity":"medium","location":"skills/jtb/hooks/recall-nudge-stop.mjs:93"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"a code comment, a test * fixture) is not enough, matching SKILL.md's own capture-guidance scope. * Given that: * 1. Claude","severity":"high","location":"skills/jtb/hooks/recall-nudge-stop.mjs:9"},{"title":"Browser or OS credential store access","detail":"onsole-set default (backlog #20), resolved entirely from * local state via resolveEffectiveRecallStrictness() so this hook never","severity":"high","location":"skills/jtb/hooks/recall-nudge-stop.mjs:32"},{"title":"Dumps the whole environment (API keys live there)","detail":"return true; } export async function run(args, envOrOpts = process.env, fetcher = globalThis.fetch, configDir = undefined) { // S","severity":"high","location":"skills/jtb/scripts/fetch-my-tickets.mjs:46"},{"title":"Dumps the whole environment (API keys live there)","detail":"in envOrOpts) { opts = envOrOpts; env = opts.env ?? process.env; fetcher = opts.fetcher ?? globalThis.fetch; configD","severity":"high","location":"skills/jtb/scripts/fetch-my-tickets.mjs:52"},{"title":"Dumps the whole environment (API keys live there)","detail":"'cancel' }, ]; export async function run(args, envOrOpts = process.env, fetcher = globalThis.fetch, configDir = undefined) { // S","severity":"high","location":"skills/jtb/scripts/fetch-ticket.mjs:478"},{"title":"Dumps the whole environment (API keys live there)","detail":"n envOrOpts)) { opts = envOrOpts; env = opts.env ?? process.env; fetcher = opts.fetcher ?? globalThis.fetch; configD","severity":"high","location":"skills/jtb/scripts/fetch-ticket.mjs:483"},{"title":"Executes commands or dynamic code","detail":"t.mjs TICKET-KEY [--depth=N] [--profile=NAME] */ import { spawnSync } from 'node:child_process'; import { readFileSync } from '","severity":"medium","location":"skills/jtb/scripts/fetch-ticket.mjs:8"},{"title":"Executes commands or dynamic code","detail":"th=N] [--profile=NAME] */ import { spawnSync } from 'node:child_process'; import { readFileSync } from 'node:fs'; import { join } f","severity":"medium","location":"skills/jtb/scripts/fetch-ticket.mjs:8"},{"title":"Executes commands or dynamic code","detail":"return null; const [cmd, args] = entry; const which = spawnSync('which', [cmd], { encoding: 'utf8' }); if (which.status !","severity":"medium","location":"skills/jtb/scripts/fetch-ticket.mjs:59"},{"title":"Executes commands or dynamic code","detail":"= 0 || !which.stdout.trim()) return null; const result = spawnSync(which.stdout.trim(), args, { cwd, encoding: 'utf8', timeout","severity":"medium","location":"skills/jtb/scripts/fetch-ticket.mjs:62"},{"title":"Dumps the whole environment (API keys live there)","detail":"not fatal. */ export function findOnPath(binName, { env = process.env, platform = process.platform } = {}) { const isWin = platf","severity":"high","location":"skills/jtb/scripts/lib/alias-status.mjs:16"},{"title":"Dumps the whole environment (API keys live there)","detail":". */ export function checkAliasStatus({ selfBinPath, env = process.env, platform = process.platform } = {}) { try { const tlP","severity":"high","location":"skills/jtb/scripts/lib/alias-status.mjs:53"},{"title":"Dumps the whole environment (API keys live there)","detail":"ownloadAttachments(ticket, opts = {}) { const { env = process.env, fetcher = globalThis.fetch, lookup = defaultLookupF","severity":"high","location":"skills/jtb/scripts/lib/attachment-downloader.mjs:67"},{"title":"Executes commands or dynamic code","detail":"import { spawnSync } from 'node:child_process'; import { existsSync } from 'no","severity":"medium","location":"skills/jtb/scripts/lib/branch-scanner.mjs:1"},{"title":"Executes commands or dynamic code","detail":"import { spawnSync } from 'node:child_process'; import { existsSync } from 'node:fs'; import { join } fro","severity":"medium","location":"skills/jtb/scripts/lib/branch-scanner.mjs:1"},{"title":"Executes commands or dynamic code","detail":"(default: process.cwd()) * @param {Function} [opts.execFn] spawnSync replacement (injectable for tests) * @param {Function} [op","severity":"medium","location":"skills/jtb/scripts/lib/branch-scanner.mjs:31"},{"title":"Executes commands or dynamic code","detail":"function scanCurrentBranch({ cwd = process.cwd(), execFn = spawnSync, fsCheck = existsSync } = {}) { if (!fsCheck(join(cwd, '.","severity":"medium","location":"skills/jtb/scripts/lib/branch-scanner.mjs:36"},{"title":"Executes commands or dynamic code","detail":"from 'node:crypto'; import { spawn } from 'node:child_process'; import { hostname as osHostname } from 'node:os'; import","severity":"medium","location":"skills/jtb/scripts/lib/browser-login.mjs:3"},{"title":"Executes commands or dynamic code","detail":".platform === 'win32' ? ['/c', 'start', '', url] : [url]; spawn(cmd, args, { detached: true, stdio: 'ignore' }).unref(); }","severity":"medium","location":"skills/jtb/scripts/lib/browser-login.mjs:22"},{"title":"Executes commands or dynamic code","detail":"import { spawnSync } from 'node:child_process'; import { detectBase } from './","severity":"medium","location":"skills/jtb/scripts/lib/commit-linker.mjs:1"},{"title":"Executes commands or dynamic code","detail":"import { spawnSync } from 'node:child_process'; import { detectBase } from './branch-scanner.mjs'; const","severity":"medium","location":"skills/jtb/scripts/lib/commit-linker.mjs:1"},{"title":"Executes commands or dynamic code","detail":"t key: ${ticketKey}`); } const execFn = opts.execFn ?? spawnSync; const cwd = opts.cwd ?? process.cwd(); // git l","severity":"medium","location":"skills/jtb/scripts/lib/commit-linker.mjs:33"},{"title":"Executes commands or dynamic code","detail":"import { spawnSync } from 'node:child_process'; import { isLicensed, showUpgra","severity":"medium","location":"skills/jtb/scripts/lib/compliance-checker.mjs:1"},{"title":"Executes commands or dynamic code","detail":"import { spawnSync } from 'node:child_process'; import { isLicensed, showUpgradePrompt } from './license.","severity":"medium","location":"skills/jtb/scripts/lib/compliance-checker.mjs:1"},{"title":"Executes commands or dynamic code","detail":"ndLedgerFn = appendLedger, execFn = spawnSync, }) { const isPro = isLicensedFn('pro', configDir); con","severity":"medium","location":"skills/jtb/scripts/lib/compliance-checker.mjs:86"},{"title":"Persistence mechanism","detail":"───────────────────────────────────── const updated = { ...profile, baseUrl: url, auth, triageStatuses }; if (email) updated","severity":"medium","location":"skills/jtb/scripts/lib/config-wizard.mjs:441"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"= readMcpConfig, } = {}) { const configPath = join(cwd, '.mcp.json'); const read = readMcpConfigFn(configPath); if (!read","severity":"high","location":"skills/jtb/scripts/lib/doctor-checks.mjs:238"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"n', ok: true, message: '\"ticketlens\" is registered in .mcp.json with the correct command and args.', hint: null, fixa","severity":"high","location":"skills/jtb/scripts/lib/doctor-checks.mjs:254"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"', label: 'MCP registration', ok: false, message: 'No .mcp.json file found in the current directory.', hint: 'Run `ti","severity":"high","location":"skills/jtb/scripts/lib/doctor-checks.mjs:262"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"ok: false, message: '\"ticketlens\" is not registered in .mcp.json.', hint: 'Run `ticketlens mcp install` to register it.'","severity":"high","location":"skills/jtb/scripts/lib/doctor-checks.mjs:270"},{"title":"Executes commands or dynamic code","detail":"from 'node:fs'; import { join } from 'node:path'; import { spawnSync } from 'node:child_process'; import { DEFAULT_CONFIG_DIR }","severity":"medium","location":"skills/jtb/scripts/lib/drift-tracker.mjs:9"},{"title":"Executes commands or dynamic code","detail":"{ join } from 'node:path'; import { spawnSync } from 'node:child_process'; import { DEFAULT_CONFIG_DIR } from './config.mjs'; import","severity":"medium","location":"skills/jtb/scripts/lib/drift-tracker.mjs:9"},{"title":"Executes commands or dynamic code","detail":"a git repo. */ export function getCurrentBranch({ execFn = spawnSync, cwd } = {}) { const spawnOpts = { encoding: 'utf8' };","severity":"medium","location":"skills/jtb/scripts/lib/drift-tracker.mjs:29"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"Register \"ticketlens mcp\" into the current project's .mcp.json`, '', ` ${s.dim('install is ungated — writes the r","severity":"high","location":"skills/jtb/scripts/lib/help.mjs:700"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"ath=DIR] [--quiet]')}`, '', ` Copy the latest /jtb SKILL.md into every detected AI assistant command directory.`, `","severity":"high","location":"skills/jtb/scripts/lib/help.mjs:1210"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"SISTANTS')}`, '', ` Claude Code ${s.dim('~/.claude/commands/jtb.md')}`, ` Claude Code (work) ${s.dim('~","severity":"high","location":"skills/jtb/scripts/lib/help.mjs:1215"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"/commands/jtb.md')}`, ` Gemini CLI ${s.dim('~/.gemini/commands/jtb.md')}`, ` Copilot CLI ${s.dim('~","severity":"high","location":"skills/jtb/scripts/lib/help.mjs:1217"},{"title":"Persistence mechanism","detail":"if (!fsModule.existsSync(hooksDir)) { throw new Error(`.git/hooks/ directory not found at ${hooksDir}. Is this a git reposito","severity":"medium","location":"skills/jtb/scripts/lib/hook-installer.mjs:55"},{"title":"Executes commands or dynamic code","detail":"eateStyler } from './ansi.mjs'; import { spawn } from 'node:child_process'; import { runSwitch } from './profile-switcher.mjs'; impor","severity":"medium","location":"skills/jtb/scripts/lib/interactive-list.mjs:2"},{"title":"Executes commands or dynamic code","detail":"32' ? ['/c', 'start', '', url] : [url]; const child = spawn(cmd, args, { stdio: 'ignore', detached: true }); child","severity":"medium","location":"skills/jtb/scripts/lib/interactive-list.mjs:203"},{"title":"Dumps the whole environment (API keys live there)","detail":"oadAttachment(ticketKey, file, opts = {}) { const { env = process.env, fetcher = globalThis.fetch, lookup = defaultLookupFor(fetch","severity":"high","location":"skills/jtb/scripts/lib/jira-attachment-client.mjs:19"},{"title":"Dumps the whole environment (API keys live there)","detail":"ion resolveMediaId(contentUrl, opts = {}) { const { env = process.env, fetcher = globalThis.fetch, lookup = defaultLookupFor(fetch","severity":"high","location":"skills/jtb/scripts/lib/jira-attachment-client.mjs:69"},{"title":"Dumps the whole environment (API keys live there)","detail":"sync function fetchCurrentUser(opts = {}) { const { env = process.env, fetcher = globalThis.fetch, lookup = defaultLookupFor(fetch","severity":"high","location":"skills/jtb/scripts/lib/jira-client.mjs:287"},{"title":"Dumps the whole environment (API keys live there)","detail":"t async function fetchStatuses(opts = {}) { const { env = process.env, fetcher = globalThis.fetch, lookup = defaultLookupFor(fetch","severity":"high","location":"skills/jtb/scripts/lib/jira-client.mjs:313"},{"title":"Dumps the whole environment (API keys live there)","detail":"t async function fetchProjects(opts = {}) { const { env = process.env, fetcher = globalThis.fetch, lookup = defaultLookupFor(fetch","severity":"high","location":"skills/jtb/scripts/lib/jira-client.mjs:340"},{"title":"Dumps the whole environment (API keys live there)","detail":"nc function searchTickets(jql, opts = {}) { const { env = process.env, fetcher = globalThis.fetch, lookup = defaultLookupFor(fetch","severity":"high","location":"skills/jtb/scripts/lib/jira-client.mjs:384"},{"title":"Network activity","detail":"race that one connection. Full * IP-pinning needs a custom undici Agent, which would break the zero-dependency * constraint.","severity":"medium","location":"skills/jtb/scripts/lib/jira-client.mjs:210"},{"title":"System reconnaissance","detail":", instanceName } = opts; const instance = instanceName || os.hostname(); const url = resolveActivateUrl(key); if (url === null","severity":"low","location":"skills/jtb/scripts/lib/license.mjs:161"},{"title":"System reconnaissance","detail":"'No license found.' }; const instance = instanceName || os.hostname(); const url = resolveValidateUrl(license.key); if (url","severity":"low","location":"skills/jtb/scripts/lib/license.mjs:209"},{"title":"Obfuscated or encoded code","detail":"onst expected = signHmac(payload, sigKey); const sigBuf = Buffer.from(sig, 'hex'); const expBuf = Buffer.from(expected, 'hex'); if (sigB","severity":"high","location":"skills/jtb/scripts/lib/machine-secret.mjs:46"},{"title":"Obfuscated or encoded code","detail":"const sigBuf = Buffer.from(sig, 'hex'); const expBuf = Buffer.from(expected, 'hex'); if (sigBuf.length !== expBuf.length) return false; re","severity":"high","location":"skills/jtb/scripts/lib/machine-secret.mjs:47"},{"title":"Executes commands or dynamic code","detail":") — never * left running. */ import { spawn } from 'node:child_process'; export const DEFAULT_HANDSHAKE_TIMEOUT_MS = 5000; const","severity":"medium","location":"skills/jtb/scripts/lib/mcp-handshake-checker.mjs:10"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"* * Registers `ticketlens mcp` into the current project's `.mcp.json` so the * user doesn't have to hand-write the JSON. Projec","severity":"high","location":"skills/jtb/scripts/lib/mcp-install.mjs:2"}],"injection_findings":[{"title":"Text addresses an AI agent directly","detail":"rk happened that session, applies the same capture criteria as a Claude-triggered note, and goes through the identical license/secr","severity":"high","location":"README.md:461"},{"title":"Asks the agent to hide actions from its user","detail":"only. --- ### Recall ```bash echo \"Refresh tokens expire silently after 30 days\" | ticketlens note add --title=\"Token refresh","severity":"critical","location":"README.md:439"},{"title":"Asks the agent to hide actions from its user","detail":"t (API key, private key, token) is rejected outright, never silently redacted. An empty, placeholder (`TODO`, `WIP`, …), or too-","severity":"critical","location":"README.md:449"},{"title":"Asks the agent to hide actions from its user","detail":"laude Code session using the jtb skill, a saved note can be silently refined afterward — a generator subagent drafts a more acti","severity":"critical","location":"README.md:451"},{"title":"Asks the agent to hide actions from its user","detail":"for a bare shell invocation of `note add`, which is skipped silently. Known limitation: a refined draft is not re-synced to your","severity":"critical","location":"README.md:451"},{"title":"Skill or tool description hijacks other tools or every tool call","detail":", not judgment calls — they hold at every strictness level, no exceptions. **Balanced (default):** the three-part rule above, applie","severity":"high","location":"skills/jtb/SKILL.md:348"},{"title":"Text addresses an AI agent directly","detail":". This is background behaviour — no action needed from you as an AI assistant. The banner may appear in CLI output; it is informational o","severity":"high","location":"skills/jtb/SKILL.md:635"},{"title":"Requests credentials or secrets","detail":"tighten it, the same way it prints warnings for a detected email address or similar low-severity secret-scan hit. Capture **at the moment you confirm the insight*","severity":"critical","location":"skills/jtb/SKILL.md:360"},{"title":"Requests credentials or secrets","detail":"by a stale background draft. `note patch` also takes `--attach=path1,path2` (Pro), same caps and secret-scan treatment as `note add`'s — new files are appended to","severity":"critical","location":"skills/jtb/SKILL.md:401"},{"title":"Asks the agent to hide actions from its user","detail":"ractive shell unless `--yes` is passed — there is no way to silently skip this. Only pass `--yes` when the user has explicitly a","severity":"critical","location":"skills/jtb/SKILL.md:73"},{"title":"Asks the agent to hide actions from its user","detail":"tirely local — no network call. `--days=N` (default 7; Free silently caps at 7, Pro allows up to 30); `--format=plain` (default,","severity":"critical","location":"skills/jtb/SKILL.md:147"},{"title":"Asks the agent to hide actions from its user","detail":"irm the insight**, not deferred to the end of the session — don't ask the user first, just do it. It requires a Pro license; on a Free acc","severity":"critical","location":"skills/jtb/SKILL.md:362"},{"title":"Asks the agent to hide actions from its user","detail":"for no benefit. ```bash echo \"Retry client swallowed 429s silently; added backoff and a warning log on the third failure.\" | \\","severity":"critical","location":"skills/jtb/SKILL.md:371"}],"hits":{"agent_config_tamper":33,"install_hook_shell":1,"download_execute":3,"code_execution":40,"registry_abuse":1,"reconnaissance":9,"browser_theft":1,"credential_harvest":17,"persistence":20,"network_egress":1,"obfuscation":2,"credential_access":4},"iocs":{"urls":["https://modelcontextprotocol.io","https://claude.ai/code","https://console.groq.com","https://myteam.atlassian.net","https://jira.client.com","https://api.ticketlens.app","https://yourteam.atlassian.net","https://api.linear.app/graphql","http://api.ticketlens.test","https://ticketlens.app","https://api.ticketlens.io","https://${urlTyped.replace(/\\/$/","https://${reTyped.replace(/\\/$/","https://${host","https://linear.app","https://${profileName","https://jira.${profileName","https://jira.company.com","https://api.media.atlassian.com/file/{UUID","https://api.lemonsqueezy.com/v1/licenses/activate","https://api.lemonsqueezy.com/v1/licenses/validate","https://api.groq.com/openai/v1/chat/completions","http://ticketlens.test/console/queue","https://api.ticketlens.com","https://app.ticketlens.com/console/queue"],"domains":["modelcontextprotocol.io","claude.ai","console.groq.com","myteam.atlassian.net","jira.client.com","api.ticketlens.app","yourteam.atlassian.net","api.linear.app","api.ticketlens.test","ticketlens.app","api.ticketlens.io","${urltyped.replace(","${retyped.replace(","${host","linear.app","${profilename","jira.${profilename","jira.company.com","api.media.atlassian.com","api.lemonsqueezy.com","api.groq.com","ticketlens.test","api.ticketlens.com","app.ticketlens.com","myteam.com","o.to","match.to","atlassian.net","t.to","s.link","args.to","result.to","else.com"],"ips":["100.64.0.0"]},"score":1,"priority":140,"hints":["install hook postinstall: node scripts/postinstall.mjs","untrusted hosts referenced: modelcontextprotocol.io, claude.ai, console.groq.com, myteam.atlassian.net, jira.client.com, api.ticketlens.app, yourteam.atlassian.net, api.linear.app, api.ticketlens.test, ticketlens.app, api.ticketlens.io, ${urltyped.replace(, ${retyped.replace(, ${host, linear.app","raw IPs referenced: 100.64.0.0","capability hits: code_execution×40, agent_config_tamper×33, persistence×20, credential_harvest×17, reconnaissance×9, credential_access×4, download_execute×3, obfuscation×2, install_hook_shell×1, registry_abuse×1, browser_theft×1, network_egress×1","13 prompt-injection / hidden-text hints in docs","tarball sha1 ae4ca31560997336392a0e2c07c72047d8a850b0"],"entry_files":["scripts/postinstall.mjs","bin/ticketlens.mjs"],"large_or_binary":[]},"tarball":"https://registry.npmjs.org/ticketlens/-/ticketlens-0.38.55.tgz","source":"feed"}