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

# muaddib-scanner@2.12.0 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 29 finding(s) warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Staged Payload Carrier
- **Selected version:** 2.12.0
- **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.

Inspected source is a user-invoked npm and PyPI malware scanner with no install-time hook; critical scanner hits are rule catalogs, playbooks, and sandbox canaries. It still ships dual-use exec plus an unreadable WASM module, so this stays a warning rather than a clean or block verdict.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 68.0%
- **Started:** 2026-09-17T00:14:12.370Z
- **Finished:** 2026-09-17T00:21:04.012Z
- **Download time:** 515 ms
- **Static scan time:** 2984 ms
- **AI review time:** 408142 ms
- **Total time:** 411642 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:** No npm install hook or import-time payload was found. Remaining risk is an operator-run supply-chain scanner that loads an unreadable WebAssembly grammar and can spawn Docker and git. Static labels for worms, staged eval, and secret exfil matched detection catalogs and sandbox honeypots rather than a live attack chain.

- **Trigger:** A user installs the package without lifecycle execution, then later runs the muaddib CLI, monitor, sandbox, or Python AST scan.

- **Impact:** The scanner process can run Docker and git and load vendored WASM whose bytes could not be reviewed as source; no unattended install-time compromise was shown.

- **Evidence paths:** src/scanner/python-ast.js, src/sandbox/index.js, bin/muaddib.js, src/commands/diff.js

- **Review source:** ai\_review

- **Reviewed:** 2026-09-17T00:21:04.012Z

### AI review details

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

- **Mechanism:** Dual-use scanner with opaque WASM load and operator process execution

- **Rationale:** Inspected source is a user-invoked npm and PyPI malware scanner with no install-time hook; critical scanner hits are rule catalogs, playbooks, and sandbox canaries. It still ships dual-use exec plus an unreadable WASM module, so this stays a warning rather than a clean or block verdict.

- **Files touched:** src/vendor/tree-sitter-python.wasm

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 68.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** High

- **Evidence for warning:** Vendored tree-sitter-python.wasm cannot be read as text and is loaded into the Python AST parser at runtime, so that artifact is not fully inspectable., The sandbox module runs Docker through child\_process and ships honeypot credential-shaped tokens for canary detection., The published muaddib CLI exposes scan, sandbox, watch, and install helpers; it is operator-invoked, not an npm install hook., The diff command runs git through execFileSync in a user-chosen directory., Monitor classification reads operator environment flags, including ANTHROPIC\_API\_KEY., Rule catalogs and the cross-file taint detector describe fetch-plus-eval, npm-publish worms, and network or exec sinks as detection logic.

- **Evidence against:** package.json has no preinstall, install, or postinstall script; prepublishOnly only refuses local publishes outside CI., src/index.js exports an explicit run() scan pipeline with no import-time eval or network send., npm publish worm and staged-payload wording in playbooks is operator response text, not code that republishes the package., Webhook sending is opt-in HTTPS to an allowlisted Discord and Slack set., Canary token strings are labeled sandbox honeypots searched in gVisor reports, not live exfil destinations., Registry token reads are documented as npm registry authentication for the scanner, not harvesting for a third party.

## Affected versions and remediation

This report applies to muaddib-scanner@2.12.0.

- Review the evidence and your use of muaddib-scanner@2.12.0 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. Critical: Critical Secret
- **Category:** Secrets
- **Confidence:** 90.0%
- **Path:** src/sandbox/index.js
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/sandbox/index.js>)

Package contains a critical-looking secret pattern.

Public source snippet (untrusted):

```javascript
patternName = github_pat
severity = critical
line = 207
```

