Gatekeeper is a macOS security feature that checks if downloaded apps were signed by identified developers before allowing them to be installed. It aims to protect users by blocking unauthorized code from being installed via the internet. When an unsigned app is downloaded, Gatekeeper displays an alert to get user approval before installation. However, Gatekeeper can be bypassed if malware exploits vulnerabilities to directly download payloads without triggering the quarantine checks. While Gatekeeper prevents many threats, high-tech adversaries may still be able to bypass its protections.