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

# @ainative/cody-cli@0.12.11 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 agent extension risk** — Allowed by default with warning: install-time first-party agent extension setup was detected.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only agent extension risk
- **Public report status:** Published
- **Threat category:** Agent extension lifecycle risk
- **Selected version:** 0.12.11
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

LPM treats this as warn-only first-party agent extension lifecycle risk. Installation mutates Cody-owned user configuration without an explicit command. It removes marked stale files and provisions an AINative trial credential.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Suspicious
- **Confidence:** 92.0%
- **Started:** 2026-08-07T22:50:36.047Z
- **Finished:** 2026-08-07T22:51:30.632Z
- **Download time:** 1775 ms
- **Static scan time:** 55 ms
- **AI review time:** 52755 ms
- **Total time:** 54585 ms

## Security analysis

### Published attack-surface review

- **Summary:** Installation mutates Cody-owned user configuration without an explicit command. It removes marked stale files and provisions an AINative trial credential.

- **Trigger:** npm postinstall

- **Impact:** Existing Cody configuration may be deleted and a new service credential is persisted.

- **Evidence paths:** package.json, bin/postinstall.cjs, bin/cody.cjs, bin/cody.js, .claude/hooks/install-hooks.sh, dist/cli.js

- **Review source:** ai\_review

- **Reviewed:** 2026-08-07T22:51:30.632Z

### AI review details

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

- **Mechanism:** automatic Cody config cleanup and trial-account provisioning

- **Rationale:** This is a real install-time mutation of a first-party agent configuration namespace, warranting a warning. Source inspection found no credential exfiltration, remote payload execution in the active launcher, or unconsented foreign/broad AI-agent control-surface mutation.

- **Files touched:** ~/.cody/credentials.json, ~/.cody/oauth.json, ~/.cody/tokens.json, ~/.cody/.credentials, ~/.cody/settings.json, ~/.cody/cache, ~/.config/cody-cli/credentials.json, ~/.config/cody-cli/oauth.json, ~/.config/cody-cli/tokens.json, ~/.config/cody-cli/.credentials, ~/.config/cody-cli/settings.json, ~/.config/cody-cli/cache

- **Network endpoints:** https://api.ainative.studio/api/v1/public/instant-db

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 92.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for:** package.json runs bin/postinstall.cjs automatically., postinstall deletes selected credentials/settings and cache under ~/.cody and ~/.config/cody-cli., postinstall POSTs to api.ainative.studio and writes returned trial credentials to ~/.cody/credentials.json., dist/cli.js supports user-initiated agent, plugin, and hook configuration.

- **Evidence against:** The postinstall request sends only provisioning metadata, not harvested local credential contents., The modified ~/.cody paths are the package's documented Cody configuration namespace., Git hooks are installed only by explicit .claude/hooks/install-hooks.sh execution., bin/cody.js Bun downloader is not the declared bin entry; bin/cody.cjs imports the bundled CLI.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@ainative/cody-cli@0.12.11/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node bin/postinstall.cjs
```

### 2. Medium: Ambiguous Install Lifecycle Script
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@ainative/cody-cli@0.12.11/package.json>)

Install-time lifecycle script is not statically allowlisted and needs review.

Public source snippet (untrusted):

```json
scripts.postinstall = node bin/postinstall.cjs
```

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

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

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

Package declares npm scripts.

### 5. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bin/cody.js
- **Public source:** [View source](<https://unpkg.com/@ainative/cody-cli@0.12.11/bin/cody.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L11: 
L12: const { execSync, spawn } = require('child_process')
L13: const { existsSync } = require('fs')
```

