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

# @turbobase/cli@1.40.1 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:** 1.40.1
- **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 manifest has no install lifecycle hook, and the flagged agent configuration is part of explicit, project-scoped setup. The token probe sends the caller-supplied token to the selected instance URL, so no unrelated credential recipient was established.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-10-15T23:55:42.035Z
- **Finished:** 2026-10-15T23:57:14.452Z
- **Download time:** 774 ms
- **Static scan time:** 2743 ms
- **AI review time:** 88900 ms
- **Total time:** 92417 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. The agent configuration is generated for the current project after an explicit CLI setup command.

- **Trigger:** A user runs `turbobase project init`; generated hooks may run in later Claude Code sessions.

- **Impact:** The inspected behavior does not establish unconsented install-time mutation of an agent control surface or disclosure of credentials to an unrelated recipient.

- **Review source:** ai\_review

- **Reviewed:** 2026-10-15T23:57:14.452Z

### AI review details

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

- **Mechanism:** The CLI writes project scaffold files and configures MCP access to the selected or active Turbobase instance; the session hook refreshes project types.

- **Rationale:** The manifest has no install lifecycle hook, and the flagged agent configuration is part of explicit, project-scoped setup. The token probe sends the caller-supplied token to the selected instance URL, so no unrelated credential recipient was established.

### Review decision

- **Verdict:** Clean

- **Confidence:** 91.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** package.json lists build and prepublishOnly scripts, with no npm install lifecycle hook., The agent-configuration helper adds the project MCP configuration entry only when it is missing; the standalone bundle has the same behavior., The CLI creates the Claude Code project scaffold, including its agent settings, only when the user runs `project init`; it uses the selected or active instance., The scaffold fills its MCP configuration with that instance URL and token. The generated session hook refreshes project types against the instance.

- **Evidence against:** Explicit project setup adds project-level Claude hooks and stores the instance token in the project MCP configuration; the source describes these as scaffold files and ignores `.mcp.json`.

## Affected versions and remediation

This report applies to @turbobase/cli@1.40.1.

- No action is needed for @turbobase/cli@1.40.1. 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: 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.

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

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

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L250: export default defineHook;
L251: `;Bo=class extends Error{constructor(e){super(e),this.name="SandboxBundleError"}};Gw=new Set(["assert","buffer","child_process","cluster","crypto","dns","events","fs","http","http2...
L252: source: ${JSON.stringify(o)},`:"",i,a;if(n==="blank")i=`
```

