---
canonical: "https://firewall.lpm.dev/npm/@oh-my-pi/pi-ai/v/18.1.22"
markdown: "https://firewall.lpm.dev/npm/@oh-my-pi/pi-ai/v/18.1.22.md"
package: "@oh-my-pi/pi-ai"
report_status: "published"
title: "@oh-my-pi/pi-ai@18.1.22 npm security report"
verdict: "suspicious"
version: "18.1.22"
---

# @oh-my-pi/pi-ai@18.1.22 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 12 findings 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:** 18.1.22
- **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 package automatically saves raw request bodies to local logs after HTTP 400 or 413 errors, while redacting headers only. This creates a data-retention risk for prompts and tool data, so the release warrants a warning; the reviewed metadata access is part of Vertex authentication, and no malicious credential theft was found.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 87.0%
- **Started:** 2026-11-07T13:14:44.586Z
- **Finished:** 2026-11-07T13:16:01.565Z
- **Download time:** 758 ms
- **Static scan time:** 3789 ms
- **AI review time:** 72430 ms
- **Total time:** 76979 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:** Rejected API requests can cause prompt and other request-body data to be retained in local diagnostic logs.

- **Trigger:** A provider request with a raw dump receives HTTP 400 or 413.

- **Impact:** Sensitive prompt or tool data may remain on disk and be accessible to other local users or processes with access to the logs.

- **Evidence paths:** src/providers/openai-responses.ts, src/utils/http-inspector.ts

- **Review source:** ai\_review

- **Reviewed:** 2026-11-07T13:16:01.565Z

### AI review details

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

- **Mechanism:** The error handler serializes the dump, including the unredacted request body, to a JSON file under the logs directory.

- **Rationale:** The package automatically saves raw request bodies to local logs after HTTP 400 or 413 errors, while redacting headers only. This creates a data-retention risk for prompts and tool data, so the release warrants a warning; the reviewed metadata access is part of Vertex authentication, and no malicious credential theft was found.

- **Files touched:** \<logs directory\>/http-400-requests/\*.json

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 87.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** OpenAI Responses requests put the full serialized request parameters in a raw diagnostic dump., On HTTP 400 or 413 errors, the package automatically writes the dump as JSON to its logs directory., The dump sanitizer redacts sensitive headers but leaves the request body intact.

- **Evidence against:** Google metadata credentials are part of Vertex AI authentication and are resolved only when a Vertex request is used., The diagnostic dump is local and limited to rejected requests; no unrelated credential exfiltration was identified., The package declares no install lifecycle scripts.

## Affected versions and remediation

This report applies to @oh-my-pi/pi-ai@18.1.22.

- Review the evidence and your use of @oh-my-pi/pi-ai@18.1.22 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. 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: Cloud Metadata Access
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** src/providers/google-auth.ts
- **Public source:** [View source](<https://unpkg.com/@oh-my-pi/pi-ai@18.1.22/src/providers/google-auth.ts>)

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

Public source snippet (untrusted):

```typescript
L22: 
L23: const OAUTH_TOKEN_URL = "https://oauth2.googleapis.com/token";
L24: const METADATA_TOKEN_URL = "http://metadata.google.[redacted]-accounts/default/token";
L25: const CLOUD_PLATFORM_SCOPE = "https://www.googleapis.com/auth/cloud-platform";
...
L35: client_email: string;
L36: private_key: string;
L37: private_key_id?: string;
...
L69: function userAdcPath(): string {
L70: return path.join(os.homedir(), ".config", "gcloud", "application_default_credentials.json");
L71: }
...
L74: try {
L75: return (await Bun.file(filePath).json()) as T;
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

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

### 9. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@oh-my-pi/pi-ai@18.1.22/package.json>)

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

Public source snippet (untrusted):

```json
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 25
```

### 10. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 87.0%
- **Path:** src/providers/openai-responses.ts
- **Public source:** [View source](<https://unpkg.com/@oh-my-pi/pi-ai@18.1.22/src/providers/openai-responses.ts>)

OpenAI Responses requests put the full serialized request parameters in a raw diagnostic dump.

Public source snippet (untrusted):

```typescript
method: "POST",
				url: requestUrl,
				body: chained.params,
			};
			rawRequestDump = activeR
```

### 11. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 87.0%
- **Path:** src/utils/http-inspector.ts
- **Public source:** [View source](<https://unpkg.com/@oh-my-pi/pi-ai@18.1.22/src/utils/http-inspector.ts>)

On HTTP 400 or 413 errors, the package automatically writes the dump as JSON to its logs directory.

Public source snippet (untrusted):

```typescript
if (!dump || isBunTestRuntime() || !shouldDumpRejectedRequest(error)) {
		return message;
	}

	const payload = bui
```

### 12. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 87.0%
- **Path:** src/utils/http-inspector.ts
- **Public source:** [View source](<https://unpkg.com/@oh-my-pi/pi-ai@18.1.22/src/utils/http-inspector.ts>)

On HTTP 400 or 413 errors, the package automatically writes the dump as JSON to its logs directory.

Public source snippet (untrusted):

```typescript
const filePath = path.join(getLogsDir(), "http-400-requests", fileName);

	try {
		await Bun.write(filePath, `${JSON.stringify(pa
```

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

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

### Published dependency entries
- @oh-my-pi/omptype 18.1.22 (Dependency)
- @oh-my-pi/pi-catalog 18.1.22 (Dependency)
- @oh-my-pi/pi-natives 18.1.22 (Dependency)
- @oh-my-pi/pi-utils 18.1.22 (Dependency)
- @oh-my-pi/pi-wire 18.1.22 (Dependency)

## Package metadata
- **Package:** @oh-my-pi/pi-ai
- **Ecosystem:** npm
- **Version:** 18.1.22
- **License:** MIT
- **Version published:** 2026-09-14T19:33:41.904Z
- **Package first seen:** 2026-07-01T01:28:37.929Z
- **Package last seen:** 2026-11-23T05:50:33.117Z
- **Known versions:** 131
- **Latest version:** 19.1.1
- **Appeal under review:** No
- **Description:** Unified LLM API with automatic model discovery and provider configuration
- **Author:** Stencil Labs, Inc.
- **Maintainers:** can1357
- **Keywords:** ai, anthropic, api, gemini, llm, openai, unified
- **Runtime engines:** bun: \>=1.3.14
- **Artifact files:** 550
- **Artifact unpacked size:** 7,222,328 bytes
- **Artifact signatures:** 1
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@oh-my-pi/pi-ai/v/18.1.22>)
- [Repository](<https://github.com/can1357/oh-my-pi>)
- [Homepage](<https://omp.sh/>)
- [Issues](<https://github.com/can1357/oh-my-pi/issues>)
