---
canonical: "https://firewall.lpm.dev/npm/@diffexai/diffex/v/0.3.3"
markdown: "https://firewall.lpm.dev/npm/@diffexai/diffex/v/0.3.3.md"
package: "@diffexai/diffex"
report_status: "under_review"
title: "@diffexai/diffex@0.3.3 npm security report"
verdict: "manual_review"
version: "0.3.3"
---

# @diffexai/diffex@0.3.3 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
**Allowed — no malicious behavior detected** — No malicious behavior detected. 12 low-signal pattern(s) reviewed.

- **Verdict:** Manual Review
- **Product-default install policy:** Allow
- **Firewall policy:** No policy match
- **Public report status:** Under Review
- **Threat category:** Unknown
- **Selected version:** 0.3.3
- **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: manual review; recommendation: manual review. This assessment is supporting evidence; the published decision above determines the current policy.

The reviewed JavaScript associates the native add-ons with terminal input handling, but offline analysis does not resolve all shipped binaries. No attack is established; the unresolved executable behavior requires manual review.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Manual Review
- **Recorded analysis confidence:** 98.0%
- **Started:** 2026-10-26T19:31:06.021Z
- **Finished:** 2026-10-26T19:32:01.633Z
- **Download time:** 1282 ms
- **Static scan time:** 6185 ms
- **AI review time:** 48145 ms
- **Total time:** 55612 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:** The package includes platform-specific native terminal helpers whose behavior remains unresolved after offline analysis.

- **Trigger:** The TUI attempts to load a helper on supported Darwin or Windows architectures; the Windows terminal path calls its virtual-terminal input function.

- **Impact:** The effects of the unresolved native code cannot be determined from this inspection.

- **Evidence paths:** dist/node\_modules/@diffexai/diffex-tui/dist/native-modifiers.js, dist/node\_modules/@diffexai/diffex-tui/dist/terminal.js, .lpm-inspection-0qqZ2X/0-0e51e550acf5.txt, .lpm-inspection-0qqZ2X/1-7657cd6bd999.txt, .lpm-inspection-0qqZ2X/2-5bc2f926c6a6.txt, .lpm-inspection-0qqZ2X/3-e40df72050ed.txt

- **Review source:** ai\_review

- **Reviewed:** 2026-10-26T19:32:01.633Z

### AI review details

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

- **Mechanism:** The JavaScript selects and requires bundled native add-ons, but the available analysis does not fully resolve their behavior.

- **Rationale:** The reviewed JavaScript associates the native add-ons with terminal input handling, but offline analysis does not resolve all shipped binaries. No attack is established; the unresolved executable behavior requires manual review.

- **Files touched:** dist/node\_modules/@diffexai/diffex-tui/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node, dist/node\_modules/@diffexai/diffex-tui/native/darwin/prebuilds/darwin-arm64/darwin-modifiers.node, dist/node\_modules/@diffexai/diffex-tui/native/win32/prebuilds/win32-arm64/win32-console-mode.node, dist/node\_modules/@diffexai/diffex-tui/native/win32/prebuilds/win32-x64/win32-console-mode.node

### Review decision

- **Verdict:** Manual Review

- **Confidence:** 98.0%

- **Recommended action:** manual\_review

- **Intent class:** Unknown

- **False-positive risk:** Medium

- **AI review observations:** The TUI dynamically loads platform-specific native helpers for supported architectures., The native analysis leaves both Darwin add-ons unresolved, cannot analyze the Windows ARM add-on, and reports an unmapped target in the Windows x64 add-on., The Windows TUI calls the native helper to enable virtual-terminal input.

- **Evidence against:** The inspected Windows TUI call site uses the helper for terminal input handling; this does not resolve the helpers' complete behavior.

## Affected versions and remediation

This report applies to @diffexai/diffex@0.3.3.

