---
canonical: "https://firewall.lpm.dev/npm/@mars_ai/marscli/v/2.0.19"
markdown: "https://firewall.lpm.dev/npm/@mars_ai/marscli/v/2.0.19.md"
package: "@mars_ai/marscli"
report_status: "published"
title: "@mars_ai/marscli@2.0.19 npm security report"
verdict: "clean"
version: "2.0.19"
---

# @mars\_ai/marscli@2.0.19 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** — 22 low-signal patterns reviewed and cleared.

- **Verdict:** Clean
- **Product-default install policy:** Allow
- **Firewall policy:** No policy match
- **Public report status:** Published
- **Threat category:** None published
- **Selected version:** 2.0.19
- **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: clean; recommendation: mark clean. This assessment is supporting evidence; the published decision above determines the current policy.

The package is a coding-agent CLI with no declared lifecycle scripts. The reviewed credential and telemetry paths are consistent with its service features, and no unrelated collection or other concrete attack behavior was established.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 87.0%
- **Started:** 2026-11-06T06:25:03.914Z
- **Finished:** 2026-11-06T06:26:19.071Z
- **Download time:** 1040 ms
- **Static scan time:** 16191 ms
- **AI review time:** 57925 ms
- **Total time:** 75157 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:** No attack was identified. The inspected network activity is consistent with the CLI’s AI provider and MarsAI service functions.

- **Trigger:** The CLI runs when invoked; provider OAuth requests occur during sign-in or token refresh.

- **Impact:** No malicious impact established from the inspected source.

- **Review source:** ai\_review

- **Reviewed:** 2026-11-06T06:26:19.071Z

### AI review details

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

- **Mechanism:** MarsAI requests use its configured service origin or the stated default. The reviewed files do not show credentials sent to an unrelated host or install-time collection.

- **Rationale:** The package is a coding-agent CLI with no declared lifecycle scripts. The reviewed credential and telemetry paths are consistent with its service features, and no unrelated collection or other concrete attack behavior was established.

- **Files touched:** package.json, dist/extensions/marsai/oauth.js, dist/core/telemetry.js

- **Network endpoints:** https://marsai.click, https://auth.kimi.com

### Review decision

- **Verdict:** Clean

- **Confidence:** 87.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** The manifest describes a coding-agent CLI and exposes a `mars` command; it declares no lifecycle scripts., MarsAI OAuth uses `MARSAI_URL` or `https://marsai.click` as its API origin, consistent with the package’s stated service purpose., Install telemetry is controlled by a setting or `MARS_TELEMETRY` override; the inspected code does not establish an install-time data collection path.

## Affected versions and remediation

This report applies to @mars\_ai/marscli@2.0.19.

- No action is needed for @mars\_ai/marscli@2.0.19. Pin the version in your lockfile and check new releases as they are scanned.

## Public findings

These are automated scan signals. The review checked each one and found no malicious behavior, so all of them are cleared.

