Phase 11 — Reverse Engineering and Vulnerability Discovery
Operation Cedar Lattice | Phase 11
Narrative
Cedar Lattice Phase 11. The engagement against Meridian Freight International has progressed past initial access. The threat actor FIN-LATTICE is known to use custom-packed loaders and to embed vulnerabilities in logistics management software. Phase 11 trains you to triage captured binaries, identify packing, score vulnerabilities with CVSS, and scan source code for common weakness patterns — all skills necessary to understand what the adversary built and what Meridian's own software exposes.
Safety Statement: This phase teaches detection and analysis. Every offensive concept ends in its detection method. Labs analyze synthetic metadata only. No working exploits, shellcode, or weaponized payloads are produced or required.
Why Reverse Engineering is a Red Team Skill
Red teamers encounter reverse engineering at multiple points in an engagement:
- Triage found tooling — You captured a binary on the target. Is it packed? What does it import? What strings does it contain? This tells you what the adversary left behind.
- Analyze target software — Meridian's logistics app may contain exploitable vulnerabilities. Source code review and binary analysis surface these before or after decompilation.
- Understand evasion — FIN-LATTICE uses packers (UPX, Themida) to hide code from AV. Understanding entropy and packing helps you recognize and classify the technique.
- Build PoC to prove impact — A finding without a PoC is a recommendation, not a proof. RE informs PoC construction by revealing what the code actually does.
Learning Objectives
- Compute Shannon entropy on binary section data and interpret values as packing signals.
- Identify common packer signatures (UPX, Themida, VMProtect) from import tables and section names.
- Apply the x86-64 System V AMD64 ABI calling convention to function analysis.
- Map vulnerability classes (CWE-78, CWE-89, CWE-22, CWE-120, CWE-502) to code patterns.
- Score a vulnerability using CVSS v3.1 base metrics.
- Perform static source code review using pattern matching methodology.
- Apply responsible disclosure principles to findings documentation.
Cedar Lattice Artifact
TLP:WHITE — Sanitized for Training
Artifact:
mfi_updater_v3.exe— Captured from Meridian Freight International update server. Initial triage: PE32+ binary, sections.text(entropy 7.9),.rsrc(entropy 5.1). Import table:LoadLibraryA,GetProcAddressonly. Strings:http://198.51.100.45/update,cmd.exe /c whoami. Assessment: UPX-packed loader. C2 channel present. Recon string present. This artifact drives the scenarios in Phase 11 labs.
Labs
| Lab | Title | Skills |
|---|---|---|
| 01 | Binary Triage Engine | Entropy analysis, packer detection, suspicious strings, triage report |
| 02 | Source Vulnerability Scanner | SQL injection, command injection, path traversal, deserialization, CVSS |
How to Run
# Lab 01 — run stubs (expect NotImplementedError)
cd lab-01-binary-triage-engine
pytest -q
# Lab 01 — run solution
LAB_MODULE=solution pytest -q
# Lab 02 — run stubs
cd ../lab-02-source-vuln-scanner
pytest -q
# Lab 02 — run solution
LAB_MODULE=solution pytest -q