Docs
Panda-K ObfuscatorPanda-K Protection Features
On this page

For Developers · Panda-K

Panda-K Protection Features

Every protection layer in Panda-K, in plain words: what it does, what it costs, what it looks like in a real build, and where it stops working. This page describes Panda-K 4.1.0, the version behind Panda Vault's per-script settings.

How to read this page

Panda-K turns your script into instructions for a virtual machine (VM: a small interpreter written in Luau that ships inside the protected file), then wraps that VM in further layers. Each layer below has the same four parts:

  • What it does, in one or two sentences.
  • Cost, using the same tags as the Panda Vault panel: No speed cost, Larger file, Small cost or Slower. Next to it are the values the Max performance, Balanced and Max security profiles use.
  • A sample. Samples labelled Real capture are short excerpts from actual Panda-K 4.1.0 builds of the small test script below, made with a fixed build seed so two builds can be compared line by line. Samples labelled Illustrative are simplified to show the idea and are not copied from a build.
  • Honest limit: where Panda-K's own engineering notes say how the layer can be undone.

In Panda Vault, Max performance is the engine profile max-perf (preset Panda-Xenon), Balanced is balanced (preset Panda-Roblox) and Max security is max-security (preset Panda-Roblox-Strong). See Panda-K: Profiles for how to choose.

Test script used for the real captures
local coins = 0
local function add(n)
  coins = coins + n
  return coins
end
for i = 1, 3 do add(i) end
print("Coins:", coins)

No obfuscator keeps client code secret

Everything on this page runs on the player's machine, so a determined, skilled attacker can eventually recover what the script does. Obfuscation raises the time and skill that takes. Anything that must stay secret or must not be cheated, such as key validation, prices, rewards or admin actions, belongs on your server, where players cannot read or change it.

All per-script settings at a glance

These are the 30 settings Panda Vault shows under the profile when you choose Panda-K. Picking a profile selects all of its values. Changing any row away from the profile's value switches the selection to Custom and marks that row; only the rows that differ are stored. Setting the row back, Reset to the profile, or picking a profile card returns to the profile.

Panda Vault per-script settings
SettingGroupCostMax performanceBalancedMax security
Runtime varianceRun-time varianceSlowerOffOffMedium
DispatchRun-time varianceSmall costTreeTreeRandom
VM layersRun-time varianceSlowerOneOneOne
MorphVM shapeNo speed costLightNormalMax
MBAVM shapeLarger fileOffLightStrong
Junk instructionsVM shapeSmall costLightNormalHeavy
NOP sledsVM shapeSmall costOffOnOn
Dead branchesVM shapeLarger fileOffOnOn
Fake register trafficVM shapeSmall costOffOnOn
Constant encryptionVM shapeSmall costXORModularMulti-layer
Image cipherVM shapeSmall costChaCha8ChaCha12ChaCha20
Control-flow flatteningYour codeSmall costOnOnOn
Flatten loops tooYour codeSlowerOffOffOn
Decoy blocksYour codeLarger fileLowNormalHigh
Opaque predicatesYour codeSmall costOffLowMedium
Split stringsYour codeSmall costOffOnOn
Numbers as expressionsYour codeSmall costOffOnOn
Anti-tamperIntegrityNo speed costOffOnOn
Integrity guardsIntegritySmall costOffOffOn
Anti-dumpIntegrityNo speed costOnOnOn
Decoder attestationIntegritySmall costSoftSoftSoft
Host checksEnvironment checksSmall costEnforceEnforceEnforce
Deep engine probesEnvironment checksSmall costOnOnOn
Vanguard hook checkEnvironment checksSmall costOffOffOff
Env-logger shieldEnvironment checksSmall costOffOffOff
Silent enforcementEnvironment checksNo speed costOffOffOff
Environment hook detectionEnvironment checksNo speed costOnOnOn
Error line numbersRuntime behaviourSmall costOffOnOn
Global lookupsRuntime behaviourSmall costStaticStaticStatic
Cache globalsRuntime behaviourNo speed costOffOffOff

Host checks show Enforce for every profile because Panda Vault builds for a Roblox client, and the engine's auto setting turns into Enforce for that target.

Built into every build