### 4. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bin/muaddib.js
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/bin/muaddib.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L25: if (!hasMaxOld || !hasGC) {
L26: const { execFileSync } = require('child_process');
L27: const flags = [];
```

### 5. High: Shell
- **Category:** Source
- **Confidence:** 85.0%

Package source references shell execution.

### 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. Critical: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** src/monitor/classify.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/monitor/classify.js%23virtual%3Anormalized%3Around1>)

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

Public source snippet (untrusted):

```text
L1: /*
L2: * MUAD"DIB — Supply-chain threat detection for npm & PyPI\n * Copyright (C) 2026 DNSZLSK\n *\n * This program is free software: you can redistribute it and/or modify\n * it under t...
L3: // core/.asar with injected code (payload-in-write coupling ⇒ FP≈0). Bypasses MT-1 cap like the
```

### 10. Critical: Hardcoded Runtime Data Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** src/sandbox/index.js
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/sandbox/index.js>)

Source sends credentials or rich application records to a package-controlled external receiver enabled by default.

Public source snippet (untrusted):

```javascript
L14: * You should have received a copy of the GNU Affero General Public License
L15: * along with this program.  If not, see <https://www.gnu.org/licenses/>.
L16: *
...
L19: 
L20: const { execSync, execFileSync, spawn } = require('child_process');
L21: const crypto = require('crypto');
...
L63: // result-handling that also runs on the main thread (the deferred sandbox worker is a
L64: // setInterval on the main loop — deferred-sandbox.js): JSON.parse of container stdout,
L65: // gVisor kernel-log parse/cleanup, preload-log analysis. Uninstrumented today, so a
...
L82: // Pattern: same semaphore as src/shared/http-limiter.js.
L83: const SANDBOX_CONCURRENCY_MAX = Math.max(1, parseInt(process.env.MUADDIB_SANDBOX_CONCURRENCY, 10) || 3);
L84:
```

### 11. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** src/scanner/module-graph/detect-cross-file.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/scanner/module-graph/detect-cross-file.js%23virtual%3Anormalized%3Around1>)

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

Public source snippet (untrusted):

```text
L293: if (pipeSource) {
L294: // The final .pipe() destination — check if it"s a known sink\n          const destArg = node.arguments && node.arguments[0];\n          if (destArg) {\n            const destSink ...
L295: walkAST(ast, (node) => {
```

### 12. Critical: Npm Publish Worm
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** src/response/playbooks.js
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/response/playbooks.js>)

Source mutates package metadata and republishes itself to npm.

Public source snippet (untrusted):

```javascript
L14: * You should have received a copy of the GNU Affero General Public License
L15: * along with this program.  If not, see <https://www.gnu.org/licenses/>.
L16: *
...
L32: 
L33: child_process:
L34: 'Execution de commandes systeme. Verifier quelles commandes sont lancees.',
...
L50: 
L51: base64_encoding:
L52: 'Encodage base64 detecte. Souvent utilise pour obfusquer du code malveillant.',
...
L96: env_proxy_intercept:
L97: 'CRITIQUE: new Proxy(process.env) intercepte tous les acces aux variables d\'environnement. Technique d\'exfiltration silencieuse. Isoler la machine, regenerer tous les secrets.',
L98:
```

### 13. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** src/rules/index.js
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/rules/index.js>)

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

Public source snippet (untrusted):

```javascript
L14: * You should have received a copy of the GNU Affero General Public License
L15: * along with this program.  If not, see <https://www.gnu.org/licenses/>.
L16: *
...
L109: domain: 'vulnerability',
L110: description: 'Utilisation de eval() ou new Function() - execution de code dynamique',
L111: references: [
...
L161: domain: 'malware',
L162: description: 'Script preinstall/postinstall suspect dans package.json',
L163: references: [
...
L316: },
L317: import_time_base64_exec: {
L318: id: 'MUADDIB-PYSRC-005',
```

### 14. Critical: Remote Asset Decode Execute
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** src/rules/index.js
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/rules/index.js>)

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

Public source snippet (untrusted):

```javascript
L14: * You should have received a copy of the GNU Affero General Public License
L15: * along with this program.  If not, see <https://www.gnu.org/licenses/>.
L16: *
...
L109: domain: 'vulnerability',
L110: description: 'Utilisation de eval() ou new Function() - execution de code dynamique',
L111: references: [
...
L161: domain: 'malware',
L162: description: 'Script preinstall/postinstall suspect dans package.json',
L163: references: [
...
L316: },
L317: import_time_base64_exec: {
L318: id: 'MUADDIB-PYSRC-005',
```

### 15. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** bin/muaddib.js
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/bin/muaddib.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: bin/muaddib.js spawns src/ioc/scraper.js; helper contains network access plus dynamic code execution.
L15: * You should have received a copy of the GNU Affero General Public License
L16: * along with this program.  If not, see <https://www.gnu.org/licenses/>.
L17: *
...
L22: if (process.argv[2] === 'evaluate') {
L23: const hasMaxOld = process.execArgv.some(a => a.includes('--max-old-space-size'));
L24: const hasGC = process.execArgv.some(a => a === '--expose-gc');
...
L32: stdio: 'inherit',
L33: env: process.env
L34: });
...
L47: const { loadDotEnv } = require('../src/env-loader.js');
L48: loadDotEnv(require('path').join(__dirname, '..', '.env'));
L49: } catch { /* non-fatal: .env is optional */ }
```

### 16. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** src/sandbox/index.js
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/sandbox/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.bin -> bin/muaddib.js -> src/sandbox/index.js
L14: * You should have received a copy of the GNU Affero General Public License
L15: * along with this program.  If not, see <https://www.gnu.org/licenses/>.
L16: *
...
L19: 
L20: const { execSync, execFileSync, spawn } = require('child_process');
L21: const crypto = require('crypto');
...
L63: // result-handling that also runs on the main thread (the deferred sandbox worker is a
L64: // setInterval on the main loop — deferred-sandbox.js): JSON.parse of container stdout,
L65: // gVisor kernel-log parse/cleanup, preload-log analysis. Uninstrumented today, so a
...
L82: // Pattern: same semaphore as src/shared/http-limiter.js.
L83: const SANDBOX_CONCURRENCY_MAX = Math.max(1, parseInt(process.env.MUADDIB_SANDBOX_C
```

