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

# janex-agent@1.0.22 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 finding(s) 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:** 1.0.22
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

Installation executes a remote Bun installer when Bun is absent. The CLI can later download and install a managed runtime.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Suspicious
- **Confidence:** 94.0%
- **Started:** 2026-08-04T12:45:11.487Z
- **Finished:** 2026-08-04T12:45:50.551Z
- **Download time:** 501 ms
- **Static scan time:** 3693 ms
- **AI review time:** 34869 ms
- **Total time:** 39064 ms

## Security analysis

### Published attack-surface review

- **Summary:** Installation executes a remote Bun installer when Bun is absent. The CLI can later download and install a managed runtime.

- **Trigger:** npm install; or running janex without a suitable runtime

- **Impact:** A remote endpoint can execute installer-controlled shell code and modify the user runtime environment.

- **Evidence paths:** package.json, scripts/postinstall.mjs, bin/janex.js, README.md

- **Review source:** ai\_review

- **Reviewed:** 2026-08-04T12:45:50.551Z

### AI review details

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

- **Mechanism:** remote bootstrap script execution and runtime download

- **Rationale:** Source confirms unconsented install-time remote shell execution, warranting a warning. The available source does not prove malicious payload behavior beyond this dangerous bootstrap design.

- **Files touched:** scripts/postinstall.mjs, bin/janex.js, node\_modules/@opentui/react/chunk-fm0c65gm.js, ~/.bun, ~/.janex/node

- **Network endpoints:** https://bun.sh/install, bun.sh/install.ps1, https://nodejs.org/dist/latest-v22.x/

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 94.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Low

- **Evidence for:** package.json invokes postinstall automatically., scripts/postinstall.mjs pipes bun.sh/install into bash or PowerShell., postinstall rewrites a file under node\_modules., bin/janex.js can download and install Bun/Node at runtime.

- **Evidence against:** No credential harvesting or exfiltration found in inspected install paths., No foreign AI-agent configuration writes found., README documents the runtime bootstrap behavior.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/janex-agent@1.0.22/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall.mjs
```

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

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

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall.mjs
```

### 3. Low: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

Package declares lifecycle scripts that are not normally run for registry tarball installs.

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

Package declares npm scripts.

