“The app is damaged”: what the message means and what to do
macOS sometimes refuses to open an app and says it is damaged, or that it cannot be checked for malicious software. The wording sounds final. On a research Mac it is often a download problem, or the system introducing itself to an app that did not come from the App Store. This note is the version I send when someone in the lab pastes the warning into chat.
What the message is saying
Read the sentence once, slowly. "Damaged" can mean the file on disk is not the file the developer packed. It can also mean Gatekeeper looked at the app, did not see a check it trusts, and used a blunt phrase. Those are different problems. The first wants a new copy. The second wants a decision about that one app, not a new policy for every app on the machine.
I do not treat the dialog as a verdict on the program's quality. A half-written disk image will fail this way. So will an app that is simply new to this Mac. The next step is to tell those apart, starting with the file you just downloaded.
A download that stopped halfway
Browsers will sometimes keep a partial file and give it the right name. The icon looks normal. The app does not open. Before you change any security setting, download the disk image again from the same place, and throw the first copy away so you do not open it by habit.
Check the size against the catalog line if one is printed. A file that is a sliver of the expected size did not finish. A file that matches is still not proof of anything grand. It only means you probably have the whole archive, which is the condition for the next step.
The disk image and Applications
Open the .dmg. Drag the app into the Applications folder. Eject the disk image. Then open the app from Applications, not from the mounted window and not from Downloads.
Running it from the disk image is a common way to get a confusing second warning, and it leaves you with a copy that disappears when you eject. The Applications copy is the one that stays. If the app needs a helper or a menu-bar allowance, macOS will ask when you open that copy. Answer for that app.
An app from outside the App Store
A lot of the catalog is not in the App Store. macOS is allowed to be suspicious of that. The usual path, when you have decided you trust this particular download, is the one Apple documents for opening an app anyway: the warning, then Open in the Finder's context menu, or the matching button in Privacy and Security for that app. It is a per-app decision.
I am not going to paste a Terminal one-liner on this page. Those lines get forwarded in lab chats and applied to the wrong file, or to every app at once. If a colleague asks for the command, the better reply is the fresh download and the per-app Open. The command can wait until you know which file you are pointing it at, and it does not belong in a shared note.
What I leave alone
I do not turn off Gatekeeper for the whole Mac to finish one install. I do not install a "cleaner" that offers to fix the warning. And I do not keep opening the partial file to see if the message changes. A new copy, dragged to Applications, answers the question more often than a settings tour.
If the fresh copy still will not open, stop and say so in the comment on that program's page: which macOS version, the exact warning, and whether the file size matched. That is a useful note. A screenshot of a Terminal window with a bypass in it is not the note I want on this site.