---
canonical: "https://firewall.lpm.dev/npm/@4399aigame/aigame"
markdown: "https://firewall.lpm.dev/npm/@4399aigame/aigame/report.md"
package: "@4399aigame/aigame"
report_status: "published"
title: "@4399aigame/aigame@2.1.2 npm security report"
verdict: "suspicious"
version: "2.1.2"
---

# @4399aigame/aigame@2.1.2 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 16 finding(s) warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Telemetry warning (can be blocked)
- **Public report status:** Published
- **Threat category:** Telemetry
- **Selected version:** 2.1.2
- **Selected version is latest:** Yes
- **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 bundled CLI sends runtime usage tracking without a disclosure or opt-out found in the reviewed README. The payload is limited to account/project identifiers and activity metadata, so this is warning-level telemetry rather than credential exfiltration.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-11-02T00:17:04.453Z
- **Finished:** 2026-11-02T00:18:25.798Z
- **Download time:** 771 ms
- **Static scan time:** 831 ms
- **AI review time:** 79742 ms
- **Total time:** 81345 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:** Undisclosed runtime tracking reports Maker MCP activity.

- **Trigger:** An MCP client requests resources or lists tools while using the package.

- **Impact:** Links MCP usage to a Maker account and project. The reviewed payload does not show credential or content collection.

- **Evidence paths:** dist/cli.js

- **Review source:** ai\_review

- **Reviewed:** 2026-11-02T00:18:25.798Z

### AI review details

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

- **Mechanism:** The package sends JSON containing account/project identifiers and activity metadata to /tracking on the configured Maker API origin.

- **Rationale:** The bundled CLI sends runtime usage tracking without a disclosure or opt-out found in the reviewed README. The payload is limited to account/project identifiers and activity metadata, so this is warning-level telemetry rather than credential exfiltration.

- **Network endpoints:** \<configured Maker API origin\>/tracking

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 91.0%

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

- **Intent class:** Unknown

- **False-positive risk:** Medium

- **Evidence for warning:** MCP resource requests automatically invoke the activity-reporting helper., The tracking payload can include Maker user and project IDs, tool and request IDs, duration, success, and error details., The package POSTs this payload to /tracking on its configured Maker API origin., The only lifecycle script shown is prepublishOnly, which runs a production build.

- **Evidence against:** The reported user and project IDs are Maker account or project identifiers; the payload does not show credentials or file, prompt, or tool-output contents., The endpoint uses the configured Maker API base rather than a hard-coded unrelated collector., Error details are passed through a sanitizer that redacts token-like values.

## Affected versions and remediation

This report applies to @4399aigame/aigame@2.1.2.

