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
- Packing or encrypting the code section, so the real code is unpacked only in memory at launch.
- Calling
ptracewithPT_DENY_ATTACH, or asking the kernel throughsysctlorcsopswhether a debugger is attached. - Reading hardware details such as
hw.model, processor counts, memory size orkern.hv_vmm_presentto spot a virtual machine, then staying idle. - Looking for instrumentation tools such as Frida, or for security products and process viewers, and pausing while Activity Monitor is open.
- Hiding strings with XOR, building them a character at a time, or looking up functions by name at run time so they do not appear in the import list.
- Obfuscating JavaScript or Python with known obfuscators, or assembling shell commands from fragments and running them with
eval. - Waiting a long time before acting, to outlast automated sandboxes.
- Erasing traces: clearing shell history, emptying the quarantine database that records where downloads came from, changing file dates, deleting itself or hiding files from the Finder.
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
- Run
codesign -dvon an unfamiliar app to see whether a known developer signed it; obfuscation from an unsigned or ad hoc signed program deserves more caution. - If a program quits or changes behavior as soon as you open Activity Monitor, note its name and look for it in your Login Items.
- In Terminal,
ls -laon a folder shows hidden files whose names start with a dot. - Be wary of instructions that ask you to paste long encoded commands into Terminal.
- Check System Settings > General > Login Items & Extensions for items you cannot explain.
Related categories
- Hidden payload: A second program carried out of sight: encoded, encrypted, appended after the file's end or tucked into resources.
- Runtime code loading: Code the program loads or makes while it runs: libraries opened by name, functions looked up with dlsym, memory made executable, program images built from a buffer. Browsers, plug-in hosts and JIT engines all do this.
- Masquerading: A file that presents itself as something else: a misleading name, icon or extension, a label imitating Apple.
- Machine reconnaissance: Reading facts about this Mac: hardware, system version, user, running processes, installed security tools.
On the blog
- Fake ChatGPT, Grok and Brave Talk disk images
- AMOS in November 2026: the script is no longer in the file
- DigitStealer doesn’t just rob Ledger Live. It reconfigures it.
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.
Free for 7 days, then $29.95 a year for 2 Macs, a launch price: the regular price will be $59 a year. Requires macOS 15 Sequoia or later on a Mac with Apple silicon.
More: all detection categories · what MacVigil detects · the blog