---
canonical: "https://firewall.lpm.dev/npm/@mearl/native-host"
markdown: "https://firewall.lpm.dev/npm/@mearl/native-host/report.md"
package: "@mearl/native-host"
report_status: "published"
title: "@mearl/native-host@2.19.2 npm security report"
verdict: "suspicious"
version: "2.19.2"
---

# @mearl/native-host@2.19.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 as agent extension risk** — Allowed by default with warning: install-time first-party agent extension setup was detected.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only agent extension risk
- **Public report status:** Published
- **Threat category:** Agent extension lifecycle risk
- **Selected version:** 2.19.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.

LPM treats this as warn-only first-party agent extension lifecycle risk. Installation automatically registers Mearl browser integration hosts. Extension messages can also authorize package-owned automatic updates; no confirmed malicious attack was established.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 90.0%
- **Started:** 2026-09-30T06:16:25.841Z
- **Finished:** 2026-09-30T06:19:44.109Z
- **Download time:** 780 ms
- **Static scan time:** 3071 ms
- **AI review time:** 194416 ms
- **Total time:** 198268 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:** Installation automatically registers Mearl browser integration hosts. Extension messages can also authorize package-owned automatic updates; no confirmed malicious attack was established.

- **Trigger:** npm postinstall runs initialization; a runtime extension message with checkForUpdates set to true enables update evaluation.

- **Impact:** Persistent browser integration and later local software updates warrant a lifecycle warning, without evidence of foreign agent control hijacking.

- **Evidence paths:** package.json, dist/install.js, dist/index.js

- **Review source:** ai\_review

- **Reviewed:** 2026-09-30T06:19:44.109Z

### AI review details

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

- **Mechanism:** The installer writes native-messaging manifests and launchers. The guarded update path runs Mearl setup for a validated release line with automatic confirmation.

- **Rationale:** Automatic first-party integration setup and extension-gated local updates support a lifecycle warning under the supplied policy. The inspected source does not support a malicious publish block.

- **Files touched:** Library/Application Support/Google/Chrome/NativeMessagingHosts, .config/google-chrome/NativeMessagingHosts

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 90.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** The postinstall hook invokes native-host initialization automatically., Initialization writes Mearl Chrome native-messaging manifests restricted to the selected extension origin., The runtime routes initialization arguments to the installer and exits., The flagged location checks Codex executable paths inside IDE extension directories; it does not modify those directories., An extension message can enable automatic updates through a strict boolean gate., Updates invoke the package-owned Mearl setup command for a validated release line with automatic confirmation.

- **Evidence against:** The inspected installer targets Mearl-owned browser integration artifacts rather than broad or foreign agent configuration., The update gate and package-specific destination support a lifecycle capability warning rather than confirmed malware.

## Affected versions and remediation

This report applies to @mearl/native-host@2.19.2.

- Review the evidence and your use of @mearl/native-host@2.19.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. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node dist/index.js --init || true
```

### 2. Medium: Ambiguous Install Lifecycle Script
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/package.json>)

Install-time lifecycle script is not statically allowlisted and needs review.

Public source snippet (untrusted):

```json
scripts.postinstall = node dist/index.js --init || true
```

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

Package declares npm scripts.

### 4. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/dist/index.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L18: (Did you mean one of ${similar.join(", ")}?)`:similar.length===1?`
L19: (Did you mean ${similar[0]}?)`:""}var init_suggestSimilar=__esm({"../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/suggestSimilar.js"(){}});import{EventEmitter}...
L20: - specify the name in Command constructor or using .name()`);return opts=opts||{},opts.isDefault&&(this._defaultCommandName=cmd._name),(opts.noHelp||opts.hidden)&&(cmd._hidden=!0),...
```

### 5. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%

Package source references a known benign dynamic code generation pattern.

### 6. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/dist/index.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: import { createRequire as __mearlCreateRequire } from 'node:module'; const require = __mearlCreateRequire(import.meta.url);
L3: var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoO...
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 10. Critical: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/dist/index.js>)

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

Public source snippet (untrusted):

