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

# oft-agt@0.5.1 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 12 finding(s) warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Telemetry warning (can be blocked)
- **Public report status:** Published
- **Threat category:** Telemetry
- **Selected version:** 0.5.1
- **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.

Version 0.5.1 automatically sends runtime command-usage telemetry to the package’s relay, and the CLI offers no opt-out. The data is limited to usage metrics, so this warrants a warning rather than a malicious verdict.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 90.0%
- **Started:** 2026-11-01T22:56:24.906Z
- **Finished:** 2026-11-01T22:57:25.799Z
- **Download time:** 255 ms
- **Static scan time:** 196 ms
- **AI review time:** 60441 ms
- **Total time:** 60893 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:** Undisclosed runtime telemetry sends aggregated bot command usage to the Oftone relay.

- **Trigger:** After a user connects the agent and starts it, the background agent sends usage data when its WebSocket opens and every 60 seconds.

- **Impact:** The service receives command usage patterns without a documented CLI opt-out; no credential or message-content exfiltration was identified.

- **Evidence paths:** templates/bot.mjs, usage.mjs, cli.mjs

- **Review source:** ai\_review

- **Reviewed:** 2026-11-01T22:57:25.799Z

### AI review details

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

- **Mechanism:** The generated bot records command names, success status, and duration. The agent aggregates these events locally and sends hourly records with a source identifier over its relay connection.

- **Rationale:** Version 0.5.1 automatically sends runtime command-usage telemetry to the package’s relay, and the CLI offers no opt-out. The data is limited to usage metrics, so this warrants a warning rather than a malicious verdict.

- **Files touched:** templates/bot.mjs, usage.mjs, cli.mjs, usage.json

- **Network endpoints:** oftone-agent-relay.hugocoutant2008.workers.dev

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 90.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** The generated bot records each slash command’s name, success status, and duration., The agent sends aggregated usage records, including a source identifier, over its relay connection., The agent flushes usage data when the socket opens and then every 60 seconds., The CLI help lists commands and options but does not expose a telemetry opt-out.

- **Evidence against:** The collected data is limited to command names, counts, failures, durations, and a source identifier; the reviewed code does not add tokens or message contents to usage records., The Discord bot token is validated against Discord API endpoints and stored locally in an encrypted envelope., The package has no lifecycle scripts, and its default command starts an explicit device login., The relay connection supports the package’s stated purpose of managing a Discord bot through the Oftone service.

## Affected versions and remediation

This report applies to oft-agt@0.5.1.

- Review the evidence and your use of oft-agt@0.5.1 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: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** runtime/lifecycle.mjs
- **Public source:** [View source](<https://unpkg.com/oft-agt@0.5.1/runtime/lifecycle.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L1: import { spawn } from 'node:child_process';
L2: import { readFile, writeFile, open, unlink, mkdir, rename, stat, rm, realpath, link } from 'node:fs/promises';
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 5. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** cli.mjs
- **Public source:** [View source](<https://unpkg.com/oft-agt@0.5.1/cli.mjs>)

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

Public source snippet (untrusted):

```javascript
L10: import { fileURLToPath } from 'node:url';
L11: import { spawn } from 'node:child_process';
L12: import WebSocket from 'ws';
L13: import { writeBot, compile } from './compiler.mjs';
...
L20: 
L21: const baseHome = process.env.OFTONE_AGENT_HOME || path.join(homedir(), '.oftone-agent');
L22: let home = baseHome, configPath, secretPath, keyPath;
```

### 6. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** cli.mjs
- **Public source:** [View source](<https://unpkg.com/oft-agt@0.5.1/cli.mjs>)

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

Public source snippet (untrusted):

```javascript
L4: import { authorizeDevice } from './runtime/device-login.mjs';
L5: import { generateKeyPairSync, privateDecrypt, constants, createDecipheriv } from 'node:crypto';
L6: import { readFile, writeFile, mkdir, rename, access, symlink, open, unlink, cp } from 'node:fs/promises';
...
L10: import { fileURLToPath } from 'node:url';
L11: import { spawn } from 'node:child_process';
L12: import WebSocket from 'ws';
L13: import { writeBot, compile } from './compiler.mjs';
...
L20: 
L21: const baseHome = process.env.OFTONE_AGENT_HOME || path.join(homedir(), '.oftone-agent');
L22: let home = baseHome, configPath, secretPath, keyPath;
...
L49: const current = child;
L50: if (!current || current.exitCode !== null || current.signalCode) return;
```

### 7. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** runtime/device-login.mjs
- **Public source:** [View source](<https://unpkg.com/oft-agt@0.5.1/runtime/device-login.mjs>)

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

Public source snippet (untrusted):

```javascript
L2: import { readFile, writeFile, mkdir, rename, unlink, open, stat } from 'node:fs/promises';
L3: import { spawn } from 'node:child_process';
L4: import path from 'node:path';
...
L6: 
L7: export const RELAY = 'https://oftone-agent-relay.hugocoutant2008.workers.dev';
L8: const hash = value => createHash('sha256').update(value).digest('hex');
...
L10: export function openLoginPage(url) {
L11: const [command, args] = process.platform === 'win32' ? ['rundll32.exe', ['url.dll,FileProtocolHandler', url]] : process.platform === 'darwin' ? ['open', [url]] : ['xdg-open', [url]...
L12: const child = spawn(command, args, { detached: true, windowsHide: true, shell: false, stdio: 'ignore' }); child.on('error', () => {}); child.unref();
...
L30: let pending;
L31: try { pending = JSON.parse(await readF
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 10. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 75.0%

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

### 11. Low: No License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest does not declare a clear license.

### 12. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** cli.mjs
- **Public source:** [View source](<https://unpkg.com/oft-agt@0.5.1/cli.mjs>)

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 = oft-agt@0.5.0
matchedIdentity = npm:b2Z0LWFndA:0.5.0
similarity = 0.895
summary = stored previous version shares package body but lacks this dangerous source file
```

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

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

### Published dependency entries
- discord.js ^14.14.0 (Dependency)
- ws ^8.18.0 (Dependency)

## Package metadata
- **Package:** oft-agt
- **Ecosystem:** npm
- **Version:** 0.5.1
- **License:** UNLICENSED
- **Version published:** 2026-11-01T22:49:39.797Z
- **Package first seen:** 2026-11-01T22:06:15.216Z
- **Package last seen:** 2026-11-01T22:57:25.799Z
- **Known versions:** 2
- **Latest version:** 0.5.1
- **Appeal under review:** No
- **Description:** Agent de liaison serveur pour Oftone Builder
- **Maintainers:** itznoyax
- **Runtime engines:** node: \>=22
- **Artifact files:** 23
- **Artifact unpacked size:** 125,480 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/oft-agt/v/0.5.1>)
- [Homepage](<https://doc-builder.oftone.fr/agent>)
