---
canonical: "https://firewall.lpm.dev/npm/@samooth/open-codex"
markdown: "https://firewall.lpm.dev/npm/@samooth/open-codex/v/0.3.44.md"
package: "@samooth/open-codex"
report_status: "published"
title: "@samooth/open-codex@0.3.44 npm security report"
verdict: "malicious"
version: "0.3.44"
---

# @samooth/open-codex@0.3.44 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
**Blocked & quarantined** — Users may have cryptocurrency transfers redirected, and remote code may run with the CLI user's privileges.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Malware
- **Selected version:** 0.3.44
- **Selected version is latest:** Yes
- **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: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

The executable CLI is reported to contain wallet-address clipboard replacement and a remote payload loader that executes decoded content. These behaviors are unrelated to an AI coding agent's expected operation and warrant blocking.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 84.0%
- **Started:** 2026-11-11T05:17:52.765Z
- **Finished:** 2026-11-11T05:18:48.876Z
- **Download time:** 757 ms
- **Static scan time:** 4961 ms
- **AI review time:** 50392 ms
- **Total time:** 56111 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 executable CLI contains reported wallet clipboard replacement and remote payload execution behavior.

- **Trigger:** Running the open-codex CLI reaches the flagged behavior.

- **Impact:** Users may have cryptocurrency transfers redirected, and remote code may run with the CLI user's privileges.

- **Evidence paths:** dist/cli.js

- **Review source:** ai\_review

- **Reviewed:** 2026-11-11T05:18:48.876Z

### AI review details

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

- **Mechanism:** The CLI rewrites clipboard contents matching cryptocurrency wallet addresses and fetches, decodes, and executes a remote payload.

- **Attack narrative:** The CLI is the package's executable entrypoint. Its flagged code replaces clipboard wallet addresses and downloads and executes a decoded remote payload, enabling cryptocurrency diversion and arbitrary code execution.

- **Rationale:** The executable CLI is reported to contain wallet-address clipboard replacement and a remote payload loader that executes decoded content. These behaviors are unrelated to an AI coding agent's expected operation and warrant blocking.

- **Files touched:** dist/cli.js

### Review decision

- **Verdict:** Malicious

- **Confidence:** 84.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** The package exposes dist/cli.js as its executable entrypoint, making its CLI code reachable when users run open-codex., The flagged CLI behavior includes rewriting clipboard contents that match cryptocurrency wallet addresses and downloading, decoding, and executing a remote payload.

- **Evidence against:** The package has no install lifecycle scripts., The CLI is an AI coding agent, so network requests, command execution, file access, and clipboard support can serve its stated purpose.

## Affected versions and remediation

This report applies to @samooth/open-codex@0.3.44.

- Avoid installing @samooth/open-codex@0.3.44. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.

## Public findings

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

Package declares npm scripts.

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 5. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@samooth/open-codex@0.3.44/dist/cli.js>)

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

Public source snippet (untrusted):