### 1. High: Child Process (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/core/exec.js
- **Public source:** [View source](<https://unpkg.com/@mars_ai/marscli@2.0.19/dist/core/exec.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L4: import { constants as bufferConstants } from "node:buffer";
L5: import { spawn } from "node:child_process";
L6: import { StringDecoder } from "node:string_decoder";
```

### 2. High: Shell (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/modes/interactive/external-editor.js
- **Public source:** [View source](<https://unpkg.com/@mars_ai/marscli@2.0.19/dist/modes/interactive/external-editor.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L37: const child = win32
L38: ? spawn(commandLine, [], { stdio: "inherit", shell: true })
L39: : spawn(editor, [...editorArgs, filePath], { stdio: "inherit" });
```

### 3. Low: Eval (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 45.0%

Package source references a known benign dynamic code generation pattern.

### 4. Medium: Dynamic Require (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/core/extensions/loader.js
- **Public source:** [View source](<https://unpkg.com/@mars_ai/marscli@2.0.19/dist/core/extensions/loader.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L17: import { time } from "../timings.js";
L18: const require = createRequire(import.meta.url);
L19: const isNodeSeaBinary = ("sea" in process.features && process.features.sea === true) ||
```

### 5. Low: Weak Crypto (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** dist/bundle/chunks/bedrock-converse-stream.js
- **Public source:** [View source](<https://unpkg.com/@mars_ai/marscli@2.0.19/dist/bundle/chunks/bedrock-converse-stream.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L1: import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
L2: var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoO...
L3: versions published after the first week of January 2027
...
L8: 
L9: More information can be found at: https://a.co/c895JFp`))}}}});var longPollMiddleware,longPollMiddlewareOptions,getLongPollPlugin,init_longPollMiddleware=__esm({"node_modules/@aws-...
L10: `+hint}catch{!context.logger||context.logger?.constructor?.name==="NoOpLogger"?console.warn(hint):context.logger?.warn?.(hint)}typeof error2.$responseBodyText<"u"&&error2.$response...
L11: `).slice(0,5).filter(s2=>!s2.includes("
```

### 6. Medium: Network (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 7. Medium: Environment Vars (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 8. Low: Filesystem (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 9. High: Same File Env Network Execution (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/bundle/chunks/chunk-WAIAG7LD.js
- **Public source:** [View source](<https://unpkg.com/@mars_ai/marscli@2.0.19/dist/bundle/chunks/chunk-WAIAG7LD.js>)

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

Public source snippet (untrusted):

```javascript
L1: import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
L2: import{getShellConfig}from"./chunk-QLSPEGYL.js";import{getAgentDir,getFileRevision,normalizePath,require_cross_spawn,stripBom}from"./chunk-5FUIRIHT.js";import{__commonJS,__require,...
L3: GFS4: `),console.error(m)});fs[gracefulQueue]||(queue=global[gracefulQueue]||[],publishQueue(fs,queue),fs.close=(function(fs$close){function close(fd,cb){return fs$close.call(fs,fd...
L4: `;await new Promise((resolve,reject)=>{stdin.write(payload,error=>error?reject(error):resolve())})}async close(){if(this.closed)return;this.closed=!0;let child=this.child;if(!child...
...
L8: `)&&(text=text.slice(1)),skipLeadingLf=!1),buffered+=text,consumeLines(),Buffer.byteLength(buffered)>maxEv
```

### 10. Critical: Hardcoded Runtime Data Exfiltration (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/bundle/chunks/kimi-coding.js
- **Public source:** [View source](<https://unpkg.com/@mars_ai/marscli@2.0.19/dist/bundle/chunks/kimi-coding.js>)

Source sends credentials or rich application records to a package-controlled external receiver enabled by default.

Public source snippet (untrusted):

```javascript
Source sends the broad process environment to a literal external destination.
L1: import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
L2: var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(a,b)=>(typeof require<"u"?require:a)[b]}):x)(function(x){if(typeof require<"u")return require.apply(...
```

### 11. High: Command Output Exfiltration (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/bundle/chunks/chunk-WAIAG7LD.js
- **Public source:** [View source](<https://unpkg.com/@mars_ai/marscli@2.0.19/dist/bundle/chunks/chunk-WAIAG7LD.js>)

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

Public source snippet (untrusted):

```javascript
L2: import{getShellConfig}from"./chunk-QLSPEGYL.js";import{getAgentDir,getFileRevision,normalizePath,require_cross_spawn,stripBom}from"./chunk-5FUIRIHT.js";import{__commonJS,__require,...
L3: GFS4: `),console.error(m)});fs[gracefulQueue]||(queue=global[gracefulQueue]||[],publishQueue(fs,queue),fs.close=(function(fs$close){function close(fd,cb){return fs$close.call(fs,fd...
L4: `;await new Promise((resolve,reject)=>{stdin.write(payload,error=>error?reject(error):resolve())})}async close(){if(this.closed)return;this.closed=!0;let child=this.child;if(!child...
...
L8: `)&&(text=text.slice(1)),skipLeadingLf=!1),buffered+=text,consumeLines(),Buffer.byteLength(buffered)>maxEventBytes)throw new Error(`MCP SSE event exceeds ${maxEventBytes} bytes`)}l...
L9: `)&&(tail=tail.slice(1)),buffered+=tail,
```

### 12. High: Cloud Metadata Access (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/bundle/chunks/chunk-UCI3K5GH.js
- **Public source:** [View source](<https://unpkg.com/@mars_ai/marscli@2.0.19/dist/bundle/chunks/chunk-UCI3K5GH.js>)

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

Public source snippet (untrusted):

```javascript
L1: import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
L2: import{ArminComponent}from"./chunk-WI34E7D6.js";import{Compile,CredentialSynchronizationError,DEFAULT_RADIUS_GATEWAY,InMemoryCodingAgentModelsStore,ModelRuntime,ProjectTrustStore,V...
L3: `)||potentialValue.includes("\r")||potentialValue.includes("\0"))===!1}function parseReferrerPolicy(actualResponse){let policyHeader=(actualResponse.headersList.get("referrer-polic...
L4: \r
...
L42: `;channels.sendHeaders.publish({request,headers:header,socket:session[kSocket]})}let shouldEndStream=body===null||contentLength===0;return state3.body=body,state3.contentLength=con...
L43: `,this[kBodyTimeout]=bodyTimeout??3e5,this[kHeadersTimeout]=headersTimeout??3e5,this[kStrictConte
```

### 13. High: Cross File Remote Execution Context (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/bundle/chunks/chunk-5FUIRIHT.js
- **Public source:** [View source](<https://unpkg.com/@mars_ai/marscli@2.0.19/dist/bundle/chunks/chunk-5FUIRIHT.js>)

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/bundle/chunks/chunk-5FUIRIHT.js spawns dist/bundle/chunks/codemode-worker.js; helper contains network access plus dynamic code execution.
L1: import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
L2: import{__commonJS,__require,__toESM}from"./chunk-JXWJOIH4.js";var require_windows=__commonJS({"node_modules/isexe/windows.js"(exports,module){module.exports=isexe;isexe.sync=sync;v...
```

### 14. Low: High Entropy Strings (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 15. Low: Telemetry (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 70.0%

Package source references telemetry or analytics APIs.

### 16. Low: Url Strings (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 17. Medium: Structural Risk Force Deep Review (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

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

### 18. Low: No License (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest does not declare a clear license.

### 19. High: Semantic Analysis Limited (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/bundle/chunks/chunk-LVVZS2NO.js
- **Public source:** [View source](<https://unpkg.com/@mars_ai/marscli@2.0.19/dist/bundle/chunks/chunk-LVVZS2NO.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_alias_growth_limit_exceeded; limitedFiles = 2
```

### 20. High: Known Malware Source Similarity (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/core/footer-data-provider.js
- **Public source:** [View source](<https://unpkg.com/@mars_ai/marscli@2.0.19/dist/core/footer-data-provider.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 = @diffexai/diffex@0.2.1
matchedPath = dist/core/footer-data-provider.js
matchedIdentity = npm:QGRpZmZleGFpL2RpZmZleA:0.2.1
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 21. High: Known Malware Source Similarity (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/core/resolve-config-value.js
- **Public source:** [View source](<https://unpkg.com/@mars_ai/marscli@2.0.19/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 = @diffexai/diffex@0.2.1
matchedPath = dist/core/resolve-config-value.js
matchedIdentity = npm:QGRpZmZleGFpL2RpZmZleA:0.2.1
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 22. High: Known Malware Source Similarity (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/core/export-html/vendor/highlight.min.js
- **Public source:** [View source](<https://unpkg.com/@mars_ai/marscli@2.0.19/dist/core/export-html/vendor/highlight.min.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 = @leanandmean/coding-agent@0.74.1-scramjet.81
matchedPath = dist/core/export-html/vendor/highlight.min.js
matchedIdentity = npm:[redacted]:0.74.1-scramjet.81
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

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

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

### Published dependency entries
- @silvia-odwyer/photon-node 0.3.4 (Dependency)
- brace-expansion 5.0.12 (Dependency)
- chalk 6.0.0 (Dependency)
- cross-spawn 7.0.6 (Dependency)
- diff 8.0.4 (Dependency)
- highlight.js 10.7.3 (Dependency)
- hosted-git-info 9.0.3 (Dependency)
- ignore 7.0.8 (Dependency)
- jiti 2.7.0 (Dependency)
- lovely-mermaid 0.3.3 (Dependency)
- minimatch 11.0.3 (Dependency)
- proper-lockfile 4.1.2 (Dependency)
- quickjs-wasi 3.6.2 (Dependency)
- semver 7.8.5 (Dependency)
- typebox 1.3.27 (Dependency)
- undici 8.12.3 (Dependency)
- yaml 2.9.0 (Dependency)

## Package metadata
- **Package:** @mars\_ai/marscli
- **Ecosystem:** npm
- **Version:** 2.0.19
- **Version published:** 2026-11-06T06:20:01.833Z
- **Package first seen:** 2026-10-09T08:14:39.118Z
- **Package last seen:** 2026-11-06T08:13:08.087Z
- **Known versions:** 20
- **Latest version:** 2.0.21
- **Appeal under review:** No
- **Description:** Coding agent CLI with read, bash, edit, write tools and session management
- **Maintainers:** mars\_ai
- **Runtime engines:** node: \>=22.19.0
- **Artifact files:** 1193
- **Artifact unpacked size:** 23,585,886 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@mars_ai/marscli/v/2.0.19>)
