Clean instruction Trapped by debugger
drag = pan · scroll = zoom

Anti-Debugging Timing Trap 2D: Statistical Threshold Visualizer

Mobile app hardening rarely relies on a single defense — it stacks code obfuscation, encryption and runtime checks like this one: a timing-based anti-debugging trap. A hardened app reads a monotonic clock before and after a guarded code region and compares the elapsed time against a statistical baseline calibrated from clean runs. This 2D side-view simulator renders that guarded region as a stream of instruction blocks crossing two checkpoint gates on a pannable, zoomable track, while a live histogram beneath it plots the clean-baseline distribution alongside the mean+kσ threshold and every measured Δt. Toggle a debugger attachment to inject the per-instruction single-step overhead a real tracer imposes, watch the measured Δt climb past the threshold on both the track and the histogram, and tune the instruction count, trap overhead and sensitivity to see the same detection-vs-false-positive tradeoff mobile security engineers face when hardening a production app against reverse engineering.