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

# @aiiware/aii@0.23.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
**Flagged — allowed with a warning** — Allowed by default policy, but 18 findings warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Remote code execution
- **Selected version:** 0.23.1
- **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.

The package has no install-time lifecycle execution, so the evidence does not meet the blocking policy. Its explicit setup path executes a mutable remote shell payload, which warrants a warning.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 94.0%
- **Started:** 2026-08-13T00:30:11.615Z
- **Finished:** 2026-08-13T00:30:59.536Z
- **Download time:** 765 ms
- **Static scan time:** 4604 ms
- **AI review time:** 42550 ms
- **Total time:** 47921 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:** The user-invoked CLI can fetch a shell installer from aiiware.com and execute it with bash. Its init command can write first-party .aii project configuration and hooks.

- **Trigger:** User runs an Aii server setup/bootstrap command or the CLI init command.

- **Impact:** A compromised remote installer could execute arbitrary commands; init can modify the current project after explicit invocation.

- **Evidence paths:** package.json, bin/aii

- **Review source:** ai\_review

- **Reviewed:** 2026-08-13T00:30:59.536Z

### AI review details

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

- **Mechanism:** Remote shell installer execution and explicit first-party project configuration writes.

- **Rationale:** The package has no install-time lifecycle execution, so the evidence does not meet the blocking policy. Its explicit setup path executes a mutable remote shell payload, which warrants a warning.

- **Files touched:** /tmp/aii-server-install.sh, .aii/settings.json, .aii/hooks.json, .gitignore

- **Network endpoints:** https://aiiware.com/server.sh

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 94.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Low

- **Evidence for warning:** The manifest exposes a user-invoked CLI entrypoint., The CLI downloads and runs a remote shell script through bash., The same runtime can create project .aii configuration and hook files when its init command is invoked.

- **Evidence against:** No preinstall, install, or postinstall lifecycle hook is declared., Remote script execution is reachable from explicit CLI server setup, not package installation., No confirmed credential harvesting or covert exfiltration chain was found in the inspected package files.

## Affected versions and remediation

This report applies to @aiiware/aii@0.23.1.

- Review the evidence and your use of @aiiware/aii@0.23.1 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: 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: Eval
- **Category:** Source
- **Confidence:** 80.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

Package source references dynamic code evaluation.

Public source snippet (untrusted):

