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

# aegiscode@5.2.25 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
**Passed — safe to install** — No malicious behavior detected. 26 low-signal pattern(s) reviewed.

- **Verdict:** Clean
- **Product-default install policy:** Allow
- **Firewall policy:** No policy match
- **Public report status:** Published
- **Threat category:** None published
- **Selected version:** 5.2.25
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

No malicious attack surface was confirmed. The CLI has documented, user-configured cloud synchronization, but it is not activated by installation.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Clean
- **Confidence:** 92.0%
- **Started:** 2026-08-08T09:14:51.538Z
- **Finished:** 2026-08-08T09:15:34.530Z
- **Download time:** 775 ms
- **Static scan time:** 7726 ms
- **AI review time:** 34489 ms
- **Total time:** 42992 ms

## Security analysis

### Published attack-surface review

- **Summary:** No malicious attack surface was confirmed. The CLI has documented, user-configured cloud synchronization, but it is not activated by installation.

- **Trigger:** User runs documented cloud or memory commands after supplying credentials.

- **Impact:** No unconsented install-time mutation or credential exfiltration established.

- **Evidence paths:** package.json, scripts/ensure-node-version.mjs, scripts/download-binary.mjs, scripts/install-alacritty.sh, scripts/install-alacritty.ps1, bin/cli.js

- **Review source:** ai\_review

- **Reviewed:** 2026-08-08T09:15:34.530Z

### AI review details

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

- **Mechanism:** User-configured AI CLI and cloud synchronization.

- **Rationale:** Static hints conflate bundled runtime capabilities with malicious behavior. Direct inspection shows the sole preinstall hook only enforces a Node version; cloud upload is configured through explicit CLI actions and credentials.

### Review decision

- **Verdict:** Clean

- **Confidence:** 92.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence against:** package.json preinstall only runs scripts/ensure-node-version.mjs, which checks Node version and exits., scripts/download-binary.mjs and install-alacritty scripts are packaged but not lifecycle hooks., bin/cli.js cloud upload requires a user-supplied AEGIS Cloud key and explicit /cloud activation/key command., bin/cli.js /memory upload is an explicit command; README documents cloud-sync behavior., No source evidence of install-time credential harvesting, remote payload execution, or foreign AI-agent config mutation.

