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

# @apilift/cli@1.7.2 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 — allowed with a warning** — Allowed by default policy, but 15 finding(s) warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Telemetry warning (can be blocked)
- **Public report status:** Published
- **Threat category:** Telemetry
- **Selected version:** 1.7.2
- **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.

The flagged credential redirection and remote execution were not substantiated; credentials use an explicit setup flow and the operating system vault. However, runtime telemetry is sent by default when service settings enable it, and the package source does not clearly disclose that collection, so this merits a warning.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 84.0%
- **Started:** 2026-10-30T09:38:26.144Z
- **Finished:** 2026-10-30T09:40:14.751Z
- **Download time:** 520 ms
- **Static scan time:** 22456 ms
- **AI review time:** 85631 ms
- **Total time:** 108607 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:** Undisclosed runtime telemetry may upload CLI command metadata to EU PostHog.

- **Trigger:** After a counted CLI invocation when the bundled collector runs; enabled only when service-provided analytics settings permit it.

- **Impact:** The vendor analytics service can associate command usage patterns with the user's Apilift account and installation.

- **Evidence paths:** dist/apilift.js, dist/apilift-collector.js

- **Review source:** ai\_review

- **Reviewed:** 2026-10-30T09:40:14.751Z

### AI review details

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

- **Mechanism:** The CLI queues allowlisted command lifecycle events. The background collector sends them to https://eu.i.posthog.com with account, workspace, and installation identifiers. APILIFT\_COLLECTOR\_DISABLED=1 disables the collector.

- **Rationale:** The flagged credential redirection and remote execution were not substantiated; credentials use an explicit setup flow and the operating system vault. However, runtime telemetry is sent by default when service settings enable it, and the package source does not clearly disclose that collection, so this merits a warning.

- **Network endpoints:** https://eu.i.posthog.com

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 84.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** After a counted CLI command, the package records its command, purpose, result, duration, and agent, then starts a background collector., Event properties are allowlisted; command events contain metadata rather than command arguments or output., When enabled by service-provided settings, queued events are sent to the analytics host with account, workspace, and installation IDs., The collector can be disabled with APILIFT\_COLLECTOR\_DISABLED=1, but it starts by default.

- **Evidence against:** No install lifecycle scripts are declared., Credential setup is an explicit command, and credentials are stored through the operating system credential vault., The reviewed credential and analytics flows did not substantiate the flagged remote execution or credential redirection.

## Affected versions and remediation

This report applies to @apilift/cli@1.7.2.

