How aoiflux/mutant works
Mutant is a secure programming language and runtime for programming and security research. Its main workflow takes source code through lexing, parsing, and compilation to encrypted bytecode; users then run that artifact in the Mutant VM. The CLI also launches a REPL, test and debug workflows, and standalone release generation. The standard library exposes broad networking, cryptography, detection, policy, and forensic capabilities. Separate editor tooling provides language-server features. The graph reflects documented flows and sampled implementation roles; unsampled subsystems are included only where the README establishes their capability.
Main entry points: builtin.go Builtin Library · main.go CLI · runner.go Program Runner · lexer.go Lexer
Components 21
Language Toolchain
- Lexer
lexer/lexer.go - Parser
parser/parser.go - Syntax Tree
ast/clone.go - Compiler
compiler/compiler.go - Bytecode Generation
generator/generate.go - Encrypted Bytecode
Runtime Execution
- Program Runner
runner/runner.go - Mutant VM
vm/vm.go - Runtime Security
security/antitamper_routing.go
Standard Library
- Builtin Library
builtin/builtin.go - Forensic Tools
builtin/system_forensics.go - Sigma Detection
builtin/sigma_engine.go - Policy Evaluation
builtin/policy_engine.go - Sandboxed Lua
runtime/lua/executor.go
Developer Tooling
- CLI
main.go - Interactive REPL
repl/repl.go - Language Server
lsp/internal/server/server.go - VS Code Extension
mutant-vscode-extension/src/extension.ts - Debug Adapter
dap/session.go - Standalone Release
generator/release_assets.go
Other components
- Programmer
Connections 21
- Programmer → CLI: invokes
README.md - CLI → Lexer: compiles source
README.md - Lexer → Parser: tokenizes for
- Parser → Syntax Tree: builds
- Syntax Tree → Compiler: compiles
- Compiler → Bytecode Generation: produces bytecode
- Bytecode Generation → Encrypted Bytecode: encrypts output
README.md - CLI → Encrypted Bytecode: writes artifact
README.md - CLI → Program Runner: runs program
README.md - Program Runner → Mutant VM: executes in
README.md - Program Runner → Runtime Security: applies security mode
README.md - Mutant VM → Builtin Library: calls
README.md - Builtin Library → Forensic Tools: provides forensic tools
README.md - Builtin Library → Sigma Detection: provides detection
README.md - Builtin Library → Policy Evaluation: provides policy tools
README.md - Builtin Library → Sandboxed Lua: provides sandboxed Lua
README.md - Programmer → Interactive REPL: starts interactively
README.md - Programmer → Language Server: connects editor
README.md - VS Code Extension → Language Server: uses language server
- Programmer → Debug Adapter: debugs program
README.md - CLI → Standalone Release: generates standalone build
README.md