Trainings - Agentic Program Analysis at Scale
Looking to get the most out of Binary Ninja? Join one of our upcoming trainings or request a private class for your organization today!
Agentic Program Analysis at Scale
Models consume harnesses: each new framework, evaluation, and skill file you build for current models is training data for the next generation. So instead of focusing on how to make the models better, this class prepares you to tackle the hardest questions you could ask about programs: Is it safe to run? Will it generate the output I expect? Are there any bugs? Whether you want to dig deeper than ever into binaries, or need to analyze millions of binaries coming through the door, this class teaches the theory and practical knowledge, with hands-on practice, to effectively extract the facts we care about using the most powerful tools we have to date — without surrendering to agents vibing answers.
One of the main hurdles we overcome in this class is that of scale. With many programs, we can't perform tons of analysis on each. But without tons of analysis, we can't have the library of evidence we desire to be confident in our results. So with many binaries, which checks are fast? Which checks will get us closest to an answer the quickest? And when we're ready to scale up with loads of analysis, how do we prove what we think we've found? Thankfully, we have over six decades of techniques and algorithms to (ask the agents to) implement before we ever ask an LLM to perform that delicate reasoning itself instead.
Prerequisites
A foundation in reverse engineering, vulnerability research, firmware analysis, or similar is strongly recommended. Students should be familiar with assembly (registers, pipelining, virtual memory addressing, swapping threads, etc), how memory works (including the stack and the heap), aspects of file formats and loaders (segments/sections, imported/exported symbol linkage). Students should be able to recognize structures in code, and be able to define and apply those structures in a decompiler. Guided exercises reminiscent of low/mid-point reversing CTF challenges are integrated into the course, and students should be able to derive their own solutions.
Key Learning Objectives
- Build repeatable workflows and scripts for automated reverse engineering
- Improve decompilation accuracy and recover program semantics using a wide array of techniques
- Select appropriate analysis techniques for automation and verifying of findings specific to your task
- Extract useful properties from large groups of programs
- Verify deep properties of programs with extremely high confidence
Who Should Attend?
- Reverse Engineers
- Vulnerability Researchers
- Malware Analysts
- Firmware Analysts
- Developers interested in program analysis and automation
Course Agenda
This course is not strictly bound to a slide deck: we progress from module to module based on student feedback. The following example agenda is based on typical student preparedness at prior events. More advanced groups will skip earlier sections to explore more of the extended content, representing some of the most advanced theories to which we currently have access. LLM use is at the discretion of each student; those who want to write the algorithms themselves are welcome to.
Day 1: Foundations and Workflow
- Binary Ninja overview, navigation, and core workflow
- Points of interest, cross references, and program triage
- Recognition, signatures, and capability classification
- Annotation, typing, structures, and patching
- Debugger workflows and dynamic analysis
- Sidekick, LLMs, MCP, agents, and the current best "vibe-reversing" workflows
Day 2: Graphs, Slicing, and Analysis
- Python console, snippets, and first automation steps
- Control-flow graphs, call graphs, and program structure
- Slicing, source-to-sink analysis, and graph tooling
- IL internals, dominance, and graph theory
Day 3: Semantics, Types, and ILs
- ILs and choosing the right representation
- Type deduction and recovery
- Structure recovery and larger-function analysis
- Program semantics and analysis theory
- IR vs ILs, optimization, validation, and normalization
- SSA and dataflow fundamentals
Day 4: Automation at Scale and Advanced Topics
- Dataflow reasoning and bug-hunting workflows
- Batch processing and corpus-scale automation
- Stripped binaries and diffing
- Workflows, deobfuscation, and advanced analysis patterns
- Additional advanced topics based on class interest
Additional Modules
Dynamic Analysis
- Execution harnesses, CPU emulation, modeling memory and dependencies
- Tracing, coverage, record/replay, and time-travel debugging
- Verifying patches, runtime instrumentation, and unpacking
- Fuzzing, constraint gathering, and symbolic execution
Advanced Dataflow and Pointer Analysis
- Intra- and inter- procedural dataflow analysis, flow sensitivity
- Tracking aliases, out parameters, and function side effects
- Component identification, structure recovery, and type propagation
Workflows and Decompiler Passes
- Custom Binary Ninja Workflow to rewrite IL
- A survey of available compiler passes and semantics-preserving transformations
- Where to place a workflow
- Generating and using our own IL forms
Lattices, Abstract Interpretation, and Validation
- Modeling program states and types with lattices
- Concrete and abstract domains, Galois connections, and sound approximations
- Transfer functions, fixed points, widening/narrowing, formal verification
Hardware/Software Requirements
- A laptop capable of running Binary Ninja on Windows, macOS, or Linux, with the provided license installed
- Working access to an LLM assistant, such as Sidekick or a cloud assistant; frontier cloud models, CLIs, and API access are preferred. Local models are optional.
- Python and a text editor
- Docker or an Ubuntu VM is recommended for platform-specific exercises
- Access to Discord for class discussion and sharing files
- (Optional, students tend to find it helpful when in-person) A portable external monitor
Included Course Materials
- A free non-commercial license of Binary Ninja including one year of updates (can convert to a license extension or used as a discount for a commercial upgrade upon request)
- Slides, cheat-sheets, and tons of useful diagrams and reference resources
- Example scripts and binaries
- Full answers and solution scripts
- Take-home problems at the end of class to practice what you learned and challenge you to go further!
- (Upon request) Certificate of participation or completion usually redeemable for Class-A credit hours towards cert renewals; Check with your cert provider for additional requirements and how to redeem