---
canonical: "https://firewall.lpm.dev/npm/@keystrokehq/cli/v/0.1.89"
markdown: "https://firewall.lpm.dev/npm/@keystrokehq/cli/v/0.1.89.md"
package: "@keystrokehq/cli"
report_status: "published"
title: "@keystrokehq/cli@0.1.89 npm security report"
verdict: "suspicious"
version: "0.1.89"
---

# @keystrokehq/cli@0.1.89 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Flagged as agent extension risk** — Allowed by default with warning: install-time first-party agent extension setup was detected.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only agent extension risk
- **Public report status:** Published
- **Threat category:** Agent extension lifecycle risk
- **Selected version:** 0.1.89
- **Selected version is latest:** No
- **Analysis source:** AI security review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

Source confirms an automatic, project-scoped AI-agent control-surface mutation plus runtime self-update. These are risky capabilities but do not establish malicious intent or a concrete theft/destructive chain.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-07-25T22:14:02.520Z
- **Finished:** 2026-07-25T22:14:56.484Z
- **Download time:** 772 ms
- **Static scan time:** 7596 ms
- **AI review time:** 45595 ms
- **Total time:** 53964 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** Running the CLI in an existing Keystroke project can silently refresh its AI-agent guide and CLAUDE.md symlink. Normal CLI use can also fetch npm metadata and install a newer CLI release.

- **Trigger:** User runs keystroke in a detected project; stale AGENTS.md activates guide sync.

- **Impact:** Changes AI-agent instruction files and expands supply-chain execution to the latest npm release.

- **Evidence paths:** package.json, dist/index.mjs, dist/maybe-auto-update-C0AJd45Y.mjs, dist/run-package-manager-update-C2PHSwh5.mjs, dist/skills-bundle/\_AGENTS.md

- **Review source:** ai\_review

- **Reviewed:** 2026-07-25T22:14:56.484Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** Runtime agent-guide mutation and automatic self-update.

- **Rationale:** Source confirms an automatic, project-scoped AI-agent control-surface mutation plus runtime self-update. These are risky capabilities but do not establish malicious intent or a concrete theft/destructive chain.

- **Files touched:** AGENTS.md, CLAUDE.md, .keystroke/update-check.json

- **Network endpoints:** https://registry.npmjs.org/@keystrokehq%2Fcli

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 91.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Dangerous Capability

- **False-positive risk:** Low

- **Evidence for warning:** dist/index.mjs auto-syncs AGENTS.md before CLI actions when its version marker is stale., dist/index.mjs writes AGENTS.md and replaces CLAUDE.md with a symlink to it., dist/maybe-auto-update-C0AJd45Y.mjs checks npm and runs a package-manager self-update on normal CLI invocation.

- **Evidence against:** package.json has no preinstall, install, or postinstall hooks., Agent-guide writes are limited to a detected Keystroke project and bundled first-party content., No source evidence of credential harvesting or exfiltration; registry access is package update checking.

## Affected versions and remediation

This report applies to @keystrokehq/cli@0.1.89.

- Review the evidence and your use of @keystrokehq/cli@0.1.89 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## Public findings