## Public findings

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

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.preinstall = node scripts/ensure-node-version.mjs
```

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

Package declares npm scripts.

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

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L25: `)e&&(c+=edI("")),c+=i4I(t);else if(h===`
L26: `){let r=[...t];h4I(Z.slice(N+1),r),c+=Y4I(r),e&&(c+=edI(e))}N+=h.length}return c}});import kY from"node:process";import{execFileSync as F4I}from"node:child_process";import Jv from...
L27: at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
```

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

Package source references network APIs.

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

Package source references environment variables.

### 6. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/cli.js>)

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

Public source snippet (untrusted):

```javascript
L3: 
L4: var NCI=Object.create;var fB=Object.defineProperty;var uCI=Object.getOwnPropertyDescriptor;var hCI=Object.getOwnPropertyNames;var iCI=Object.getPrototypeOf,YCI=Object.prototype.has...
L5: `);let c;for(;(c=XCI.exec(G))!=null;){let e=c[1],t=c[2]||"";t=t.trim();let n=t[0];t=t.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),n==='"'&&(t=t.replace(/\\n/g,`
L6: `),t=t.replace(/\\r/g,"\r")),I[e]=t}return I}function vCI(l){l=l||{};let I=knI(l);l.path=I;let G=en.configDotenv(l);if(!G.parsed){let n=new Error(`MISSING_DATA: Cannot parse ${I} f...
L7: 
...
L17: 3. You might have more than one copy of React in the same app
L18: See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),z}function D(){eI.asyncTransitions--}function j(z){if(hG===null)try{var ZI=("requ
```

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

Package source references filesystem APIs.

### 8. Critical: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/cli.js>)

A single source file combines environment access, network access, and code or shell execution with blocking evidence.

Public source snippet (untrusted):

```javascript
L17: 3. You might have more than one copy of React in the same app
L18: See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),z}function D(){eI.asyncTransitions--}function j(z){if(hG===null)try{var ZI=("requir...
L19: `+uI.replace(/^Error(:[^\n]*)?\n/,""))});return tI.prototype=Object.create(U.prototype),tI.prototype.constructor=tI,tI.prototype.toString=function(){return this.message===void 0?th...
...
L25: `)e&&(c+=edI("")),c+=i4I(t);else if(h===`
L26: `){let r=[...t];h4I(Z.slice(N+1),r),c+=Y4I(r),e&&(c+=edI(e))}N+=h.length}return c}});import kY from"node:process";import{execFileSync as F4I}from"node:child_process";import Jv from...
L27: at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
```

### 9. Critical: Credential Exfiltration
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/cli.js>)

Source appears to send environment or credential material to an external endpoint.

Public source snippet (untrusted):

```javascript
L3: 
L4: var NCI=Object.create;var fB=Object.defineProperty;var uCI=Object.getOwnPropertyDescriptor;var hCI=Object.getOwnPropertyNames;var iCI=Object.getPrototypeOf,YCI=Object.prototype.has...
L5: `);let c;for(;(c=XCI.exec(G))!=null;){let e=c[1],t=c[2]||"";t=t.trim();let n=t[0];t=t.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),n==='"'&&(t=t.replace(/\\n/g,`
L6: `),t=t.replace(/\\r/g,"\r")),I[e]=t}return I}function vCI(l){l=l||{};let I=knI(l);l.path=I;let G=en.configDotenv(l);if(!G.parsed){let n=new Error(`MISSING_DATA: Cannot parse ${I} f...
L7: 
...
L17: 3. You might have more than one copy of React in the same app
L18: See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),z}function D(){eI.asyncTransitions--}function j(z){if(hG===null)try{var ZI=("requ
```

### 10. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/cli.js>)

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

Public source snippet (untrusted):

```javascript
L17: 3. You might have more than one copy of React in the same app
L18: See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),z}function D(){eI.asyncTransitions--}function j(z){if(hG===null)try{var ZI=("requir...
L19: `+uI.replace(/^Error(:[^\n]*)?\n/,""))});return tI.prototype=Object.create(U.prototype),tI.prototype.constructor=tI,tI.prototype.toString=function(){return this.message===void 0?th...
...
L25: `)e&&(c+=edI("")),c+=i4I(t);else if(h===`
L26: `){let r=[...t];h4I(Z.slice(N+1),r),c+=Y4I(r),e&&(c+=edI(e))}N+=h.length}return c}});import kY from"node:process";import{execFileSync as F4I}from"node:child_process";import Jv from...
L27: at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
```

### 11. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/cli.js>)

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

Public source snippet (untrusted):

```javascript
L3: 
L4: var NCI=Object.create;var fB=Object.defineProperty;var uCI=Object.getOwnPropertyDescriptor;var hCI=Object.getOwnPropertyNames;var iCI=Object.getPrototypeOf,YCI=Object.prototype.has...
L5: `);let c;for(;(c=XCI.exec(G))!=null;){let e=c[1],t=c[2]||"";t=t.trim();let n=t[0];t=t.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),n==='"'&&(t=t.replace(/\\n/g,`
L6: `),t=t.replace(/\\r/g,"\r")),I[e]=t}return I}function vCI(l){l=l||{};let I=knI(l);l.path=I;let G=en.configDotenv(l);if(!G.parsed){let n=new Error(`MISSING_DATA: Cannot parse ${I} f...
L7: 
...
L17: 3. You might have more than one copy of React in the same app
L18: See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),z}function D(){eI.asyncTransitions--}function j(z){if(hG===null)try{var ZI=("requ
```

### 12. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/cli.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 -> bin/cli.js
L3: 
L4: var NCI=Object.create;var fB=Object.defineProperty;var uCI=Object.getOwnPropertyDescriptor;var hCI=Object.getOwnPropertyNames;var iCI=Object.getPrototypeOf,YCI=Object.prototype.has...
L5: `);let c;for(;(c=XCI.exec(G))!=null;){let e=c[1],t=c[2]||"";t=t.trim();let n=t[0];t=t.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),n==='"'&&(t=t.replace(/\\n/g,`
L6: `),t=t.replace(/\\r/g,"\r")),I[e]=t}return I}function vCI(l){l=l||{};let I=knI(l);l.path=I;let G=en.configDotenv(l);if(!G.parsed){let n=new Error(`MISSING_DATA: Cannot parse ${I} f...
L7: 
...
L17: 3. You might have more than one copy of React in the same app
L18: See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),z}function D(){eI.asyncTransi
```

### 13. High: Trigger Reachable Credential Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/cli.js>)

A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable credential exfiltration chain: manifest.bin -> bin/cli.js
L3: 
L4: var NCI=Object.create;var fB=Object.defineProperty;var uCI=Object.getOwnPropertyDescriptor;var hCI=Object.getOwnPropertyNames;var iCI=Object.getPrototypeOf,YCI=Object.prototype.has...
L5: `);let c;for(;(c=XCI.exec(G))!=null;){let e=c[1],t=c[2]||"";t=t.trim();let n=t[0];t=t.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),n==='"'&&(t=t.replace(/\\n/g,`
L6: `),t=t.replace(/\\r/g,"\r")),I[e]=t}return I}function vCI(l){l=l||{};let I=knI(l);l.path=I;let G=en.configDotenv(l);if(!G.parsed){let n=new Error(`MISSING_DATA: Cannot parse ${I} f...
L7: 
...
L17: 3. You might have more than one copy of React in the same app
L18: See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),z}fun
```

### 14. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/cli.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 -> bin/cli.js
L17: 3. You might have more than one copy of React in the same app
L18: See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),z}function D(){eI.asyncTransitions--}function j(z){if(hG===null)try{var ZI=("requir...
L19: `+uI.replace(/^Error(:[^\n]*)?\n/,""))});return tI.prototype=Object.create(U.prototype),tI.prototype.constructor=tI,tI.prototype.toString=function(){return this.message===void 0?th...
...
L25: `)e&&(c+=edI("")),c+=i4I(t);else if(h===`
L26: `){let r=[...t];h4I(Z.slice(N+1),r),c+=Y4I(r),e&&(c+=edI(e))}N+=h.length}return c}});import kY from"node:process";import{execFileSync as F4I}from"node:child_process";import Jv from...
L27: at`)?" (<anonymous>)":-1<i.sta
```

### 15. High: Trigger Reachable Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/cli.js>)

A manifest entrypoint or package-local install chain reaches persistence behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable persistence chain: manifest.bin -> bin/cli.js
L3: 
L4: var NCI=Object.create;var fB=Object.defineProperty;var uCI=Object.getOwnPropertyDescriptor;var hCI=Object.getOwnPropertyNames;var iCI=Object.getPrototypeOf,YCI=Object.prototype.has...
L5: `);let c;for(;(c=XCI.exec(G))!=null;){let e=c[1],t=c[2]||"";t=t.trim();let n=t[0];t=t.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),n==='"'&&(t=t.replace(/\\n/g,`
L6: `),t=t.replace(/\\r/g,"\r")),I[e]=t}return I}function vCI(l){l=l||{};let I=knI(l);l.path=I;let G=en.configDotenv(l);if(!G.parsed){let n=new Error(`MISSING_DATA: Cannot parse ${I} f...
L7: 
...
L17: 3. You might have more than one copy of React in the same app
L18: See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),z}function D(){eI
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 18. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** scripts/release-local.sh
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/scripts/release-local.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = scripts/release-local.sh
kind = build_helper
sizeBytes = 3031
magicHex = [redacted]
```

### 19. Medium: Oversized Source File
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/cli.js>)

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

Public source snippet (untrusted):

```javascript
path = bin/cli.js
kind = oversized_source_file
sizeBytes = 8100887
magicHex = [redacted]
```

### 20. Medium: Oversized Cli Entrypoint
- **Category:** Artifact Inventory
- **Confidence:** 80.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/cli.js>)

Package contains an oversized executable-looking CLI entrypoint.

Public source snippet (untrusted):

```javascript
path = bin/cli.js
kind = oversized_cli_entrypoint
sizeBytes = 8100887
magicHex = [redacted]
```

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

### 22. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/cli.js>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```javascript
stage = ast_semantic_analysis; reason = ast_path_work_budget_exceeded; limitedFiles = 1
```

### 23. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/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 = aegiscode@5.2.20
matchedPath = bin/cli.js
matchedIdentity = npm:YWVnaXNjb2Rl:5.2.20
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 24. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** scripts/install-alacritty.sh
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/scripts/install-alacritty.sh>)

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

Public source snippet (untrusted):

```shell
matchType = normalized_sha256
matchedPackage = aegiscode@5.2.20
matchedPath = scripts/install-alacritty.sh
matchedIdentity = npm:YWVnaXNjb2Rl:5.2.20
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 25. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** scripts/install.sh
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/scripts/install.sh>)

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

