---
canonical: "https://firewall.lpm.dev/npm/fraim-hub/v/2.0.339"
markdown: "https://firewall.lpm.dev/npm/fraim-hub/v/2.0.339.md"
package: "fraim-hub"
report_status: "published"
title: "fraim-hub@2.0.339 npm security report"
verdict: "clean"
version: "2.0.339"
---

# fraim-hub@2.0.339 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
**Allowed — no malicious behavior detected** — 19 low-signal patterns reviewed and cleared.

- **Verdict:** Clean
- **Product-default install policy:** Allow
- **Firewall policy:** No policy match
- **Public report status:** Published
- **Threat category:** None published
- **Selected version:** 2.0.339
- **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: clean; recommendation: mark clean. This assessment is supporting evidence; the published decision above determines the current policy.

The package has no install hook. Its automatic network activity checks for and installs its own published update, while the newly added usage-event code appends records locally; the reviewed credential use is tied to explicit publishing actions.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 96.0%
- **Started:** 2026-10-30T19:05:10.418Z
- **Finished:** 2026-10-30T19:06:02.872Z
- **Download time:** 502 ms
- **Static scan time:** 4806 ms
- **AI review time:** 47145 ms
- **Total time:** 52454 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 attack identified; reviewed network and file operations serve the Hub’s self-update and local usage-recording functions.

- **Trigger:** Electron main-process launch; usage logging when called by the local MCP server.

- **Impact:** No unrelated collection, credential theft, or harmful automatic action was identified.

- **Review source:** ai\_review

- **Reviewed:** 2026-10-30T19:06:02.872Z

### AI review details

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

- **Mechanism:** Checks the fraim package version at the npm registry, may install fraim-hub into its versioned cache, and appends usage events to a local JSONL file.

- **Rationale:** The package has no install hook. Its automatic network activity checks for and installs its own published update, while the newly added usage-event code appends records locally; the reviewed credential use is tied to explicit publishing actions.

- **Files touched:** ~/.fraim/bin/hub-app/\<version\>/, usage/events/\<machine\>.jsonl

- **Network endpoints:** registry.npmjs.org

### Review decision

- **Verdict:** Clean

- **Confidence:** 96.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** The manifest declares build scripts and points to the Electron launcher; it has no install lifecycle hook., The launcher resolves and starts the Hub when running as Electron’s main process., At startup, the updater installs a version of fraim-hub itself into its cache when needed., The version lookup uses the npm registry endpoint for fraim., The added usage-event helper appends records to a local JSONL log.

- **Evidence against:** Shell execution and persistence flags correspond to CLI functionality such as setup or registering the Hub as an OS application., GitHub credentials are used by an explicit publishing operation against the repository identified by its remote.

## Affected versions and remediation

This report applies to fraim-hub@2.0.339.

- No action is needed for fraim-hub@2.0.339. Pin the version in your lockfile and check new releases as they are scanned.

## Public findings

These are automated scan signals. The review checked each one and found no malicious behavior, so all of them are cleared.

