---
canonical: "https://firewall.lpm.dev/npm/@essentialai/cogent-bridge/v/3.25.12"
markdown: "https://firewall.lpm.dev/npm/@essentialai/cogent-bridge/v/3.25.12.md"
package: "@essentialai/cogent-bridge"
report_status: "published"
title: "@essentialai/cogent-bridge@3.25.12 npm security report"
verdict: "suspicious"
version: "3.25.12"
---

# @essentialai/cogent-bridge@3.25.12 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:** 3.25.12
- **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 postinstall automatically provisions a first-party Codex plugin during global installation, creating a residual agent-extension lifecycle risk. Its scope and guards, plus the absence of source evidence for a concrete attack, support a warning rather than a block.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 86.0%
- **Started:** 2026-10-23T15:07:03.930Z
- **Finished:** 2026-10-23T15:08:45.347Z
- **Download time:** 2052 ms
- **Static scan time:** 908 ms
- **AI review time:** 98455 ms
- **Total time:** 101417 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:** The global npm postinstall automatically installs this package's Codex plugin into the user's Codex setup. This is a first-party extension setup with limited trigger guards, but the source does not establish a concrete attack.

- **Trigger:** A global npm install, unless setup is skipped or the environment is CI or Windows.

- **Impact:** The user's global Codex configuration gains the plugin, which may then run as a Codex extension.

- **Evidence paths:** package.json, scripts/postinstall-global.mjs

- **Review source:** ai\_review

- **Reviewed:** 2026-10-23T15:08:45.347Z

### AI review details

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

- **Mechanism:** The postinstall adds a GitHub marketplace and invokes Codex to install the Cogent plugin without prompting separately.

- **Rationale:** The postinstall automatically provisions a first-party Codex plugin during global installation, creating a residual agent-extension lifecycle risk. Its scope and guards, plus the absence of source evidence for a concrete attack, support a warning rather than a block.

- **Files touched:** package.json, scripts/postinstall-global.mjs

- **Network endpoints:** https://github.com/eaisdevelopment/cogent.git

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 86.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** The package manifest runs scripts/postinstall-global.mjs during installation., The postinstall setup runs for global npm installs by default, with skip, CI, and Windows guards., That hook adds the Cogent marketplace and installs the Cogent plugin into Codex without a separate confirmation., The CLI's separate managed Codex installation path asks for confirmation before downloading and running the installer., The shutdown path calls autoRelay.stop and disconnects cloudWsClient before exiting., The WebSocket send method forwards its data, options, and callback to this.\_sender.send.

- **Evidence against:** The postinstall setup is limited to global installs and can be skipped with COGENT\_SKIP\_SETUP=1; it also skips CI and Windows., The CLI's managed Codex installation path requires an affirmative prompt response, and non-interactive Codex subcommands bypass daemon setup.

## Affected versions and remediation

This report applies to @essentialai/cogent-bridge@3.25.12.

- Review the evidence and your use of @essentialai/cogent-bridge@3.25.12 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/@essentialai/cogent-bridge@3.25.12/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

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

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

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

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

Package declares npm scripts.

