---
canonical: "https://firewall.lpm.dev/npm/codev-ai/v/0.4.5"
markdown: "https://firewall.lpm.dev/npm/codev-ai/v/0.4.5.md"
package: "codev-ai"
report_status: "published"
title: "codev-ai@0.4.5 npm security report"
verdict: "malicious"
version: "0.4.5"
---

# codev-ai@0.4.5 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
**Blocked & quarantined** — AI-agent conversation contents and local paths are sent to the vendor backend.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Data Exfiltration
- **Selected version:** 0.4.5
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

Launching codevhub's wrapped AI-agent commands silently starts a detached daemon that exports and uploads local conversation logs for authenticated users. This is undisclosed automatic data exfiltration, separate from the visible upload command.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Malicious
- **Confidence:** 96.0%
- **Started:** 2026-07-27T12:53:01.491Z
- **Finished:** 2026-07-27T12:53:57.354Z
- **Download time:** 503 ms
- **Static scan time:** 5387 ms
- **AI review time:** 49973 ms
- **Total time:** 55863 ms

## Security analysis

### Published attack-surface review

- **Summary:** Launching codevhub's wrapped AI-agent commands silently starts a detached daemon that exports and uploads local conversation logs for authenticated users. This is undisclosed automatic data exfiltration, separate from the visible upload command.

- **Trigger:** Run codevhub, codevhub claude, codevhub codex, codevhub opencode, or an unrecognized wrapped-agent command after CoDev authentication.

- **Impact:** AI-agent conversation contents and local paths are sent to the vendor backend.

- **Evidence paths:** package.json, README.md, dist/index.js

- **Review source:** ai\_review

- **Reviewed:** 2026-07-27T12:53:57.354Z

### AI review details

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

- **Mechanism:** Detached authenticated export and upload of local conversation logs

- **Attack narrative:** The CLI invokes spawnUploadDaemon before launching wrapped agents. If CoDev authentication exists, it detaches \`codevhub upload --daemon\`; that exports local conversation logs, identifies changed Markdown files, obtains upload credentials, gzip-compresses each file, and uploads it. The documented README describes agent configuration but not this automatic collection. The visible \`upload\` command does not make the automatic launches consented.

- **Rationale:** Source confirms an undisclosed, automatic and detached upload path for local AI conversation content. No install-time hook is present, but runtime data exfiltration is concrete.

- **Files touched:** ~/.codev-hub/auth.json, ~/.codev-hub/upload.lock, ~/.codev-hub/last-upload.json

- **Network endpoints:** https://netmind.viettel.vn

### Review decision

- **Verdict:** Malicious

- **Confidence:** 96.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for:** dist/index.js automatically spawns an upload daemon whenever its agent wrapper runs., The daemon exports local AI conversation logs and gzip-uploads new files to a Supabase backend., README.md does not disclose the automatic conversation-log upload., The upload daemon is detached and runs whenever ~/.codev-hub/auth.json exists., dist/index.js Base64-obscures https://netmind.viettel.vn.

- **Evidence against:** package.json has no preinstall, install, or postinstall hook., Interactive \`codevhub upload\` displays upload status and authentication flow., Shell shim changes are tied to explicit install/config/hook commands.

## Public findings

### 1. Low: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

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

### 2. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 3. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/codev-ai@0.4.5/dist/index.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L39092: function wrapAnsi(string, columns, options) {
L39093: return String(string).normalize().replaceAll("\r\n", "\n").split("\n").map((line) => exec(expandTabs(line), columns, options)).join("\n");
L39094: }
```