### 6. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bin/cody.js
- **Public source:** [View source](<https://unpkg.com/@ainative/cody-cli@0.12.11/bin/cody.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L69: if (IS_WINDOWS) {
L70: // Windows: use PowerShell installer (Refs #3117)
L71: execSync('powershell -NoProfile -ExecutionPolicy Bypass -Command "irm bun.sh/install.ps1 | iex"', { stdio: 'inherit' })
```

### 7. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** bin/cody.js
- **Public source:** [View source](<https://unpkg.com/@ainative/cody-cli@0.12.11/bin/cody.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L11: 
L12: const { execSync, spawn } = require('child_process')
L13: const { existsSync } = require('fs')
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 11. Critical: Download Execute
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** bin/cody.js
- **Public source:** [View source](<https://unpkg.com/@ainative/cody-cli@0.12.11/bin/cody.js>)

Source downloads or fetches remote code and executes it.

Public source snippet (untrusted):

```javascript
L11: 
L12: const { execSync, spawn } = require('child_process')
L13: const { existsSync } = require('fs')
...
L15: 
L16: const CLI_BUNDLE = path.join(__dirname, '..', 'dist', 'cli.js')
L17: const MIN_BUN_VERSION = '1.2.0'
L18: 
L19: const IS_WINDOWS = process.platform === 'win32'
L20: 
...
L22: // HOME on Windows is USERPROFILE; fall back to HOME for Unix
L23: const home = process.env.USERPROFILE || process.env.HOME || ''
L24: const candidates = IS_WINDOWS
```

### 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: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** .cody/hooks/gateguard.sh
- **Public source:** [View source](<https://unpkg.com/@ainative/cody-cli@0.12.11/.cody/hooks/gateguard.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = .cody/hooks/gateguard.sh
kind = build_helper
sizeBytes = 1688
magicHex = [redacted]
```

### 15. High: Payload In Excluded Dir
- **Category:** Artifact Inventory
- **Confidence:** 85.0%
- **Path:** .cody/hooks/gateguard.sh
- **Public source:** [View source](<https://unpkg.com/@ainative/cody-cli@0.12.11/.cody/hooks/gateguard.sh>)

Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.

Public source snippet (untrusted):

```shell
path = .cody/hooks/gateguard.sh
kind = payload_in_excluded_dir
sizeBytes = 1688
magicHex = [redacted]
```

### 16. Medium: Oversized Source File
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@ainative/cody-cli@0.12.11/dist/cli.js>)

Package contains source files above the normal full-analysis size ceiling.

Public source snippet (untrusted):

```javascript
path = dist/cli.js
kind = oversized_source_file
sizeBytes = 22285604
magicHex = [redacted]
```

### 17. Medium: Oversized Cli Entrypoint
- **Category:** Artifact Inventory
- **Confidence:** 80.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@ainative/cody-cli@0.12.11/dist/cli.js>)

Package contains an oversized executable-looking CLI entrypoint.

Public source snippet (untrusted):

```javascript
path = dist/cli.js
kind = oversized_cli_entrypoint
sizeBytes = 22285604
magicHex = [redacted]
```

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

### 19. 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:** postinstall, prepublishOnly
- **Dependencies:** 68
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 1
- **Published dependency-graph edges:** 68

