---
canonical: "https://firewall.lpm.dev/npm/@miomioos/mio-agent/v/0.3.16"
markdown: "https://firewall.lpm.dev/npm/@miomioos/mio-agent/v/0.3.16.md"
package: "@miomioos/mio-agent"
report_status: "published"
title: "@miomioos/mio-agent@0.3.16 npm security report"
verdict: "suspicious"
version: "0.3.16"
---

# @miomioos/mio-agent@0.3.16 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 20 findings 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:** 0.3.16
- **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 daemon sends account usage metadata to its own server during runtime, but the package documentation does not disclose this reporting and the source shows no way to turn it off. The credentials are used with their respective services rather than forwarded to Mio, so this warrants a warning rather than a malicious verdict.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 82.0%
- **Started:** 2026-11-08T03:13:46.526Z
- **Finished:** 2026-11-08T03:15:29.438Z
- **Download time:** 762 ms
- **Static scan time:** 666 ms
- **AI review time:** 101483 ms
- **Total time:** 102912 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 reporting of Claude and Codex account usage metadata to the Mio server.

- **Trigger:** When the daemon starts; usage sampling repeats every five minutes and machine heartbeats every 45 seconds.

- **Impact:** The Mio server receives account utilization, reset-time, and plan metadata. No transfer of the underlying Claude or Codex credentials to Mio was identified.

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

- **Review source:** ai\_review

- **Reviewed:** 2026-11-08T03:15:29.438Z

### AI review details

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

- **Mechanism:** Reads Claude Code’s OAuth token to query Anthropic’s usage endpoint, parses rate-limit fields from local Codex session records, then includes those metrics in authenticated Mio server heartbeats.

- **Rationale:** The daemon sends account usage metadata to its own server during runtime, but the package documentation does not disclose this reporting and the source shows no way to turn it off. The credentials are used with their respective services rather than forwarded to Mio, so this warrants a warning rather than a malicious verdict.

- **Files touched:** dist/cli/index.js, ~/.claude/.credentials.json, ~/.codex/sessions/\*.jsonl

- **Network endpoints:** https://api.anthropic.com/api/oauth/usage, https://mio.wdao.chat/api/v1/machines/heartbeat, \<configured server\_url\>/api/v1/machines/heartbeat

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 82.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** Starting the daemon triggers recurring usage sampling and machine heartbeats; the CLI dispatches this work from explicit start or install commands., The sampler reads Claude Code’s OAuth token and sends it to api.anthropic.com/api/oauth/usage, returning utilization percentages and reset times., The Codex sampler reads local session records but extracts only rate-limit fields, percentages, plan type, and timestamps., Machine heartbeats include the sampled usage object and send it to the configured Mio server’s /api/v1/machines/heartbeat endpoint.

- **Evidence against:** The package describes itself as a daemon that bridges Claude Code and Codex sessions to the MioMioOS server., The source does not show Claude or Codex credentials being sent to the Mio server; the Claude token is sent to Anthropic’s own usage endpoint.

## Affected versions and remediation

This report applies to @miomioos/mio-agent@0.3.16.