These parts of Panda-K are always on. They are not rows in the panel, apart from the image cipher choice.

Polymorphic VM

A polymorphic VM is one that is generated fresh for each build. Every Panda-K build picks new opcode numbers (the number that tells the VM which action to run), a new order for the fields inside each instruction, new internal names and new keys. Two builds of the same script, even with the same settings, do not share a layout.

Cost: no speed cost.

Illustrative
-- Illustrative: the same instruction "add R1 and R2 into R0" in two builds
-- Build A: opcode 87, slots ordered {op, A, B, C}
{87, 0, 1, 2}
-- Build B: opcode 14, slots ordered {C, op, B, A}
{2, 14, 1, 0}

Honest limit: The opcode numbers and slot order can be read out of each file. Polymorphism does not hide a single build; it stops a tool written against one build from working unchanged on the next.

Encrypted, lazily decoded program image

Your compiled script is stored as an encrypted program image, split into sections that are each encrypted with ChaCha (a well-known stream cipher). Decoding is lazy: a function's instructions are decoded in small chunks the first time the VM reaches them, so code that never runs is never decoded, and a memory dump only finds what has run. Each section also carries a check value, so a damaged or hand-patched image stops instead of running wrong code.

The Image cipher row picks the number of ChaCha rounds:

Cost: Small cost · Max performance: ChaCha8 · Balanced: ChaCha12 · Max security: ChaCha20

Illustrative
-- Illustrative: what the file holds and what is decoded at run time
"...0Fq#t9L!x..."          -- encrypted program image (text-safe encoding)
function 1  header  -> decoded when function 1 is first called
            chunk 1 -> decoded when the VM first reaches it
            chunk 2 -> never decoded if that code never runs

Honest limit: The key is derived from the file itself, so this is encoding rather than secrecy. Someone who ports the image decoder can read the program without running it: Panda's own test reader does exactly that and recovers every hidden test string from embedded builds, and Panda's security gate is set to fail on purpose to record that. Only Remote Runtime mode keeps the image out of the file.

Superoperators

Each build looks at which pairs of instructions sit next to each other in your program and fuses some of those pairs into new, build-specific opcodes. A tool that recognises the VM by matching one handler per standard instruction no longer finds one-to-one matches, and the fused set differs per build and per script. Fusing also saves one dispatch per pair.

Cost: cheap; each fused pair saves one dispatch. Max performance builds fuse up to 8 pair types, Balanced up to 16 and Max security up to 28.

Illustrative
-- Illustrative: two common neighbours fused into one per-build opcode
-- before                      after
GETTABLE  R3 R0 "Text"         SOP#201   R3 R0 "Text"
CONCAT    R4 R3 R5             EXT       R4 R3 R5     -- data, read by SOP#201

Honest limit: A tool that understands combined handlers, or a person with time, still maps them. This raises the effort per build; it is not a wall.

Macros

Macros are special function names you write in your own source, such as PANDA_PROTECT or PANDA_ENCRYPT_STRING, that Panda-K reads at build time. They let you protect one sensitive function more strongly, keep a hot function fast, or encrypt a single value. They work with every profile. The full list is in the Macro Documentation; the sample below is from it.

Cost: depends on the macro.

Illustrative
-- Paste the development header above this example for unprotected testing.
PANDA_REQUIRE_MACRO_API(2)

local formatScore = PANDA_OPTIMIZE(2, function(score)
    return PANDA_ENCRYPT_STRING("Score: ") .. tostring(score)
end)

local validateScore = PANDA_PROTECT("strong", function(score)
    return score >= 0 and score <= PANDA_ENCRYPT_NUMBER(1000)
end)

if validateScore(42) then
    print(formatScore(42))
end

Honest limit: Macros tune protection per function; they do not add protection beyond the layers described here. PANDA_NO_VIRTUALIZE removes VM protection from that function entirely.

Remote Runtime mode

A separate, proprietary mode for PandaAuth's loader, not one of the per-script settings. The protected file contains no program at all: a small loader connects to Panda's runtime server with the user's PandaAuth session, and the encrypted program is sent only to an authorized session. Revoking a key stops the next run (or, in the per-function streaming mode, the current run at its next fetch), and the server can log what each session requested.

