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

# decktwin@0.4.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
**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:** 0.4.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: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

The CLI sends default-on runtime telemetry containing command and agent context that its notice does not describe. This warrants a warning; the skill installation is explicit and limited by default to its own skill directory.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 87.0%
- **Started:** 2026-11-12T15:23:43.282Z
- **Finished:** 2026-11-12T15:25:02.070Z
- **Download time:** 260 ms
- **Static scan time:** 111 ms
- **AI review time:** 78416 ms
- **Total time:** 78788 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:** Default-on runtime telemetry includes command and agent context that the notice does not disclose; no malicious behavior was identified.

- **Trigger:** A CLI command makes an HTTP request while telemetry is enabled, which is the default for the online registry.

- **Impact:** The registry operator can learn which commands and agent setup are used. The skill file write itself requires an explicit command and defaults to the package's own skill directory.

- **Evidence paths:** decktwin.mjs

- **Review source:** ai\_review

- **Reviewed:** 2026-11-12T15:25:02.070Z

### AI review details

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

- **Mechanism:** Registry request headers carry the command, an agent label derived from environment variables, and a flag indicating whether the skill is installed.

- **Rationale:** The CLI sends default-on runtime telemetry containing command and agent context that its notice does not describe. This warrants a warning; the skill installation is explicit and limited by default to its own skill directory.

- **Files touched:** ~/.decktwin/usage-notice, .claude/skills/deck-twin/\<manifest-listed files\>

- **Network endpoints:** https://decktwin.com, https://decktwin.com/api/usage

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 87.0%

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

- **Intent class:** Unknown

- **False-positive risk:** Medium

- **Evidence for warning:** When telemetry is enabled, registry request headers include the command, an agent label, and whether the DeckTwin skill is present., The agent label is derived from the AI\_AGENT environment variable or known agent-detection variables., The notice describes download and missing-equipment counts and offers an opt-out, but does not mention the command, agent, or skill headers.

- **Evidence against:** The manifest declares no install lifecycle scripts; it exposes a CLI entry point., Installing the agent skill requires the explicit `skill` command and writes to the selected skill directory, defaulting to `.claude/skills/deck-twin`., The notice explains some usage reporting and provides `DECKTWIN_TELEMETRY=0` as an opt-out.

## Affected versions and remediation

This report applies to decktwin@0.4.0.

- Review the evidence and your use of decktwin@0.4.0 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. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 4. High: Trigger Reachable External Ai Agent Control Surface Mutation
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** decktwin.mjs
- **Public source:** [View source](<https://unpkg.com/decktwin@0.4.0/decktwin.mjs>)

Manifest-trigger-reachable source writes behavior-bearing configuration into a user or project AI-agent control surface.

Public source snippet (untrusted):

```javascript
Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
ile) {
  const { spec, issues, unknown } = await readplant(file)
  await reportunknown(unknown)
  printissues(file, spec, issues)
  if (!spec) throw new error('fix the errors above first')
  if (issues.some((i) => i.level === 'error') && !flags.has('force')) throw new error('fix the errors above first (or pass --force)')
  const names = [...new set([...spec.items.map((i) => i.component), ...(spec.lines ?? []).flatmap((l) => (l.inline ?? []).map((v) => v.component))])]
  console.log('')
  await add(['plant', 'core', ...names])
  const { dir } = config()
  const idx = await index()
  const out = resolve(cwd, flags.get('out') ?? (existssync(join(cwd, 'src')) ? 'src/plantscene.tsx'
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

Package manifest does not declare a clear license.

### 8. High: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** decktwin.mjs
- **Public source:** [View source](<https://unpkg.com/decktwin@0.4.0/decktwin.mjs>)

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 = decktwin@0.3.0
matchedIdentity = npm:ZGVja3R3aW4:0.3.0
similarity = 0.500
summary = stored previous version shares package body but lacks this dangerous source file
```

### 9. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 87.0%
- **Path:** decktwin.mjs
- **Public source:** [View source](<https://unpkg.com/decktwin@0.4.0/decktwin.mjs>)

When telemetry is enabled, registry request headers include the command, an agent label, and whether the DeckTwin skill is present.

Public source snippet (untrusted):

```javascript
function headers(dep) {
  const h = { 'user-agent': `decktwin/${VERSION}` }
  if (!counting()) return h
  return { ...h, 'x-decktwin-cmd': ALIASES[cmd] ?? cmd ?? '', 'x-decktwin-agent': agent(), ...(hasSkill() ? { 'x-decktwin-skill': '1' } : {}), ...(dep ? { 'x-decktwin-dep': '1' } : {}) }
}

/** Equipment wo
```

### 10. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 87.0%
- **Path:** decktwin.mjs
- **Public source:** [View source](<https://unpkg.com/decktwin@0.4.0/decktwin.mjs>)

The agent label is derived from the AI\_AGENT environment variable or known agent-detection variables.

Public source snippet (untrusted):

```javascript
const optedOut = () => /^(0|false|off|no)$/i.test(process.env.DECKTWIN_TELEMETRY ?? '') || !/^(|0|false)$/i.test(process.env.DO_NOT_TRACK ?? '')
const counting = () => online() && !optedOut()

function agent() {
  const named = (process.env.AI_AGENT ?? '').toLowerCase().split(/[_\s/@]/)[0]
```

### 11. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 87.0%
- **Path:** decktwin.mjs
- **Public source:** [View source](<https://unpkg.com/decktwin@0.4.0/decktwin.mjs>)

The notice describes download and missing-equipment counts and offers an opt-out, but does not mention the command, agent, or skill headers.

Public source snippet (untrusted):

```javascript
function notice() {
  if (!counting()) return
  const marker = join(homedir(), '.decktwin', 'usage-notice')
  if (existsSync(marker)) return
  console.error(c.dim(`decktwin counts which components are downloaded and which equipment it couldn't find, to decide what to build next.\nIt never sends your files, tags or plant names. Turn it off with DECKTWIN_TELEMETRY=0. Details: https://decktwin.com/docs/cli#what-the-cli-sends\n`))
  try {
```

### 12. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 87.0%
- **Path:** decktwin.mjs
- **Public source:** [View source](<https://unpkg.com/decktwin@0.4.0/decktwin.mjs>)

When telemetry is enabled, registry request headers include the command, an agent label, and whether the DeckTwin skill is present.

Public source snippet (untrusted):

```javascript
const DEFAULT_REGISTRY = 'https://decktwin.com'
const PEERS = ['three', '@react-three/fiber', '@react-three/drei']

const argv = process.arg
```

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

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

## Package metadata
- **Package:** decktwin
- **Ecosystem:** npm
- **Version:** 0.4.0
- **License:** SEE LICENSE IN LICENSE
- **Version published:** 2026-11-12T15:20:07.511Z
- **Package first seen:** 2026-11-04T08:04:02.801Z
- **Package last seen:** 2026-11-12T20:15:48.117Z
- **Known versions:** 4
- **Latest version:** 0.5.0
- **Appeal under review:** No
- **Description:** CLI for the Deck Twin registry: add standards-based three.js oil & gas components, check and assemble plant.json.
- **Maintainers:** areebp
- **Keywords:** three.js, react-three-fiber, digital twin, oil and gas, registry, shadcn
- **Runtime engines:** node: \>=18
- **Artifact files:** 5
- **Artifact unpacked size:** 45,822 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/decktwin/v/0.4.0>)
- [Homepage](<https://decktwin.com/>)