### 4. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/bin/cogent-codex.js
- **Public source:** [View source](<https://unpkg.com/@essentialai/cogent-bridge@3.25.12/dist/bin/cogent-codex.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L33: */
L34: import { spawn, spawnSync } from "node:child_process";
L35: import { realpathSync } from "node:fs";
```

### 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: Download Execute
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/bin/cogent-codex.js
- **Public source:** [View source](<https://unpkg.com/@essentialai/cogent-bridge@3.25.12/dist/bin/cogent-codex.js>)

Source downloads or fetches remote code and executes it.

Public source snippet (untrusted):

```javascript
L33: */
L34: import { spawn, spawnSync } from "node:child_process";
L35: import { realpathSync } from "node:fs";
...
L42: function log(msg) {
L43: process.stderr.write(`[cogent-codex] ${msg}\n`);
L44: }
...
L93: log("setting up real-time wake — installing codex's managed build (one-time)…");
L94: const res = spawnSync("sh", ["-c", "curl -fsSL https://chatgpt.com/codex/install.sh | sh"], {
L95: stdio: "inherit",
...
L251: async function main() {
L252: loadConfig(process.env);
L253: const codexBin = getConfig().COGENT_CODEX_PATH;
```

### 10. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/bin/cogent-codex.js
- **Public source:** [View source](<https://unpkg.com/@essentialai/cogent-bridge@3.25.12/dist/bin/cogent-codex.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 -> dist/bin/cogent-codex.js
L33: */
L34: import { spawn, spawnSync } from "node:child_process";
L35: import { realpathSync } from "node:fs";
...
L42: function log(msg) {
L43: process.stderr.write(`[cogent-codex] ${msg}\n`);
L44: }
...
L93: log("setting up real-time wake — installing codex's managed build (one-time)…");
L94: const res = spawnSync("sh", ["-c", "curl -fsSL https://chatgpt.com/codex/install.sh | sh"], {
L95: stdio: "inherit",
...
L251: async function main() {
L252: loadConfig(process.env);
L253: const codexBin = getConfig().COGENT_CODEX_PATH;
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

### 14. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/backend/npm-update-check.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/@essentialai/cogent-bridge@3.25.12/dist/backend/npm-update-check.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 = 10
```

### 15. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 95.0%
- **Path:** dist/services/codex-preflight.js
- **Public source:** [View source](<https://unpkg.com/@essentialai/cogent-bridge@3.25.12/dist/services/codex-preflight.js>)

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

Public source snippet (untrusted):

```javascript
matchType = token_shingles
matchedPackage = @essentialai/cogent-bridge@3.23.3
matchedPath = dist/services/codex-preflight.js
matchedIdentity = npm:[redacted]:3.23.3
similarity = 1.000
shingleOverlap = 48
summary = source token shingles overlapped finalized malicious source
```

### 16. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** scripts/postinstall-global.mjs
- **Public source:** [View source](<https://unpkg.com/@essentialai/cogent-bridge@3.25.12/scripts/postinstall-global.mjs>)

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 = @essentialai/cogent-bridge@3.23.3
matchedPath = scripts/postinstall-global.mjs
matchedIdentity = npm:[redacted]:3.23.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 17. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/backend/npm-update-check.js
- **Public source:** [View source](<https://unpkg.com/@essentialai/cogent-bridge@3.25.12/dist/backend/npm-update-check.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 = @essentialai/cogent-bridge@3.23.3
matchedPath = dist/backend/npm[redacted]
matchedIdentity = npm:[redacted]:3.23.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 18. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/services/codex-app-server.js
- **Public source:** [View source](<https://unpkg.com/@essentialai/cogent-bridge@3.25.12/dist/services/codex-app-server.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 = @essentialai/cogent-bridge@3.25.10
matchedIdentity = npm:[redacted]:3.25.10
similarity = 0.960
summary = stored previous version shares package body but lacks this dangerous source file
```

### 19. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 95.0%
- **Path:** dist/services/codex-cli.js
- **Public source:** [View source](<https://unpkg.com/@essentialai/cogent-bridge@3.25.12/dist/services/codex-cli.js>)

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

Public source snippet (untrusted):

```javascript
matchType = token_shingles
matchedPackage = @essentialai/cogent-bridge@3.23.3
matchedPath = dist/services/codex-cli.js
matchedIdentity = npm:[redacted]:3.23.3
similarity = 0.708
shingleOverlap = 34
summary = source token shingles overlapped finalized malicious source
```

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

### Published dependency entries
- @essentialai/cogent ^3.6.0 (Dependency)
- @modelcontextprotocol/sdk ^1.6.1 (Dependency)
- imapflow ^1.6.6 (Dependency)
- nodemailer ^6.10.1 (Dependency)
- ws ^8.19.0 (Dependency)
- zod ^3.23.8 (Dependency)

## Package metadata
- **Package:** @essentialai/cogent-bridge
- **Ecosystem:** npm
- **Version:** 3.25.12
- **License:** Apache-2.0
- **Version published:** 2026-10-23T15:05:32.037Z
- **Package first seen:** 2026-07-14T16:43:29.643Z
- **Package last seen:** 2026-11-14T13:17:17.954Z
- **Known versions:** 43
- **Latest version:** 3.26.0
- **Appeal under review:** No
- **Description:** Cogent Bridge — cross-agent comms for Claude Code, OpenAI Codex and Slack. Codex users: install with \`curl -fsSL https://cogent.tools/install.sh | sh\`, then start with \`cogent-codex\` for real-time peer wake.
- **Author:** Pavlo Sidelov
- **Maintainers:** essentialaisolutions
- **Keywords:** mcp, model-context-protocol, claude, claude-code, bridge, inter-session, communication, ai, agent, cogent, cogent-bridge
- **Runtime engines:** node: \>=18
- **Artifact files:** 306
- **Artifact unpacked size:** 1,576,817 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@essentialai/cogent-bridge/v/3.25.12>)
- [Repository](<https://github.com/eaisdevelopment/cogent>)
- [Homepage](<https://github.com/eaisdevelopment/cogent#readme>)
- [Issues](<https://github.com/eaisdevelopment/cogent/issues>)
