How far can an LLM get through OWASP MASTG with a TTD trace?

Several projects use LLMs for mobile security assessments: MobARK works on decompiled code, mobile-security-skills guides MASVS audits, and Ostorlab adds dynamic testing.
We tried a different input: a recorded execution of an Android application. A previous post explains how to record one for time-travel debugging (TTD).
This raised two questions. How many MASTG tests can an LLM address from a TTD trace? And what additional evidence does the trace uncover compared to static analysis?
Epoch, the tool that holds the recordings, exposes an MCP server, so the user connects an LLM of their choice. Epoch itself includes no LLM.
To find out, we adapted the audit procedures of mobile-security-skills to TTD traces. We then ran a static audit and a trace audit on three applications: Trade Republic, a real-world app, and two OWASP crackmes, UnCrackable Level 1 and Level 3.
Before the numbers, here is what the recording gives a tester who works with MASTG. Each point rests on evidence from these three applications.
What a recording gives a MASTG audit
A recording captures the entire Android system on one timeline: the application, the other processes, the kernel, and the device screen. The audit answers questions retrospectively, without re-running the app. Among the things the recording changes:
One recording instead of several runtime tools

A pentest toolchain spans static, dynamic, and network tools. For instance, IDA, Ghidra, and BinaryNinja read the code, gdb and Frida observe the run, and tcpdump and Wireshark capture the traffic. One full-system recording holds the runtime data that the dynamic and network tools collect during that run. A new question then needs no new run with different instrumentation. Frida can also change the behavior of an app, for example to bypass a check, which a recording cannot do.
A built-in Epoch script template rebuilds the outgoing network packets from the recording and exports a pcapng. On the Trade Republic recording it rebuilt 1,358 packets, each linked to the transition that produced it. The recording also holds the buffers the app hands to the network stack, so the audit reads outgoing data in plaintext, before encryption.
One interface for every layer

Everything the CPU runs sits on one timeline: the ART interpreter that runs Java, JIT-compiled code, native code, system calls, and the kernel. Epoch shows instructions and memory, so Java appears as ART interpreter code, JIT-compiled code, and memory contents, with no Java method names. One tool, one MCP, one interface: Epoch covers every layer, and no answer needs observations stitched from several tools. The user's LLM reaches every layer through that one MCP server.
The three applications show it, one layer each. On Level 1, the audit sees the ART interpreter instruction nterp_op_aput_byte store the decrypted secret byte by byte. On Level 3, static analysis did not characterize the secret check inside the stripped libfoo.so. The madd instruction and its registers show a constant-seed number generator in the native code of the check. On Trade Republic, the app's root check passes the path /system/bin/su to faccessat, and the kernel copies it from userspace. That copy runs at EL1, in the kernel, so the recording sees it, including for apps that bypass libc with raw syscalls. The calltree resolves the full kernel path: __arm64_sys_faccessat to do_faccessat to getname_flags to do_strncpy_from_user.



Log everything, at once

The same recording also covers the system's log output. Nobody captured logcat during the Level 3 run. The audit still read the complete crash lines of the anti-debug watchdog from the crash buffer in memory. A forgotten log capture can therefore be reconstructed afterwards.

The watchdog is pid 5685, a fork of the app's main process, pid 5664. The logcat shows:
F/libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6d173d8000 in tid 5685 (tg.uncrackable3), pid 5685 (tg.uncrackable3)
F/DEBUG : *** FATAL SIGNAL ***
F/DEBUG : pid: 5685, tid: 5685, name: tg.uncrackable3
F/DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6d173d8000
F/DEBUG : pc 0000006fe221089c anon:[dexec]Code that exists only at runtime

The crash address in the logcat above, 0000006fe221089c, sits in anon:[dexec], which is code generated at runtime and absent from the APK. A recording also holds strings that the app decrypts, uses, and then wipes, while static analysis reads only the APK as shipped.
Trade Republic encrypts its emulator strings at rest inside libfourthline-security.so, which is why static analysis found no evidence of them. At runtime, the recording shows the string generic loaded byte by byte in de.traderepublic.app, on thread pool-26-thread-. The kernel cuts thread names at 15 characters.

Follow a secret through its whole life

Catching a value at the moment of decryption is only part of the picture. A debugger or an instrumentation tool shows a secret only at the moments an analyst chooses to inspect. The trace holds the whole life of the value, from creation to the end of the recording.
The Level 1 audit followed one secret through the full chain. The hardcoded AES key 8d127684cbc37c17616d806cf50473cc appears first. The Base64 ciphertext follows, and then the transformation string AES/ECB/PKCS7Padding. The app then writes the decrypted secret I want to believe byte by byte through the ART interpreter.




