registry  /  terminalhire  /  0.19.0

terminalhire@0.19.0

Local-first job matching for developers — ambient job matches in the Claude Code spinner. Matching runs on your machine; your profile never leaves it.

AI Security Review

scanned 5h ago · by lpm-firewall-ai

No confirmed malicious attack surface. The package has agent-facing setup capabilities, but they are user-invoked and consent-gated rather than lifecycle-triggered.

Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
npm install prints notice only; terminalhire init/statusline/spinner/mcp commands activate optional setup
Impact
User-approved integration with Claude/editor tooling; no unconsented lifecycle hijack confirmed
Mechanism
consent-gated Claude spinner/statusLine and MCP configuration plus local encrypted profile storage
Rationale
Static inspection shows the lifecycle hook is print-only; the risky Claude/MCP writes are explicit CLI onboarding actions with typed consent and backups. Network, child_process, native keytar, and encrypted local storage are aligned with the job-matching/GitHub-login product and do not establish exfiltration or unconsented control-surface hijack.
Evidence
package.jsonpostinstall.jsinstall.jsstatusline-install.jsdist/bin/mcp-config.jsdist/bin/jpi-dispatch.jsdist/src/github-auth.jsdist/src/link.js~/.claude/settings.json~/.terminalhire/config.json~/.terminalhire/statusline-launch.js~/.terminalhire/github-token.enc~/.terminalhire/profile.enc
Network endpoints4
terminalhire.comgithub.com/login/device/codegithub.com/login/oauth/access_tokenapi.github.com

Decision evidence

public snapshot
AI called this Clean at 86.0% confidence as Benign with low false-positive risk.
Evidence for block
  • User-invoked install.js can modify ~/.claude/settings.json spinner settings after typed yes.
  • User-invoked statusline-install.js can set Claude statusLine to ~/.terminalhire/statusline-launch.js after typed yes.
  • terminalhire init can optionally merge MCP config for Cursor/Gemini after prompts.
  • Package stores encrypted local profile/GitHub token under ~/.terminalhire and ships native keytar binary.
Evidence against
  • package.json postinstall only runs postinstall.js, which prints a notice and exits 0 without writes/network.
  • install.js and statusline-install.js require explicit typed consent before touching ~/.claude/settings.json and create backups.
  • MCP config merge in dist/bin/mcp-config.js is user-invoked, TTY-gated, per-host prompted, and only writes detected writable hosts.
  • Network calls are package-aligned: terminalhire.com job/link/sync APIs and github.com OAuth/API, mostly CLI-command initiated.
  • No lifecycle-triggered foreign AI-agent config mutation, persistence, credential exfiltration, or remote code execution found.
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsEvalFilesystemNetworkShell
Supply chain
HighEntropyStringsObfuscatedUrlStrings
ManifestNo manifest risk signals triggered.
scanned 48 file(s), 5.44 MB of source, external domains: 127.0.0.1, api.ashbyhq.com, api.github.com, api.lever.co, api.opire.dev, apply.workable.com, boards-api.greenhouse.io, github.com, himalayas.app, hn.algolia.com, jobs.ashbyhq.com, jobs.lever.co, json-schema.org, news.ycombinator.com, raw.githubusercontent.com, spec.openapis.org, stackoverflow.com, terminalhire.com, tools.ietf.org, weworkremotely.com, www.safaribooksonline.com, www.w3.org

Source & flagged code

12 flagged · loading source
package.jsonView file
scripts.postinstall = node ./postinstall.js
High
Install Time Lifecycle Scripts

Package defines install-time lifecycle scripts.

package.jsonView on unpkg
scripts.postinstall = node ./postinstall.js
Medium
Ambiguous Install Lifecycle Script

Install-time lifecycle script is not statically allowlisted and needs review.