### 4. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/codev-ai@0.4.5/dist/index.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L48746: var USE_SHELL = process.platform === "win32";
L48747: function execAsync(file, args2) {
L48748: logDebug(`exec: ${file} ${args2.join(" ")}`, {
```

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

Package source references environment variables.

### 6. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/codev-ai@0.4.5/dist/index.js>)

Source writes installer persistence such as shell profile or service configuration.

Public source snippet (untrusted):

```javascript
L496: "use strict";
L497: "production" !== process.env.NODE_ENV && (function() {
L498: function defineDeprecationWarning(methodName, info) {
...
L635: specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
L636: "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a di...
L637: displayName
...
L916: }
L917: function recursivelyFlushAsyncActWork(returnValue, resolve4, reject) {
L918: var queue = ReactSharedInternals.actQueue;
...
L1486: ];
L1487: if (process.platform !== "win32") {
L1488: module2.exports.push(
```

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

Package source references filesystem APIs.

### 8. Critical: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/codev-ai@0.4.5/dist/index.js>)

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

Public source snippet (untrusted):

```javascript
L496: "use strict";
L497: "production" !== process.env.NODE_ENV && (function() {
L498: function defineDeprecationWarning(methodName, info) {
...
L635: specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
L636: "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a di...
L637: displayName
...
L916: }
L917: function recursivelyFlushAsyncActWork(returnValue, resolve4, reject) {
L918: var queue = ReactSharedInternals.actQueue;
...
L1486: ];
L1487: if (process.platform !== "win32") {
L1488: module2.exports.push(
```

### 9. High: Remote Agent Bridge
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/codev-ai@0.4.5/dist/index.js>)

Source exposes local file and command tools to a remote model endpoint.

Public source snippet (untrusted):

```javascript
L34228: opts.filename = input;
L34229: inBuffer = filetools.fs.readFileSync(input);
L34230: } else {
...
L34990: lines.push("");
L34991: const baseUrlTag = session.baseUrl ? ` base_url=${session.baseUrl}` : "";
L34992: const subagentTag = session.subagentCharsIn || session.subagentCharsOut ? ` subagent_chars_in=${session.subagentCharsIn ?? 0} subagent_chars_out=${session.subagentCharsOut ?? 0}` :...
...
L39097: import process3 from "node:process";
L39098: import { execFileSync } from "node:child_process";
L39099: import fs from "node:fs";
```

### 10. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/codev-ai@0.4.5/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.bin -> dist/index.js
L496: "use strict";
L497: "production" !== process.env.NODE_ENV && (function() {
L498: function defineDeprecationWarning(methodName, info) {
...
L635: specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
L636: "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a di...
L637: displayName
...
L916: }
L917: function recursivelyFlushAsyncActWork(returnValue, resolve4, reject) {
L918: var queue = ReactSharedInternals.actQueue;
...
L1486: ];
L1487: if (process.platform !== "win32") {
L1488: module2.exports.push(
```

### 11. High: Base64 Obscured Url
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/codev-ai@0.4.5/dist/index.js>)

Source decodes a Base64-obscured HTTP endpoint at runtime.

Public source snippet (untrusted):

```javascript
L45714: // src/lib/const.ts
L45715: var BASE_URL = atob("[redacted]=");
L45716: var BACKEND_URL = `${BASE_URL}/codev-backend`;
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 14. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

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

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

Package manifest does not declare a clear license.

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

### Published dependency entries
- @iarna/toml ^2.2.5 (Dependency)
- adm-zip ^0.5.18 (Dependency)
- ink ^7.1.0 (Dependency)
- ink-spinner ^5.0.0 (Dependency)
- jsonc-parser ^3.3.1 (Dependency)
- open ^11.0.0 (Dependency)
- react ^19.2.7 (Dependency)

## Package metadata
- **Package:** codev-ai
- **Ecosystem:** npm
- **Version:** 0.4.5
- **Version published:** 2026-07-27T11:05:43.454Z
- **Package first seen:** 2026-07-01T09:09:41.568Z
- **Package last seen:** 2026-08-09T07:09:55.583Z
- **Known versions:** 14
- **Latest version:** 0.5.15
- **Appeal under review:** No
- **Description:** CoDev — AI Coding Agent Hub. Install, configure, and manage multiple AI coding agents.
- **Keywords:** ai, cli, coding-agent
- **Artifact files:** 3
- **Artifact unpacked size:** 2,365,105 bytes
- **Artifact signatures:** 1
- **Attestations:** No

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