Key, ciphertext, and plaintext then coexist in memory for over five billion transitions, with no clearing. A memory dump taken anywhere in that window exposes the secret. No current MASTG 2.0.0 test covers that exposure window, because OWASP deprecated the old one with no successor. Level 3 shows the same pattern. The success string from the accepted secret submission stayed in the app heap until the end of the recording, with no zeroization observed.
Test protections without triggering them

The recording also shows how the app defends itself, without disturbing those defenses. Epoch records out of band. No debugger attaches, the audit injects no hooks, and the recording modifies no code. Anti-debug, anti-tamper, and anti-hooking defenses that react to a debugger, a hook, or a code change therefore do not fire. Two caveats apply. The app runs on an emulator, so anti-emulation detection can still fire. A recorded run is also slower than a normal run, so timing-based checks can still fire.
The Level 3 watchdog died by its own SIGSEGV, with no debugger attached. Static analysis sees a working anti-debug, and only the trace shows the dead watchdog and the unprotected main process. The Level 1 root checks look for files that rooting tools install, for su in the PATH, and for test-keys build tags. The Level 1 and Level 3 images are rooted by running adbd as root. The root checks ran on these images and never fired, so they do not detect this kind of root. On Trade Republic, the emulator detection ran while the splash screen showed, and nothing blocked the app. So a startup recording was enough to capture these checks.

Re-audit old recordings

The recordings in this experiment predate the audit questions, and the audits answered from them anyway. So when OWASP adds or updates a test, an existing recording answers it, provided the recording exercised the feature the test needs.
To see how far this reaches, we reviewed the 107 Android tests of MASTG 2.0.0 and classed them by the evidence they need. 31 tests are answerable from any startup recording, with evidence such as permission strings, ELF headers, and loaded class descriptors. 73 tests need their feature exercised during the recording, for example WebView interactions, cryptographic operations, or network communication. Reuse therefore depends mostly on which features the recorded run exercised.
A few tests need more than the run itself.MASTG-TEST-0224 assesses the APK signature scheme, and the package installer parses its blocks during installation, so the recording needs to include that phase.MASTG-TEST-0225 assesses the signing key size, which a later recording can sometimes read from the signer certificate that Android caches after installation. The SBOM test MASTG-TEST-0274 is only partial: a recording exposes library names and version strings, but no exhaustive dependency inventory.
The current biometric tests, MASTG-TEST-0326 to MASTG-TEST-0330, are code-level checks, so they need no sensor. Their predecessors, MASTG-TEST-0017 and MASTG-TEST-0018, are deprecated.
Every reachability claim above carries one scope limit: TTD traces record emulators. We found no current MASTG test that needs hardware an emulator lacks. The listing above is not exhaustive: a recording answers any question about what the run did, provided the feature ran.
The experiment
The evidence above came from one experiment on the three applications. This section describes how we ran it.
The three applications differ in profile. Trade Republic provides a real-world case, and the absence of a test account limits the recording to its unauthenticated portion. UnCrackable Level 1 is a minimal case: one activity, no network, no third-party libraries. UnCrackable Level 3 adds native protections: a stripped native library for the secret check, CRC integrity checks, and an anti-debugging watchdog.
The audit agent was Claude Code, a command-line agent running on the esReverse platform. GLM was the underlying LLM, and the agent reached Epoch through its MCP server. Users bring their own agent and LLM, and we did the same. The static audit worked on JADX-decompiled APK output. The trace audit used Epoch analysis sessions, with access to the string index, the call tree, the memory reader, the framebuffer, and the script engine. It had no access to the APK or to a static disassembler, so its findings come from the recording alone.
Both audits used the same audit skills. We used mobile-security-skills as the base rather than building a method from scratch. The original skills read application code, so we extended them with a trace-based analysis mode. A shared skill, ttd-trace-method, defines how the agent retrieves, attributes, and interprets evidence from a recorded execution. The extensions address how a recording differs from code. The runtime stores java.util.Random as Ljava/util/Random;, so the skills search class descriptor forms instead of dotted class names. A whole-system recording holds hits from many processes, so the skills attribute each hit to a process. A failed search can mean the feature never ran, so the skills read absent evidence carefully.