```javascript
L228: \r
L229: `+n)}function Wb(e,t,n,r,i,o){if(e.listenerCount("wsClientError")){let a=new Error(i);Error.captureStackTrace(a,Wb),e.emit("wsClientError",a,n,t)}else Yk(n,r,i,o)}});var qht,Yht,jh...
L230: `:`
...
L234: `)),!/^\s*at /.test(t[0])&&/^\s*at /.test(t[1])&&(t=t.slice(1));let r=!1,i=null,o=[];return t.forEach(a=>{if(a=a.replace(/\\/g,"/"),this._internals.some(c=>c.test(a)))return;let s=...
L235: `).join("")}captureString(t,n=this.captureString){typeof t=="function"&&(n=t,t=1/0);let{stackTraceLimit:r}=Error;t&&(Error.stackTraceLimit=t);let i={};Error.captureStackTrace(i,n);...
L236: `;this.queue.push(n),this.maybeWrite()}async maybeWrite(){if(this.isWriting||this.queue.length===0)return;this.isWriting=!0;let t=this.queue.join("");this.queue=[];try{await ICe.ap...
...
L240: `).map(
```

### 6. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@samooth/open-codex@0.3.44/dist/cli.js>)

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

Public source snippet (untrusted):

```javascript
L228: \r
L229: `+n)}function Wb(e,t,n,r,i,o){if(e.listenerCount("wsClientError")){let a=new Error(i);Error.captureStackTrace(a,Wb),e.emit("wsClientError",a,n,t)}else Yk(n,r,i,o)}});var qht,Yht,jh...
L230: `:`
...
L235: `).join("")}captureString(t,n=this.captureString){typeof t=="function"&&(n=t,t=1/0);let{stackTraceLimit:r}=Error;t&&(Error.stackTraceLimit=t);let i={};Error.captureStackTrace(i,n);...
L236: `;this.queue.push(n),this.maybeWrite()}async maybeWrite(){if(this.isWriting||this.queue.length===0)return;this.isWriting=!0;let t=this.queue.join("");this.queue=[];try{await ICe.ap...
L237: `).join(`
...
L240: `).map(t=>t.trim()).join(" ")};ATe.O=function(e){return this.inspectOpts.colors=this.useColors,g5.inspect(e,this.inspectOpts)}});var A5=Q((KBn,xJ)=>{"use strict";f();typeof process.
```

### 7. Critical: Clipboard Crypto Hijack
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@samooth/open-codex@0.3.44/dist/cli.js>)

Source reads and rewrites clipboard contents matching cryptocurrency wallet addresses.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: var vdt=Object.create;var B9=Object.defineProperty;var Idt=Object.getOwnPropertyDescriptor;var Ddt=Object.getOwnPropertyNames;var wdt=Object.getPrototypeOf,xdt=Object.prototype.has...
L3: `);let r;for(;(r=Udt.exec(n))!=null;){let i=r[1],o=r[2]||"";o=o.trim();let a=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),a==='"'&&(o=o.replace(/\\n/g,`
L4: `),o=o.replace(/\\r/g,"\r")),t[i]=o}return t}function zdt(e){e=e||{};let t=kye(e);e.path=t;let n=ol.configDotenv(e);if(!n.parsed){let a=new Error(`MISSING_DATA: Cannot parse ${t} f...
L5: 
...
L15: 3. You might have more than one copy of React in the same app
L16: See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),K}function de(){se.asyncTransitions--}function he(K){if(Tt===n
```

### 8. High: Cloud Metadata Access
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@samooth/open-codex@0.3.44/dist/cli.js>)

Source reaches cloud instance metadata or link-local credential endpoints.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: var vdt=Object.create;var B9=Object.defineProperty;var Idt=Object.getOwnPropertyDescriptor;var Ddt=Object.getOwnPropertyNames;var wdt=Object.getPrototypeOf,xdt=Object.prototype.has...
L3: `);let r;for(;(r=Udt.exec(n))!=null;){let i=r[1],o=r[2]||"";o=o.trim();let a=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),a==='"'&&(o=o.replace(/\\n/g,`
L4: `),o=o.replace(/\\r/g,"\r")),t[i]=o}return t}function zdt(e){e=e||{};let t=kye(e);e.path=t;let n=ol.configDotenv(e);if(!n.parsed){let a=new Error(`MISSING_DATA: Cannot parse ${t} f...
L5: 
...
L15: 3. You might have more than one copy of React in the same app
L16: See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),K}function de(){se.asyncTransitions--}function he(K){if(Tt===n
```

### 9. Critical: Remote Asset Decode Execute
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@samooth/open-codex@0.3.44/dist/cli.js>)

Source fetches a remote non-code asset, decodes its contents, and dynamically executes the decoded payload.

Public source snippet (untrusted):

```javascript
L323: `+T+"}":"{"+v.join(",")+"}",r=T,E}}typeof LIe.stringify!="function"&&(LIe.stringify=function(d,p,h){var A;if(r="",i="",typeof h=="number")for(A=0;A<h;A+=1)i+=" ";else typeof h=="st...
L324: `,r:"\r",t:"	"},o,a=function(T){throw{name:"SyntaxError",message:T,at:n,text:o}},s=function(T){return T&&T!==r&&a("Expected '"+T+"' instead of '"+r+"'"),r=o.charAt(n),n+=1,r},c=fun...
L325: Supported algorithms are:
L326: "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,GB="secret must be a string or buffer",rw="key must be a str...
L327: `});let p=d.join(";"),h=await e.crypto.sha256DigestHex(n),A=`${e.method.toUpperCase()}
...
L334: ${E}
L335: `+await e.crypto.sha256DigestHex(A),T=await Jbt(e.crypto,e.securityCredentials.secre
```

### 10. High: Obfuscated Payload Loader
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@samooth/open-codex@0.3.44/dist/cli.js>)