- Review the evidence and your use of @diffexai/diffex@0.3.3 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. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 6. Medium: Ships Native Binary
- **Category:** Artifact Inventory
- **Confidence:** 75.0%
- **Path:** dist/node\_modules/@diffexai/diffex-tui/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node
- **Public source:** [View source](<https://unpkg.com/@diffexai/diffex@0.3.3/dist/node_modules/%40diffexai/diffex-tui/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node>)

Package ships native binary artifacts.

Public source snippet (untrusted):

```text
path = dist/node_modules/@diffexai/diffex-[redacted]-x64/darwin-modifiers.node
kind = native_binary
sizeBytes = 12776
magicHex = [redacted]
```

### 7. 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.

### 8. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/config.js\#virtual:string-array:round1
- **Public source:** [View source](<https://unpkg.com/@diffexai/diffex@0.3.3/dist/config.js%23virtual%3Astring-array%3Around1>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```text
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 3
```

### 9. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/core/resolve-config-value.js
- **Public source:** [View source](<https://unpkg.com/@diffexai/diffex@0.3.3/dist/core/resolve-config-value.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @phi-code-admin/phi-code@0.99.0
matchedPath = dist/core/resolve-config-value.js
matchedIdentity = npm:[redacted]:0.99.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 10. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/modes/rpc/rpc-client.js
- **Public source:** [View source](<https://unpkg.com/@diffexai/diffex@0.3.3/dist/modes/rpc/rpc-client.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @phi-code-admin/phi-code@0.99.0
matchedPath = dist/modes/rpc/rpc-client.js
matchedIdentity = npm:[redacted]:0.99.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 11. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/utils/clipboard.js
- **Public source:** [View source](<https://unpkg.com/@diffexai/diffex@0.3.3/dist/utils/clipboard.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @phi-code-admin/phi-code@0.99.0
matchedPath = dist/utils/clipboard.js
matchedIdentity = npm:[redacted]:0.99.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 12. High: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/utils/shell.js
- **Public source:** [View source](<https://unpkg.com/@diffexai/diffex@0.3.3/dist/utils/shell.js>)

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 = @diffexai/diffex@0.2.4
matchedIdentity = npm:QGRpZmZleGFpL2RpZmZleA:0.2.4
similarity = 0.850
summary = stored previous version shares package body but lacks this dangerous source file
```

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

- **Dependencies:** 29
- **Optional dependencies:** 1
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 30

### Published dependency entries
- @anthropic-ai/sdk 1.3.0 (Dependency)
- @aws-sdk/client-bedrock-runtime 3.1156.0 (Dependency)
- @google/genai 2.31.0 (Dependency)
- @mistralai/mistralai 3.2.0 (Dependency)
- @napi-rs/keyring 2.1.2 (Dependency)
- @opentelemetry/api 1.10.0 (Dependency)
- @silvia-odwyer/photon-node 0.3.4 (Dependency)
- @smithy/node-http-handler 4.12.1 (Dependency)
- chalk 6.0.1 (Dependency)
- cross-spawn 7.0.6 (Dependency)
- diff 9.0.0 (Dependency)
- get-east-asian-width 1.7.0 (Dependency)
- glob 13.0.6 (Dependency)
- grok-mermaid 0.2.3 (Dependency)
- highlight.js 11.12.0 (Dependency)
- hosted-git-info 9.0.3 (Dependency)
- http-proxy-agent 9.1.0 (Dependency)
- https-proxy-agent 9.1.0 (Dependency)
- ignore 7.0.14 (Dependency)
- jiti 2.7.0 (Dependency)
- marked 18.1.1 (Dependency)
- minimatch 10.2.6 (Dependency)
- openai 7.43.0 (Dependency)
- partial-json 0.1.7 (Dependency)
- proper-lockfile 4.1.2 (Dependency)
- semver 7.8.5 (Dependency)
- typebox 1.4.3 (Dependency)
- undici 8.12.3 (Dependency)
- yaml 2.9.1 (Dependency)
- @mariozechner/clipboard 0.3.9 (OptionalDependency)

## Package metadata
- **Package:** @diffexai/diffex
- **Ecosystem:** npm
- **Version:** 0.3.3
- **License:** MIT
- **Version published:** 2026-10-26T19:25:20.463Z
- **Package first seen:** 2026-10-26T19:32:01.633Z
- **Package last seen:** 2026-11-05T08:29:32.207Z
- **Known versions:** 11
- **Latest version:** 0.4.0
- **Appeal under review:** No
- **Description:** Coding agent CLI with read, bash, edit, write, update\_plan tools and session management
- **Author:** Mario Zechner
- **Maintainers:** jefft, wooguy808, pepps233
- **Keywords:** coding-agent, ai, llm, cli, tui, agent
- **Runtime engines:** node: \>=22.19.0
- **Artifact files:** 1241
- **Artifact unpacked size:** 8,609,280 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@diffexai/diffex/v/0.3.3>)
- [Homepage](<https://diffex.ai/>)
