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

# sakuraai@0.0.14 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** — 19 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:** 0.0.14
- **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 scanner findings resolve to service-aligned behavior: Claude OAuth tokens go to Anthropic’s usage and model APIs, Sakura login uses device approval, and postinstall fetches version-matched product helpers. The inspected source does not establish malicious behavior, so mark the package clean.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-10-26T15:38:23.714Z
- **Finished:** 2026-10-26T15:39:38.355Z
- **Download time:** 512 ms
- **Static scan time:** 592 ms
- **AI review time:** 73536 ms
- **Total time:** 74641 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 in the inspected source. The package downloads version-matched helper binaries during installation and uses service credentials for their corresponding Sakura or Anthropic APIs.

- **Trigger:** Installation runs the postinstall download scripts; other network and remote-session behavior follows CLI or daemon use.

- **Impact:** No unrelated credential disclosure, persistence, or other concrete attack was established.

- **Review source:** ai\_review

- **Reviewed:** 2026-10-26T15:39:38.355Z

### AI review details

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

- **Mechanism:** The install scripts fetch named helper binaries from a GitHub release. Runtime code sends Claude credentials to Anthropic for usage and model data, and uses Sakura login approval and server tokens for Sakura API requests.

- **Rationale:** The scanner findings resolve to service-aligned behavior: Claude OAuth tokens go to Anthropic’s usage and model APIs, Sakura login uses device approval, and postinstall fetches version-matched product helpers. The inspected source does not establish malicious behavior, so mark the package clean.

- **Files touched:** package.json, scripts/download-tsnet.js, scripts/download-onboard.js, dist/index.js

- **Network endpoints:** https://api.anthropic.com, https://api.sakura.mom, https://github.com/Nishu0/sakura-tsnet/releases/download/

### Review decision

- **Verdict:** Clean

- **Confidence:** 91.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** The postinstall hook downloads the Tailscale sidecar and onboarding UI; the scripts describe version-matched GitHub release assets and provide skip options., Claude credentials are read for usage and model requests sent to api.anthropic.com, their intended service., Sakura login uses a device approval flow with the Sakura API; credentials are saved locally and a server token is sent for tailnet provisioning., Inspected bundled dependencies are terminal formatting, table, and CLI libraries., The package exposes a remote session runtime consistent with its stated Sakura agent CLI purpose; the inspected source did not establish unrelated credential transfer or another concrete attack.

## Affected versions and remediation

This report applies to sakuraai@0.0.14.

