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

# warden-ai@0.2.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
**Soft block: AI-agent control surface** — Warn by default; block when configured. Persists a Warden command into many AI-agent clients and alters global/project agent instructions without user consent.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Warn by default
- **Public report status:** Published
- **Threat category:** Soft block: AI-agent control surface
- **Selected version:** 0.2.1
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

LPM flags this version as an AI-agent control-surface risk. On npm install, the postinstall hook silently initializes Warden in the caller's working directory. It writes MCP registrations and AI-agent rules across broad user-global and project control surfaces, then can rewrite instruction files.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Malicious
- **Confidence:** 99.0%
- **Started:** 2026-08-05T10:44:20.331Z
- **Finished:** 2026-08-05T10:44:47.211Z
- **Download time:** 510 ms
- **Static scan time:** 1785 ms
- **AI review time:** 24584 ms
- **Total time:** 26880 ms

## Security analysis

### Published attack-surface review

- **Summary:** On npm install, the postinstall hook silently initializes Warden in the caller's working directory. It writes MCP registrations and AI-agent rules across broad user-global and project control surfaces, then can rewrite instruction files.

- **Trigger:** npm install executes postinstall automatically

- **Impact:** Persists a Warden command into many AI-agent clients and alters global/project agent instructions without user consent.

- **Evidence paths:** package.json, bin/postinstall.cjs, dist/index.js, dist/cli.js

- **Review source:** ai\_review

- **Reviewed:** 2026-08-05T10:44:47.211Z

### AI review details

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

- **Mechanism:** silent postinstall MCP registration and AI-agent configuration mutation

- **Attack narrative:** Installing the package invokes a suppressed \`warden init --skip-index\`. The init path registers \`warden serve\` as an MCP server in numerous third-party agent configurations, writes both project and global rule/instruction files, and compresses existing agent-memory files in the install working directory. This is unconsented postinstall mutation of broad foreign AI-agent control surfaces.

- **Rationale:** Direct source inspection confirms a concrete broad AI-agent control-surface mutation chain triggered automatically by npm postinstall. This meets the blocking policy regardless of the package's nominal functionality.

- **Files touched:** bin/postinstall.cjs, dist/cli.js, dist/index.js, ~/.codex/config.toml, ~/.cursor/mcp.json, ~/.claude.json, \<cwd\>/.mcp.json, \<cwd\>/AGENTS.md, \<cwd\>/.github/copilot-instructions.md

### Review decision

- **Verdict:** Malicious

- **Confidence:** 99.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for:** package.json defines postinstall., bin/postinstall.cjs silently runs \`dist/cli.js init --skip-index\` during install., dist/index.js init invokes registerEverywhere(), project/global rule writes, and compression., dist/index.js registers a Warden MCP server in many unrelated agent configs, including Codex, Cursor, Claude, Cline, VS Code, and generic MCP., dist/index.js modifies global agent instruction/rule files and overwrites project AI instruction files after creating \`.original\` backups.

- **Evidence against:** No credential-exfiltration or remote-payload endpoint was found in inspected lifecycle code., The package contains functional context/MCP tooling; the malicious behavior is its unconsented install-time activation.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/warden-ai@0.2.1/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/warden-ai@0.2.1/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. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** bin/warden.js
- **Public source:** [View source](<https://unpkg.com/warden-ai@0.2.1/bin/warden.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L11: try {
L12: const mod = await import(pathToFileURL(cliPath).href);
L13: // dist/cli.js only auto-runs runCli() when it's the direct entry point.
```

### 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. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

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

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

Package manifest does not declare a clear license.

### 13. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/warden-ai@0.2.1/dist/cli.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = warden-ai@0.2.0
matchedPath = dist/cli.js
matchedIdentity = npm:d2FyZGVuLWFp:0.2.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 14. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/warden-ai@0.2.1/dist/index.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = warden-ai@0.2.0
matchedPath = dist/cli.js
matchedIdentity = npm:d2FyZGVuLWFp:0.2.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 15. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bin/postinstall.cjs
- **Public source:** [View source](<https://unpkg.com/warden-ai@0.2.1/bin/postinstall.cjs>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = warden-ai@0.2.0
matchedPath = bin/postinstall.cjs
matchedIdentity = npm:d2FyZGVuLWFp:0.2.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 16. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bin/warden.js
- **Public source:** [View source](<https://unpkg.com/warden-ai@0.2.1/bin/warden.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = warden-ai@0.2.0
matchedPath = bin/warden.js
matchedIdentity = npm:d2FyZGVuLWFp:0.2.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 17. High: Known Malware Source Fingerprint Signature
- **Category:** Supply Chain
- **Confidence:** 94.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/warden-ai@0.2.1/dist/cli.js>)

Source fingerprint signature matches a known malicious package signature; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = malicious_source_fingerprint_signature
signature = 8fe78156802d7dea
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = warden-ai@0.2.0
matchedPath = dist/cli.js
matchedIdentity = npm:d2FyZGVuLWFp:0.2.0
similarity = 1.000
shingleOverlap = 3
summary = package final verdict is malicious
```

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

### Published dependency entries
- @modelcontextprotocol/sdk 1.29.0 (Dependency)
- chalk 5.6.2 (Dependency)
- commander 15.0.0 (Dependency)
- tree-sitter-wasms ^0.1.13 (Dependency)
- web-tree-sitter ^0.22.6 (Dependency)
- zod 4.4.3 (Dependency)

## Package metadata
- **Package:** warden-ai
- **Ecosystem:** npm
- **Version:** 0.2.1
- **License:** SEE LICENSE IN LICENSE
- **Version published:** 2026-08-05T10:37:43.146Z
- **Package first seen:** 2026-08-05T10:23:36.984Z
- **Package last seen:** 2026-08-09T11:34:18.822Z
- **Known versions:** 11
- **Latest version:** 0.2.17
- **Appeal under review:** No
- **Description:** The structurally-verified context layer for AI coding agents. Warden sits between your coding agent and its tools, prunes tool output to what the current task needs, and verifies — with real evals — that nothing got worse.
- **Author:** Rynaldo Stoltz
- **Keywords:** mcp, model-context-protocol, ai, coding-agent, context, token-optimization, eval-gate, cursor, claude-code, codex, windsurf
- **Runtime engines:** node: \>=22.5.0
- **Artifact files:** 103
- **Artifact unpacked size:** 2,467,542 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/warden-ai/v/0.2.1>)
- [Repository](<https://github.com/rynald0cst0ltziam/Warden-AI.git>)
- [Homepage](<https://github.com/rynald0cst0ltziam/Warden-AI>)
- [Issues](<https://github.com/rynald0cst0ltziam/Warden-AI/issues>)