- Review the evidence and your use of @miomioos/mio-agent@0.3.16 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/index.js
- **Public source:** [View source](<https://unpkg.com/@miomioos/mio-agent@0.3.16/dist/cli/index.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L189: (and others from agentProxy.ts / the server)
L190: `});var $o={};He($o,{runAgentcliCommand:()=>yh});async function yh(){return Po(process.argv.slice(3),{stdin:process.stdin,stdout:process.stdout,stderr:process.stderr})}var Do=C(()=...
L191: `;for(var g=0;g<a;g+=2){s+=d.WHITE_ALL;for(var f=0;f<a;f++)c[g][f]===o&&c[g+1][f]===o?s+=d.WHITE_ALL:c[g][f]===o&&c[g+1][f]===i?s+=d.WHITE_BLACK:c[g][f]===i&&c[g+1][f]===o?s+=d.BLA...
```

### 4. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** dist/cli/index.js
- **Public source:** [View source](<https://unpkg.com/@miomioos/mio-agent@0.3.16/dist/cli/index.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: import{createRequire as ___cr}from'module';import{fileURLToPath as ___fu}from'url';import{dirname as ___dn}from'path';const require=___cr(import.meta.url);const __filename=___fu(im...
L3: var Ef=Object.create;var Is=Object.defineProperty;var xf=Object.getOwnPropertyDescriptor;var Tf=Object.getOwnPropertyNames;var Cf=Object.getPrototypeOf,Rf=Object.prototype.hasOwnPr...
L4: `),1;let o=process.env.MIO_AGENT_PROXY_TOKEN_FILE;if(!o)return r.write(JSON.stringify({ok:!1,code:"MISSING_PROXY_TOKEN",message:"MIO_AGENT_PROXY_TOKEN_FILE is not set"})+`
...
L102: `)}}async function dh(n,e,t,r,s,i){switch(n){case"upload":return lh(e,t,r,s,i);case"view":return uh(e,t,r,s,i);default:return i.write(JSON.stringify({ok:!1,code:"UNKNOWN_COMMAND",m...
L103: `),1}}async function Ls(
```

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

Package source references network APIs.

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

Package source references environment variables.

### 7. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/cli/index.js
- **Public source:** [View source](<https://unpkg.com/@miomioos/mio-agent@0.3.16/dist/cli/index.js>)

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

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: import{createRequire as ___cr}from'module';import{fileURLToPath as ___fu}from'url';import{dirname as ___dn}from'path';const require=___cr(import.meta.url);const __filename=___fu(im...
L3: var Ef=Object.create;var Is=Object.defineProperty;var xf=Object.getOwnPropertyDescriptor;var Tf=Object.getOwnPropertyNames;var Cf=Object.getPrototypeOf,Rf=Object.prototype.hasOwnPr...
L4: `),1;let o=process.env.MIO_AGENT_PROXY_TOKEN_FILE;if(!o)return r.write(JSON.stringify({ok:!1,code:"MISSING_PROXY_TOKEN",message:"MIO_AGENT_PROXY_TOKEN_FILE is not set"})+`
...
L102: `)}}async function dh(n,e,t,r,s,i){switch(n){case"upload":return lh(e,t,r,s,i);case"view":return uh(e,t,r,s,i);default:return i.write(JSON.stringify({ok:!1,code:"UNKNOWN_COMMAND",m...
L103: `),1}}async function Ls(
```

### 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/index.js
- **Public source:** [View source](<https://unpkg.com/@miomioos/mio-agent@0.3.16/dist/cli/index.js>)

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

Public source snippet (untrusted):

```javascript
L189: (and others from agentProxy.ts / the server)
L190: `});var $o={};He($o,{runAgentcliCommand:()=>yh});async function yh(){return Po(process.argv.slice(3),{stdin:process.stdin,stdout:process.stdout,stderr:process.stderr})}var Do=C(()=...
L191: `;for(var g=0;g<a;g+=2){s+=d.WHITE_ALL;for(var f=0;f<a;f++)c[g][f]===o&&c[g+1][f]===o?s+=d.WHITE_ALL:c[g][f]===o&&c[g+1][f]===i?s+=d.WHITE_BLACK:c[g][f]===i&&c[g+1][f]===o?s+=d.BLA...
...
L201: --help                Show this message
L202: `)}async function Ih(n){let e;try{({values:e}=Th({args:n,options:{server:{type:"string",default:Gs},"device-name":{type:"string",default:Pn.hostname()},help:{type:"boolean",default...
L203: `);let s=e?["-n",String(t),"-F",...r]:["-n",String(t),...r],i=Mh("tail",s,{stdio:"inherit"});return await new Promise(o=>{i
```

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

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

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: import{createRequire as ___cr}from'module';import{fileURLToPath as ___fu}from'url';import{dirname as ___dn}from'path';const require=___cr(import.meta.url);const __filename=___fu(im...
L3: var Ef=Object.create;var Is=Object.defineProperty;var xf=Object.getOwnPropertyDescriptor;var Tf=Object.getOwnPropertyNames;var Cf=Object.getPrototypeOf,Rf=Object.prototype.hasOwnPr...
L4: `),1;let o=process.env.MIO_AGENT_PROXY_TOKEN_FILE;if(!o)return r.write(JSON.stringify({ok:!1,code:"MISSING_PROXY_TOKEN",message:"MIO_AGENT_PROXY_TOKEN_FILE is not set"})+`
...
L102: `)}}async function dh(n,e,t,r,s,i){switch(n){case"upload":return lh(e,t,r,s,i);case"view":return uh(e,t,r,s,i);default:return i.write(JSON.stringify({ok:!1,code:"UNKNOWN_COMMAND",m...
L103: `),1}}async function Ls(
```

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

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

Public source snippet (untrusted):

```javascript
L189: (and others from agentProxy.ts / the server)
L190: `});var $o={};He($o,{runAgentcliCommand:()=>yh});async function yh(){return Po(process.argv.slice(3),{stdin:process.stdin,stdout:process.stdout,stderr:process.stderr})}var Do=C(()=...
L191: `;for(var g=0;g<a;g+=2){s+=d.WHITE_ALL;for(var f=0;f<a;f++)c[g][f]===o&&c[g+1][f]===o?s+=d.WHITE_ALL:c[g][f]===o&&c[g+1][f]===i?s+=d.WHITE_BLACK:c[g][f]===i&&c[g+1][f]===o?s+=d.BLA...
...
L201: --help                Show this message
L202: `)}async function Ih(n){let e;try{({values:e}=Th({args:n,options:{server:{type:"string",default:Gs},"device-name":{type:"string",default:Pn.hostname()},help:{type:"boolean",default...
L203: `);let s=e?["-n",String(t),"-F",...r]:["-n",String(t),...r],i=Mh("tail",s,{stdio:"inherit"});return await new Promise(o=>{i
```

### 12. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/cli/index.js
- **Public source:** [View source](<https://unpkg.com/@miomioos/mio-agent@0.3.16/dist/cli/index.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: import{createRequire as ___cr}from'module';import{fileURLToPath as ___fu}from'url';import{dirname as ___dn}from'path';const require=___cr(import.meta.url);const __filename=___fu(im...
L3: var Ef=Object.create;var Is=Object.defineProperty;var xf=Object.getOwnPropertyDescriptor;var Tf=Object.getOwnPropertyNames;var Cf=Object.getPrototypeOf,Rf=Object.prototype.hasOwnPr...
L4: `),1;let o=process.env.MIO_AGENT_PROXY_TOKEN_FILE;if(!o)return r.write(JSON.stringify({ok:!1,code:"MISSING_PROXY_TOKEN",message:"MIO_AGENT_PROXY_TOKEN_FILE is not set"})+`
...
L102: `)}}async function dh(n,e,t,r,s,i){switch(n){case"upload":return lh(e,t,r,s,i);case"view":return uh(e,t,r,s,i);default:return i.write(JSON.stringify({ok:!1,code:"UNKNOWN_COMMAND",m...
L103: `),1}}async function Ls(
```

### 13. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/cli/index.js
- **Public source:** [View source](<https://unpkg.com/@miomioos/mio-agent@0.3.16/dist/cli/index.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.main -> dist/cli/index.js
L1: #!/usr/bin/env node
L2: import{createRequire as ___cr}from'module';import{fileURLToPath as ___fu}from'url';import{dirname as ___dn}from'path';const require=___cr(import.meta.url);const __filename=___fu(im...
L3: var Ef=Object.create;var Is=Object.defineProperty;var xf=Object.getOwnPropertyDescriptor;var Tf=Object.getOwnPropertyNames;var Cf=Object.getPrototypeOf,Rf=Object.prototype.hasOwnPr...
L4: `),1;let o=process.env.MIO_AGENT_PROXY_TOKEN_FILE;if(!o)return r.write(JSON.stringify({ok:!1,code:"MISSING_PROXY_TOKEN",message:"MIO_AGENT_PROXY_TOKEN_FILE is not set"})+`
...
L102: `)}}async function dh(n,e,t,r,s,i){switch(n){case"upload":return lh(e,t,r,s,i);case"view":return uh(e,t,r,s,i);default:return i.write(JSON.stringify({ok:!
```

### 14. High: Trigger Reachable Credential Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/cli/index.js
- **Public source:** [View source](<https://unpkg.com/@miomioos/mio-agent@0.3.16/dist/cli/index.js>)

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

Public source snippet (untrusted):

```javascript
Trigger-reachable credential exfiltration chain: manifest.main -> dist/cli/index.js
L1: #!/usr/bin/env node
L2: import{createRequire as ___cr}from'module';import{fileURLToPath as ___fu}from'url';import{dirname as ___dn}from'path';const require=___cr(import.meta.url);const __filename=___fu(im...
L3: var Ef=Object.create;var Is=Object.defineProperty;var xf=Object.getOwnPropertyDescriptor;var Tf=Object.getOwnPropertyNames;var Cf=Object.getPrototypeOf,Rf=Object.prototype.hasOwnPr...
L4: `),1;let o=process.env.MIO_AGENT_PROXY_TOKEN_FILE;if(!o)return r.write(JSON.stringify({ok:!1,code:"MISSING_PROXY_TOKEN",message:"MIO_AGENT_PROXY_TOKEN_FILE is not set"})+`
...
L102: `)}}async function dh(n,e,t,r,s,i){switch(n){case"upload":return lh(e,t,r,s,i);case"view":return uh(e,t,r,s,i);default:return i.wr
```

### 15. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/cli/index.js
- **Public source:** [View source](<https://unpkg.com/@miomioos/mio-agent@0.3.16/dist/cli/index.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.main -> dist/cli/index.js
L189: (and others from agentProxy.ts / the server)
L190: `});var $o={};He($o,{runAgentcliCommand:()=>yh});async function yh(){return Po(process.argv.slice(3),{stdin:process.stdin,stdout:process.stdout,stderr:process.stderr})}var Do=C(()=...
L191: `;for(var g=0;g<a;g+=2){s+=d.WHITE_ALL;for(var f=0;f<a;f++)c[g][f]===o&&c[g+1][f]===o?s+=d.WHITE_ALL:c[g][f]===o&&c[g+1][f]===i?s+=d.WHITE_BLACK:c[g][f]===i&&c[g+1][f]===o?s+=d.BLA...
...
L201: --help                Show this message
L202: `)}async function Ih(n){let e;try{({values:e}=Th({args:n,options:{server:{type:"string",default:Gs},"device-name":{type:"string",default:Pn.hostname()},help:{type:"boolean",default...
L203: `);let s=e?["-n",String(t),"-F",...
```

### 16. High: Trigger Reachable Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/cli/index.js
- **Public source:** [View source](<https://unpkg.com/@miomioos/mio-agent@0.3.16/dist/cli/index.js>)

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

Public source snippet (untrusted):

```javascript
Trigger-reachable persistence chain: manifest.main -> dist/cli/index.js
L1: #!/usr/bin/env node
L2: import{createRequire as ___cr}from'module';import{fileURLToPath as ___fu}from'url';import{dirname as ___dn}from'path';const require=___cr(import.meta.url);const __filename=___fu(im...
L3: var Ef=Object.create;var Is=Object.defineProperty;var xf=Object.getOwnPropertyDescriptor;var Tf=Object.getOwnPropertyNames;var Cf=Object.getPrototypeOf,Rf=Object.prototype.hasOwnPr...
L4: `),1;let o=process.env.MIO_AGENT_PROXY_TOKEN_FILE;if(!o)return r.write(JSON.stringify({ok:!1,code:"MISSING_PROXY_TOKEN",message:"MIO_AGENT_PROXY_TOKEN_FILE is not set"})+`
...
L102: `)}}async function dh(n,e,t,r,s,i){switch(n){case"upload":return lh(e,t,r,s,i);case"view":return uh(e,t,r,s,i);default:return i.write(JSON.str
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

### 20. 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:** prepublishOnly
- **Dependencies:** 0
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 11
- **Published dependency-graph edges:** 0

## Package metadata
- **Package:** @miomioos/mio-agent
- **Ecosystem:** npm
- **Version:** 0.3.16
- **License:** UNLICENSED
- **Version published:** 2026-07-09T11:18:45.193Z
- **Package first seen:** 2026-07-07T13:23:28.235Z
- **Package last seen:** 2026-11-08T03:16:09.744Z
- **Known versions:** 9
- **Latest version:** 0.3.18
- **Appeal under review:** No
- **Description:** Mio Agent — background AI worker daemon for MioIsland. Bridges Claude Code sessions to the MioMioOS server.
- **Author:** Laurent Liu
- **Maintainers:** miomioos
- **Keywords:** mio, claude, codex, ai, daemon, mio-agent
- **Runtime engines:** node: \>=20.0.0
- **Artifact files:** 10
- **Artifact unpacked size:** 362,254 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@miomioos/mio-agent/v/0.3.16>)
- [Repository](<https://github.com/MioMioOS/mio-agent>)
- [Homepage](<https://github.com/MioMioOS/mio-agent#readme>)
- [Issues](<https://github.com/MioMioOS/mio-agent/issues>)