- No action is needed for sakuraai@0.0.14. 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: Install Time Lifecycle Scripts (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/sakuraai@0.0.14/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/download-tsnet.js && node scripts/download-onboard.js
```

### 2. Medium: Ambiguous Install Lifecycle Script (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/sakuraai@0.0.14/package.json>)

Install-time lifecycle script is not statically allowlisted and needs review.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/download-tsnet.js && node scripts/download-onboard.js
```

### 3. Low: Non Install Lifecycle Scripts (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 80.0%

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

### 4. Low: Scripts Present (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

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

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L150: import { randomBytes } from "crypto";
L151: import { spawn } from "child_process";
L152: import os2 from "os";
```

### 6. Low: Weak Crypto (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/sakuraai@0.0.14/dist/index.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L18: try {
L19: return JSON.parse(fs.readFileSync(TSNET_PATH, "utf8"));
L20: } catch {
...
L38: function defaultConfig() {
L39: const hostname2 = os.hostname();
L40: return {
...
L87: "use strict";
L88: SAKURA_DIR = process.env.SAKURA_HOME ?? path.join(os.homedir(), ".sakura");
L89: CONFIG_PATH = path.join(SAKURA_DIR, "config.json");
...
L106: async function postJson(base, path22, body, token) {
L107: const res = await fetch(`${base}${path22}`, {
L108: method: "POST",
```

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

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

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

### 10. 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/index.js
- **Public source:** [View source](<https://unpkg.com/sakuraai@0.0.14/dist/index.js>)

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

Public source snippet (untrusted):

```javascript
L3890: if (cached !== void 0) return cached;
L3891: const dirs = [...(process.env.PATH ?? "").split(":"), "/opt/homebrew/bin", "/usr/local/bin"];
L3892: cached = dirs.map((d) => path17.join(d, "axe")).find((p) => fs19.existsSync(p)) ?? null;
...
L3901: // src/daemon/preview.ts
L3902: import http from "http";
L3903: import net from "net";
L3904: import { randomBytes as randomBytes3 } from "crypto";
L3905: import { execFile as execFile4 } from "child_process";
L3906: import { promisify as promisify4 } from "util";
```

### 11. High: Credential Redirect Persistence (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/sakuraai@0.0.14/dist/index.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/index.js:
fs.writeFileSync(file, JSON.stringify(value, null, 2) + "\n", { mode: 384 });
...token ? { Authorization: `Bearer ${token}` } : {}
const bin = process.env.CLAUDE_BIN || "claude";
PROJECTS_DIR = path3.join(HOME, ".claude", "projects");
if (process.env.CODEX_BIN) return process.env.CODEX_BIN;
CODEX_DIR = path4.join(HOME, ".codex");
fs9.writeFileSync(META_PATH, JSON.stringify(store, null, 2) + "\n", { mode: 384 });
if (agent === "claude") return runCreate(process.env.CLAUDE_BIN || "claude", ["-p", prompt], opts.cwd);
```

### 12. Critical: Command Output Exfiltration (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/sakuraai@0.0.14/dist/index.js>)

Source executes local commands and sends command output to an external endpoint.

Public source snippet (untrusted):

```javascript
L5506: 
L5507: Docs: https://www.sakura.mom  \xB7  Show again: sakura welcome
L5508: `;
L5509: process.stdout.write(out + "\n");
L5510: }
...
L5520: import path21 from "path";
L5521: import { execFileSync as execFileSync4 } from "child_process";
L5522: init_output();
```

### 13. High: Sandbox Evasion Gated Capability (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/sakuraai@0.0.14/dist/index.js>)

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

Public source snippet (untrusted):

```javascript
L18: try {
L19: return JSON.parse(fs.readFileSync(TSNET_PATH, "utf8"));
L20: } catch {
...
L38: function defaultConfig() {
L39: const hostname2 = os.hostname();
L40: return {
...
L87: "use strict";
L88: SAKURA_DIR = process.env.SAKURA_HOME ?? path.join(os.homedir(), ".sakura");
L89: CONFIG_PATH = path.join(SAKURA_DIR, "config.json");
...
L106: async function postJson(base, path22, body, token) {
L107: const res = await fetch(`${base}${path22}`, {
L108: method: "POST",
```

### 14. Critical: Trigger Reachable Dangerous Capability (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/sakuraai@0.0.14/dist/index.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.main -> dist/index.js
L5506: 
L5507: Docs: https://www.sakura.mom  \xB7  Show again: sakura welcome
L5508: `;
L5509: process.stdout.write(out + "\n");
L5510: }
...
L5520: import path21 from "path";
L5521: import { execFileSync as execFileSync4 } from "child_process";
L5522: init_output();
```

### 15. High: Trigger Reachable Command Output Exfiltration (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/sakuraai@0.0.14/dist/index.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.main -> dist/index.js
L5506: 
L5507: Docs: https://www.sakura.mom  \xB7  Show again: sakura welcome
L5508: `;
L5509: process.stdout.write(out + "\n");
L5510: }
...
L5520: import path21 from "path";
L5521: import { execFileSync as execFileSync4 } from "child_process";
L5522: init_output();
```

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

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

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

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

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** postinstall, prepublishOnly
- **Dependencies:** 6
- **Optional dependencies:** 1
- **Peer dependencies:** 0
- **Development dependencies:** 8
- **Published dependency-graph edges:** 7

### Published dependency entries
- chalk ^5.3.0 (Dependency)
- cli-table3 ^0.6.5 (Dependency)
- commander ^12.1.0 (Dependency)
- ora ^8.1.0 (Dependency)
- qrcode-terminal ^0.12.0 (Dependency)
- ws ^8.21.0 (Dependency)
- better-sqlite3 ^11.3.0 (OptionalDependency)

## Package metadata
- **Package:** sakuraai
- **Ecosystem:** npm
- **Version:** 0.0.14
- **Version published:** 2026-10-26T13:37:50.254Z
- **Package first seen:** 2026-08-04T09:52:46.493Z
- **Package last seen:** 2026-11-21T16:31:58.918Z
- **Known versions:** 6
- **Latest version:** 0.0.18
- **Appeal under review:** No
- **Description:** Sakura Agent CLI + local runtime for managing AI coding sessions (Claude Code, Codex, OpenCode, ZCode, DeepSeek) and reaching them privately from the Sakura mobile app over Tailscale
- **Author:** Sakura
- **Maintainers:** nishu0
- **Keywords:** cli, typescript, command-line, agent, claude, codex, opencode, zcode, deepseek, remote-execution, tailscale
- **Runtime engines:** node: \>=18.0.0
- **Artifact files:** 5
- **Artifact unpacked size:** 206,241 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/sakuraai/v/0.0.14>)
- [Homepage](<https://sakura.mom/>)
