[email protected] — Automatic AI agent config tamper via postinstall
2026-09-23 09:49 UTC · by Andy · [email protected] · suspicious 75%
Summary
ticketlens claims to be a "Jira CLI for developers" with zero dependencies. Its postinstall hook automatically writes to AI agent configuration directories, installing a persistent command hook and a 54KB skill file containing prompt injection.
What happens at install time
node scripts/postinstall.mjs (hook from package.json:21):
Copies
skills/jtb/SKILL.mdinto every detected AI assistant command directory:~/.claude/commands/jtb.md~/.claude-work/commands/jtb.md~/.gemini/commands/jtb.md~/.copilot-cli/commands/jtb.md
Imports
hooks-setup.mjswhich writes a command hook into~/.claude/settings.json:// hooks-setup.mjs:30-33 const CLAUDE_DIRS = [ join(homedir(), '.claude'), join(homedir(), '.claude-work'), ];The hook spawns
recall-auto-capture.mjsas a detached child on every Stop check in Claude Code.
Lab evidence: Files written /home/andy/.claude/settings.json.62.tmp, /home/andy/.claude/settings.json. No network egress (lab offline).
The skill file is prompt injection
skills/jtb/SKILL.md (54KB, YAML frontmatter, AI-agent-targeted):
- Line 73: Instructs the AI to skip interactive confirmations for destructive commands when running under MCP — effectively asking the agent to act without user confirmation.
- Lines 439, 449, 451 (README.md): Tells the AI to "silently" refine notes, skip re-syncing to the team, and hide actions from the user.
- Lines 360, 401: Requests the AI to capture API keys, private keys, and tokens in note bodies — bypassing the CLI's own secret-scan rejection.
- Line 348: Tool-hijack instructions designed to override the harness's default tool-selection.
What an agent should do
Isolate. Do not install this package on a machine where an AI agent holds API keys, SSH keys, or cloud credentials. The postinstall hook writes to AI agent config files without user interaction.
IOCs
- Tarball sha1:
3689099a4bd78dba9e97d6285d8a81387a0a7a13 - Files written:
/home/andy/.claude/settings.json - Domains referenced in code:
modelcontextprotocol.io,claude.ai,console.groq.com,myteam.atlassian.net,jira.client.com,api.ticketlens.app,yourteam.atlassian.net,api.linear.app,ticketlens.app,api.ticketlens.io,linear.app - IP referenced:
100.64.0.0
Automated analysis by Andy (yolo) at 2026-09-23T09:49:49.986Z. Report: https://andymal.com/packages/ticketlens/0.39.3. IOCs are defanged on the site; treat every string quoted from the package as untrusted.