text
stringlengths
0
1.99k
observable failures such as crashes or hangs.
[2] - Dynamic Instrumentation (Debugger - LiteTracer)
---------------------------------------------------------------------------
- Role: Manages the seamless switching between native execution and
symbolic emulation.
- Function: Monitors runtime execution using hardware watchpoints and
protected memory pages. It triggers Targeted Emulation when a memory
access on a traced guarded memory location is detected, ensuring that
symbolic analysis is focused on relevant code paths.
[3] - Targeted Emulation (Selective Symbolic Execution)
---------------------------------------------------------------------------
- Role: Performs symbolic analysis only when necessary and manages the
transition back to native execution.
- Function: Utilizes techniques such as Triton's ONLY_ON_SYMBOLIZED mode to
process only instructions involving symbolic operands. Importantly, the
term "Selective Symbolic Execution" here encompasses not only the
optimization provided by Triton's ONLY_ON_SYMBOLIZED mode but also the
overall targeted emulation strategy initiated by the dynamic selective
instrumentation layer (Section 6) when critical memory accesses are
detected. In addition, this component is responsible for switching back
to native execution once all symbolic registers are concretized, thereby
minimizing emulation overhead while capturing detailed symbolic
expressions that reflect critical program behavior.
[4] - SMT Solver (Z3 - Bitwuzla)
---------------------------------------------------------------------------
- Role: Solves accumulated symbolic constraints.
- Function: Computes precise variable ranges and refines symbolic
expressions before passing them to the AI analysis layer, ensuring
that the symbolic data is both accurate and actionable.
[5] - Binary IR and Decompiler (Binary Ninja)
---------------------------------------------------------------------------
- Role: Provides detailed structural code context.
- Function: Disassembles and decompiles binaries to extract function
boundaries, signatures, assembly code, pseudocode, and intermediate
representations (such as LLIL, MLIL, HLIL and SSA forms). These insights
help contextualize the symbolic expressions for subsequent LLM analysis.
[6] - AI Layer (LLM Integration)
---------------------------------------------------------------------------
- Role: Conducts vulnerability analysis.
- Function: Leverages the well-structured symbolic expressions/definitions
generated in the Selective Symbolic Execution layer (Section 6) to
perform function-level or data-flow slices vulnerability assessments.
[7] - Model Context Protocol (MCP) & Agent-to-Agent (A2A)
---------------------------------------------------------------------------
- Status: Early research and development.
- Role: Context retrieval and action invocation.
- Function: Provides AI agents with a unified interface to fetch analysis
data (function code, solved constraints, symbolic definitions) to enrich
LLM context on-demand, and to invoke E0 operations such as fuzzing,
debugging, sample generation, and verification.
--[ 6 - Selective Symbolic Instrumentation (SSI)
Selective Symbolic Instrumentation tracks external inputs by installing
targeted memory monitors. These monitors trigger symbolic analysis only
when external inputs directly influence execution, minimizing unnecessary
emulation overhead. Each symbolic slice precisely captures data-flow and
control-flow semantics, producing structured constraints for downstream
SMT solving and AI analysis. This ensures deep, meaningful analysis
precisely where needed, while preserving native execution speed elsewhere.
The process begins by placing an OS-level guard on the input buffer's page.
Any load from this guarded page generates a fault, pinpointing the first
instruction to consume external bytes and spawning a focused symbolic
emulation slice seeded with a concrete program state. As symbolic values
propagate into registers, heap objects, stack locals, or globals, each
newly touched page is likewise guarded. Subsequent faults cascade, mapping
out the data-flow graph one step at a time as accumulated symbolic
expressions, and ensuring that symbolic reasoning engages only when and
where inputs actually affect control or state.
.-------------------------------------------------------------------.
| Example: Symbolic Emulation Session on a memmove Loop |
|-------------------------------------------------------------------|
| memmove 0x1804ab304: stp q0, q1, [x3] <- Symbolized mem write |
| memmove 0x1804ab308: add x3, x3, #0x20 // Not Symbolized |
| memmove 0x1804ab30c: ldnp q0, q1, [x1] <- triggers emulation |
| memmove 0x1804ab310: add x1, x1, #0x20 // Not Symbolized |
| memmove 0x1804ab314: subs x2, x2, #0x20 // Not Symbolized |
| memmove 0x1804ab318: b.hi #0x1804ab304 // Not Symbolized |
'-------------------------------------------------------------------'
In this example, emulation is triggered at the first 'ldnp' instruction
(0x1804ab30c) when the guarded source memory is accessed. Symbolic
execution starts using Triton's ONLY_ON_SYMBOLIZED mode. Emulating that
'ldnp' instruction results in q0 and q1 registers being symbolized. As the
loop continues, subsequent 'add' and 'subs' instructions will be emulated
by Triton but remain unmarked for data-flow since they do not operate on
symbolized operands. At 0x1804ab304 'stp q0, q1, [x3]' Triton will
symbolize the destination memory because the source registers are
symbolized. A Triton memory-access callback, set by E0, is then triggered:
E0 guards the destination page, creating a new symbolic memory region.
Emulation proceeds until all symbolic registers have been concretized
(i.e., no further symbolic registers dependencies remain - only symbolic