### 5. Medium: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** dist/tools/tempmail/TempMail.js
- **Public source:** [View source](<https://unpkg.com/janex-agent@1.0.22/dist/tools/tempmail/TempMail.js>)

Package contains a possible secret pattern.

Public source snippet (untrusted):

```javascript
patternName = generic_password
severity = medium
line = 5
matchedText = password...23';
```

### 6. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bin/janex.js
- **Public source:** [View source](<https://unpkg.com/janex-agent@1.0.22/bin/janex.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L4: import { fileURLToPath } from 'url';
L5: import { spawn, spawnSync, execSync } from 'child_process';
L6: import os from 'os';
```

### 7. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bin/janex.js
- **Public source:** [View source](<https://unpkg.com/janex-agent@1.0.22/bin/janex.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L87: ? spawnSync(
L88: 'powershell.exe',
L89: [
```

### 8. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** bin/janex.js
- **Public source:** [View source](<https://unpkg.com/janex-agent@1.0.22/bin/janex.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L105: function nodeHasFfi(bin) {
L106: const probe = spawnSync(bin, ['-e', 'require("node:ffi")'], {
L107: stdio: 'ignore',
```

### 9. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** dist/tools/captcha/FuncaptchaSolver.js
- **Public source:** [View source](<https://unpkg.com/janex-agent@1.0.22/dist/tools/captcha/FuncaptchaSolver.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L14: */
L15: import { createHash, createCipheriv, createDecipheriv, randomBytes } from 'crypto';
L16: import { writeFileSync, unlinkSync, readFileSync } from 'fs';
...
L19: import { loadConfig } from '../../agent/Config.js';
L20: import { request as undiciRequest, ProxyAgent } from 'undici';
L21: // ─── MurmurHash3 x64-128 ───────────────────────────────────────────────────
...
L292: PK: p.ua.includes('Mac OS') ? 'MacIntel' : 'Win32',
L293: CFP: 'canvas winding:yes~canvas fp:data:image/png;base64,' + randomBytes(128).toString('base64'),
L294: FR: false,
...
L677: catch { }
L678: const imgPath = join(homedir(), `.janex-funcaptcha-wave-${wave}.png`);
L679: writeFileSync(imgPath, imgBuffer);
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 13. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bin/janex.js
- **Public source:** [View source](<https://unpkg.com/janex-agent@1.0.22/bin/janex.js>)

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

Public source snippet (untrusted):

```javascript
L82: function installBun() {
L83: if (process.env.janex_SKIP_RUNTIME_BOOTSTRAP === '1') return undefined;
L84: log('Bun runtime not found — installing Bun for the terminal renderer...');
...
L86: process.platform === 'win32'
L87: ? spawnSync(
L88: 'powershell.exe',
...
L97: )
L98: : spawnSync('bash', ['-c', 'curl -fsSL https://bun.sh/install | bash'], {
L99: stdio: 'inherit',
```

### 14. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** bin/janex.js
- **Public source:** [View source](<https://unpkg.com/janex-agent@1.0.22/bin/janex.js>)

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

Public source snippet (untrusted):

```javascript
L4: import { fileURLToPath } from 'url';
L5: import { spawn, spawnSync, execSync } from 'child_process';
L6: import os from 'os';
L7: 
L8: const __dirname = dirname(fileURLToPath(import.meta.url));
L9: const rootDir = join(__dirname, '..');
L10: const dist = join(rootDir, 'dist', 'index.js');
L11: const janex_HOME = process.env.janex_STATE_HOME || join(os.homedir(), '.janex');
L12: const MANAGED_NODE_DIR = join(janex_HOME, 'node');
...
L46: if (result.status !== 0) return { major: 0, minor: 0, patch: 0 };
L47: return parseVersion(result.stdout || result.stderr);
L48: }
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 17. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** bin/janex.cmd
- **Public source:** [View source](<https://unpkg.com/janex-agent@1.0.22/bin/janex.cmd>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```text
path = bin/janex.cmd
kind = build_helper
sizeBytes = 1684
magicHex = [redacted]
```

### 18. 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, prepare
- **Dependencies:** 55
- **Optional dependencies:** 3
- **Peer dependencies:** 0
- **Development dependencies:** 15
- **Published dependency-graph edges:** 58

### Published dependency entries
- @ai-sdk/anthropic ^1.0.0 (Dependency)
- @ai-sdk/openai ^1.0.0 (Dependency)
- @anthropic-ai/sdk ^0.35.0 (Dependency)
- @fastify/cors ^11.2.0 (Dependency)
- @modelcontextprotocol/sdk ^1.0.0 (Dependency)
- @opentui/core ^0.5.0 (Dependency)
- @opentui/react ^0.5.0 (Dependency)
- @types/sql.js ^1.4.11 (Dependency)
- ai ^4.0.0 (Dependency)
- axios ^1.7.7 (Dependency)
- blessed ^0.1.81 (Dependency)
- boxen ^7.1.1 (Dependency)
- chalk ^5.3.0 (Dependency)
- cheerio ^1.0.0-rc.12 (Dependency)
- chokidar ^3.6.0 (Dependency)
- cloakbrowser ^0.3.31 (Dependency)
- commander ^12.1.0 (Dependency)
- conf ^13.0.1 (Dependency)
- dockerode ^4.0.4 (Dependency)
- enquirer ^2.4.1 (Dependency)
- fastify ^5.8.5 (Dependency)
- figlet ^1.7.0 (Dependency)
- fs-extra ^11.2.0 (Dependency)
- glob ^10.4.1 (Dependency)
- googleapis ^144.0.0 (Dependency)
- gradient-string ^2.0.2 (Dependency)
- ink ^5.0.1 (Dependency)
- ink-text-input ^6.0.0 (Dependency)
- inquirer ^9.3.7 (Dependency)
- js-tiktoken ^1.0.21 (Dependency)
- js-yaml ^4.1.0 (Dependency)
- marked ^15.0.12 (Dependency)
- marked-terminal ^7.3.0 (Dependency)
- mmdb-lib ^3.0.2 (Dependency)
- node-cron ^4.5.0 (Dependency)
- nodemailer ^6.9.16 (Dependency)
- openai ^4.68.0 (Dependency)
- ora ^8.0.1 (Dependency)
- pdf-parse ^1.1.1 (Dependency)
- playwright-core ^1.60.0 (Dependency)
- qrcode ^1.5.4 (Dependency)
- react ^19.2.7 (Dependency)
- react-reconciler ^0.33.0 (Dependency)
- sharp ^0.34.5 (Dependency)
- sql.js ^1.14.1 (Dependency)
- systeminformation ^5.23.0 (Dependency)
- telegraf ^4.16.3 (Dependency)
- terminal-link ^3.0.0 (Dependency)
- undici ^6.22.0 (Dependency)
- whois ^2.1.2 (Dependency)
- ws ^8.18.0 (Dependency)
- xlsx ^0.18.5 (Dependency)
- yaml ^2.4.5 (Dependency)
- zod ^3.23.8 (Dependency)
- zod-to-json-schema ^3.23.5 (Dependency)
- @whiskeysockets/baileys ^7.0.0-rc13 (OptionalDependency)
- discord.js ^14.16.3 (OptionalDependency)
- pino ^10.3.1 (OptionalDependency)

## Package metadata
- **Package:** janex-agent
- **Ecosystem:** npm
- **Version:** 1.0.22
- **License:** MIT
- **Version published:** 2026-08-04T12:39:57.826Z
- **Package first seen:** 2026-08-04T12:45:50.551Z
- **Package last seen:** 2026-08-09T19:10:44.964Z
- **Known versions:** 4
- **Latest version:** 1.0.39
- **Appeal under review:** No
- **Description:** Autonomous Multi-Agent AI Workspace in your terminal. Codes, researches, and executes real tasks with 40+ tools and 280+ skills
- **Author:** Janex
- **Maintainers:** janex
- **Keywords:** ai, agent, automation, terminal, multi-agent, browser, captcha, ctf, research
- **Runtime engines:** node: \>=18.0.0, python: \>=3.9
- **Artifact files:** 916
- **Artifact unpacked size:** 4,403,760 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/janex-agent/v/1.0.22>)
- [Repository](<https://github.com/JaneHax/JanexAgent>)
- [Homepage](<https://github.com/JaneHax/JanexAgent#readme>)
- [Issues](<https://github.com/JaneHax/JanexAgent/issues>)
