---
canonical: "https://firewall.lpm.dev/npm/@method-ai-hq/sdk/v/0.30.0"
markdown: "https://firewall.lpm.dev/npm/@method-ai-hq/sdk/v/0.30.0.md"
package: "@method-ai-hq/sdk"
report_status: "published"
title: "@method-ai-hq/sdk@0.30.0 npm security report"
verdict: "clean"
version: "0.30.0"
---

# @method-ai-hq/sdk@0.30.0 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** — 18 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.30.0
- **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 flagged key flow sends a user-configured OpenRouter key to OpenRouter for model calls, while the updater is limited to installed CLI use and downloads from the package vendor's host. No install hook or unrelated credential exfiltration was found.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 95.0%
- **Started:** 2026-11-04T05:39:39.890Z
- **Finished:** 2026-11-04T05:40:25.556Z
- **Download time:** 510 ms
- **Static scan time:** 1348 ms
- **AI review time:** 43807 ms
- **Total time:** 45666 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 identified; the reviewed credential and updater behavior matches the package's stated purpose.

- **Trigger:** A user configures their own model key or runs the installed CLI with its release environment configured.

- **Impact:** These behaviors support user-selected model requests and CLI updates; no unrelated credential collection or collector was identified.

- **Review source:** ai\_review

- **Reviewed:** 2026-11-04T05:40:25.556Z

### AI review details

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

- **Mechanism:** Model requests carrying the configured key go to OpenRouter; the CLI updater checks the Method release endpoint and can run the Method-hosted installer.

- **Rationale:** The flagged key flow sends a user-configured OpenRouter key to OpenRouter for model calls, while the updater is limited to installed CLI use and downloads from the package vendor's host. No install hook or unrelated credential exfiltration was found.

- **Network endpoints:** https://openrouter.ai/api/v1/chat/completions, https://app.withmethod.ai/downloads/cli, https://app.withmethod.ai/install.sh

### Review decision

- **Verdict:** Clean

- **Confidence:** 95.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** The package declares build and prepack scripts, with no install, preinstall, or postinstall hook., The OpenRouter key feature is enabled through the explicit \`method config model-key\` command., When configured, the key is sent as a bearer token to OpenRouter for model requests., The background updater runs only when \`METHOD\_RELEASE\_ROOT\` is set and \`METHOD\_NO\_UPDATE\` is not set; it fetches the installer from the Method host., The CLI starts the updater during command execution, and its installer downloads from \`app.withmethod.ai\`., The secret-store module says secrets remain on the computer and Method servers never receive them.

- **Evidence against:** The flagged credential flow uses the key for its intended OpenRouter model requests, not an unrelated collector., The updater checks for a newer release before running the installer and supports \`METHOD\_NO\_UPDATE=1\`., The package entry point re-exports library functions; the updater is called by the CLI command path.

## Affected versions and remediation

This report applies to @method-ai-hq/sdk@0.30.0.

- No action is needed for @method-ai-hq/sdk@0.30.0. 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. 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.

### 2. High: Child Process (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/packages/sdk/examples/support-triage/triage.test.mjs
- **Public source:** [View source](<https://unpkg.com/@method-ai-hq/sdk@0.30.0/dist/packages/sdk/examples/support-triage/triage.test.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L2: import assert from 'node:assert/strict';
L3: import {execFile} from 'node:child_process';
L4: import {readFileSync} from 'node:fs';
```

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

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

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