### 1. Low: Scripts Present (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. High: Child Process (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/src/core/utils/git-utils.js
- **Public source:** [View source](<https://unpkg.com/fraim-hub@2.0.339/dist/src/core/utils/git-utils.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L9: exports.sanitizeRepoIdentifier = sanitizeRepoIdentifier;
L10: const child_process_1 = require("child_process");
L11: function extractLocalFolderLabel(rawPath) {
```

### 3. High: Shell (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/fraim-hub@2.0.339/index.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L38: // IMPORTANT FIX: Directory names with spaces and dashes (e.g., "FRAIM - Issue 166")
L39: // cause argument parsing issues on Windows when shell: true is used.
L40: // Without quoting, a path like "C:\...\FRAIM - Issue 166\src\cli\fraim.ts" gets
```

### 4. Medium: Dynamic Require (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** bin/fraim-hub.js
- **Public source:** [View source](<https://unpkg.com/fraim-hub@2.0.339/bin/fraim-hub.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L3: try {
L4: const { createFraimHubProgram } = require('../dist/src/cli/fraim-hub.js');
L5: createFraimHubProgram().parseAsync(process.argv).catch((error) => {
```

### 5. Medium: Network (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 6. Medium: Environment Vars (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 7. Medium: Install Persistence (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/src/cli/utils/persist-shell-path.js
- **Public source:** [View source](<https://unpkg.com/fraim-hub@2.0.339/dist/src/cli/utils/persist-shell-path.js>)

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

Public source snippet (untrusted):

```javascript
L10: const path_1 = __importDefault(require("path"));
L11: const child_process_1 = require("child_process");
L12: const script_sync_utils_1 = require("./script-sync-utils");
...
L51: const stanza = `\n${marker}\n${exportLine}\n`;
L52: if (process.platform === 'win32') {
L53: const psCmd = [redacted](bins);
...
L60: // dedicated flag for this call site.
L61: if (process.env.FRAIM_TEST_SANDBOX !== '1') {
L62: const result = (0, child_process_1.spawnSync)('powershell', ['-NoProfile', '-NonInteractive', '-Command', psCmd], { encoding: 'utf8', timeout: 10000, windowsHide: true });
L63: if (result.error || result.status !== 0) {
L64: throw new Error(`Could not register managed binaries on the User PATH: ${result.error?.message || result.stderr}`);
L65: }
```

### 8. Low: Filesystem (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 9. High: Same File Env Network Execution (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/src/ai-hub/managed-browser.js
- **Public source:** [View source](<https://unpkg.com/fraim-hub@2.0.339/dist/src/ai-hub/managed-browser.js>)

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

Public source snippet (untrusted):

```javascript
L27: */
L28: const child_process_1 = require("child_process");
L29: const http_1 = __importDefault(require("http"));
L30: const os_1 = __importDefault(require("os"));
...
L36: */
L37: function browserExecutableCandidates(platform = process.platform, env = process.env) {
L38: if (platform === 'win32') {
```

### 10. High: Trigger Reachable Persistence (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/src/ai-hub/hub-install.js
- **Public source:** [View source](<https://unpkg.com/fraim-hub@2.0.339/dist/src/ai-hub/hub-install.js>)

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

Public source snippet (untrusted):

```javascript
Trigger-reachable persistence chain: manifest.bin -> bin/fraim-hub.js -> dist/src/cli/fraim-hub.js -> dist/src/ai-hub/hub-install.js
L17: // latest GitHub Release and pointed the shortcut at it. That never worked. The lookup is
L18: // unauthenticated and `mathursrus/FRAIM` is private (GitHub answers 404, not 403), and no release
L19: // has ever been published, so every run ended in `GitHub release lookup failed with HTTP 404`.
...
L27: const os_1 = __importDefault(require("os"));
L28: const child_process_1 = require("child_process");
L29: const project_fraim_paths_1 = require("../core/utils/project-fraim-paths");
...
L41: function getOsShortcutPaths(home) {
L42: if (process.platform === 'win32') {
L43: const appData = process.env.APPDATA || path_1.default.join(home, 'AppData', 'Roaming')
```

### 11. High: Runtime Package Install (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** dist/src/cli/setup/user-level-sync.js
- **Public source:** [View source](<https://unpkg.com/fraim-hub@2.0.339/dist/src/cli/setup/user-level-sync.js>)

Package source invokes a package manager install command at runtime.

Public source snippet (untrusted):

```javascript
L133: try {
L134: (0, child_process_1.execSync)('npm install --no-audit --no-fund --no-save --no-package-lock --omit=dev', {
L135: cwd: baseDir,
```

### 12. Low: High Entropy Strings (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 13. Low: Url Strings (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 14. Medium: Structural Risk Force Deep Review (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Artifact Inventory
- **Confidence:** 95.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 15. Low: No License (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest does not declare a clear license.

### 16. High: Semantic Analysis Limited (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/src/ai-hub/custom-employees.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/fraim-hub@2.0.339/dist/src/ai-hub/custom-employees.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 = 8
```

### 17. High: Known Malware Source Similarity (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/fraim-hub@2.0.339/index.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = fraim@2.0.183
matchedPath = index.js
matchedIdentity = npm:ZnJhaW0:2.0.183
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 18. High: Known Malware Source Similarity (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/src/cli/setup/claude-code-telemetry.js
- **Public source:** [View source](<https://unpkg.com/fraim-hub@2.0.339/dist/src/cli/setup/claude-code-telemetry.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = fraim@2.0.183
matchedPath = dist/src/cli/setup/claude-code-telemetry.js
matchedIdentity = npm:ZnJhaW0:2.0.183
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 19. Critical: Previous Version Dangerous Delta (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/src/ai-hub/cli.js
- **Public source:** [View source](<https://unpkg.com/fraim-hub@2.0.339/dist/src/ai-hub/cli.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 = fraim-hub@2.0.290
matchedIdentity = npm:ZnJhaW0taHVi:2.0.290
similarity = 0.467
summary = stored previous version shares package body but lacks this dangerous source file
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 27
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 27

### Published dependency entries
- @electron/get ^2.0.3 (Dependency)
- @octokit/rest ^22.0.1 (Dependency)
- adm-zip ^0.6.0 (Dependency)
- axios ^1.7.0 (Dependency)
- builder-util-runtime ^9.7.0 (Dependency)
- chalk 4.1.2 (Dependency)
- commander ^14.0.2 (Dependency)
- cors ^2.8.5 (Dependency)
- dotenv ^16.4.7 (Dependency)
- electron-updater ^6.8.9 (Dependency)
- express ^5.2.1 (Dependency)
- extract-zip ^2.0.1 (Dependency)
- fraim 2.0.339 (Dependency)
- mongodb ^7.0.0 (Dependency)
- node-cron 4.2.1 (Dependency)
- node-edge-tts ^1.2.10 (Dependency)
- nodemailer ^8.0.3 (Dependency)
- prompts ^2.4.2 (Dependency)
- resend ^6.9.3 (Dependency)
- selfsigned ^5.5.0 (Dependency)
- semver ^7.7.4 (Dependency)
- sharp ^0.34.5 (Dependency)
- stripe ^20.3.1 (Dependency)
- tar ^7.4.3 (Dependency)
- toml ^3.0.0 (Dependency)
- tree-kill ^1.2.2 (Dependency)
- xml2js ^0.6.2 (Dependency)

## Package metadata
- **Package:** fraim-hub
- **Ecosystem:** npm
- **Version:** 2.0.339
- **Version published:** 2026-09-28T03:59:17.614Z
- **Package first seen:** 2026-07-15T17:19:06.913Z
- **Package last seen:** 2026-11-11T02:58:00.595Z
- **Known versions:** 82
- **Latest version:** 2.0.362
- **Appeal under review:** No
- **Description:** FRAIM Hub local companion package.
- **Author:** Sid Mathur
- **Maintainers:** sid.mathur
- **Runtime engines:** node: \>=16.0.0
- **Artifact files:** 202
- **Artifact unpacked size:** 4,425,568 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/fraim-hub/v/2.0.339>)
- [Homepage](<https://github.com/mathursrus/FRAIM#readme>)
