Detections · What MacVigil reads to decide

Analysis resistance on Mac: packing, obfuscation, anti-debugging and erased traces

Some programs work hard not to be understood. They scramble their code, refuse debuggers, check whether they run in a virtual machine and erase the traces they leave. None of this is harmful by itself, and honest software does some of it, but when a program hides what it does, you want to know what it is hiding.

Updated November 25, 2026 · 135 detections in this category

In short

What makes a program harder to examine: packing, obfuscation, debugger and virtual-machine checks, erased traces.

MacVigil has 135 detections in this category. It reads the file to find them and never runs it.

What analysis resistance is

Analysis resistance covers everything that makes a program harder to examine: code packed or encrypted so it is unreadable on disk, names and strings obfuscated, checks that detect a debugger or an analysis lab, and commands that remove evidence afterward.

Malware authors use it to slip past scanners and to behave innocently when a researcher is watching, saving the real behavior for an ordinary user’s Mac. That is why MacVigil reports it as context, not as a verdict: it explains why a file is hard to read, and it matters most when it guards a harmful step.

How Mac programs do it

What MacVigil looks for

MacVigil reads the file and never runs it, and it reads through much of the disguise. It decodes obfuscated JavaScript and known packers, substitutes the fragments a script assembles to reveal hidden commands, reverses text written backward, and recovers encrypted strings by stepping through the program’s own decoding routine on a private copy of its bytes.

It reads probes of the analysis environment at their call sites, grouped by family: debugger, virtual machine, instrumentation, injected libraries and timing. Several families in one function weigh more than probes spread across unrelated functions, and the highest rating goes to a program with no accountable publisher that runs probes from several families in one function. It also reports a script whose download or password prompt sits inside the branch of a machine check.

Single mentions, such as the name of a debugger or virtualization product, are low or informational. A name is not an act, and analysis resistance alone does not make a file dangerous.

When it is normal

Commercial apps protect licensed code with packers, obfuscators and encrypted segments, and games guard against cheating with debugger checks. Crash reporters take over exception handling, and inventory tools read hardware details. MacVigil weighs these signs by who stands behind the file and by what else it does.

How to check your Mac

On the blog

Know what a file does before you open it

MacVigil reads any app, disk image, installer or script without running it, and shows the evidence behind every finding. Nothing leaves your Mac.

Download free for Mac

More: all detection categories · what MacVigil detects · the blog