### 4. Low: Eval (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** dist/turbobase.js
- **Public source:** [View source](<https://unpkg.com/@turbobase/cli@1.40.1/dist/turbobase.js>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L2306: || (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,te._)`+${o}`);return;case"boolean":n.elseIf((0,te._)`${o} === "false" || ${o} === 0 || ${o} === null`)....
L2307: || ${i} === "boolean" || ${o} === null`).assign(a,(0,te._)`[${o}]`)}}}function gR({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,te._)`${e} !== undefined`,()=>t.assign((0,te....
L2308: missingProperty: ${n},
```

### 5. Medium: Dynamic Require (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/turbobase.js
- **Public source:** [View source](<https://unpkg.com/@turbobase/cli@1.40.1/dist/turbobase.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L2: import { createRequire as __tbCreateRequire } from 'node:module';
L3: const require = __tbCreateRequire(import.meta.url);
L4: var tw=Object.create;var zi=Object.defineProperty;var rw=Object.getOwnPropertyDescriptor;var nw=Object.getOwnPropertyNames;var ow=Object.getPrototypeOf,sw=Object.prototype.hasOwnPr...
```

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

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

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

### 9. 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/turbobase.js
- **Public source:** [View source](<https://unpkg.com/@turbobase/cli@1.40.1/dist/turbobase.js>)

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

Public source snippet (untrusted):

```javascript
L2313: 
L2314: `)}}]}})}p.registerTool("catalog_get",{title:"Get the instance catalog",description:"Fetch the instance's record-type catalog (/v1/catalog/records).",inputSchema:{}},async()=>{let{...
L2315: `);if(!t.whenPassed)return s.push(""),s.push("transform: SKIPPED (from.when gate did not fire)."),s.join(`
...
L2325: `}function qv(t){let e={suite:t.name,tests:t.cases.length,failures:op(t),cases:t.cases};return`${JSON.stringify(e,null,2)}
L2326: `}function Wo(t,e){return e==="junit"?Mv(t):qv(t)}var Ge={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",invert:"\x1B[7m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B...
L2327: `)}function ft(t,e={}){let r=e.indent??"  ",n=e.gap??"  ",o=e.head?[e.head,...t]:t,s=Math.max(0,...o.map(u=>u.length)),i=[];for(let u=0;u<s;u+=1)i[u]=Math.
```

### 10. High: Credential Redirect Persistence (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/turbobase.js
- **Public source:** [View source](<https://unpkg.com/@turbobase/cli@1.40.1/dist/turbobase.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/turbobase.js:
`)}var ea=j(()=>{});function Rw(t){let e=t.replace(/\/+$/,"");return{records:`${e}/v1/catalog/records`,openapi:`${e}/v1/catalog/openapi.json`}}async function Su(t,e,r){let n=await ...
`)});var ta=j(()=>{bn();su();lu();hu();wu();ku()});import{homedir as Ew}from"node:os";import{join as Tu}from"node:path";import{promises as ra}from"node:fs";function rt(t){return t....
`,{mode:384})}async function Ru(t){let e=rt(t.baseUrl),r=await wn(),n=new Date().toISOString();return r.tenants[e]={token:t.token,updatedAt:n},r.active=e,await na(r),{baseUrl:e,tok...
`)}function Mo(t,e={}){let r=e.budgetMs??6e5,n=e.defaultDelayMs??6e4,o=e
```

### 11. High: Command Output Exfiltration (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/turbobase.js
- **Public source:** [View source](<https://unpkg.com/@turbobase/cli@1.40.1/dist/turbobase.js>)

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

Public source snippet (untrusted):

```javascript
L2298: `});import*as ym from"zod/v3";import*as yr from"zod/v4-mini";function Et(t){return!!t._zod}function br(t){let e=Object.values(t);if(e.length===0)return yr.object({});let r=e.every(...
L2299: `);if("message"in t&&typeof t.message=="string")return t.message;try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function bm(t){return t.description}function ...
L2300: ]))`;continue}else if(n[l]==="$"){o+=`($|(?=[\r
...
L2302: `:`[${n[l]}\r
L2303: ]`;continue}o+=n[l],n[l]==="\\"?s=!0:i&&n[l]==="]"?i=!1:!i&&n[l]==="["&&(i=!0)}try{new RegExp(o)}catch{return console.warn(`Could not convert regex pattern at ${e.currentPath.join(...
L2304: `:""},this._extScope=e,this._scope=new wt.Scope({parent:e}),this._nodes=[new sc]}toString(){return this._root.render(this.opts)}name(e){retu
```

### 12. High: External Ai Agent Control Surface Mutation (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/turbobase.js
- **Public source:** [View source](<https://unpkg.com/@turbobase/cli@1.40.1/dist/turbobase.js>)

Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.

Public source snippet (untrusted):

```javascript
Runtime or CLI code links a write operation to an explicit external AI-agent control path:
.").option("--limit <n>","max rows on the first read (default 100, max 500).").option("--json","emit raw rows as json, one per line.").action(async d=>{let{baseurl:h,token:w}=await z(d.baseurl),t=new q({baseurl:h,token:w}),_=d.limit?number(d.limit):void 0,f=d.intervalms?number(d.intervalms):void 0;if(d.processrun){try{await gp(t,d.processrun,{...d.follow?{follow:!0}:{},...f!==void 0?{intervalms:f}:{},sink:b})}catch(k){v(`logs --process-run failed: ${k instanceof error?k.message:string(k)}`)}return}if(d.conduit){try{await cp(t,d.conduit,{...d.follow?{follow:!0}:{},..._!==void 0?{limit:_}:{},...f!==void 0?{intervalms:f}:{},sink:b})}catch(k){v(`logs --conduit failed: ${k instanceof error?k.message:strin
```

### 13. High: Cross File Remote Execution Context (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/turbobase-standalone.mjs
- **Public source:** [View source](<https://unpkg.com/@turbobase/cli@1.40.1/dist/turbobase-standalone.mjs>)

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/turbobase-standalone.mjs spawns dist/turbobase.js; helper contains network access plus dynamic code execution.
L3: const require = __tbCreateRequire(import.meta.url);
L4: var GT=Object.create;var Sl=Object.defineProperty;var JT=Object.getOwnPropertyDescriptor;var YT=Object.getOwnPropertyNames;var XT=Object.getPrototypeOf,QT=Object.prototype.hasOwnPr...
L5: `).replace(/^/gm," ".repeat(s))}let l=[`Usage: ${r.commandUsage(e)}`,""],u=r.commandDescription(e);u.length>0&&(l=l.concat([r.wrap(u,o,0),""]));let p=r.visibleArguments(e).map(m=>a...
...
L12: (Did you mean one of ${n.join(", ")}?)`:n.length===1?`
L13: (Did you mean ${n[0]}?)`:""}Sg.suggestSimilar=aR});var Cg=B(Ag=>{var cR=ts("events").EventEmitter,Ll=ts("child_process"),Tr=ts("path"),jl=ts("fs"),F
```

### 14. 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/turbobase.js
- **Public source:** [View source](<https://unpkg.com/@turbobase/cli@1.40.1/dist/turbobase.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.bin -> dist/turbobase.js
L2298: `});import*as ym from"zod/v3";import*as yr from"zod/v4-mini";function Et(t){return!!t._zod}function br(t){let e=Object.values(t);if(e.length===0)return yr.object({});let r=e.every(...
L2299: `);if("message"in t&&typeof t.message=="string")return t.message;try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function bm(t){return t.description}function ...
L2300: ]))`;continue}else if(n[l]==="$"){o+=`($|(?=[\r
...
L2302: `:`[${n[l]}\r
L2303: ]`;continue}o+=n[l],n[l]==="\\"?s=!0:i&&n[l]==="]"?i=!1:!i&&n[l]==="["&&(i=!0)}try{new RegExp(o)}catch{return console.warn(`Could not convert regex pattern at ${e.currentPath.join(...
L2304: `:""},this._extScope=e,this._scope=new wt.Scope({pare
```

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

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

### 17. Medium: Structural Risk Force Deep Review (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Artifact Inventory
- **Confidence:** 75.0%

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

### 18. 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:** prepublishOnly
- **Dependencies:** 4
- **Optional dependencies:** 1
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 5

### Published dependency entries
- commander ^11.1.0 (Dependency)
- esbuild 0.28.1 (Dependency)
- isolated-vm 6.1.2 (Dependency)
- zod ^3.25.0 (Dependency)
- openapi-typescript ^7.0.0 (OptionalDependency)

## Package metadata
- **Package:** @turbobase/cli
- **Ecosystem:** npm
- **Version:** 1.40.1
- **License:** SEE LICENSE IN LICENSE
- **Version published:** 2026-10-15T23:00:08.786Z
- **Package first seen:** 2026-08-10T00:28:08.148Z
- **Package last seen:** 2026-11-23T16:54:15.975Z
- **Known versions:** 49
- **Latest version:** 2.5.0
- **Appeal under review:** No
- **Description:** Author, test, and deploy Turbobase extensions (hooks + conduits) against a tenant over HTTP + a personal access token.
- **Maintainers:** adam\_turbobase
- **Runtime engines:** node: ^22 || \>=24
- **Artifact files:** 5
- **Artifact unpacked size:** 1,584,763 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@turbobase/cli/v/1.40.1>)