- Review the evidence and your use of @4399aigame/aigame@2.1.2 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: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@4399aigame/aigame@2.1.2/dist/cli.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: var WA=Object.defineProperty;var i=(e,t)=>WA(e,"name",{value:t,configurable:!0});var to,ro,no,oo,uo,io,ao,so,co,lo,po,mo,fo,ho,go,Fo,Eo,yo,vo,wo,Ao,Co,bo,Do;const Hh=require("node:...
L3: `)}i(o5,"box"),sn(o5,"box");function fC(e,t,r={}){const n=" ".repeat(r.gap??3),o=r.offset??0,u=Math.max(0,...e.map(c=>fe(c))),a=Math.max(e.length,t.length+o),s=[];for(let c=0;c<a;c...
```

### 4. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@4399aigame/aigame@2.1.2/dist/cli.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L45: `)),e.length<=2){if(process.stdin.isTTY){await Wg(),Mc().outputHelp();return}await _g();return}await Mc().parseAsync(e)}i(Oc,"main"),D(Oc,"main"),Oc().catch(e=>{M(q("fail",e instan...
L46: `,"utf8")}i(Vo,"saveProjectConfig"),O(Vo,"saveProjectConfig");function Xg(){return zc}i(Xg,"getProjectMarkerDirName"),O(Xg,"getProjectMarkerDirName");const kb=".ywkf-aigame";functi...
L47: ${u}`);let s=0;const c=await o.waitForCallback({...e.timeoutMs===void 0?{}:{timeoutMs:e.timeoutMs},...e.pollIntervalMs===void 0?{}:{pollIntervalMs:e.pollIntervalMs},onWaiting:ue(l=...
```

### 5. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/proxy.js
- **Public source:** [View source](<https://unpkg.com/@4399aigame/aigame@2.1.2/dist/proxy.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: "use strict";var de=Object.defineProperty;var a=(t,e)=>de(t,"name",{value:e,configurable:!0});var E,C,k,he=require("node:crypto"),ge=require("node:path"),pe=require("node:fs"),fe=r...
L3: 1. Command line: node proxy.js '{"server":{...}}'
```

### 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. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@4399aigame/aigame@2.1.2/dist/cli.js>)

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

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: var WA=Object.defineProperty;var i=(e,t)=>WA(e,"name",{value:t,configurable:!0});var to,ro,no,oo,uo,io,ao,so,co,lo,po,mo,fo,ho,go,Fo,Eo,yo,vo,wo,Ao,Co,bo,Do;const Hh=require("node:...
L3: `)}i(o5,"box"),sn(o5,"box");function fC(e,t,r={}){const n=" ".repeat(r.gap??3),o=r.offset??0,u=Math.max(0,...e.map(c=>fe(c))),a=Math.max(e.length,t.length+o),s=[];for(let c=0;c<a;c...
...
L7: `)}i(G,"statusBlock"),Yu(G,"statusBlock");function Ie(e){return`${b.info(Fe.arrow)} ${e}`}i(Ie,"nextStep"),Yu(Ie,"nextStep");const ec=6e4,tc=60*ec,c5=24*tc;function l5(e,t=Date.now...
L8: `),hints:n==="login_required"?[`\u624B\u52A8\u767B\u5F55\u4E00\u6B21\uFF1A${b.cmd("aigame login")}`]:["\u8FD9\u662F\u7F51\u7EDC\u6216\u670D\u52A1\u7AEF\u6545\u969C\uFF0C\u7A0D\u540...
L9: `)}i(mc,"formatD
```

### 10. Critical: Credential Exfiltration
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@4399aigame/aigame@2.1.2/dist/cli.js>)

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

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: var WA=Object.defineProperty;var i=(e,t)=>WA(e,"name",{value:t,configurable:!0});var to,ro,no,oo,uo,io,ao,so,co,lo,po,mo,fo,ho,go,Fo,Eo,yo,vo,wo,Ao,Co,bo,Do;const Hh=require("node:...
L3: `)}i(o5,"box"),sn(o5,"box");function fC(e,t,r={}){const n=" ".repeat(r.gap??3),o=r.offset??0,u=Math.max(0,...e.map(c=>fe(c))),a=Math.max(e.length,t.length+o),s=[];for(let c=0;c<a;c...
...
L7: `)}i(G,"statusBlock"),Yu(G,"statusBlock");function Ie(e){return`${b.info(Fe.arrow)} ${e}`}i(Ie,"nextStep"),Yu(Ie,"nextStep");const ec=6e4,tc=60*ec,c5=24*tc;function l5(e,t=Date.now...
L8: `),hints:n==="login_required"?[`\u624B\u52A8\u767B\u5F55\u4E00\u6B21\uFF1A${b.cmd("aigame login")}`]:["\u8FD9\u662F\u7F51\u7EDC\u6216\u670D\u52A1\u7AEF\u6545\u969C\uFF0C\u7A0D\u540...
L9: `)}i(mc,"formatD
```

### 11. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@4399aigame/aigame@2.1.2/dist/cli.js>)

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

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: var WA=Object.defineProperty;var i=(e,t)=>WA(e,"name",{value:t,configurable:!0});var to,ro,no,oo,uo,io,ao,so,co,lo,po,mo,fo,ho,go,Fo,Eo,yo,vo,wo,Ao,Co,bo,Do;const Hh=require("node:...
L3: `)}i(o5,"box"),sn(o5,"box");function fC(e,t,r={}){const n=" ".repeat(r.gap??3),o=r.offset??0,u=Math.max(0,...e.map(c=>fe(c))),a=Math.max(e.length,t.length+o),s=[];for(let c=0;c<a;c...
...
L8: `),hints:n==="login_required"?[`\u624B\u52A8\u767B\u5F55\u4E00\u6B21\uFF1A${b.cmd("aigame login")}`]:["\u8FD9\u662F\u7F51\u7EDC\u6216\u670D\u52A1\u7AEF\u6545\u969C\uFF0C\u7A0D\u540...
L9: `)}i(mc,"formatDoctorReport$1"),pc(mc,"formatDoctorReport");var IC=Object.defineProperty,ti=i((e,t)=>IC(e,"name",{value:t,configurable:!0}),"r$i");function fc(e,t,r=m.existsSync){r...
L10:
```

### 12. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@4399aigame/aigame@2.1.2/dist/cli.js>)

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

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: var WA=Object.defineProperty;var i=(e,t)=>WA(e,"name",{value:t,configurable:!0});var to,ro,no,oo,uo,io,ao,so,co,lo,po,mo,fo,ho,go,Fo,Eo,yo,vo,wo,Ao,Co,bo,Do;const Hh=require("node:...
L3: `)}i(o5,"box"),sn(o5,"box");function fC(e,t,r={}){const n=" ".repeat(r.gap??3),o=r.offset??0,u=Math.max(0,...e.map(c=>fe(c))),a=Math.max(e.length,t.length+o),s=[];for(let c=0;c<a;c...
...
L7: `)}i(G,"statusBlock"),Yu(G,"statusBlock");function Ie(e){return`${b.info(Fe.arrow)} ${e}`}i(Ie,"nextStep"),Yu(Ie,"nextStep");const ec=6e4,tc=60*ec,c5=24*tc;function l5(e,t=Date.now...
L8: `),hints:n==="login_required"?[`\u624B\u52A8\u767B\u5F55\u4E00\u6B21\uFF1A${b.cmd("aigame login")}`]:["\u8FD9\u662F\u7F51\u7EDC\u6216\u670D\u52A1\u7AEF\u6545\u969C\uFF0C\u7A0D\u540...
L9: `)}i(mc,"formatD
```

### 13. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@4399aigame/aigame@2.1.2/dist/cli.js>)

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

Public source snippet (untrusted):

```javascript
Cross-file remote execution chain: dist/cli.js spawns dist/proxy.js; helper contains network access plus dynamic code execution.
L1: #!/usr/bin/env node
L2: var WA=Object.defineProperty;var i=(e,t)=>WA(e,"name",{value:t,configurable:!0});var to,ro,no,oo,uo,io,ao,so,co,lo,po,mo,fo,ho,go,Fo,Eo,yo,vo,wo,Ao,Co,bo,Do;const Hh=require("node:...
L3: `)}i(o5,"box"),sn(o5,"box");function fC(e,t,r={}){const n=" ".repeat(r.gap??3),o=r.offset??0,u=Math.max(0,...e.map(c=>fe(c))),a=Math.max(e.length,t.length+o),s=[];for(let c=0;c<a;c...
...
L7: `)}i(G,"statusBlock"),Yu(G,"statusBlock");function Ie(e){return`${b.info(Fe.arrow)} ${e}`}i(Ie,"nextStep"),Yu(Ie,"nextStep");const ec=6e4,tc=60*ec,c5=24*tc;function l5(e,t=Date.now...
L8: `),hints:n==="login_required"?[`\u624B\u52A8\u767B\u5F55\u4E00\u6B21\uFF1A$
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

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

### Published dependency entries
- @clack/prompts ^1.7.0 (Dependency)
- @modelcontextprotocol/sdk 1.27.1 (Dependency)
- archiver 7.0.1 (Dependency)
- chalk ^4.1.2 (Dependency)
- commander ^10.0.1 (Dependency)
- crypto-js ^4.2.0 (Dependency)
- dotenv 17.2.3 (Dependency)
- ora ^5.4.1 (Dependency)
- qrcode 1.5.4 (Dependency)

## Package metadata
- **Package:** @4399aigame/aigame
- **Ecosystem:** npm
- **Version:** 2.1.2
- **License:** MIT
- **Version published:** 2026-08-25T01:41:54.157Z
- **Package first seen:** 2026-08-19T02:25:34.336Z
- **Package last seen:** 2026-11-02T00:18:25.798Z
- **Known versions:** 3
- **Latest version:** 2.1.2
- **Appeal under review:** No
- **Description:** 4399 AI 小游戏开发工具链 - MCP Server + CLI
- **Author:** 4399 aigame
- **Maintainers:** ywjszx
- **Keywords:** mcp, model-context-protocol, 4399, aigame, minigame, h5-game, open-api, game-development, ai-agent
- **Runtime engines:** node: \>=22.12.0
- **Artifact files:** 8
- **Artifact unpacked size:** 781,737 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@4399aigame/aigame>)
- [Repository](<https://ywgit.gz4399.com/ywkf/aigame-maker>)
- [Homepage](<https://ywgit.gz4399.com/ywkf/aigame-maker/tree/master/aigame-mcp#readme>)
