Detections · What MacVigil reads to decide
What this file is: file types and format anomalies on a Mac
Before judging what a file does, you need to know what it is: an app, a command-line program, a library, a script, a document, an archive. Most format details are routine. A few anomalies, such as a header no compiler produces or an archive path that escapes its folder, are worth noticing.
Updated November 25, 2026 · 108 detections in this category
In short
The kind of file and any anomalies in its format. These findings describe; they do not accuse.
MacVigil has 108 detections in this category. It reads the file to find them and never runs it.
What it is
A Mac file’s format says how macOS will treat it. A Mach-O program declares its architectures, load commands, sections and the routines that run when it loads. An app bundle has fixed places for its code. An archive lists its entries, and a document may declare macros or actions that run when it opens.
For an attacker, the format is something to bend: hand-crafted headers that confuse analysis tools, archive entries that land outside their folder, code tucked into an unusual corner of an app, or routines that run before the program’s main function.
How Mac malware does it
- Archive entries whose path leaves the extraction folder (“zip-slip”), symbolic links that point outside it, or two names for one entry, so the file analyzed differs from the one extracted
- Mach-O headers with impossible sizes or counts, sections past the end of the file, or segments with unknown names, made by hand rather than by a linker
- Executables that link no system library at all and call the kernel directly
- Programs or scripts placed outside the folders meant for code in an app, or browser extensions that carry binaries
- Code that runs at load time through initializers or Objective-C
+loadmethods, beforemain - Libraries that define
main, or declare interposition pairs to redirect calls once injected withDYLD_INSERT_LIBRARIES - An Electron app started in Node mode with
ELECTRON_RUN_AS_NODE, which then runs whatever script it is given - Documents that declare actions: Office macros set to run at opening, PDF actions with a trigger
- An app that always refuses to quit and whose window always refuses to close, keeping a screen in front of the user
What MacVigil looks for
MacVigil reads the file and never runs it. It identifies the kind of file and reads its structure: Mach-O headers and load commands, universal binaries, app bundles, Go and Rust programs, Electron archives, Office and PDF documents, HTML pages, project files and AI assistant instructions. It also notes what it could not read, such as encrypted App Store code, compiled JavaScript bytecode or a load routine whose end was not found, so you know where the analysis stopped.
These findings describe; they do not accuse, and most are for information. A few anomalies are rated high, some even critical, because they let one file be checked and another be written to disk, such as an extraction path that escapes the archive. The report also warns when a file changed while it was being analyzed.
When it is normal
Almost every finding here also describes healthy software. Apps contain many binaries, C++ programs run initializers before main, App Store apps have encrypted code, umbrella libraries re-export symbols, old programs target architectures a current Mac no longer runs, Xcode projects run build scripts and CocoaPods runs install commands. Source code, static libraries and web shortcuts created by a browser are ordinary files too.
How to check your Mac
- In Terminal,
filefollowed by a path tells you what kind of file something really is, whatever its name or icon says. - In Finder, select a file and choose File > Get Info: the Kind line shows whether a “document” is really an app.
- Turn on Finder > Settings > Advanced > Show all filename extensions, so a name like
invoice.pdf.appcannot hide its real type. - Right-click an app and choose Show Package Contents: its code normally lives in
Contents/MacOS,Contents/FrameworksandContents/PlugIns. - Open Office documents from unknown senders with macros turned off.
Related categories
- How it is packaged: The archive, disk image or installer package that carries the content, and what it holds.
- Hidden payload: A second program carried out of sight: encoded, encrypted, appended after the file's end or tucked into resources.
- Analysis resistance: What makes a program harder to examine: packing, obfuscation, debugger and virtual-machine checks, erased traces.
- Code injection: Placing code inside another program: loading a library into it, writing its memory, hooking its functions.
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