### 1. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/run-package-manager-update-C2PHSwh5.mjs
- **Public source:** [View source](<https://unpkg.com/@keystrokehq/cli@0.1.89/dist/run-package-manager-update-C2PHSwh5.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L6: import { existsSync, readFileSync, realpathSync } from "node:fs";
L7: import { spawnSync } from "node:child_process";
L8: import { fileURLToPath } from "node:url";
```

### 3. High: Shell
- **Category:** Source
- **Confidence:** 85.0%

Package source references shell execution.

### 4. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** dist/dist-B-bOSK-t.mjs
- **Public source:** [View source](<https://unpkg.com/@keystrokehq/cli@0.1.89/dist/dist-B-bOSK-t.mjs>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L141: try {
L142: new Function("");
L143: return true;
```

### 5. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/lzma-CTMDi254.mjs
- **Public source:** [View source](<https://unpkg.com/@keystrokehq/cli@0.1.89/dist/lzma-CTMDi254.mjs>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L347: const __dirname = path.dirname(__filename);
L348: const require = createRequire(import.meta.url);
L349: const bindingPath = path.resolve(path.join(__dirname, ".."));
```

### 6. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 7. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 8. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/dist--rEosQWM.mjs
- **Public source:** [View source](<https://unpkg.com/@keystrokehq/cli@0.1.89/dist/dist--rEosQWM.mjs>)

Source writes installer persistence such as shell profile or service configuration.

Public source snippet (untrusted):

```javascript
L334: }
L335: return process.env.KEYSTROKE_ROOT ?? process.cwd();
L336: }
...
L1262: nodeType,
L1263: data: {
L1264: label,
...
L2177: {
L2178: name: "base64",
L2179: load: async () => (await import("./base64-C2AIWVNC-C0WIgu5V.mjs")).base64Command
...
L2296: Object.freeze({
L2297: stdout: "",
L2298: stderr: "",
```

### 9. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 10. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/js-exec-N5KEZBH7-CgtG-I6s.mjs
- **Public source:** [View source](<https://unpkg.com/@keystrokehq/cli@0.1.89/dist/js-exec-N5KEZBH7-CgtG-I6s.mjs>)

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

Public source snippet (untrusted):

```javascript
Cross-file remote execution chain: dist/js-exec-N5KEZBH7-CgtG-I6s.mjs spawns dist/chunk-TN7HHBQW-CSB_R-XD.mjs; helper contains network access plus dynamic code execution.
L48: Available modules:
L49: fs, path, child_process, process, console,
L50: os, url, assert, util, events, buffer, stream,
...
L63: child_process:
L64: execSync(cmd)       throws on non-zero exit, returns stdout
L65: spawnSync(cmd, args) returns { stdout, stderr, status }
...
L69: 
L70: os: platform(), arch(), homedir(), tmpdir(), type(), hostname(),
L71: EOL, cpus(), endianness()
L72: 
L73: url: URL, URLSearchParams, parse(), format()
L74:
```

### 11. Low: Obfuscated
- **Category:** Supply Chain
- **Confidence:** 60.0%

Package source has low-confidence obfuscation-like patterns.

### 12. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 13. Low: Telemetry
- **Category:** Supply Chain
- **Confidence:** 70.0%

Package source references telemetry or analytics APIs.

### 14. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 15. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 85.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 16. Low: No License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest does not declare a clear license.

### 17. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/dist--rEosQWM.mjs
- **Public source:** [View source](<https://unpkg.com/@keystrokehq/cli@0.1.89/dist/dist--rEosQWM.mjs>)

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

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = @keystrokehq/cli@0.1.24
matchedIdentity = npm:QGtleXN0cm9rZWhxL2NsaQ:0.1.24
similarity = 0.950
summary = stored previous version shares package body but lacks this dangerous source file
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 15
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 9
- **Published dependency-graph edges:** 15

### Published dependency entries
- @aws-sdk/client-s3 ^3.1070.0 (Dependency)
- @aws-sdk/s3-request-presigner ^3.1070.0 (Dependency)
- @inquirer/prompts ^8.4.3 (Dependency)
- @napi-rs/keyring ^1.3.0 (Dependency)
- @parcel/watcher ^2.5.6 (Dependency)
- @types/node ^25.9.1 (Dependency)
- better-sqlite3 ^12.10.0 (Dependency)
- commander ^14.0.3 (Dependency)
- conf ^15.1.0 (Dependency)
- drizzle-orm ^0.45.2 (Dependency)
- oxlint ^1.66.0 (Dependency)
- picomatch ^4.0.4 (Dependency)
- tsdown ^0.22.0 (Dependency)
- typescript npm:@typescript/typescript6@^6.0.2 (Dependency)
- vitest ^4.1.7 (Dependency)

## Package metadata
- **Package:** @keystrokehq/cli
- **Ecosystem:** npm
- **Version:** 0.1.89
- **Version published:** 2026-07-11T05:30:32.765Z
- **Package first seen:** 2026-06-30T22:22:08.324Z
- **Package last seen:** 2026-11-09T00:32:23.921Z
- **Known versions:** 83
- **Latest version:** 0.1.200
- **Appeal under review:** No
- **Maintainers:** wells-keystroke, dallinbentley
- **Artifact files:** 253
- **Artifact unpacked size:** 13,317,042 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@keystrokehq/cli/v/0.1.89>)
- [Repository](<https://github.com/keystrokehq/keystroke>)
