In our previous articles, we walked through how we extracted the filesystem from Samsung S10+ firmware, pulled out the libhwui.so (Skia) library, and fuzzed it in a black-box setup using AFL++ in QEMU mode. This allowed us to recreate the crash behind CVE-2020-8899, a 0-click MMS vulnerability, and collect 674 unique crash samples during fuzzing.
Accessing Samsung Firmware Files - Mobile Hacking Lab
Rediscovering a 0-Click MMS Vulnerability in Samsung s10 (CVE-2020-8899)
Moving Beyond Crashes: Triage & Analysis:
We'll reuse the "shim + harness" approach (SkAndroidCodec frontdoor) and just compile the harness with ASAN:
Compile the shim library with debug enabled "-g ".
Compiling the harness with AddressSanitizer enabled (-fsanitize=address)
Heads-up: since the target process runs on Android's Bionic libc (from the firmware rootfs), you need to use ASAN's Android runtime (e.g., libclang_rt.asan-aarch64-android.so). This library is included in the NDK toolchains and must be made available to the target through the same rootfs and LD_LIBRARY_PATH setup used during fuzzing.

A heap buffer over-read occurs inside QmageDecCommon_MakeColorTable_Rev8253_140615 (in libhwui.so) while it is doing a memcpy. The function tries to read 117,431 bytes from a heap buffer that is only 7,374 bytes long. ASAN catches the read past the end and aborts.
This is an OOB READ (not a write). The address is immediately after a small heap allocation (see below), so the source buffer is too small for the requested copy.
So your harness asks your shim to decode -> that calls SkAndroidCodec::getAndroidPixels -> which funnels into SkCodec::getPixels -> which eventually triggers QmageDecCommon_MakeColorTable -> where the OOB read happens.
That's enough to bucket (same top frames same bug), tag root cause areas (QMG color table, frame decode, etc.), and decide whether to prioritize.
Since analyzing each crash manually would take a long time, let's use Cursor AI in agent mode to build a script and runt the script that automatically generates ASAN reports, parses them, and triages crashes based on the existing analysis.
We didn't hand-write the entire triage pipeline line-by-line. Instead, we used Cursor AI in Agent Mode as a co-pilot to draft, refine, and harden the scripts that
(1) replay crashes under afl-qemu-trace
(2) capture Android ASAN logs reliably
(3) parse + bucket results at scale.
Code Generation Speed: Creating consistent subprocess wrappers, CSV/JSON/Markdown writers, and regex scaffolding can be tedious. Agent Mode made this process much faster.
Rapid Iteration: We could instruct the agent to perform tasks like "add a -q fallback to the script", "group by error, library, or function", or "reduce exploitability for READ operations" and it would update the code directly.
Consistency Across Hundreds of Files: Once the agent generated a clean parser, we applied it universally, ensuring no discrepancies between manual analysis and automated processes.
Even with an AI agent, we were strict about these constraints:
Target vs host env: Always set QEMU_LD_PREFIX + QEMU_SET_ENV (Android/bionic ASAN). Clear host LD_PRELOAD.
Robust capture: Wrap runs in script -q -c to avoid truncated ASAN logs; detect truncation and retry without wrapper.
Deterministic parsing: Prefer ASAN SUMMARY: for primary lib/func; otherwise pick the first non-ASAN frame.
Heuristics, not magic: Severity maps are explicit (e.g., UAF/DF -> CRITICAL). Exploitability is a documented bump/downgrade (e.g., WRITE > READ; QMG path bumps).
Open the project folder that includes the harness and crash file directory in Cursor AI, then copy these prompts into Agent Mode and target your repository.

This is the CSV report below, detailing the crash analysis of 674 crashes evaluated by AI.
Crash analysis using Cursor AI agent mode
From the ASAN log, we requested the AI agent to generate a table listing the categories and counts of the crashes, along with a graph.
| tableCategory | Count | Percentage |
| write | 16 | 1.86% |
| read-memcpy | 287 | 68.01% |
| read-4 | 102 | 24.17% |
| read-16 | 3 | 0.71% |
| sigabrt | 14 | 3.32% |
We ask Cursor AI to create the script , that automates
Drop this script in the harness directory. It:
AI is great at skeleton, but you still need to decide:
In this journey, we moved from extracting the Samsung Note 10+ firmware to building a fully functional fuzzing harness around libhwui.so. Starting with failed attempts at resolving brittle Skia symbols, we pivoted to designing a stable shim layer leveraging Skia's clean APIs (SkData, SkAndroidCodec). From there, we constructed a harness, integrated persistent mode with AFL++ QEMU, and injected fuzzing inputs directly into memory for speed and reliability.
This approach not only allowed us to reproduce the crash associated with CVE-2020-8899, but also established a reusable framework for fuzzing other closed-source Android libraries shipped in vendor firmware. By carefully layering shims, persistence hooks, and harness design, we've turned a black-box binary into a fuzzing-ready target.
To take this further, we enhanced our workflow by compiling the harness with AddressSanitizer (ASAN) and leveraging AI agent assisted the automation to handle crash analysis. Instead of manually inspecting each case, AI helped generate scripts to parse ASAN logs and build a triage pipeline. Every crash discovered by the fuzzer was replayed under ASAN, and the resulting logs were automatically analyzed by our Python tooling to classify vulnerabilities (e.g., heap overflows, use-after-free, invalid frees). This automated triage step allowed us to separate actionable, potentially exploitable crashes from duplicates or benign cases, making the overall analysis both scalable and effective
Our work here demonstrates how firmware extraction, thoughtful harness engineering, and structured crash triage can come together to rediscover and validate real-world vulnerabilities. And this is just the start future explorations may extend these techniques to other system components, from graphics to baseband, opening up broader research opportunities in Android device security.
Want to learn advanced fuzzing and exploitation? Check out our courses, “Android Userland Fuzzing and Exploitation” and “Android Kernel Fuzzing and Exploitation” or do some of our free labs.Check out our training:
https://www.mobilehackinglab.com/courses