```text
L1187: || (${i} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(a,(0,Ue._)`+${s}`);return;case"boolean":n.elseIf((0,Ue._)`${s} === "false" || ${s} === 0 || ${s} === null`)....
L1188: || ${i} === "boolean" || ${s} === null`).assign(a,(0,Ue._)`[${s}]`)}}}function fze({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,Ue._)`${e} !== undefined`,()=>t.assign((0,Ue...
L1189: missingProperty: ${n},
```

### 4. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```text
L9: *
L10: * https://aiiware.com
L11: */
...
L24: const __filename = fileURLToPath(import.meta.url);
L25: const __dirname = dirname(__filename);
L26: 
L27: var Y_e=Object.create;var jS=Object.defineProperty;var W_e=Object.getOwnPropertyDescriptor;var K_e=Object.getOwnPropertyNames;var V_e=Object.getPrototypeOf,Q_e=Object.prototype.has...
L28: `).replace(/^/gm," ".repeat(o))}let c=[`Usage: ${r.commandUsage(e)}`,""],u=r.commandDescription(e);u.length>0&&(c=c.concat([r.wrap(u,s,0),""]));let d=r.visibleArguments(e).map(f=>a...
...
L35: (Did you mean one of ${n.join(", ")}?)`:n.length===1?`
L36: (Did you mean ${n[0]}?)`:""}hB.suggestSimilar=sye});var bB=w(SB=>{var oye=fe("node:events").EventEmitter,fI=fe("node:child_process"),ea=fe("node:path"),hI=fe("node:fs"),Qt=fe("node...
L37: - specify the
```

### 5. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

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

Public source snippet (untrusted):

```text
L202: `).trim();if(!s)return"";let o=s.match(C0e);if(o){let i=o[1].replace(/\s+/g," ").trim();return i.length>1024?i.slice(0,1021)+"...":i}return""}containsReservedWord(e){let r=e.toLowe...
L203: `)){let s=oe(n).replace(/\t/g,"    ");if(s.length===0){r.push("");continue}for(let o=0;o<s.length;o+=e)r.push(s.slice(o,o+e))}return r}function Lp(t,e,r=lu,n=65536){let s;try{s=r.l...
L204: `).join(`\r
...
L215: `),fCe="CODEX_ENTITLEMENT_DENIED:",hCe=["\u25A0 OpenAI accepted your sign-in but declined Codex access for your current plan.","  OpenAI decides which ChatGPT subscription tiers ma...
L216: `),WG=[{prefix:uCe,wall:dCe},{prefix:pCe,wall:mCe},{prefix:fCe,wall:hCe}];gCe="Note: Z.ai limits Coding Plans to their officially supported tools; Aii isn't listed yet.",_Ce={zai:"...
L217: `)),a=e.sign
```

### 6. High: Credential Redirect Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.

Public source snippet (untrusted):

```text
Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
bin/aii:
Check your network, or run with --local to use your local server.`}var gs,Sp,an,Eg,Tl,wl,Xt,jn=A(()=>{"use strict";gs=class t extends Error{code;suggestions;constructor(e,r,n=[]){s...
Removed: ${r.join(", ")}`}var Tp,w3,C3,v3,_rt,wp=A(()=>{"use strict";Tp={zeroWidth:["\u200B","\u200C","\u200D","\u200E","\u200F","\u2060","\uFEFF"],bidirectional:["\u202A","\u202B"...
`),tu={provider:"openai",keys:ln,tokenEndpoint:Kn.tokenEndpoint,clientId:Kn.clientId,pl04Line:yTe,mda6RefusalLine:ETe}});function Ns(t){if(!(!t||!Object.prototype.hasOwnProperty.ca...
`;this.enqueue(s);return}this.bytesWritten+=n,this.enqueue(r)}enqueue(e){let r=thi
```

### 7. High: Entrypoint Foreign Package Code Overwrite
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

Manifest-reachable source overwrites another installed package with package-defined remote behavior.

Public source snippet (untrusted):

```text
Manifest-reachable source resolves another installed package, overwrites its runtime code, and injects package-defined remote behavior.
bin/aii:
* https://aiiware.com
`+g.comment:a.comment=g.comment);continue}(g.newlineAfterProp||E1e.containsNewline(p))&&s(p??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}els...
Check your network, or run with --local to use your local server.`}var gs,Sp,an,Eg,Tl,wl,Xt,jn=A(()=>{"use strict";gs=class t extends Error{code;suggestions;constructor(e,r,n=[]){s...
Removed: ${r.join(", ")}`}var Tp,w3,C3,v3,_rt,wp=A(()=>{"use strict";Tp={zeroWidth:["\u200B","\u200C","\u200D","\u200E","\u200F","\u2060","\uFEFF"],bidirectional:["\u202A","\u202B"...
`),tu={provider:"openai",keys:ln,tokenEndpoint:Kn.tokenEndpoint,clientId:Kn.clien
```

### 8. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

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

Public source snippet (untrusted):

```text
L202: `).trim();if(!s)return"";let o=s.match(C0e);if(o){let i=o[1].replace(/\s+/g," ").trim();return i.length>1024?i.slice(0,1021)+"...":i}return""}containsReservedWord(e){let r=e.toLowe...
L203: `)){let s=oe(n).replace(/\t/g,"    ");if(s.length===0){r.push("");continue}for(let o=0;o<s.length;o+=e)r.push(s.slice(o,o+e))}return r}function Lp(t,e,r=lu,n=65536){let s;try{s=r.l...
L204: `).join(`\r
...
L215: `),fCe="CODEX_ENTITLEMENT_DENIED:",hCe=["\u25A0 OpenAI accepted your sign-in but declined Codex access for your current plan.","  OpenAI decides which ChatGPT subscription tiers ma...
L216: `),WG=[{prefix:uCe,wall:dCe},{prefix:pCe,wall:mCe},{prefix:fCe,wall:hCe}];gCe="Note: Z.ai limits Coding Plans to their officially supported tools; Aii isn't listed yet.",_Ce={zai:"...
L217: `)),a=e.sign
```

### 9. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

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

Public source snippet (untrusted):

```text
L9: *
L10: * https://aiiware.com
L11: */
...
L24: const __filename = fileURLToPath(import.meta.url);
L25: const __dirname = dirname(__filename);
L26: 
L27: var Y_e=Object.create;var jS=Object.defineProperty;var W_e=Object.getOwnPropertyDescriptor;var K_e=Object.getOwnPropertyNames;var V_e=Object.getPrototypeOf,Q_e=Object.prototype.has...
L28: `).replace(/^/gm," ".repeat(o))}let c=[`Usage: ${r.commandUsage(e)}`,""],u=r.commandDescription(e);u.length>0&&(c=c.concat([r.wrap(u,s,0),""]));let d=r.visibleArguments(e).map(f=>a...
...
L35: (Did you mean one of ${n.join(", ")}?)`:n.length===1?`
L36: (Did you mean ${n[0]}?)`:""}hB.suggestSimilar=sye});var bB=w(SB=>{var oye=fe("node:events").EventEmitter,fI=fe("node:child_process"),ea=fe("node:path"),hI=fe("node:fs"),Qt=fe("node...
L37: - specify the
```

### 10. High: Cloud Metadata Access
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

Source reaches cloud instance metadata or link-local credential endpoints.

Public source snippet (untrusted):

```text
L9: *
L10: * https://aiiware.com
L11: */
...
L24: const __filename = fileURLToPath(import.meta.url);
L25: const __dirname = dirname(__filename);
L26: 
L27: var Y_e=Object.create;var jS=Object.defineProperty;var W_e=Object.getOwnPropertyDescriptor;var K_e=Object.getOwnPropertyNames;var V_e=Object.getPrototypeOf,Q_e=Object.prototype.has...
L28: `).replace(/^/gm," ".repeat(o))}let c=[`Usage: ${r.commandUsage(e)}`,""],u=r.commandDescription(e);u.length>0&&(c=c.concat([r.wrap(u,s,0),""]));let d=r.visibleArguments(e).map(f=>a...
...
L35: (Did you mean one of ${n.join(", ")}?)`:n.length===1?`
L36: (Did you mean ${n[0]}?)`:""}hB.suggestSimilar=sye});var bB=w(SB=>{var oye=fe("node:events").EventEmitter,fI=fe("node:child_process"),ea=fe("node:path"),hI=fe("node:fs"),Qt=fe("node...
L37: - specify the
```

### 11. Critical: Remote Asset Decode Execute
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

Source fetches a remote non-code asset, decodes its contents, and dynamically executes the decoded payload.

Public source snippet (untrusted):

```text
L796: User's question: $ARGUMENTS
L797: `,Jz=[{name:"commit",content:Uve},{name:"review-pr",content:Bve},{name:"explain",content:Gve},{name:"aii",content:zve}]});function qve(t){return`Installing an external ${t} require...
L798: `);return e.digest("hex")}function t7(t,e){let r=t?.treeSha256,n=e.treeSha256;return!r||!n?{state:"unpinned"}:r===n?{state:"unchanged"}:{state:"changed",previous:r,next:n}}function...
L799: 
...
L805: 
L806: Pass the skill name and any arguments. The skill content will be returned as instructions for you to follow.`}getAvailableSkillNames(){return this.manager.getModelInvocableSkills()...
L807: `);return{success:!1,skillName:h,status:"ambiguous",candidates:F.candidates,error:`This repository contains ${F.candidates.length} skills \u2014 install one explicitly:
```

### 12. High: Remote Agent Bridge
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

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

Public source snippet (untrusted):

```text
L35: (Did you mean one of ${n.join(", ")}?)`:n.length===1?`
L36: (Did you mean ${n[0]}?)`:""}hB.suggestSimilar=sye});var bB=w(SB=>{var oye=fe("node:events").EventEmitter,fI=fe("node:child_process"),ea=fe("node:path"),hI=fe("node:fs"),Qt=fe("node...
L37: - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this._registerComma...
...
L186: `,r)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-...
L187: Check your network, or run with --local to use your local server.`}var gs,Sp,an,Eg,Tl,wl,Xt,jn=A(()=>{"use strict";gs=class t extends Error{code;suggestions;const
```

### 13. Critical: Remote Response Code Execution
- **Category:** Source
- **Confidence:** 98.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

Source passes code obtained from a remote response into a dynamic execution sink.

Public source snippet (untrusted):

```text
L9: *
L10: * https://aiiware.com
L11: */
...
L24: const __filename = fileURLToPath(import.meta.url);
L25: const __dirname = dirname(__filename);
L26: 
L27: var Y_e=Object.create;var jS=Object.defineProperty;var W_e=Object.getOwnPropertyDescriptor;var K_e=Object.getOwnPropertyNames;var V_e=Object.getPrototypeOf,Q_e=Object.prototype.has...
L28: `).replace(/^/gm," ".repeat(o))}let c=[`Usage: ${r.commandUsage(e)}`,""],u=r.commandDescription(e);u.length>0&&(c=c.concat([r.wrap(u,s,0),""]));let d=r.visibleArguments(e).map(f=>a...
...
L35: (Did you mean one of ${n.join(", ")}?)`:n.length===1?`
L36: (Did you mean ${n[0]}?)`:""}hB.suggestSimilar=sye});var bB=w(SB=>{var oye=fe("node:events").EventEmitter,fI=fe("node:child_process"),ea=fe("node:path"),hI=fe("node:fs"),Qt=fe("node...
L37: - specify the
```

### 14. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.

Public source snippet (untrusted):

```text
Trigger-reachable chain: manifest.bin -> bin/aii
L202: `).trim();if(!s)return"";let o=s.match(C0e);if(o){let i=o[1].replace(/\s+/g," ").trim();return i.length>1024?i.slice(0,1021)+"...":i}return""}containsReservedWord(e){let r=e.toLowe...
L203: `)){let s=oe(n).replace(/\t/g,"    ");if(s.length===0){r.push("");continue}for(let o=0;o<s.length;o+=e)r.push(s.slice(o,o+e))}return r}function Lp(t,e,r=lu,n=65536){let s;try{s=r.l...
L204: `).join(`\r
...
L215: `),fCe="CODEX_ENTITLEMENT_DENIED:",hCe=["\u25A0 OpenAI accepted your sign-in but declined Codex access for your current plan.","  OpenAI decides which ChatGPT subscription tiers ma...
L216: `),WG=[{prefix:uCe,wall:dCe},{prefix:pCe,wall:mCe},{prefix:fCe,wall:hCe}];gCe="Note: Z.ai limits Coding Plans to their officially supported tools; Aii is
```

### 15. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

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

Public source snippet (untrusted):

```text
Trigger-reachable command-output exfiltration chain: manifest.bin -> bin/aii
L202: `).trim();if(!s)return"";let o=s.match(C0e);if(o){let i=o[1].replace(/\s+/g," ").trim();return i.length>1024?i.slice(0,1021)+"...":i}return""}containsReservedWord(e){let r=e.toLowe...
L203: `)){let s=oe(n).replace(/\t/g,"    ");if(s.length===0){r.push("");continue}for(let o=0;o<s.length;o+=e)r.push(s.slice(o,o+e))}return r}function Lp(t,e,r=lu,n=65536){let s;try{s=r.l...
L204: `).join(`\r
...
L215: `),fCe="CODEX_ENTITLEMENT_DENIED:",hCe=["\u25A0 OpenAI accepted your sign-in but declined Codex access for your current plan.","  OpenAI decides which ChatGPT subscription tiers ma...
L216: `),WG=[{prefix:uCe,wall:dCe},{prefix:pCe,wall:mCe},{prefix:fCe,wall:hCe}];gCe="Note: Z.ai limits Coding Plans to their offici
```

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

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

Package manifest does not declare a clear license.

### 18. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** bin/aii
- **Public source:** [View source](<https://unpkg.com/@aiiware/aii@0.23.1/bin/aii>)

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

Public source snippet (untrusted):

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

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** prepublishOnly
- **Dependencies:** 18
- **Optional dependencies:** 1
- **Peer dependencies:** 0
- **Development dependencies:** 18
- **Published dependency-graph edges:** 19

### Published dependency entries
- @modelcontextprotocol/sdk ^1.29.0 (Dependency)
- ajv ^8.20.0 (Dependency)
- ansi-escapes ^7.3.0 (Dependency)
- chalk ^5.3.0 (Dependency)
- cli-highlight ^2.1.11 (Dependency)
- commander ^12.1.0 (Dependency)
- grammy ^1.41.1 (Dependency)
- ink ^5.0.1 (Dependency)
- marked ^15.0.4 (Dependency)
- marked-terminal ^7.2.1 (Dependency)
- ora ^8.1.1 (Dependency)
- react ^18.2.0 (Dependency)
- semver ^7.7.3 (Dependency)
- string-width ^7.2.0 (Dependency)
- ws ^8.21.0 (Dependency)
- yaml ^2.9.0 (Dependency)
- zod ^4.2.1 (Dependency)
- zustand ^4.5.0 (Dependency)
- node-notifier ^10.0.1 (OptionalDependency)

## Package metadata
- **Package:** @aiiware/aii
- **Ecosystem:** npm
- **Version:** 0.23.1
- **License:** SEE LICENSE IN LICENSE
- **Version published:** 2026-08-13T00:06:33.341Z
- **Package first seen:** 2026-07-01T17:03:05.894Z
- **Package last seen:** 2026-11-22T08:07:28.396Z
- **Known versions:** 124
- **Latest version:** 0.31.20
- **Appeal under review:** No
- **Description:** 🪼 AI-powered CLI assistant for terminal productivity
- **Author:** AiiWare
- **Maintainers:** aiidev
- **Keywords:** ai, aii, agent, assistant, cli, claude, deepseek, kimi, llm, gemini, gpt, glm
- **Runtime engines:** node: \>=20.0.0
- **Artifact files:** 4
- **Artifact unpacked size:** 3,368,266 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@aiiware/aii/v/0.23.1>)
- [Homepage](<https://aiiware.com/>)
