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

# @tapi-dev/sdk@0.3.6 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 25 finding(s) warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Credential Exfiltration
- **Selected version:** 0.3.6
- **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 active development path forwards an existing service credential to an unrestricted configurable destination, meeting the credential-forwarding warning rule. No separate concrete malicious behavior supports publication blocking.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 97.0%
- **Started:** 2026-09-30T16:56:07.615Z
- **Finished:** 2026-09-30T16:58:15.175Z
- **Download time:** 770 ms
- **Static scan time:** 559 ms
- **AI review time:** 126229 ms
- **Total time:** 127560 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:** Development commands can forward an existing Tapi credential to an unrestricted configured server. This establishes conditional credential exposure, but no covert attack was confirmed.

- **Trigger:** Run tapi studio dev with a custom server option or a workspace configuration selecting another server.

- **Impact:** An operator of the selected server could receive the user's Tapi ID token.

- **Evidence paths:** dist/auth.js, dist/studio-dev.js, dist/workflow-cli.js, dist/dev-context.js, dist/runner-dev.js, dist/cli.js

- **Review source:** ai\_review

- **Reviewed:** 2026-09-30T16:58:15.175Z

### AI review details

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

- **Mechanism:** Cached Tapi credentials are refreshed and passed to runner enrollment, which sends the ID token in an Authorization header without a destination allowlist.

- **Rationale:** The active development path forwards an existing service credential to an unrestricted configurable destination, meeting the credential-forwarding warning rule. No separate concrete malicious behavior supports publication blocking.

- **Files touched:** tapi.config.json, auth.json

- **Network endpoints:** https://determined-motivation-production.up.railway.app

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 97.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** The auth module reads the existing Tapi ID token and refresh token from its credential cache., Studio development refreshes cached credentials and passes them to runner enrollment., The development server can be supplied through command options or inherited from workspace configuration., Server normalization removes trailing slashes without restricting the destination host., Runner enrollment sends the cached ID token as a bearer credential to the selected server., The CLI activates this behavior through the Studio development command.

- **Evidence against:** No registry-install lifecycle hook or runtime self-dependency appears in package.json., The default server is the Tapi backend; exposure requires a different configured destination., Inspected process launches support explicitly invoked development and workflow operations; no covert recipient or malware intent was established.

## Affected versions and remediation

This report applies to @tapi-dev/sdk@0.3.6.

- Review the evidence and your use of @tapi-dev/sdk@0.3.6 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: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

Package declares lifecycle scripts that are not normally run for registry tarball installs.

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

Package declares npm scripts.

### 3. High: High Secret
- **Category:** Secrets
- **Confidence:** 85.0%
- **Path:** dist/auth.js
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/auth.js>)

Package contains a high-severity secret pattern.

Public source snippet (untrusted):

```javascript
patternName = google_api_key
severity = high
line = 6
```

### 4. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/workflow-cli.js
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/workflow-cli.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L3: import { resolve, join } from "node:path";
L4: import { spawn } from "node:child_process";
L5: import { fileURLToPath } from "node:url";
```

### 5. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%

Package source references a known benign dynamic code generation pattern.

### 6. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%

Package source references dynamic require/import behavior.

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 10. High: Credential Redirect Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/cli.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/cli.js:
import { mkdir, readFile, readdir, rename, rm, stat, statfs, unlink, writeFile } from "node:fs/promises";
import { emitKeypressEvents } from "node:readline";
raw.apiBaseUrl = requireOptionValue(args, ++index, arg);
raw.apiBaseUrl = arg.slice("--api-base-url=".length);
raw.apiBaseUrl = arg.slice("--server=".length);
const apiBaseUrl = normalizeHttpUrl(raw.apiBaseUrl
const downloadsBaseUrl = normalizeHttpUrl(envString("TAPI_DOWNLOADS_BASE_URL") ?? DEFAULT_DOWNLOADS_BASE_URL, "TAPI_DOWNLOADS_BASE_URL");
: `${downloadsBaseUrl.replace(/\/+$/, "")}/studio/channels/${channel}/latest.json`;
```

### 11. Critical: Reverse Shell
- **Category:** Source
- **Confidence:** 92.0%
- **Path:** dist/studio-dev.js
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/studio-dev.js>)

Source matches reverse-shell style process and socket wiring.

Public source snippet (untrusted):