### 6. Critical: Credential Exfiltration (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/packages/sdk/src/own-model-key.js
- **Public source:** [View source](<https://unpkg.com/@method-ai-hq/sdk@0.30.0/dist/packages/sdk/src/own-model-key.js>)

Source appears to send environment or credential material to an external endpoint.

Public source snippet (untrusted):

```javascript
L11: export const ownKeyEnv = () => readComputerSettings().model_key_env;
L12: /** method config model-key [--off]: open the private form for the key, then use it for model and classify steps. */
L13: export async function modelKeyCommand(args, set = setSecret) {
...
L17: updateComputerSettings(settings => { delete settings.model_key_env; });
L18: process.stdout.write('Model and classify steps use the Method account again. The key stays in the secret store; method secret list shows it.\n');
L19: return;
...
L33: // A value that the shell exports comes before the saved one when a step runs.
L34: if (process.env[ownKeyName])
L35: from = `the key that your shell sets in ${ownKeyName}, which comes before a saved key`;
...
L47: async request(body, signal) {
L48: const response = await fetch('ht
```

### 7. Critical: Download Execute (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/packages/sdk/src/update.js
- **Public source:** [View source](<https://unpkg.com/@method-ai-hq/sdk@0.30.0/dist/packages/sdk/src/update.js>)

Source downloads or fetches remote code and executes it.

Public source snippet (untrusted):

```javascript
L1: import { spawn } from 'node:child_process';
L2: import { existsSync, readFileSync } from 'node:fs';
L3: import { join } from 'node:path';
L4: import packageInfo from '../package.json' with { type: 'json' };
L5: import { methodCache } from './prepare.js';
...
L15: const read = (path) => { try {
L16: return existsSync(path) ? JSON.parse(readFileSync(path, 'utf8')) : undefined;
L17: }
...
L22: function startInstaller() {
L23: const url = process.env.METHOD_INSTALL_URL ?? 'https://app.withmethod.ai/install.sh';
L24: spawn('/bin/sh', ['-c', 'curl -fsSL "$1" | sh', 'method-update', url], { detached: true, stdio: 'ignore', env: { ...process.env, METHOD_SKIP_PLUGIN: '1' } }).unref();
L25: }
```

### 8. 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/packages/sdk/src/update.js
- **Public source:** [View source](<https://unpkg.com/@method-ai-hq/sdk@0.30.0/dist/packages/sdk/src/update.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 { existsSync, readFileSync } from 'node:fs';
L3: import { join } from 'node:path';
L4: import packageInfo from '../package.json' with { type: 'json' };
L5: import { methodCache } from './prepare.js';
...
L15: const read = (path) => { try {
L16: return existsSync(path) ? JSON.parse(readFileSync(path, 'utf8')) : undefined;
L17: }
...
L22: function startInstaller() {
L23: const url = process.env.METHOD_INSTALL_URL ?? 'https://app.withmethod.ai/install.sh';
L24: spawn('/bin/sh', ['-c', 'curl -fsSL "$1" | sh', 'method-update', url], { detached: true, stdio: 'ignore', env: { ...process.env, METHOD_SKIP_PLUGIN: '1' } }).unref();
L25: }
```

### 9. 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/packages/sdk/src/update.js
- **Public source:** [View source](<https://unpkg.com/@method-ai-hq/sdk@0.30.0/dist/packages/sdk/src/update.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.exports -> dist/packages/sdk/src/method.js -> dist/packages/sdk/src/update.js
L1: import { spawn } from 'node:child_process';
L2: import { existsSync, readFileSync } from 'node:fs';
L3: import { join } from 'node:path';
L4: import packageInfo from '../package.json' with { type: 'json' };
L5: import { methodCache } from './prepare.js';
...
L15: const read = (path) => { try {
L16: return existsSync(path) ? JSON.parse(readFileSync(path, 'utf8')) : undefined;
L17: }
...
L22: function startInstaller() {
L23: const url = process.env.METHOD_INSTALL_URL ?? 'https://app.withmethod.ai/install.sh';
L24: spawn('/bin/sh', ['-c', 'curl -fsSL "$1" | sh', 'method-update', url], { detached: true, stdio: 'ignore', env: { ...process.env, METHOD_SKIP_PLUGIN: '1' } }).unref();
```

### 10. High: Trigger Reachable Credential Exfiltration (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/packages/sdk/src/own-model-key.js
- **Public source:** [View source](<https://unpkg.com/@method-ai-hq/sdk@0.30.0/dist/packages/sdk/src/own-model-key.js>)

A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable credential exfiltration chain: manifest.exports -> dist/packages/sdk/src/authoring.js -> dist/packages/sdk/src/own-model-key.js
L11: export const ownKeyEnv = () => readComputerSettings().model_key_env;
L12: /** method config model-key [--off]: open the private form for the key, then use it for model and classify steps. */
L13: export async function modelKeyCommand(args, set = setSecret) {
...
L17: updateComputerSettings(settings => { delete settings.model_key_env; });
L18: process.stdout.write('Model and classify steps use the Method account again. The key stays in the secret store; method secret list shows it.\n');
L19: return;
...
L33: // A value that the shell exports comes before the saved one when a step runs.
L34: if (process.env[ownKeyName])
L35: from = `the key th
```

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

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

### 13. Medium: Ships Build Helper (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** dist/packages/sdk/plugins/method/scripts/ensure-method.sh
- **Public source:** [View source](<https://unpkg.com/@method-ai-hq/sdk@0.30.0/dist/packages/sdk/plugins/method/scripts/ensure-method.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = [redacted]-method.sh
kind = build_helper
sizeBytes = 2473
magicHex = [redacted]
```

### 14. Medium: Ships Compressed Blob (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** dist/packages/sdk/examples/daily-briefing/sample-output.zip
- **Public source:** [View source](<https://unpkg.com/@method-ai-hq/sdk@0.30.0/dist/packages/sdk/examples/daily-briefing/sample-output.zip>)

Package ships compressed or archive-like blobs.

Public source snippet (untrusted):

```text
path = [redacted]-briefing/sample-output.zip
kind = compressed_blob
sizeBytes = 62532
magicHex = [redacted]
```

### 15. High: Ships High Entropy Blob (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Artifact Inventory
- **Confidence:** 75.0%
- **Path:** dist/packages/sdk/examples/daily-briefing/sample-output.zip
- **Public source:** [View source](<https://unpkg.com/@method-ai-hq/sdk@0.30.0/dist/packages/sdk/examples/daily-briefing/sample-output.zip>)

Package ships high-entropy non-source blobs.

Public source snippet (untrusted):

```text
path = [redacted]-briefing/sample-output.zip
kind = high_entropy_blob
sizeBytes = 62532
magicHex = [redacted]
```

### 16. Low: Nested Archive Needs Inspection (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Artifact Inventory
- **Confidence:** 80.0%
- **Path:** dist/packages/sdk/examples/daily-briefing/sample-output.zip
- **Public source:** [View source](<https://unpkg.com/@method-ai-hq/sdk@0.30.0/dist/packages/sdk/examples/daily-briefing/sample-output.zip>)

Package ships a nested archive or MCP bundle that was inventoried but not recursively analyzed.

Public source snippet (untrusted):

```text
path = [redacted]-briefing/sample-output.zip
kind = nested_archive_needs_inspection
sizeBytes = 62532
magicHex = [redacted]
```

### 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. 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/packages/sdk/src/explain-effects.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/@method-ai-hq/sdk@0.30.0/dist/packages/sdk/src/explain-effects.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 = 4
```

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

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

### Published dependency entries
- @withmethod/runtime https://codeload.github.com/method-ai-hq/method-spec/tar.gz/v0.18.1 (Dependency)
- fflate ^0.8.3 (Dependency)
- yaml ^2.9.0 (Dependency)
- zod ^3.25.76 (Dependency)

## Package metadata
- **Package:** @method-ai-hq/sdk
- **Ecosystem:** npm
- **Version:** 0.30.0
- **License:** MIT
- **Version published:** 2026-11-04T05:33:16.446Z
- **Package first seen:** 2026-10-13T14:09:12.130Z
- **Package last seen:** 2026-11-18T23:49:59.813Z
- **Known versions:** 48
- **Latest version:** 0.41.0
- **Appeal under review:** No
- **Description:** Build and run reusable .method files with checked steps and saved results.
- **Maintainers:** rprend
- **Keywords:** workflow, agents, ai-agents, verification, mcp
- **Runtime engines:** node: \>=22
- **Artifact files:** 331
- **Artifact unpacked size:** 2,201,558 bytes
- **Artifact signatures:** 2
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@method-ai-hq/sdk/v/0.30.0>)
- [Repository](<https://github.com/method-ai-hq/method-sdk>)
- [Homepage](<https://docs.withmethod.ai/sdk/overview>)
- [Issues](<https://github.com/method-ai-hq/method-sdk/issues>)
