Repository navigation
v0.1.0
First release of luau-shield: a static security analyzer for Roblox games written in Luau.
It finds the bugs exploiters actually use: values sent by the client through remotes that reach currency, DataStores, character properties, loadstring, HTTP requests or other players' objects without being validated.
Highlights
- Real data-flow analysis, not regular expressions: follows untrusted values through variables, tables, local functions and required modules
- Understands validation: typeof checks, bounds, NaN checks, allow-lists, ownership checks, assert, your own validators and the
tlibrary - 8 rules, from untrusted economy writes to secrets exposed to the client
- Clear findings: the code, the path of the data from the remote to the dangerous line, why it is exploitable and how to fix it
- Made for CI: text, JSON and SARIF output, exit codes, and a GitHub Action that uploads results to the Security tab
- Optional AI explanations with a local Ollama model (
--explain)
Install
rokit add Topogamer0/luau-shield
Or download the binary for your system below: Windows x64, macOS (Apple Silicon and Intel), Linux x64.
Accuracy
On the test corpus (127 vulnerable and 125 safe cases): 148/148 expected findings, 0 false positives, 0 false negatives. Known limitations are documented in the README.
MIT license.