package.jsonView on unpkg
dist/bin/jpi-chat.jsView file
5085}); L5086: import { spawn } from "child_process"; L5087: function openInBrowser(url) {
High
Child Process

Package source references child process execution.

dist/bin/jpi-chat.jsView on unpkg · L5085
128Cross-file remote execution chain: dist/bin/jpi-chat.js spawns dist/bin/jpi-chat-read.js; helper contains network access plus dynamic code execution. L128: { id: "azure", synonyms: ["microsoft-azure"], related: [{ to: "aws", w: 0.4 }] }, L129: { id: "ci-cd", synonyms: ["cicd", "jenkins", "circleci", "circle-ci", "travis"], related: [{ to: "github-actions", w: 0.6 }, { to: "gitlab-ci", w: 0.6 }] }, L130: { id: "github-actions", parents: ["ci-cd"], synonyms: ["github-action"] }, ... L220: { id: "microservices" }, L221: { id: "websockets", synonyms: ["ws", "socket.io"], related: [{ to: "realtime", w: 0.6 }] }, L222: { id: "realtime", synonyms: ["real-time"] }, ... L923: for (let ai = 0, hi = 0; ai < al; ai++, hi += 2) { L924: const n1 = asciiToBase16(hex.charCodeAt(hi)); L925: const n2 = asciiToBase16(hex.charCodeAt(hi + 1)); ... L2300: // It's faster, but should only be used when you don't care about L2301: // an exposed private key e.g. sig verification. L2302: // Does NOT allow scalars higher than CURVE.n.
High
Cross File Remote Execution Context

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

dist/bin/jpi-chat.jsView on unpkg · L128
dist/bin/jpi-statusline-launch.jsView file
49if (!cmd) return ""; L50: const r = spawnSync(cmd, { shell: true, input, timeout: 4e3 }); L51: return firstLine(r.stdout);
High
Shell

Package source references shell execution.

dist/bin/jpi-statusline-launch.jsView on unpkg · L49
dist/bin/jpi-dispatch.jsView file
matchType = previous_version_dangerous_delta matchedPackage = terminalhire@0.18.2 matchedIdentity = npm:dGVybWluYWxoaXJl:0.18.2 similarity = 0.792 summary = stored previous version shares package body but lacks this dangerous source file
Critical
Previous Version Dangerous Delta

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

dist/bin/jpi-dispatch.jsView on unpkg
25760sourceCode = this.opts.code.process(sourceCode, sch); L25761: const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode); L25762: const validate = makeValidate(this, this.scope.get());
Low
Eval

Package source references a known benign dynamic code generation pattern.

dist/bin/jpi-dispatch.jsView on unpkg · L25760
dist/bin/jpi-init.jsView file
347try { L348: const { maybePromptPeerConnect } = await import(pathToFileURL(resolveScript("peer-connect-prompt")).href); L349: let login;
Medium
Dynamic Require

Package source references dynamic require/import behavior.

dist/bin/jpi-init.jsView on unpkg · L347
dist/bin/jpi.jsView file
5import { isatty } from "tty"; L6: import net from "net"; L7: import { join } from "path"; ... L9: import { fileURLToPath } from "url"; L10: import { spawn } from "child_process"; L11: var TERMINALHIRE_DIR = process.env.TERMINALHIRE_DIR || join(homedir(), ".terminalhire"); L12: var INDEX_CACHE_FILE = join(TERMINALHIRE_DIR, "index-cache.json");
High
Same File Env Network Execution

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

dist/bin/jpi.jsView on unpkg · L5
dist/bin/jpi-refresh.jsView file
60const raw = readFileSync3(CONFIG_FILE, "utf8"); L61: const parsed = JSON.parse(raw); L62: return { ...DEFAULT_CONFIG, ...parsed }; ... L82: function getNudgeMode() { L83: const envVal = process.env["TERMINALHIRE_NUDGE"]; L84: if (envVal) { ... L221: { id: "azure", synonyms: ["microsoft-azure"], related: [{ to: "aws", w: 0.4 }] }, L222: { id: "ci-cd", synonyms: ["cicd", "jenkins", "circleci", "circle-ci", "travis"], related: [{ to: "github-actions", w: 0.6 }, { to: "gitlab-ci", w: 0.6 }] }, L223: { id: "github-actions", parents: ["ci-cd"], synonyms: ["github-action"] }, ... L313: { id: "microservices" }, L314: { id: "websockets", synonyms: ["ws", "socket.io"], related: [{ to: "realtime", w: 0.6 }] }, L315: { id: "realtime", synonyms: ["real-time"] },
High
Host Fingerprint Exfiltration

Source collects local host identity data and sends it to an external endpoint.

dist/bin/jpi-refresh.jsView on unpkg · L60
dist/bin/jpi-sync.jsView file
128{ id: "azure", synonyms: ["microsoft-azure"], related: [{ to: "aws", w: 0.4 }] }, L129: { id: "ci-cd", synonyms: ["cicd", "jenkins", "circleci", "circle-ci", "travis"], related: [{ to: "github-actions", w: 0.6 }, { to: "gitlab-ci", w: 0.6 }] }, L130: { id: "github-actions", parents: ["ci-cd"], synonyms: ["github-action"] }, ... L220: { id: "microservices" }, L221: { id: "websockets", synonyms: ["ws", "socket.io"], related: [{ to: "realtime", w: 0.6 }] }, L222: { id: "realtime", synonyms: ["real-time"] }, ... L843: "use strict"; L844: KDF_INFO = Buffer.from("terminalhire-chat-v1"); L845: } ... L1209: init_src(); L1210: TERMINALHIRE_DIR = join2(homedir(), ".terminalhire"); L1211: PROFILE_FILE = join2(TERMINALHIRE_DIR, "profile.enc");
High
Sandbox Evasion Gated Capability

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

dist/bin/jpi-sync.jsView on unpkg · L128
dist/keytar-KOAAH267.nodeView file
path = dist/keytar-KOAAH267.node kind = native_binary sizeBytes = 99528 magicHex = [redacted]
Medium
Ships Native Binary

Package ships native binary artifacts.

dist/keytar-KOAAH267.nodeView on unpkg

Findings

1 Critical7 High6 Medium7 Low
CriticalPrevious Version Dangerous Deltadist/bin/jpi-dispatch.js
HighInstall Time Lifecycle Scriptspackage.json
HighChild Processdist/bin/jpi-chat.js
HighShelldist/bin/jpi-statusline-launch.js
HighSame File Env Network Executiondist/bin/jpi.js
HighHost Fingerprint Exfiltrationdist/bin/jpi-refresh.js
HighSandbox Evasion Gated Capabilitydist/bin/jpi-sync.js
HighCross File Remote Execution Contextdist/bin/jpi-chat.js
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumDynamic Requiredist/bin/jpi-init.js
MediumNetwork
MediumEnvironment Vars
MediumShips Native Binarydist/keytar-KOAAH267.node
MediumStructural Risk Force Deep Review
LowNon Install Lifecycle Scripts
LowScripts Present
LowEvaldist/bin/jpi-dispatch.js
LowFilesystem
LowObfuscated
LowHigh Entropy Strings
LowUrl Strings