```javascript
L763: sys.exit(1)
L764: `}});import{readFileSync as readFileSync7,statSync as statSync6}from"node:fs";import{dirname as dirname4,extname as extname2,resolve as resolve4}from"node:path";import{pathToFileUR...
L765: `)}async function loadPlugin(entry,context,pluginName){let entryVersion;try{let stat2=statSync6(entry);if(!stat2.isFile())throw new Error("not a file");entryVersion=`${stat2.mtimeM...
L766: `)},help(namespace,name2){let selected=name2?[find(name2)]:[...commands.values()],example=selected[0].command,input2=Object.fromEntries(example.registeredArguments.map(argument=>[a...
L767: `)},async run(positionals,payload,namedInput={}){if(payload!==void 0&&positionals.length>0)throw new PluginError("PLUGIN_INVALID_INPUT","位置参数调用与 --payload 调用不能混用");if(payload!==voi...
L768: "${nodePath}" "$
```

### 11. High: Credential Redirect Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/dist/index.js>)

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

Public source snippet (untrusted):

```javascript
Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/index.js:
</style>`}});import{randomUUID as randomUUID6}from"node:crypto";import{closeSync as closeSync4,mkdirSync as mkdirSync3,openSync as openSync4,readFileSync as readFileSync6,readSync,...
`,{mode:384,flag:"wx"}),renameSync4(temporary,file2)}finally{rmSync3(temporary,{force:!0})}return removePluginPageBundles(name,builtPage?.hash),entry}function unregisterPlugin(name...
`),closeSync5(descriptor),()=>rmSync4(lockPath,{force:!0})}catch(error48){if(descriptor!==void 0&&closeSync5(descriptor),error48.code!=="EEXIST")throw error48}if(findPluginRegistra...
line = sys.stdin.readline()
`;return fs20.writeFileSync(launcherPath2,conten
```

### 12. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/dist/index.js>)

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

Public source snippet (untrusted):

```javascript
L18: (Did you mean one of ${similar.join(", ")}?)`:similar.length===1?`
L19: (Did you mean ${similar[0]}?)`:""}var init_suggestSimilar=__esm({"../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/suggestSimilar.js"(){}});import{EventEmitter}...
L20: - specify the name in Command constructor or using .name()`);return opts=opts||{},opts.isDefault&&(this._defaultCommandName=cmd._name),(opts.noHelp||opts.hidden)&&(cmd._hidden=!0),...
...
L31: Expecting one of '${allowedValues.join("', '")}'`);let helpEvent=`${position}Help`;return this.on(helpEvent,context=>{let helpStr;typeof text=="function"?helpStr=text({error:contex...
L32: `)}),this}_outputHelpIfRequested(args){let helpOption=this._getHelpOption();helpOption&&args.find(arg=>helpOption.is(arg))&&(this.outputHelp(),this._exi
```

### 13. High: Unverified Remote Native Payload Install
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/package.json>)

Install-time source downloads a native archive from a fixed external host without transport verification, extracts it, and installs an executable payload.

Public source snippet (untrusted):

```json
scripts.postinstall = node dist/index.js --init || true
Install-time code downloads an unverified remote native archive, stages it locally, activates an executable path, and exposes it to process execution.
L2: import { createRequire as __mearlCreateRequire } from 'node:module'; const require = __mearlCreateRequire(import.meta.url);
L3: var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoO...
L4: `).join(`
...
L6: `)}function save(namespaces){namespaces?process.env.DEBUG=namespaces:delete process.env.DEBUG}function load(){return process.env.DEBUG}function init(debug){debug.inspectOpts={};let...
L7: `).map(str=>str.trim()).join(" ")};formatters.O=function(v){return
```

### 14. Critical: Download Execute
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/dist/index.js>)

Source downloads or fetches remote code and executes it.

Public source snippet (untrusted):

```javascript
L2: import { createRequire as __mearlCreateRequire } from 'node:module'; const require = __mearlCreateRequire(import.meta.url);
L3: var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoO...
L4: `).join(`
L5: `+prefix),args.push(colorCode+"m+"+module.exports.humanize(this.diff)+"\x1B[0m")}else args[0]=getDate()+name+" "+args[0]}function getDate(){return exports.inspectOpts.hideDate?"":n...
L6: `)}function save(namespaces){namespaces?process.env.DEBUG=namespaces:delete process.env.DEBUG}function load(){return process.env.DEBUG}function init(debug){debug.inspectOpts={};let...
...
L18: (Did you mean one of ${similar.join(", ")}?)`:similar.length===1?`
L19: (Did you mean
```

### 15. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/dist/index.js>)

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

Public source snippet (untrusted):

```javascript
L2: import { createRequire as __mearlCreateRequire } from 'node:module'; const require = __mearlCreateRequire(import.meta.url);
L3: var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoO...
L4: `).join(`
L5: `+prefix),args.push(colorCode+"m+"+module.exports.humanize(this.diff)+"\x1B[0m")}else args[0]=getDate()+name+" "+args[0]}function getDate(){return exports.inspectOpts.hideDate?"":n...
L6: `)}function save(namespaces){namespaces?process.env.DEBUG=namespaces:delete process.env.DEBUG}function load(){return process.env.DEBUG}function init(debug){debug.inspectOpts={};let...
...
L18: (Did you mean one of ${similar.join(", ")}?)`:similar.length===1?`
L19: (Did you mean
```

### 16. Critical: Ai Agent Control Hijack
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/dist/index.js>)

Source creates an unconsented AI-agent control surface through install-time mutation or a default unauthenticated remote skill channel.

Public source snippet (untrusted):

```javascript
L553: button, input, select, textarea { font: inherit; }
L554: </style>`}});import{randomUUID as randomUUID6}from"node:crypto";import{closeSync as closeSync4,mkdirSync as mkdirSync3,openSync as openSync4,readFileSync as readFileSync6,readSync,...
L555: `,{mode:384,flag:"wx"}),renameSync4(temporary,file2)}finally{rmSync3(temporary,{force:!0})}return removePluginPageBundles(name,builtPage?.hash),entry}function unregisterPlugin(name...
L556: `),closeSync5(descriptor),()=>rmSync4(lockPath,{force:!0})}catch(error48){if(descriptor!==void 0&&closeSync5(descriptor),error48.code!=="EEXIST")throw error48}if(findPluginRegistra...
...
L768: "${nodePath}" "${hostPath}" %*\r
L769: `;return fs20.writeFileSync(launcherPath2,content2,"utf-8"),launcherPath2}let launcherPath=path20.join(hostDir,`${hostName}-
```

### 17. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/install.js
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/dist/install.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/install.js spawns dist/index.js; helper contains network access plus dynamic code execution.
L1: import { createRequire as __mearlCreateRequire } from 'node:module'; const require = __mearlCreateRequire(import.meta.url);
L2: import fs2 from"node:fs";import path2 from"node:path";import{execFileSync as execFileSync2}from"node:child_process";import{createRequire}from"node:module";import{fileURLToPath}from...
L3: "${nodePath}" "${hostPath}" %*\r
L4: `;return fs2.writeFileSync(launcherPath2,content2,"utf-8"),launcherPath2}let launcherPath=path2.join(hostDir,`${hostName}-launcher.sh`),content=["#!/bin/sh",`NODE_BIN=${JSON.string...
L5: `);return fs2.writeFileSync(launcherPath,content,"utf-8"),fs2.chmodSync(launcherPath,493),launcherPath}async function inst
```

### 18. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/dist/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: scripts.postinstall -> dist/index.js
L2: import { createRequire as __mearlCreateRequire } from 'node:module'; const require = __mearlCreateRequire(import.meta.url);
L3: var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoO...
L4: `).join(`
L5: `+prefix),args.push(colorCode+"m+"+module.exports.humanize(this.diff)+"\x1B[0m")}else args[0]=getDate()+name+" "+args[0]}function getDate(){return exports.inspectOpts.hideDate?"":n...
L6: `)}function save(namespaces){namespaces?process.env.DEBUG=namespaces:delete process.env.DEBUG}function load(){return process.env.DEBUG}function init(debug){debug.inspectOpts={};let...
...
L18: (Did you mean one of ${
```

### 19. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/@mearl/native-host@2.19.2/dist/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: scripts.postinstall -> dist/index.js
L18: (Did you mean one of ${similar.join(", ")}?)`:similar.length===1?`
L19: (Did you mean ${similar[0]}?)`:""}var init_suggestSimilar=__esm({"../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/suggestSimilar.js"(){}});import{EventEmitter}...
L20: - specify the name in Command constructor or using .name()`);return opts=opts||{},opts.isDefault&&(this._defaultCommandName=cmd._name),(opts.noHelp||opts.hidden)&&(cmd._hidden=!0),...
...
L31: Expecting one of '${allowedValues.join("', '")}'`);let helpEvent=`${position}Help`;return this.on(helpEvent,context=>{let helpStr;typeof text=="function"?helpStr=text({error:contex...
L32: `)}),this}_outputHelpIfRequested(args){let helpOption=this._ge
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

### Published dependency entries
- uqr ^0.1.2 (Dependency)
- ws ^8.18.3 (Dependency)

## Package metadata
- **Package:** @mearl/native-host
- **Ecosystem:** npm
- **Version:** 2.19.2
- **License:** ISC
- **Version published:** 2026-09-30T06:13:03.935Z
- **Package first seen:** 2026-07-27T13:10:14.867Z
- **Package last seen:** 2026-09-30T06:19:44.109Z
- **Known versions:** 32
- **Latest version:** 2.19.2
- **Appeal under review:** No
- **Description:** Native Messaging Host for Mearl — bridges Chrome Extension and local socket server
- **Maintainers:** f-loat, tuyan
- **Keywords:** mearl, chrome-extension, native-messaging
- **Runtime engines:** node: \>=22.12.0
- **Artifact files:** 5
- **Artifact unpacked size:** 1,534,530 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@mearl/native-host>)
