Detections · Harmful behavior
Gatekeeper and protection bypass on a Mac: switching off the checks
macOS checks software before it runs: Gatekeeper looks at the signature and notarization of anything you downloaded, System Integrity Protection guards the system, and security apps watch what happens. Malware that turns these checks off, or slips around them, gets to run without the warning that would have stopped you.
Updated November 25, 2026 · 103 detections in this category
In short
What turns off or sidesteps the checks macOS applies to software: Gatekeeper, quarantine, SIP, code signatures.
MacVigil has 103 detections in this category. It reads the file to find them and never runs it.
What protection bypass means
When you download a file, macOS marks it with a quarantine attribute. The first time you open it, Gatekeeper checks who signed it and whether Apple notarized it. A protection bypass removes that mark, replaces the signature, turns the check off or quietly approves a security request in your place. The attacker gains a program that runs as if it had been vetted, and often a Mac with fewer defenses for what comes next.
How Mac malware does it
- Removing the quarantine mark with
xattr -d com.apple.quarantine,xattr -cor their recursive forms, then launching the file, sometimes also emptying the download history database. - Re-signing a program with an anonymous ad hoc signature (
codesign --force --sign -), which erases the vendor’s signature after the code was modified. - Asking to turn off Gatekeeper with
spctl --master-disable, or System Integrity Protection withcsrutil disable, or a configuration profile that disables assessment. - Shipping an app built so Gatekeeper does not treat it as an app, for example with no
Info.plistand a script as its program. - Trusting a new root certificate with
security add-trusted-certand changing DNS servers, the proxy or/etc/hosts, so encrypted traffic can be intercepted. - Clicking through security prompts: an AppleScript that presses “Always Allow” in a
SecurityAgentwindow, or a profile that pre-approves privacy permissions. - Stopping another vendor’s antivirus, firewall or endpoint agent, or hiding while a process viewer is open.
- Covering tracks: clearing shell history, closing the Terminal window that ran the command, erasing the unified log, rewriting file dates.
- Weakening other defenses: turning off automatic security updates, disk encryption, library validation, macro warnings or certificate checks in a browser.
What MacVigil looks for
MacVigil reads the file and never runs it. A bypass command on its own is a request, not a success: a line with xattr -d or spctl --master-disable is recorded without claiming it worked. Stronger findings tie the bypass to what follows: the same file that loses its quarantine mark is the one launchd starts; one function re-signs a file and then launches a command; a certificate is trusted from a folder the program itself created.
Several combinations also require that no accountable publisher stands behind the program, and when the pieces are only separate mentions, MacVigil says so and does not claim they are linked or that any ran.
When it is normal
IT deployment and fleet management tools remove quarantine marks, install certificates, manage updates and pre-approve permissions through profiles. Web debugging proxies install a root certificate. Company security tools add exclusions, maintenance scripts erase logs, and developers re-sign their own builds ad hoc. What matters is who installs it, and whether it hides.
How to check your Mac
- Run
spctl --statusin Terminal: it should answer “assessments enabled”. Runcsrutil status: it should say System Integrity Protection is enabled. - Open System Settings > Privacy & Security > Profiles (or General > Device Management on recent macOS) and remove profiles you did not install.
- In Keychain Access, open the System keychain and look for root certificates you do not recognize.
- Check System Settings > General > Software Update > Automatic Updates and keep security responses and system files on.
- If an app needs you to run
xattror disable Gatekeeper to open, treat that as a red flag rather than a fix.
Related categories
- Analysis resistance: What makes a program harder to examine: packing, obfuscation, debugger and virtual-machine checks, erased traces.
- Privacy-permission bypass: Camera, microphone, screen and protected folders sit behind permission prompts; this is what touches those permissions.
- Masquerading: A file that presents itself as something else: a misleading name, icon or extension, a label imitating Apple.
- Who stands behind this file: Who signed this file, whether Apple notarized it, and whether it changed since.
On the blog
- “App is damaged and can’t be opened” on a Mac
- “macOS cannot verify that this app is free from malware”
- Are cracked Mac apps safe?
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