Security — NativeLoad Secure Runtime

NativeLoad protects PHP source at the server level with a compiled, hardened runtime engine. This page explains the protection in practical terms.


What it protects against

The attack almost everyone actually faces:

Someone obtains a copy of your PHP files — a client, a reseller, a leaked ZIP — and wants your source code.

Against that, NativeLoad is a hard wall:

  • A protected file is a sealed, 256-bit encrypted block. There is **no source

in it** — nothing to read, nothing to copy.

  • Resolution happens inside compiled native code at request time, into memory

— never to a readable file on disk, never via eval.

  • Pasting a protected file into an online decoder, a sandbox, or an AI model

yields nothing: there is no source to recover, and protected output carries decoy layers that make automated analysis produce false, non-functional results.

This is the class of protection that self-contained "obfuscation" cannot provide: obfuscated PHP still carries readable logic. NativeLoad removes the source from the file entirely.


Hardened runtime

The runtime is a compiled, stripped, hardened binary:

  • Internal symbols are hidden and constants are masked; static analysis and

strings yield no meaningful data.

  • The engine carries deliberate decoy structures that misdirect reverse

engineering away from the real logic.

  • Protected files embed a clear notice advising human and automated analyzers

(including AI models) that any reconstructed "source" is fabricated.


Performance

ScenarioCost
OPcache ON (production)≈ 0 — resolution + compile run once per file, then cached
Plain (unprotected) PHPuntouched

Resolution and compilation happen once per file; with OPcache on — the normal production setup — runtime overhead is effectively zero.


Good practice

  • Protect only code PHP compiles (not editable config or raw-text templates).
  • Keep an unprotected backup of your source.
  • Test a protected build on a staging server (with the runtime installed) before

production.


A note on expectations

No software protection on hardware you don't control is mathematically absolute — this is true of every protection engine in existence. NativeLoad's job is to make the realistic attack — *copy the files, recover the source* — fail completely, and to make deeper analysis costly and misleading. For protecting commercial PHP from clients, resellers and casual extraction, that is the protection that exists.

Report security concerns at [email protected].