Skip to content

Upload and resource validation

Before any compilation enters the queue, the Vigil Compiler API runs a full static preflight inspection on the uploaded .zip file.

  • Must be a valid ZIP archive (magic bytes verified, not just file extension).
  • Must stay within your plan’s maximum upload size (see Plans & credits).
  • Must contain a valid meta.xml at the resource root without DOCTYPE or ENTITY declarations (anti-XXE protection).

The analyzer automatically rejects uploads containing:

  • Path traversal / Zip-Slip: absolute paths, .. segments, backslashes \, or null bytes.
  • Symlinks and special entries: symbolic links inside the ZIP archive.
  • ZIP bombs: excessive compression ratios or uncompressed sizes.
  • Disallowed extensions: .exe, .dll, .so, .dylib, .bat, .cmd, .ps1, .sh, .bash, .msi, .jar, .com, .scr, .vbs, .php, .py, .rb.
  • Unsafe names: resource names or paths containing quotes, shell metacharacters, or characters outside safe ASCII ([a-zA-Z0-9._/-]).

During preflight, .lua files are inspected statically (never executed on build servers):

  • Restricted Lua APIs: loadstring, load, dofile, loadfile, debug, io, os.execute, string.dump, setfenv, getfenv, and mutable _G.
  • Disallowed native names: _G, debug, io, os, package, require, dofile, loadfile, loadstring, load, setfenv, getfenv, rawset, rawget.
  • Server / client split: scripts declared as server, client, or shared in meta.xml are classified separately for packaging.

Once preflight passes cleanly, see Compilation & downloads.