- Review the evidence and your use of @apilift/cli@1.7.2 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/apilift.js
- **Public source:** [View source](<https://unpkg.com/@apilift/cli@1.7.2/dist/apilift.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L82: const {workerData}=require('node:worker_threads');
L83: const {spawn}=require('node:child_process');
L84: const state=new Int32Array(workerData.memory,0,4), value=new Float64Array(workerData.memory,16,1);
```

### 3. High: Eval
- **Category:** Source
- **Confidence:** 80.0%
- **Path:** dist/apilift.js
- **Public source:** [View source](<https://unpkg.com/@apilift/cli@1.7.2/dist/apilift.js>)

Package source references dynamic code evaluation.

Public source snippet (untrusted):

```javascript
L23784: sourceCode = this.opts.code.process(sourceCode, sch);
L23785: const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode);
L23786: const validate2 = makeValidate(this, this.scope.get());
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 7. High: Credential Redirect Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/apilift.js
- **Public source:** [View source](<https://unpkg.com/@apilift/cli@1.7.2/dist/apilift.js>)

Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.

Public source snippet (untrusted):

```javascript
Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/apilift.js:
script = `$ErrorActionPreference='Stop'; while ($null -ne ($line=[Console]::ReadLine())) { $parts=$line.Split('|'); try { $p=[System.Diagnostics.Process]::GetProcessById([int]$part...
external_exports.strictObject({ id, kind: external_exports.literal("replay"), effect, method: external_exports.enum(["GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH", "DELETE"]), u...
import { mkdirSync as mkdirSync2, readFileSync as readFileSync2, rmSync as rmSync2, writeFileSync } from "node:fs";
writeFileSync(join(directory, "owner.json"), JSON.stringify(owner), { flag: "wx", mode: 384 });
transportDefinitionSchema = external_exports.s
```

### 8. Critical: Remote Response Code Execution
- **Category:** Source
- **Confidence:** 98.0%
- **Path:** dist/apilift-capture-server.js
- **Public source:** [View source](<https://unpkg.com/@apilift/cli@1.7.2/dist/apilift-capture-server.js>)

Source passes code obtained from a remote response into a dynamic execution sink.

Public source snippet (untrusted):

```javascript
Remote response is passed to a worker and executed with Node capabilities.
dist/apilift-capture-server.js:
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
withParser: () => withParser,
withParser: () => withParser
required: () => required,
function required(Class2, schema, mask) {
super(`z.compile does not support ${feature}; this schema must use the runtime parser`);
function compileValidator(schema, parser) {
return parser;
dist/apilift.js:
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
var __commonJS = (cb, mod) => function __require() {
worker.postMessage({ id: id2, pid });
const {workerData}=require('node:worker_threads');
const {spawn}=require('node:child_process');
const {parentPort}=require('
```

### 9. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/apilift.js
- **Public source:** [View source](<https://unpkg.com/@apilift/cli@1.7.2/dist/apilift.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/apilift.js spawns dist/apilift-capture-server.js; helper contains network access plus dynamic code execution.
L37: function formatReceipt(id2) {
L38: return `[apilift receipt:${Buffer.from(id2.replaceAll("-", ""), "hex").toString("base64url")}]
L39: `;
...
L51: memory = new SharedArrayBuffer(24);
L52: worker = new Worker(workerSource, { eval: true, workerData: { memory, script } });
L53: worker.on("error", () => {
...
L82: const {workerData}=require('node:worker_threads');
L83: const {spawn}=require('node:child_process');
L84: const state=new Int32Array(workerData.memory,0,4), value=new Float64Array(workerData.memory,16,1);
...
L88: let text='';
L89: child.stdout.on('data',chunk=>{
L90: text+=chunk.toString();
```

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

Package source contains high-entropy string patterns.

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

Package source references telemetry or analytics APIs.

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

Package source contains URL literals.

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

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

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

Package manifest does not declare a clear license.

### 15. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/apilift.js
- **Public source:** [View source](<https://unpkg.com/@apilift/cli@1.7.2/dist/apilift.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 = @apilift/cli@1.7.0
matchedIdentity = npm:QGFwaWxpZnQvY2xp:1.7.0
similarity = 0.833
summary = stored previous version shares package body but lacks this dangerous source file
```

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

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

### Published dependency entries
- @napi-rs/keyring 2.1.0 (Dependency)
- @pydantic/genai-prices 0.1.8 (Dependency)
- ajv 8.20.0 (Dependency)
- ajv-formats 3.0.1 (Dependency)
- cheerio 1.1.2 (Dependency)
- gpt-tokenizer 4.0.0 (Dependency)
- jsonc-parser 3.3.1 (Dependency)
- tinyexec 1.3.1 (Dependency)

## Package metadata
- **Package:** @apilift/cli
- **Ecosystem:** npm
- **Version:** 1.7.2
- **Version published:** 2026-10-30T09:36:03.673Z
- **Package first seen:** 2026-09-29T18:06:20.596Z
- **Package last seen:** 2026-11-04T18:23:19.646Z
- **Known versions:** 29
- **Latest version:** 1.8.4
- **Appeal under review:** No
- **Maintainers:** 500xp
- **Runtime engines:** node: \>=24.16.0 \<27
- **Artifact files:** 21
- **Artifact unpacked size:** 11,429,982 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@apilift/cli/v/1.7.2>)
- [Repository](<https://github.com/egor-sergeev/apilift>)
- [Homepage](<https://github.com/egor-sergeev/apilift#readme>)
- [Issues](<https://github.com/egor-sergeev/apilift/issues>)
