English

Erlang Binary and Source Code Obfuscation

Programming Languages 2026-04-16 v1 Cryptography and Security

Abstract

This paper studies obfuscation techniques for Erlang programs at the source, abstract syntax tree, BEAM assembly, and BEAM bytecode levels. We focus on transformations that complicate reverse engineering, decompilation, and recompilation while remaining grounded in the actual behavior of the Erlang compiler, validator, loader, and virtual machine. The paper categorizes opcode-level dependency tricks, receive-based loop encodings, irregular control-flow constructions, mutability-oriented performance obfuscation, and self-modifying code enabled by dynamic module loading. A recurring theme is that effective obfuscation in BEAM often arises not from arbitrary corruption, but from exploiting representational gaps between high-level Erlang semantics and the lower-level execution model accepted by the toolchain and runtime.

Keywords

Cite

@article{arxiv.2604.13675,
  title  = {Erlang Binary and Source Code Obfuscation},
  author = {Gregory Morse and Tamás Kozsik},
  journal= {arXiv preprint arXiv:2604.13675},
  year   = {2026}
}

Comments

15 pages, 15 figures