In Short

Gatekeeper is Apple's first line of defense against Mac malware and adware. It forces the operating system to check for the presence of a signed digital certificate proving the app developer's credentials.