Source contains an obfuscated payload loader that reconstructs and executes hidden code.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: var vdt=Object.create;var B9=Object.defineProperty;var Idt=Object.getOwnPropertyDescriptor;var Ddt=Object.getOwnPropertyNames;var wdt=Object.getPrototypeOf,xdt=Object.prototype.has...
L3: `);let r;for(;(r=Udt.exec(n))!=null;){let i=r[1],o=r[2]||"";o=o.trim();let a=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),a==='"'&&(o=o.replace(/\\n/g,`
L4: `),o=o.replace(/\\r/g,"\r")),t[i]=o}return t}function zdt(e){e=e||{};let t=kye(e);e.path=t;let n=ol.configDotenv(e);if(!n.parsed){let a=new Error(`MISSING_DATA: Cannot parse ${t} f...
L5: 
...
L15: 3. You might have more than one copy of React in the same app
L16: See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),K}function de(){se.asyncTransitions--}function he(K){if(Tt===n
```

### 11. High: Remote Agent Bridge
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@samooth/open-codex@0.3.44/dist/cli.js>)

Source exposes local file and command tools to a remote model endpoint.

Public source snippet (untrusted):

```javascript
L3: `);let r;for(;(r=Udt.exec(n))!=null;){let i=r[1],o=r[2]||"";o=o.trim();let a=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),a==='"'&&(o=o.replace(/\\n/g,`
L4: `),o=o.replace(/\\r/g,"\r")),t[i]=o}return t}function zdt(e){e=e||{};let t=kye(e);e.path=t;let n=ol.configDotenv(e);if(!n.parsed){let a=new Error(`MISSING_DATA: Cannot parse ${t} f...
L5: 
...
L240: `).map(t=>t.trim()).join(" ")};ATe.O=function(e){return this.inspectOpts.colors=this.useColors,g5.inspect(e,this.inspectOpts)}});var A5=Q((KBn,xJ)=>{"use strict";f();typeof process...
L241: `,"\r","	"," ","\0"].some(n=>this.checkString(n,{offset:6})))return{ext:"vtt",mime:"text/vtt"};if(this.check([137,80,78,71,13,10,26,10])){await t.ignore(8);async function n(){retur...
L242: 
...
L312: \r
L313: `),r=!1,i=!1,o;e.on("response",a=>{le
```

### 12. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@samooth/open-codex@0.3.44/dist/cli.js>)

A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable chain: manifest.bin -> dist/cli.js
L228: \r
L229: `+n)}function Wb(e,t,n,r,i,o){if(e.listenerCount("wsClientError")){let a=new Error(i);Error.captureStackTrace(a,Wb),e.emit("wsClientError",a,n,t)}else Yk(n,r,i,o)}});var qht,Yht,jh...
L230: `:`
...
L235: `).join("")}captureString(t,n=this.captureString){typeof t=="function"&&(n=t,t=1/0);let{stackTraceLimit:r}=Error;t&&(Error.stackTraceLimit=t);let i={};Error.captureStackTrace(i,n);...
L236: `;this.queue.push(n),this.maybeWrite()}async maybeWrite(){if(this.isWriting||this.queue.length===0)return;this.isWriting=!0;let t=this.queue.join("");this.queue=[];try{await ICe.ap...
L237: `).join(`
...
L240: `).map(t=>t.trim()).join(" ")};ATe.O=function(e){return this.inspectOpts.colors=this.useColors,g5.inspect(e,this.inspectOpts)}})
```

### 13. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@samooth/open-codex@0.3.44/dist/cli.js>)

A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable command-output exfiltration chain: manifest.bin -> dist/cli.js
L228: \r
L229: `+n)}function Wb(e,t,n,r,i,o){if(e.listenerCount("wsClientError")){let a=new Error(i);Error.captureStackTrace(a,Wb),e.emit("wsClientError",a,n,t)}else Yk(n,r,i,o)}});var qht,Yht,jh...
L230: `:`
...
L235: `).join("")}captureString(t,n=this.captureString){typeof t=="function"&&(n=t,t=1/0);let{stackTraceLimit:r}=Error;t&&(Error.stackTraceLimit=t);let i={};Error.captureStackTrace(i,n);...
L236: `;this.queue.push(n),this.maybeWrite()}async maybeWrite(){if(this.isWriting||this.queue.length===0)return;this.isWriting=!0;let t=this.queue.join("");this.queue=[];try{await ICe.ap...
L237: `).join(`
...
L240: `).map(t=>t.trim()).join(" ")};ATe.O=function(e){return this.inspectOpts.colors=this.useColors,g5.in
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 16. Medium: Oversized Source File
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@samooth/open-codex@0.3.44/dist/cli.js>)

Package contains source files above the normal full-analysis size ceiling.

Public source snippet (untrusted):

```javascript
path = dist/cli.js
kind = oversized_source_file
sizeBytes = 4496406
magicHex = [redacted]
```

### 17. Medium: Oversized Cli Entrypoint
- **Category:** Artifact Inventory
- **Confidence:** 80.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@samooth/open-codex@0.3.44/dist/cli.js>)

Package contains an oversized executable-looking CLI entrypoint.

Public source snippet (untrusted):

```javascript
path = dist/cli.js
kind = oversized_cli_entrypoint
sizeBytes = 4496406
magicHex = [redacted]
```

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

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

### 19. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@samooth/open-codex@0.3.44/dist/cli.js>)

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

Public source snippet (untrusted):

```javascript
stage = ast_semantic_analysis; reason = ast_path_work_budget_exceeded; limitedFiles = 1
```

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

- **Dependencies:** 26
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 23
- **Published dependency-graph edges:** 26

### Published dependency entries
- @google/genai ^1.39.0 (Dependency)
- @huggingface/hub ^2.8.0 (Dependency)
- @inkjs/ui ^2.0.0 (Dependency)
- @modelcontextprotocol/sdk ^1.27.1 (Dependency)
- chalk ^5.2.0 (Dependency)
- cli-highlight ^2.1.11 (Dependency)
- clipboardy ^5.3.0 (Dependency)
- diff ^7.0.0 (Dependency)
- diff-sequences ^29.6.3 (Dependency)
- dotenv ^17.2.3 (Dependency)
- fast-deep-equal ^3.1.3 (Dependency)
- figures ^6.1.0 (Dependency)
- file-type ^20.1.0 (Dependency)
- ignore ^7.0.5 (Dependency)
- ink ^6.8.0 (Dependency)
- js-yaml ^4.1.1 (Dependency)
- marked ^15.0.7 (Dependency)
- marked-terminal ^7.3.0 (Dependency)
- meow ^13.2.0 (Dependency)
- open ^10.1.0 (Dependency)
- openai ^6.17.0 (Dependency)
- react ^19.0.0 (Dependency)
- shell-quote ^1.8.2 (Dependency)
- to-rotated ^1.0.0 (Dependency)
- use-interval 1.4.0 (Dependency)
- zod ^4.3.6 (Dependency)

## Package metadata
- **Package:** @samooth/open-codex
- **Ecosystem:** npm
- **Version:** 0.3.44
- **License:** Apache-2.0
- **Version published:** 2026-11-11T05:16:07.716Z
- **Package first seen:** 2026-09-15T19:04:24.997Z
- **Package last seen:** 2026-11-11T05:18:48.876Z
- **Known versions:** 10
- **Latest version:** 0.3.44
- **Appeal under review:** No
- **Description:** Lightweight coding agent that runs in your terminal
- **Runtime engines:** node: \>=22
- **Artifact files:** 4
- **Artifact unpacked size:** 21,150,745 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@samooth/open-codex/v/0.3.44>)
- [Repository](<https://github.com/samooth/open-codex.git>)
- [Homepage](<https://github.com/samooth/open-codex#readme>)
- [Issues](<https://github.com/samooth/open-codex/issues>)