### Published dependency entries
- @ainative/cody-for-chrome-mcp ^0.1.1 (Dependency)
- @ainative/sandbox-runtime 0.0.49 (Dependency)
- @anthropic-ai/bedrock-sdk ^0.26.4 (Dependency)
- @anthropic-ai/sdk ^0.82.0 (Dependency)
- @anthropic-ai/vertex-sdk ^0.14.4 (Dependency)
- @aws-sdk/client-bedrock ^3.1021.0 (Dependency)
- @aws-sdk/client-sts ^3.1021.0 (Dependency)
- @azure/identity ^4.13.1 (Dependency)
- @commander-js/extra-typings ^14.0.0 (Dependency)
- @growthbook/growthbook ^1.6.5 (Dependency)
- @modelcontextprotocol/sdk ^1.29.0 (Dependency)
- @opentelemetry/api ^1.9.1 (Dependency)
- @opentelemetry/exporter-logs-otlp-grpc ^0.214.0 (Dependency)
- @opentelemetry/exporter-logs-otlp-http ^0.214.0 (Dependency)
- @opentelemetry/exporter-logs-otlp-proto ^0.214.0 (Dependency)
- @opentelemetry/exporter-metrics-otlp-grpc ^0.214.0 (Dependency)
- @opentelemetry/exporter-metrics-otlp-http ^0.214.0 (Dependency)
- @opentelemetry/exporter-metrics-otlp-proto ^0.214.0 (Dependency)
- @opentelemetry/exporter-prometheus ^0.214.0 (Dependency)
- @opentelemetry/exporter-trace-otlp-grpc ^0.214.0 (Dependency)
- @opentelemetry/exporter-trace-otlp-http ^0.214.0 (Dependency)
- @opentelemetry/exporter-trace-otlp-proto ^0.214.0 (Dependency)
- @opentelemetry/resources ^2.6.1 (Dependency)
- @opentelemetry/sdk-logs ^0.214.0 (Dependency)
- @opentelemetry/semantic-conventions ^1.40.0 (Dependency)
- asciichart ^1.5.25 (Dependency)
- axios ^1.7.0 (Dependency)
- bidi-js ^1.0.3 (Dependency)
- chalk ^5.3.0 (Dependency)
- chokidar ^5.0.0 (Dependency)
- cli-spinners ^3.4.0 (Dependency)
- commander ^12.0.0 (Dependency)
- diff ^8.0.4 (Dependency)
- env-paths ^4.0.0 (Dependency)
- execa ^9.6.1 (Dependency)
- fast-xml-parser ^5.5.9 (Dependency)
- fflate ^0.8.2 (Dependency)
- figures ^6.0.0 (Dependency)
- fuse.js ^7.1.0 (Dependency)
- ignore ^7.0.5 (Dependency)
- ink ^5.0.0 (Dependency)
- jsonc-parser ^3.3.1 (Dependency)
- jwt-decode ^4.0.0 (Dependency)
- lodash-es ^4.17.21 (Dependency)
- lru-cache ^11.2.7 (Dependency)
- marked ^17.0.5 (Dependency)
- p-map ^7.0.4 (Dependency)
- picomatch ^4.0.4 (Dependency)
- proper-lockfile ^4.1.2 (Dependency)
- qrcode ^1.5.4 (Dependency)
- react 19.1.0 (Dependency)
- react-dom 19.1.0 (Dependency)
- react-reconciler 0.31.0 (Dependency)
- semver ^7.7.4 (Dependency)
- sharp ^0.34.5 (Dependency)
- shell-quote ^1.8.3 (Dependency)
- strip-ansi ^7.2.0 (Dependency)
- supports-hyperlinks ^4.4.0 (Dependency)
- swr ^2.4.1 (Dependency)
- tree-kill ^1.2.2 (Dependency)
- turndown ^7.2.2 (Dependency)
- type-fest ^5.5.0 (Dependency)
- usehooks-ts ^3.1.1 (Dependency)
- uuid ^13.0.0 (Dependency)
- vscode-jsonrpc ^8.2.1 (Dependency)
- xss ^1.0.15 (Dependency)
- yaml ^2.8.3 (Dependency)
- zod ^3.23.0 (Dependency)

## Package metadata
- **Package:** @ainative/cody-cli
- **Ecosystem:** npm
- **Version:** 0.12.11
- **License:** SEE LICENSE IN LICENSE
- **Version published:** 2026-08-07T08:11:24.167Z
- **Package first seen:** 2026-07-01T03:10:08.701Z
- **Package last seen:** 2026-08-15T08:48:03.413Z
- **Known versions:** 27
- **Latest version:** 0.12.60
- **Appeal under review:** No
- **Description:** AI-powered terminal coding assistant with 21+ coding models, persistent agent memory, MCP servers, and semantic code search. Hobbyist tier starting at $5/mo.
- **Author:** AINative Studio
- **Maintainers:** ainative-studio
- **Keywords:** cody, cody-cli, ainative, ai, ai-coding, ai-assistant, ai-agent, ai-agents, ai-coding-assistant, ai-pair-programmer, cli, cli-agent
- **Runtime engines:** node: \>=18.0.0
- **Artifact files:** 63
- **Artifact unpacked size:** 22,515,493 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@ainative/cody-cli/v/0.12.11>)
- [Repository](<https://docs.ainative.studio/docs/cody-cli/getting-started>)
- [Homepage](<https://ainative.studio/cody>)
- [Issues](<https://discord.gg/paipalooza>)