```javascript
L1: import { spawn } from "node:child_process";
L2: import { createServer } from "node:net";
L3: import { existsSync, readFileSync } from "node:fs";
...
L22: const phases = [{ message: "SDK development launch requested" }];
L23: const workspaceRoot = findWorkspaceRoot(options.workspaceRoot || process.cwd());
L24: const uiRoot = join(workspaceRoot, "tapi_v3", "studio", "browser");
...
L39: const env = {
L40: ...process.env,
L41: TAPI_DEV_CONFIG: runner.context.configPath,
...
L49: phases.push({ message: "Vite UI is ready", detail: `${DEV_HOST}:${uiPort}` });
L50: const launchTrace = Buffer.from(JSON.stringify({ phases }), "utf8").toString("base64url");
L51: const url = `http://${DEV_HOST}:${uiPort}/?tapp=${encodeURIComponent(tappId)}&tapiDevLaunch=${launchTrace}`;
```

### 12. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/studio-dev.js
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/studio-dev.js>)

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

Public source snippet (untrusted):

```javascript
L1: import { spawn } from "node:child_process";
L2: import { createServer } from "node:net";
L3: import { existsSync, readFileSync } from "node:fs";
...
L22: const phases = [{ message: "SDK development launch requested" }];
L23: const workspaceRoot = findWorkspaceRoot(options.workspaceRoot || process.cwd());
L24: const uiRoot = join(workspaceRoot, "tapi_v3", "studio", "browser");
...
L39: const env = {
L40: ...process.env,
L41: TAPI_DEV_CONFIG: runner.context.configPath,
...
L49: phases.push({ message: "Vite UI is ready", detail: `${DEV_HOST}:${uiPort}` });
L50: const launchTrace = Buffer.from(JSON.stringify({ phases }), "utf8").toString("base64url");
L51: const url = `http://${DEV_HOST}:${uiPort}/?tapp=${encodeURIComponent(tappId)}&tapiDevLaunch=${launchTrace}`;
```

### 13. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/workflow-cli.js
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/workflow-cli.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/workflow-cli.js spawns dist/cli.js; helper contains network access plus dynamic code execution.
L3: import { resolve, join } from "node:path";
L4: import { spawn } from "node:child_process";
L5: import { fileURLToPath } from "node:url";
...
L9: export function workspaceArguments(args) {
L10: const root = resolve(option(args, "--workspace") || process.cwd());
L11: const workspace = loadWorkspace(root);
...
L111: throw new Error("Choose an existing session with --session; dev does not open or reset a browser");
L112: const job = await client.workflows.run({ sessionId, versionId: version.version_id, inputs: JSON.parse(option(expanded, "--input") || "{}") });
L113: await serveWorkflowJobs(options, { jobId: job.job_id, once: true });
```

### 14. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/studio-dev.js
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/studio-dev.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 -> dist/studio-dev.js
L1: import { spawn } from "node:child_process";
L2: import { createServer } from "node:net";
L3: import { existsSync, readFileSync } from "node:fs";
...
L22: const phases = [{ message: "SDK development launch requested" }];
L23: const workspaceRoot = findWorkspaceRoot(options.workspaceRoot || process.cwd());
L24: const uiRoot = join(workspaceRoot, "tapi_v3", "studio", "browser");
...
L39: const env = {
L40: ...process.env,
L41: TAPI_DEV_CONFIG: runner.context.configPath,
...
L49: phases.push({ message: "Vite UI is ready", detail: `${DEV_HOST}:${uiPort}` });
L50: const launchTrace = Buffer.from(JSON.stringify({ phases }), "utf8").toString("base64url");
L51: const url = `http://${DEV_HOST}:${uiPort}/?tapp=${encodeURIC
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

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

Package manifest does not declare a clear license.

### 19. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/workflow-source.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/workflow-source.js%23virtual%3Anormalized%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 = 1
```

### 20. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 95.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/cli.js>)

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

Public source snippet (untrusted):

```javascript
matchType = token_shingles
matchedPackage = @tapi-dev/sdk@0.2.6
matchedPath = dist/cli.js
matchedIdentity = npm:QHRhcGktZGV2L3Nkaw:0.2.6
similarity = 1.000
shingleOverlap = 48
summary = source token shingles overlapped finalized malicious source
```

### 21. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/studio-dev.js
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/studio-dev.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 = @tapi-dev/sdk@0.2.6
matchedPath = dist/studio-dev.js
matchedIdentity = npm:QHRhcGktZGV2L3Nkaw:0.2.6
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 22. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/runner-dev.js
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/runner-dev.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 = @tapi-dev/sdk@0.2.6
matchedPath = dist/runner-dev.js
matchedIdentity = npm:QHRhcGktZGV2L3Nkaw:0.2.6
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 23. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/cli.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 = @tapi-dev/sdk@0.3.2
matchedIdentity = npm:QHRhcGktZGV2L3Nkaw:0.3.2
similarity = 0.649
summary = stored previous version shares package body but lacks this dangerous source file
```

### 24. High: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** dist/auth.js
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/auth.js>)

Google API key in dist/auth.js

Public source snippet (untrusted):

```javascript
patternName = google_api_key
severity = high
line = 6
```

### 25. High: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@tapi-dev/sdk@0.3.6/dist/cli.js>)

Google API key in dist/cli.js

Public source snippet (untrusted):

```javascript
patternName = google_api_key
severity = high
line = 27
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** prepublishOnly
- **Dependencies:** 5
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 6
- **Published dependency-graph edges:** 5

### Published dependency entries
- @inquirer/prompts ^7.10.1 (Dependency)
- cli-progress ^3.12.0 (Dependency)
- esbuild ^0.25.0 (Dependency)
- ws ^8.22.0 (Dependency)
- yoctocolors ^2.1.2 (Dependency)

## Package metadata
- **Package:** @tapi-dev/sdk
- **Ecosystem:** npm
- **Version:** 0.3.6
- **Version published:** 2026-09-30T16:53:16.657Z
- **Package first seen:** 2026-07-01T04:26:39.675Z
- **Package last seen:** 2026-10-01T18:43:17.380Z
- **Known versions:** 19
- **Latest version:** 0.3.12
- **Appeal under review:** No
- **Description:** \#\#\# Read dropdown choices without recording a click
- **Maintainers:** ill\_iterate
- **Runtime engines:** node: \>=20
- **Artifact files:** 85
- **Artifact unpacked size:** 525,426 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@tapi-dev/sdk/v/0.3.6>)