Illustrative
-- Illustrative: what a Remote Runtime build contains
loader stub   -> handshake with the runtime server (PandaAuth session)
server        -> session key + section list, then encrypted sections
the file      -> no bytecode, no constants, no image

Honest limit: The VM still runs on the player's machine, so a hook on the running VM still sees the code that actually executes. With no network there is no run, and a server outage stops every user. Validated live on one executor (Potassium) with one script; other executors are unverified.

Run-time variance

Runtime variance

Each VM handler (the piece of VM code that carries out one kind of instruction) gets up to N extra copies that look different but do the same thing. Every time an instruction runs, the VM picks one copy using a random sequence seeded fresh on each run. Two runs of the same build, or two passes of one loop, take different paths through the VM; results never change. In the capture, opcode 120 has three interchangeable ids (125, 120, 108) and the second line is the per-instruction pick. It costs one small calculation and one table read per instruction, about 50–60% slower on CPU-heavy code and little on scripts that mostly wait on the game.

Cost: Slower · Max performance: Off · Balanced: Off · Max security: Medium

Real capture · Panda-K 4.1.0 build
local _0_={[0]={[0]=3,0,2,53},[120]={[0]=3,125,120,108},[55]={[0]=3,55,21,89}, ...}

Oo_=(Oo_*69069+1)%4294967296 local ili=_0_[I1]if ili then I1=ili[(Oo_//65536)%ili[0]+1]end

Honest limit: Every copy behaves identically, so an analyst who proves the copies equivalent, or fixes the random inputs, removes the variance. It defeats comparing traces between runs and simple per-opcode pattern matching; it does not hide what your script does. Luau only.

Dispatch

How the VM jumps from an opcode to its handler. Tree inlines every handler in a randomized decision tree and has no function call per instruction. Table looks the handler up in a table of functions. If-chain is one long if/elseif list, the slowest. Hybrid mixes a table for common opcodes with a tree for the rest. Random picks a style per build.

Cost: Small cost · Max performance: Tree · Balanced: Tree · Max security: Random

Illustrative
-- Illustrative shapes (handlers shortened)
-- Tree: a randomized binary decision on the opcode, handlers inlined
if op < 64 then if op < 32 then ... else ... end else ... end
-- Table: one handler function per opcode
handlers[op](frame)
-- If-chain: one long if/elseif list
if op == 87 then ... elseif op == 14 then ... elseif ... end

Honest limit: Dispatch style changes the shape of the VM's main loop, not what it protects. Random only means a reader cannot assume one shape across builds.

VM layers

Runs the VM inside another VM, each with its own opcodes and keys. With two layers, a reader must take apart one complete VM to even reach the one that runs your script.

Cost: Slower · Max performance: One · Balanced: One · Max security: One

Illustrative
-- Illustrative: VM layers set to Two
your script  ->  compiled into VM #1 (its own opcodes and keys)
VM #1        ->  compiled into VM #2 (different opcodes and keys)
the file     =   VM #2, which runs VM #1, which runs your script

Honest limit: Every layer multiplies run time and file size, and three is often too slow for mobile executors. Outer layers compile the VM code, not your script, so per-script checks such as host checks and the shield live in the innermost layer only.

VM shape

Morph

Rewrites the generated VM's own source after it is generated: numbers become small sums that fold back to the same value, if/else branches are swapped, comparisons are mirrored, and local variables are split and reordered. Before morph, about 87–91% of the VM's structure was identical across builds of one script; morph makes the shape differ per build. Every rewrite compiles to the same Luau bytecode, so it adds no run time. Your own code is not changed. In the capture, 1048576 became (46493-(46493-1048576)) and 1000003 became (962221+37782).

Cost: No speed cost · Max performance: Light · Balanced: Normal · Max security: Max

Real capture · Panda-K 4.1.0 build
-- morph 0
local _lO=0 do local l1i=math.floor local function lo(x)return l1i(x*1048576)%1000003 end

-- morph 1 (same build seed)
local _lO=((35619-35619));do local l1i=math.floor;local function lo(x)return(l1i((x*((46493-(46493-1048576)))))%((962221+37782)))end

Honest limit: Each change can be undone by a normaliser that folds constant arithmetic and puts comparisons in a standard order. What morph buys is that someone has to build and maintain that normaliser, and that no two builds share a structural fingerprint.

MBA

MBA (mixed boolean-arithmetic) writes a number as a mix of bit operations and arithmetic that always equals it. Panda-K applies it only to the VM's own setup numbers (opcode tables, field positions, keys) in code that runs once at load, never to loops and never to your maths, because rewriting all of the VM this way made it 7 times slower in testing. In the capture, the table key 17 becomes a bit32 expression that still equals 17. On the 7-line test script, MBA at Max took the file from 46 KB to 100 KB, which is why its tag is Larger file.

Cost: Larger file · Max performance: Off · Balanced: Light · Max security: Strong

Real capture · Panda-K 4.1.0 build
-- mba 0
local O1={[17]={79,238,137,13, ...

-- mba 1 (same build seed): the key is still 17
local O1={[bit32.bxor(bit32.bxor(17,1611238364),((bit32.bor(677943138,933295226)+bit32.band(677943138,933295226))))]={ ...

Honest limit: A deobfuscator that evaluates bit32 calls with constant inputs undoes this in one pass. It removes the plain-number fingerprint of the VM only for readers that do not fold constants. Luau only.

Junk instructions

Mixes extra instructions into your compiled code that never have a real effect, so the instruction listing is longer and noisier. The value is the share of positions that get junk. It also adds a few fake handlers to the VM.

Cost: Small cost · Max performance: Light · Balanced: Normal · Max security: Heavy

Illustrative
-- Illustrative: junk around one real instruction
NOP                    -- NOP sled: does nothing
NOP
JMP +2                 -- dead branch: always jumps over...
CALL R9 1 1            -- ...code that never runs
LOADNIL R40 R40        -- fake register traffic: a register nothing reads
ADD R0 R1 R2           -- the real instruction

Honest limit: Junk is volume, not protection: standard dead-code removal strips all of it. It makes a first read longer and noisier.

NOP sleds

Inserts runs of do-nothing instructions between real ones.

Cost: Small cost · Max performance: Off · Balanced: On · Max security: On

Illustrative
-- Illustrative: junk around one real instruction
NOP                    -- NOP sled: does nothing
NOP
JMP +2                 -- dead branch: always jumps over...
CALL R9 1 1            -- ...code that never runs
LOADNIL R40 R40        -- fake register traffic: a register nothing reads
ADD R0 R1 R2           -- the real instruction

Honest limit: Removed by any NOP-stripping pass, like all junk.

Dead branches

Inserts jumps over plausible-looking code that never runs.

Cost: Larger file · Max performance: Off · Balanced: On · Max security: On

Illustrative
-- Illustrative: a dead branch
JMP +2                 -- always taken
GETGLOBAL R7 "game"    -- never runs, but looks like real code
CALL R7 1 1
ADD R0 R1 R2           -- the real code continues here

Honest limit: A reader that follows jumps skips the dead code, and dead-code removal deletes it.

Fake register traffic

Inserts writes to VM registers (the VM's working slots) that nothing ever reads.

Cost: Small cost · Max performance: Off · Balanced: On · Max security: On

Illustrative
-- Illustrative: fake register traffic
LOADNIL R40 R40        -- R40 is above every register the function uses
ADD R0 R1 R2           -- nothing ever reads R40

Honest limit: A data-flow pass sees that nothing reads the register and removes the write.

Constant encryption

Encrypts the constant pool (the strings and numbers your script uses) with per-build keys, so URLs and messages do not appear as readable text. Strings are decrypted only when used and only a few are kept decrypted at a time. XOR is the lightest, Modular adds arithmetic, Multi-layer combines several steps, and Random picks one per build.

Cost: Small cost · Max performance: XOR · Balanced: Modular · Max security: Multi-layer

Illustrative
-- Illustrative: what a strings dump of the constant pool sees
-- No encryption:          "Coins:"   "https://example.com/api"
-- Constant encryption:    "\217\004m\190\031\162"   (decoded only when used)
-- + Split strings:        "Coi" .. "ns:"   (each piece encrypted separately)

Honest limit: The decryption code and keys ship in the file, so this stops a plain strings dump, not someone who runs the decryptor. A memory dump only sees strings the script has recently used: Max security keeps 6 decoded strings per function, Balanced 16 and Max performance 48.

Your code

These settings transform your script's compiled instructions. They apply inside the VM, so your source is never shipped readable.

Control-flow flattening

Control-flow flattening cuts each function into blocks and runs them from a single loop driven by a state value, so the original if/else and loop shape disappears. Panda-K stores each jump as a difference from the current state, so a reader has to trace the path to know where it goes. Straight-line code, such as a GUI script's setup, is split into blocks too.

Cost: Small cost · Max performance: On · Balanced: On · Max security: On

Illustrative
-- Illustrative: a flattened function, adapted from the engine's design notes
state = 0
while true do
  if state == 0 then ...; state = state + 7        -- next block is named by a
  elseif state == 7 then ...; state = state + 3    -- difference, so you have to
  elseif state == 10 then ...; return              -- follow the path to know it
  elseif state == 19 then ...                      -- decoy block: never runs
  end
end

Honest limit: A deflattener that follows the state value along every path restores the original flow. Decoys and the integrity guards make that harder, not impossible.

Flatten loops too

Also flattens the inside of loops. Stronger, but every pass through a loop pays for it, so hot loops get slower. Max performance and Balanced leave loop bodies whole; Max security splits them.

Cost: Slower · Max performance: Off · Balanced: Off · Max security: On

Illustrative
-- Illustrative: Flatten loops too
for i = 1, 100 do      -- off: the loop body runs as one block per pass
  a(); b(); c()        -- on:  a(), b() and c() become separate states, so
end                    --      each pass goes through the dispatcher again

Honest limit: Same as flattening. The cost is real: every loop pass pays for two extra dispatches per split, so measure hot loops.

Decoy blocks

Adds decoy blocks to flattened functions: copies of the function's own instructions behind branches that never run, with their own entries in the jump table. A reader that does not evaluate the branch counts them as real code. The value is the chance that a block gets a decoy.

Cost: Larger file · Max performance: Low · Balanced: Normal · Max security: High

Illustrative
-- Illustrative: a flattened function, adapted from the engine's design notes
state = 0
while true do
  if state == 0 then ...; state = state + 7        -- next block is named by a
  elseif state == 7 then ...; state = state + 3    -- difference, so you have to
  elseif state == 10 then ...; return              -- follow the path to know it
  elseif state == 19 then ...                      -- decoy block: never runs
  end
end

Honest limit: A reader that tracks the state value can prove the decoy branch is never taken and drop it.

Opaque predicates

An opaque predicate is a branch whose answer is fixed when the build is made but is not obvious from the listing. Static tools that do not evaluate it follow paths that never happen. This is not flattening.

Cost: Small cost · Max performance: Off · Balanced: Low · Max security: Medium

Illustrative
-- Illustrative: a branch whose answer is fixed when built
local t = true
if t then
  -- the real code continues here
else
  -- never runs, but a reader that does not evaluate t follows it
end

Honest limit: Panda's own notes call this cheap decoration: a simplifier that evaluates constants removes it in one pass.

Split strings

Stores string constants of four or more characters in pieces that are joined when used, so a strings dump shows fragments.

Cost: Small cost · Max performance: Off · Balanced: On · Max security: On

Illustrative
-- Illustrative: what a strings dump of the constant pool sees
-- No encryption:          "Coins:"   "https://example.com/api"
-- Constant encryption:    "\217\004m\190\031\162"   (decoded only when used)
-- + Split strings:        "Coi" .. "ns:"   (each piece encrypted separately)

Honest limit: The pieces are joined at run time, so a dump of the running script, or a reader that follows the joins, sees whole strings.

Numbers as expressions

Writes whole-number constants as small calculations instead of plain values, which keeps them out of the constant pool.

Cost: Small cost · Max performance: Off · Balanced: On · Max security: On

Illustrative
-- Illustrative (shown as Lua; Panda-K does this in VM instructions)
local limit = 1000                 -- your code
local limit = (1371 - 371)         -- Numbers as expressions

Honest limit: Constant folding undoes it.

Integrity

Anti-tamper

Makes a beautified (reformatted) or edited copy of the build stop working instead of becoming easier to read. The loader reads its own line number twice from the same physical line; if a beautifier splits that line, the two reads differ, the key comes out wrong and the image does not decode. Hosts without debug.info read nothing twice, which matches, so it never trips there.

Cost: No speed cost · Max performance: Off · Balanced: On · Max security: On

Real capture · Panda-K 4.1.0 build
local O1i=debug and debug.info local o1l=O1i and O1i(1,"l")local o1I=O1i and O1i(1,"l")if o1l==o1I then O0=O0+40717 end

Honest limit: It catches reformatting and blind edits, not a careful edit by someone who understands the loader and keeps it on one line.

Integrity guards

Adds a check at the start of each protected function that digests (computes a fingerprint of) its instructions. In flattened functions the digest is part of every block lookup, so a patched or unguarded function cannot move to its next block and stops with an error, never a silent wrong result. Only chunks that are already decoded are checked, so cold code stays cold.

Cost: Small cost · Max performance: Off · Balanced: Off · Max security: On

Illustrative
-- Illustrative: a guarded function's entry
GUARD   -- digest this function's decoded instructions
        -- flattened function: the digest becomes part of every state lookup,
        -- so an edited or unguarded function cannot reach its next block
        -- other functions: compare with the sealed digest, stop on mismatch

Honest limit: Guards cover the instructions of protected VM functions. They do not cover the VM's own handler code, decoded strings or PANDA_NO_VIRTUALIZE functions, and a host that patches the guard handler itself or runs a modified VM is not detected.

Anti-dump

A common way to dump a VM-protected script is to hook the string functions the decoder uses and log every byte. Before decoding anything, Panda-K checks that string.char and string.byte are real and still behave correctly.

Cost: No speed cost · Max performance: On · Balanced: On · Max security: On

Illustrative
-- Illustrative: checked before anything is decoded
if type(string.char) ~= "function" or string.char(72, 81) ~= "HQ"
   or string.byte("HQ") ~= 72 then
  error("...")   -- a hooked string library would log every decoded byte
end

Honest limit: The check is intentionally narrow (two functions, tested by behaviour) to avoid false alarms. A hook that behaves correctly passes.

Decoder attestation

The decoders check, through Luau's debug information, that the VM is the one calling them. A dumper that finds a decoder in memory and calls it for every chunk index is refused. Soft skips the check on executors without debug.info; Strict refuses to run there.

Cost: Small cost · Max performance: Soft · Balanced: Soft · Max security: Soft

Illustrative
-- Illustrative: a decoder asked for chunk 12
-- called by the VM            -> decodes chunk 12
-- called by a dumper script   -> refuses
-- Soft: hosts without debug.info skip the check
-- Strict: hosts without debug.info do not run the script

Honest limit: A host that hooks the debug library can lie to the check. It raises the cost of a generic dumper; it is not a boundary.

Environment checks

Panda-K's own checks, compiled into the build. They are separate from Panda Vault's Environment guard checkbox, which wraps the build for every obfuscator. Several of them fold their result into the image key instead of checking a yes/no answer: the key is computed from what the host actually does, so a host that behaves differently gets a key that does not decode, and there is no single "passed" line to patch.

Run Diagnose first

For every setting here that has a Diagnose mode, build once on Diagnose and run it on each executor you support. Diagnose prints which probes fail and changes nothing else. Only switch to Enforce when Diagnose is clean, or players on that executor may be locked out.

Host checks

Probes that the script runs in a real Roblox client (for example, that Luau-specific maths and libraries behave the way Roblox's do) before the image key is derived. A Lua emulator or a re-implementation of the Roblox API usually gets some of these wrong. Diagnose reports failures and continues; Enforce folds the result into the key and names no probe.

Cost: Small cost · Max performance: Enforce · Balanced: Enforce · Max security: Enforce

Illustrative
-- Illustrative: Diagnose output on a host that is not real Roblox Luau
Panda host check (roblox-client): semantic-mismatch math.round
-- Enforce: no message names the probe; the image key comes out wrong

Honest limit: Passing shows that the probed behaviours match real Roblox Luau; it does not prove the host is genuine, and an emulator that reproduces those behaviours passes. The newest probes are not verified on a live client.

Deep engine probes

Engine-fidelity probes: small calculations on Roblox types (exact float32 vector maths, rotations, Enum tables, Roblox-only text functions) whose inputs are drawn per build. Each returns a number, and the sum goes straight into the image key; there is no verdict to flip. A second, independent copy runs inside the VM. They follow the Host checks mode.

Cost: Small cost · Max performance: On · Balanced: On · Max security: On

Illustrative
-- Illustrative: a probe returns a number, never "pass" or "fail"
fingerprint = exact float32 bits of a Vector3 calculation + ...
image key   = key base + weight * fingerprint
-- a host that computes anything differently gets a wrong key

Honest limit: Validated on one live executor (Potassium: 1,440 exact fingerprints, 0 mismatches, about 14 ms). Other executors are not validated, so use Diagnose on each before relying on Enforce.

Vanguard hook check

Vanguard looks for an instrumented host before your code runs: a hooked Instance.new or Instance metamethods, a proxied game, or a shadowed script environment. These are what an environment logger (a tool that records every call your script makes and prints it back as source) leaves behind. In Enforce it runs both in the loader, where its result is folded into the image key, and again inside the program, so skipping the VM does not skip it.

Cost: Small cost · Max performance: Off · Balanced: Off · Max security: Off

Illustrative
-- Diagnose (illustrative probe name)
Panda hook check: instance-new-native
-- Enforce, Silent enforcement off: the script stops with
Your Dumper has been Detected by Panda-K Vanguard
-- Enforce, Silent enforcement on: the script stops with
Panda: protected image failed integrity verification

Honest limit: Hooks installed natively by the executor, or hidden by an executor that lies to isfunctionhooked, look like the real engine. A logger installed after the check ran is not seen. The loader is readable Luau, so someone who rewrites its verdict to 'pass' gets past the loader half (the in-program copy still runs). On a clean host it does not slow down someone who ports the image decoder. Off by default.

Env-logger shield

Thirteen behavioural probes against Lua-hosted emulators, such as the Roblox API rewritten in Lua. Instead of asking the host a question it can lie about, each probe asks it to behave: raise an error from native code, refuse a yield, close a thread, hand out a fresh wrapper, leave an argument untouched. In Enforce, a loader copy is folded into the image key and an in-program copy fails with the corrupted-image message, naming no probe.

Cost: Small cost · Max performance: Off · Balanced: Off · Max security: Off

Illustrative
-- Diagnose: one line per probe that fires (illustrative probe name)
Panda shield check: thread-close
-- Enforce: no probe is named. A failing host stops with
Panda: protected image failed integrity verification

Honest limit: Not validated on any executor yet. A false positive in Enforce looks like a corrupted build to a real player.

Env-logger shield is not validated on executors yet

Build with the shield on Diagnose and run it on every executor you support, and on plain Roblox, before you switch to Enforce.

Silent enforcement

When Vanguard stops a script in Enforce, the error normally names Panda-K Vanguard. With silent enforcement on, it reads as a corrupted build instead, so a logger's dump shows a broken file rather than a detection to work around. The shield's Enforce mode is always silent.

Cost: No speed cost · Max performance: Off · Balanced: Off · Max security: Off

Illustrative
-- Diagnose (illustrative probe name)
Panda hook check: instance-new-native
-- Enforce, Silent enforcement off: the script stops with
Your Dumper has been Detected by Panda-K Vanguard
-- Enforce, Silent enforcement on: the script stops with
Panda: protected image failed integrity verification

Honest limit: It changes the message, not the check. The key probe still applies either way.

Environment hook detection

Checks that core functions such as pcall, setmetatable and error are still functions before the script starts.

Cost: No speed cost · Max performance: On · Balanced: On · Max security: On

Illustrative
-- Illustrative: replaced core functions stop the script before it runs
if type(pcall) ~= "function" or type(setmetatable) ~= "function"
   or type(error) ~= "function" then
  error("...")
end

Honest limit: This catches naive replacements only. A hook that keeps the function a function passes; the hook check and shield cover the rest.

Runtime behaviour

Error line numbers

Runtime errors name the line in your original source. It costs a line table per function and a protected call per VM call. Max performance has it off; Balanced and Max security have it on.

Cost: Small cost · Max performance: Off · Balanced: On · Max security: On

Illustrative
-- Illustrative: an error inside protected code
-- Error line numbers on:   the message points at line 3 of your source
-- Error line numbers off:  the message has no usable source line

Honest limit: Line numbers help you debug, and they also tell a reader which source line an error came from. Turn it off for release builds if that matters to you.

Global lookups

Static reaches every global through small accessor functions made at build time and never calls getfenv, which keeps Luau's fast paths on for the whole script; the capture shows those accessors. Dynamic keeps global names encrypted and looks them up through getfenv(0). Scripts that use getfenv or setfenv always use Dynamic.

Cost: Small cost · Max performance: Static · Balanced: Static · Max security: Static

Real capture · Panda-K 4.1.0 build
local l0I,oiO={function()return math end,function()return pcall end,function()return print end,function()return task end, ...

Honest limit: With Static, the names of globals you use (print, task, game...) appear in the file as plain identifiers. Dynamic keeps them encrypted but is slower.

Cache globals

Only with Dynamic lookups: assumes other scripts do not change your globals and caches each one by name after the first lookup. Writes your own script makes stay correct.

Cost: No speed cost · Max performance: Off · Balanced: Off · Max security: Off

Illustrative
-- Illustrative: Cache globals (Dynamic lookups only)
print("a")   -- first use: looked up in getfenv(0), then cached as "print"
print("b")   -- later uses: read from the cache

Honest limit: If another script does change one of your globals, your script keeps using the old value.

How Panda-K differs

Most Luau obfuscators, commercial or private, share a core design: compile the script for a custom VM, encrypt its constants, and add junk and flattening. Panda-K does that too. These are the properties you can check for yourself that set it apart:

  • A new VM per build. Opcode numbers, instruction layout, handler set (including per-script superoperators), keys and, with morph, the VM's source shape change on every build. A tool written against one build has to be generalized before it works on the next. A common alternative is one fixed VM per release with renamed variables, where one matcher works on every build.
  • Variance between runs, not just between builds. With run-time variance, two runs of the same file take different paths through the VM, so comparing traces of two runs does not line up.
  • Per-script control of every layer, with visible costs. Panda Vault shows all 30 settings with a cost tag and the profile's value selected, and stores only the rows that differ from the profile. Many obfuscators offer a few fixed levels; with Panda-K you can, for example, keep Max performance speed and still turn on integrity guards.
  • Behaviour checks folded into the key, not named detections. Host checks, deep probes, Vanguard in Enforce and the shield in Enforce feed their result into the image key, so deleting the visible check does not give a working build: the image no longer decodes. Deep probes go further and return computed numbers instead of a pass/fail answer, so there is no verdict to flip at all. A common approach is a named check with an error message, which is easy to find and remove.
  • Self-hosted and free to build. Panda-K runs on PandaAuth's own servers, not a third-party service, and a Panda-K build costs no Panda Tokens on any tier, Free included. In Panda Vault it is offered for Lite scripts. See Panda Tokens.
  • Documented limits and an attack harness. Every layer on this page has its limit written down. Panda-K's test suite includes a security gate that runs simulated runtime dumps, active dumps and a static decoder against every profile and reports how much it recovers. The static decoder recovers embedded builds completely, and the gate is left failing on purpose rather than hidden.

One recorded comparison shaped the current design. In a November 2026 test, Luraph v14.9 (Roblox target) checked host data types before running user code, and an environment-logger mock recovered every GUI event from a Panda-K build on the engine's balanced profile (Balanced in Panda Vault) and none from Luraph. Panda-K's response was to turn host checks on by default for Roblox targets and add data-type probes; the deep probes and the env-logger shield followed in later releases.

IronBrew 2 and Prometheus are open-source projects, so their designs are public for anyone to study and adapt. Other products are not compared here beyond that: claims about another obfuscator's internals belong to its own documentation.

What really protects your script

Panda-K raises the cost of reading and copying your script. It cannot make client-side code secret forever, and neither can any other obfuscator. Keep validation, rewards and anything worth stealing on your server, and use PandaAuth's keys and loader so access can be revoked.