2 online 26 members  + Join RP Base  +
FreeToolQBoxQBCoreESX

dei_security_scanner

by matiaspalmac  ·  version 2026.09.04  ·  updated 22 days ago

No reviews yet

Downloads
0
Reviews
0
Size
44 KB
Code check
Checked
Licence
MIT
Released
Nov 2026

Runtime backdoor and malware scanner for FiveM servers. Live detection, file integrity and resource blocking.

dei_security_scanner
dei_security_scanner
A runtime security scanner that runs inside your FiveM server. A static review catches problems before you deploy; this catches what shows up after boot. Other resources making HTTP calls, files written at runtime, txAdmin getting tampered with. Drop it in, it watches everything and blocks malicious resources as they start.
What it does
  • Scans every running resource against 60+ malware patterns and 50+ known C2 domains and IPs
  • Spots remote code execution even when the fetch and the load() are split across lines
  • Reads NUI and web assets for call-home behaviour (WebSocket, iframes, microphone access)
  • Hashes files at boot and re-checks them, so runtime injection gets flagged
  • Watches txAdmin's monitor/ files directly, the spot the Blum and Warden families inject into
  • Blocks a malicious resource on onResourceStarting before it can run
  • Stops state-bag crash floods and drops the player behind them
  • Alerts to the server console and a Discord webhook, sorted by severity
  • Context-aware allowlist: known-good cfx base resources (sessionmanager, mapmanager, oxmysql) and the first-party dei_* ecosystem don't trip on their own legitimate code, while every hard indicator of compromise still fires
False positives
Heuristic patterns (reading mysql_connection_string, calling StartResource, sessionmanager's own host_lock.lua, high entropy, …) are real malware tells but also show up in honest code. The scanner keeps them, but treats a configurable set of trusted resources as known-good: for those, heuristic hits are suppressed (or downgraded — see Config.AllowlistMode) instead of screaming CRITICAL. Trust never silences hard IOCs — malware domains/IPs, known-bad hashes, helpCode/c:c/JohnsUrUncle/miauss backdoor markers, txData/admins.json, RCE proximity, os.execute, and friends fire regardless, even inside a trusted resource (that is exactly the supply-chain case). When a watched txAdmin file actually changes, the allowlist is bypassed for a full re-scan.

Tune it in config.lua:

  • Config.TrustedResources — explicit known-good resource names (cfx base + oxmysql by default)
  • Config.TrustedResourcePrefixes — name prefixes to trust (dei_ by default)
  • Config.AllowList — surgical per-resource exceptions (matched against finding descriptions)
  • Config.AllowlistMode — 'suppress' (drop, logged at DEBUG) or 'downgrade' (keep as LOW)

Run dei_allowlist in the server console to see what's trusted and how many findings were suppressed this session; dei_status shows the same counters. Suppressed findings are logged at DEBUG (Config.Debug = true) so nothing is hidden silently.
Install
  1. Drop the folder in your resources
  2. ensure dei_security_scanner in server.cfg
  3. Set your webhook and preferences in config.lua

No dependencies. Standalone, server-side only.
Good to know
Escrow-protected (.fxap) resources can't be read by anyone, so the scanner reports them as unscanned rather than pretending they're clean. Audit the unencrypted copy before you buy. Works on RedM too; scanning is game-agnostic.
Commands (server console only)
Command, Does

dei_scan [resource], Full scan, or scan one resource
dei_integrity, Re-verify file hashes against the baseline
dei_convars, Check for sensitive convars exposed via setr
dei_status, Scanner state + suppression counters
dei_allowlist, List trusted resources & suppression config
dei_snapshot, Rebuild the integrity baseline
dei_flush, Flush the log buffer to scanner_log.json
dei_help, Command list
The toolkit
Stage, Tool

Build, fivem-resource-builder
Audit, fivem-security-audit
Protect, dei_security_scanner

Build it secure, audit the diff before you deploy, run the scanner so anything injected later gets caught. The three share the same threat intel.
License
MIT