macOS includes a technology called Gatekeeper, which is designed to make sure that only trusted software runs on your Mac. The safest place to get apps for your Mac is the App Store. Apple reviews each app in the App Store before it’s accepted, and signs it to make sure that it hasn’t been tampered with or altered. If there’s ever a problem with an app, Apple can quickly remove it from the store.