Public source snippet (untrusted):

```shell
matchType = normalized_sha256
matchedPackage = aegiscode@5.2.20
matchedPath = scripts/install.sh
matchedIdentity = npm:YWVnaXNjb2Rl:5.2.20
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 26. High: Known Malware Source Fingerprint Signature
- **Category:** Supply Chain
- **Confidence:** 94.0%
- **Path:** bin/cli.js
- **Public source:** [View source](<https://unpkg.com/aegiscode@5.2.25/bin/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 = fa4febf3d7379bea
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = aegiscode@5.2.20
matchedPath = bin/cli.js
matchedIdentity = npm:YWVnaXNjb2Rl:5.2.20
similarity = 1.000
shingleOverlap = 7
summary = package final verdict is malicious
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** preinstall
- **Dependencies:** 22
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 7
- **Published dependency-graph edges:** 22

### Published dependency entries
- @huggingface/transformers ^4.2.0 (Dependency)
- @modelcontextprotocol/sdk ^1.30.0 (Dependency)
- chalk ^6.0.0 (Dependency)
- dotenv ^17.4.2 (Dependency)
- fuse.js ^7.4.1 (Dependency)
- glob ^13.0.0 (Dependency)
- ink ^7.1.1 (Dependency)
- ink-text-input ^6.0.0 (Dependency)
- js-tiktoken ^1.0.21 (Dependency)
- lowlight ^3.3.0 (Dependency)
- minimatch ^10.2.6 (Dependency)
- nanoid ^6.0.0 (Dependency)
- openai ^7.3.0 (Dependency)
- react ^19.2.8 (Dependency)
- react-dom ^19.2.8 (Dependency)
- sql.js ^1.14.1 (Dependency)
- string-width ^8.2.2 (Dependency)
- uuid ^14.0.0 (Dependency)
- yaml ^2.8.2 (Dependency)
- yargs ^18.1.0 (Dependency)
- zod ^4.4.3 (Dependency)
- zustand ^5.0.14 (Dependency)

## Package metadata
- **Package:** aegiscode
- **Ecosystem:** npm
- **Version:** 5.2.25
- **License:** MIT
- **Version published:** 2026-08-07T18:18:42.886Z
- **Package first seen:** 2026-07-01T06:25:20.493Z
- **Package last seen:** 2026-08-11T02:05:23.847Z
- **Known versions:** 21
- **Latest version:** 5.2.33
- **Appeal under review:** No
- **Description:** AEGIS CLI — AI-powered coding assistant
- **Author:** Niklas Borneklint
- **Maintainers:** n.borneklint
- **Keywords:** cli, ai, coding-agent, llm, openai, gpt, claude, copilot, assistant, terminal, developer-tools
- **Runtime engines:** node: \>=18.0.0
- **Artifact files:** 14
- **Artifact unpacked size:** 8,147,767 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/aegiscode/v/5.2.25>)
- [Repository](<https://github.com/aegisinfo/aegiscode>)
- [Homepage](<https://github.com/aegisinfo/aegiscode#readme>)
- [Issues](<https://github.com/aegisinfo/aegiscode/issues>)
