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

# crescodb@0.1.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 as AI-agent capability risk** — Allowed by default with warning: agent-facing configuration or capability changes need review before use.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only AI-agent capability risk
- **Public report status:** Published
- **Threat category:** AI-agent capability abuse
- **Selected version:** 0.1.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.

Static inspection shows package-aligned CLI/server functionality with local AI agent capabilities, but no lifecycle execution, stealth persistence, broad agent control hijack, or credential exfiltration. Because the agent can write project files and request shell execution, warn as dangerous dual-use rather than block.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 88.0%
- **Started:** 2026-07-04T08:26:34.555Z
- **Finished:** 2026-07-04T08:27:24.865Z
- **Download time:** 508 ms
- **Static scan time:** 474 ms
- **AI review time:** 49327 ms
- **Total time:** 50310 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 confirmed malicious install-time or import-time behavior was found. The package includes a user-invoked local AI development server with project file write, SQL, and approval-gated shell capabilities.

- **Trigger:** User runs cresco dev and uses the local AI agent/dashboard features.

- **Impact:** Dangerous dual-use local development capability if a user authorizes agent actions, but no unconsented package attack behavior was identified.

- **Evidence paths:** package.json, bin/cresco.js, src/server/dev-server.js, src/core/agent-exec.js, src/core/agent-fs.js, src/ai/agent.js, src/ai/provider.js, src/cli/account.js

- **Review source:** ai\_review

- **Reviewed:** 2026-07-04T08:27:24.865Z

### AI review details

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

- **Mechanism:** localhost AI agent tools with project-scoped file/SQL access and approval-gated shell execution

- **Rationale:** Static inspection shows package-aligned CLI/server functionality with local AI agent capabilities, but no lifecycle execution, stealth persistence, broad agent control hijack, or credential exfiltration. Because the agent can write project files and request shell execution, warn as dangerous dual-use rather than block.

- **Files touched:** ~/.cresco/config.json, project files under cwd, config.json, cresco.db, backups/cresco-\*.db

- **Network endpoints:** http://localhost:4000, http://localhost:4000/ai/openai/v1, http://localhost:4000/ai/anthropic, http://localhost:4000/cli/me, http://localhost:4000/backups

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 88.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** src/ai/agent.js defines AI tools for project file read/write, SQL, and shell command requests., src/server/dev-server.js exposes /\_ai endpoints that can write project files and run approved commands., src/core/agent-exec.js runs shell commands via /bin/sh or PowerShell when approved., src/ai/provider.js and src/cli/account.js read ~/.cresco/config.json token for CrescoDB platform/proxy calls.

- **Evidence against:** package.json has no install/preinstall/postinstall lifecycle hooks., bin/cresco.js is an explicit CLI entrypoint; risky paths are user-invoked through cresco dev/login/agent features., src/server/dev-server.js gates admin and /\_ai routes to localhost origins., src/server/dev-server.js requires explicit approval before run\_command executes., src/core/agent-fs.js confines file access to the project root and blocks .env/config.json/cresco.db writes., No foreign AI-agent control-surface writes, persistence, credential harvesting, or hardcoded exfiltration endpoints found.

## Affected versions and remediation

This report applies to crescodb@0.1.0.

- Review the evidence and your use of crescodb@0.1.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. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. Medium: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** src/server/manifest.js
- **Public source:** [View source](<https://unpkg.com/crescodb@0.1.0/src/server/manifest.js>)

Package contains a possible secret pattern.

Public source snippet (untrusted):

```javascript
patternName = generic_password
severity = medium
line = 36
matchedText = { method...} },
```

### 3. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** src/core/adapters/mysql.js
- **Public source:** [View source](<https://unpkg.com/crescodb@0.1.0/src/core/adapters/mysql.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L40: _poolConfig() {
L41: // Accept a URI; enable multi-statement so exec()/execRaw() DDL scripts run.
L42: const url = new URL(this.connectionString);
```

### 4. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** src/core/agent-exec.js
- **Public source:** [View source](<https://unpkg.com/crescodb@0.1.0/src/core/agent-exec.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L18: const isWin = process.platform === 'win32';
L19: const shell = isWin ? 'powershell.exe' : '/bin/sh';
L20: // PowerShell -Command doesn't propagate a native program's exit code as its
```

### 5. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** src/server/routes-loader.js
- **Public source:** [View source](<https://unpkg.com/crescodb@0.1.0/src/server/routes-loader.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L22: try {
L23: const mod = await import(pathToFileURL(routesPath).href + '?t=' + Date.now());
L24: defs = mod.default || mod.routes || [];
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 9. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** src/cli/account.js
- **Public source:** [View source](<https://unpkg.com/crescodb@0.1.0/src/cli/account.js>)

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

Public source snippet (untrusted):

```javascript
L8: import path from 'path';
L9: import { spawn } from 'child_process';
L10: import { fileURLToPath } from 'url';
...
L17: 
L18: export const API = (process.env.CRESCO_API || 'http://localhost:4000').replace(/\/$/, '');
L19: const DIR = path.join(os.homedir(), '.cresco');
```

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

Package source contains high-entropy string patterns.

### 11. Medium: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** src/server/manifest.js
- **Public source:** [View source](<https://unpkg.com/crescodb@0.1.0/src/server/manifest.js>)

Hardcoded password in src/server/manifest.js

Public source snippet (untrusted):

```javascript
patternName = generic_password
severity = medium
line = 37
matchedText = { method...} },
```

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

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

### Published dependency entries
- @anthropic-ai/sdk ^0.105.0 (Dependency)
- better-sqlite3 ^12.11.1 (Dependency)
- chalk ^5.3.0 (Dependency)
- chokidar ^3.6.0 (Dependency)
- commander ^12.1.0 (Dependency)
- cors ^2.8.5 (Dependency)
- dotenv ^17.4.2 (Dependency)
- express ^4.19.2 (Dependency)
- openai ^4.47.1 (Dependency)
- ora ^8.0.1 (Dependency)
- uuid ^10.0.0 (Dependency)
- @aws-sdk/client-s3 ^3.1076.0 (OptionalDependency)
- embedded-postgres ^18.4.0-beta.17 (OptionalDependency)
- ioredis ^5.11.1 (OptionalDependency)
- mysql2 ^3.22.5 (OptionalDependency)
- pg ^8.22.0 (OptionalDependency)

## Package metadata
- **Package:** crescodb
- **Ecosystem:** npm
- **Version:** 0.1.0
- **License:** MIT
- **Version published:** 2026-07-04T08:08:13.844Z
- **Package first seen:** 2026-07-04T08:27:24.865Z
- **Package last seen:** 2026-11-01T13:21:16.378Z
- **Known versions:** 13
- **Latest version:** 1.3.3
- **Appeal under review:** No
- **Description:** Instant local backend — SQLite + auto REST API + AI schema generation
- **Deprecated:** Upgrade to crescodb@latest — versions below 1.0.0 are no longer supported and will be refused by the platform.
- **Maintainers:** saintray
- **Keywords:** sqlite, rest-api, cli, backend, scaffold
- **Runtime engines:** node: \>=18.0.0
- **Artifact files:** 57
- **Artifact unpacked size:** 314,736 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/crescodb/v/0.1.0>)