We made all recordings on emulated Android phones running on the esReverse platform.
For each application, we ran two independent audits: a static audit on the decompiled APK, and a trace audit on the recording. Neither audit saw the results of the other. A cross-check, run by the same LLM agent in a separate session with trace access, then joined the two reports per control. For disputed controls, it ran targeted probe queries to replay or refute claims. A human reviewed the results before publication.
Audit verdicts (per control, assigned independently by each audit):
Cross-check classifications (per control, assigned after joining both reports):
Here are the results for each application. Answered covers corroborated, trace-only, and skill gap controls. On Trade Republic, 75 controls applied, and the cross-check answered 28 from trace evidence (37%), with zero false positives. Forty-seven controls went unanswered: 40 were out of the recording's reach, and 7 were true negatives that neither audit found. Of the 40, 9 sat behind the login page, 15 were features nothing triggered, and 16 were build-time or source-level properties.
On Level 1, 33 controls applied, and the cross-check answered 19 of them (58%). Its classification: 15 corroborated (45%), 1 skill gap, 3 trace-only, 7 recording edge, 7 true negative, 0 false positive.
On Level 3, 39 controls applied, and the cross-check answered 26 (67%), the best rate of the experiment. The breakdown: 19 corroborated (49%), 4 trace-only (10%), 3 skill gap (8%), 4 recording edge (10%), 7 true negative (18%), 2 false positive (5%).
Combined results
The cross-check classified 147 controls across the three applications: 75 on Trade Republic, 33 on Level 1, and 39 on Level 3.
- 59 CORROBORATED (40%): both audits agree.
- 6 SKILL GAP (4%): fixable recipe bugs.
- 8 TRACE-ONLY (5%): things only the trace can prove.
- 51 RECORDING EDGE (35%): the feature never ran, or the answer lives in a static artifact.
- 21 TRUE NEGATIVE (14%): neither audit found it.
- 2 FALSE POSITIVE (1%): both on Level 3, both caused by errors in the audit procedure, both caught by replay.
The results varied considerably across the three applications. Trade Republic had the lowest coverage, with a recording limited to application startup. Level 3 reached the highest coverage, with a recording that exercised its main functionality end to end. Recording scope appears to drive these differences, although the three applications do not isolate the factor experimentally.
The second question compares the trace with static analysis. Static analysis wins on breadth, because it reads every code path and manifest attribute regardless of what ran. Where both audits agree, static analysis says the code exists, and the trace proves the code ran at a specific moment in a specific process.
The trace alone caught eight things that this experiment's static audit did not identify, and these findings fall into five categories.
The value subsections above illustrate each category with screenshots and transitions, and they are the experiment's strongest argument for the trace.
Limits
The results also show where the approach stops. Recording coverage is the practical limit, and it showed in every application. Some data never appears in any TTD trace. Build configuration, source-level reads, server-side enforcement, and store metadata keep the verdict NOT OBSERVABLE FROM TRACE. Proving a specific bypass works still needs the attack to run, so the attack has to be part of the recording. Hardware-backed keys, fingerprint sensors, and second devices sit beyond an emulator, so a recording cannot show behavior that depends on them. We found no current MASTG test that needs that behavior, but an audit question that does falls to a person on the physical device. The method has one more limit: the LLM produced two false positives on Level 3. Both came from errors in the audit procedure, and the replay caught both.
Conclusion
Within these limits, the recordings were enough for an LLM to answer a substantial share of the applicable MASTG controls.
For a tester who works with MASTG, one recording answers questions across every layer, from the ART interpreter to the kernel, through one interface. Those answers come after the run, so they cover questions nobody planned for and tests that OWASP adds later. The recording also shows what static analysis did not reach: runtime-only code and strings, the whole life of a secret, and logs nobody captured. Because it does not trigger anti-debug, anti-tamper, or anti-hooking protections, the audit watches them run undisturbed. Emulator and timing checks can still fire.
Epoch supplies the recording and the MCP server, and the user brings the LLM.
Bring your own target to Epoch
Our team will show you how Epoch fits the way you work.
Want to explore first? Test the Epoch engine at ttd.eshard.com. Free, no sign-up, no credit card.
Bring your own target to Epoch
Our team will show you how Epoch fits the way you work.
Want to explore first? Test the Epoch engine at ttd.eshard.com. Free, no sign-up, no credit card.
Assume Capture. Engineer Resilience.
A practical framework on protecting autonomous systems against physical access, implementation attacks and cross-layer compromise.