### 17. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** src/scanner/module-graph/detect-cross-file.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/scanner/module-graph/detect-cross-file.js%23virtual%3Anormalized%3Around1>)

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.main -> src/index.js -> src/pipeline/executor.js -> src/scanner/module-graph/index.js -> src/scanner/module-graph/detect-cross-file.js
L293: if (pipeSource) {
L294: // The final .pipe() destination — check if it"s a known sink\n          const destArg = node.arguments && node.arguments[0];\n          if (destArg) {\n            const destSink ...
L295: walkAST(ast, (node) => {
```

### 18. High: Runtime Package Install
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** src/commands/diff.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/commands/diff.js%23virtual%3Anormalized%3Around1>)

Package source invokes a package manager install command at runtime.

Public source snippet (untrusted):

```text
L92: try {
L93: execFileSync("npm", ["install", "--quiet", "--no-audit", "--no-fund", "--ignore-scripts"], {
L94: cwd: tempDir,
...
L98: } catch {
L99: // Ignore npm install errors
L100: }
```

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

Package source contains high-entropy string patterns.

### 20. Low: Telemetry
- **Category:** Supply Chain
- **Confidence:** 70.0%

Package source references telemetry or analytics APIs.

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

Package source contains URL literals.

### 22. Medium: Ships Wasm Module
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** src/vendor/tree-sitter-python.wasm
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/vendor/tree-sitter-python.wasm>)

Package ships WebAssembly modules.

Public source snippet (untrusted):

```text
path = src/vendor/tree-sitter-python.wasm
kind = wasm_module
sizeBytes = 459862
magicHex = [redacted]
```

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

### 24. Low: Copyleft License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest declares a copyleft-style license.

### 25. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** bin/muaddib.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/bin/muaddib.js%23virtual%3Anormalized%3Around1>)

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_parse_error; limitedFiles = 23
```

### 26. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** src/scanner/paranoid.js
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/scanner/paranoid.js>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = muaddib-scanner@2.11.180
matchedIdentity = npm:bXVhZGRpYi1zY2FubmVy:2.11.180
similarity = 0.733
summary = stored previous version shares package body but lacks this dangerous source file
```

### 27. Critical: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** src/sandbox/index.js
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/sandbox/index.js>)

GitHub personal access token in src/sandbox/index.js

Public source snippet (untrusted):

```javascript
patternName = github_pat
severity = critical
line = 207
```

### 28. Critical: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** src/sandbox/index.js
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/sandbox/index.js>)

npm access token in src/sandbox/index.js

Public source snippet (untrusted):

```javascript
patternName = npm_token
severity = critical
line = 208
```

### 29. Critical: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** src/sandbox/index.js
- **Public source:** [View source](<https://unpkg.com/muaddib-scanner@2.12.0/src/sandbox/index.js>)

AWS access key ID in src/sandbox/index.js

Public source snippet (untrusted):

```javascript
patternName = aws_access_key
severity = critical
line = 209
```

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

### Published dependency entries
- @inquirer/prompts 8.5.2 (Dependency)
- acorn 8.17.0 (Dependency)
- acorn-walk 8.3.5 (Dependency)
- adm-zip 0.6.0 (Dependency)
- js-yaml 5.3.0 (Dependency)
- web-tree-sitter ^0.26.9 (Dependency)

## Package metadata
- **Package:** muaddib-scanner
- **Ecosystem:** npm
- **Version:** 2.12.0
- **License:** AGPL-3.0-only
- **Version published:** 2026-08-29T10:09:43.031Z
- **Package first seen:** 2026-06-30T15:00:00.099Z
- **Package last seen:** 2026-09-17T00:21:04.012Z
- **Known versions:** 30
- **Latest version:** 2.12.0
- **Appeal under review:** No
- **Description:** Supply-chain threat detection & response for npm & PyPI/Python
- **Author:** DNSZLSK
- **Maintainers:** dnszlsk
- **Keywords:** security, npm, pypi, python, supply-chain, malware, scanner, typosquatting, shai-hulud, detection, ast, sarif
- **Runtime engines:** node: \>=20.0.0
- **Artifact files:** 185
- **Artifact unpacked size:** 5,722,263 bytes
- **Artifact signatures:** 1
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

## References
- [HTML security report](<https://firewall.lpm.dev/npm/muaddib-scanner/v/2.12.0>)
- [Repository](<https://github.com/DNSZLSK/muad-dib>)
- [Issues](<https://github.com/DNSZLSK/muad-dib/issues>)
