Is possible to know the Checksums of any Install MacOS X?

Hi,


I would like to know if is possible to get the checksum (shasum) of any Install MacOS from any bootable storage, In

this example I found an image with an Install MacOS Sierra bootable SD:

User uploaded file

If it is possible will I get the same the same SHA1 checksum from the list of checksums publish here:

GitHub - notpeter/apple-installer-checksums: Checksums of Mac OSX installer DMGs ?


Thanks in advance for any help you can provide me

MacBook Pro (Retina, 15-inch, Mid 2014), iOS 11.0.3, null

Posted on Nov 3, 2017 12:08 PM

Reply
11 replies

Nov 3, 2017 12:32 PM in response to jedikeeper

Hello jedikeeper,

That GitHub page has instructions for running the shasum command. You would just change the starting path from "/Applications" to wherever your files are installed.


However, that GitHub page is also completely invalid. I don't know what it is trying to claim. It is only running the checksum against one file in the installer package. It would be trivially easy to re-package that into a malware installer that passes the checksum test in flying colours. Strong cryptography is important, but so is knowing your domain and asking the right questions.

Nov 3, 2017 1:25 PM in response to jedikeeper

jedikeeper wrote:


So in few words, I only have to move the file "Install MacOS Sierra" TO "/Applications" and follow the instructions of GitHub page for running the shasum command? just to check if I understood


Thanks

I wouldn't recommend that. I suggest running the following command in the Terminal:


shasum "/Volumes/Install macOS Sierra/Install*OS*.app/Contents/SharedSupport/InstallESD.dmg"


(That should all be on one line.)

(And it is conveniently broken on a space character which is not optional.)


Why do you even want to do this in the first place?


dialabrain is correct that macOS installers, and your currently running macOS version have built-in security checks for these kinds of things. But those security checks are meant for files downloaded over the internet. I am not sure if they would apply to something you copied from an SD card. Furthermore, my point above was that there is no guarantee this file is a macOS installer. You could run the above command and it would probably print out a valid checksum. But that doesn't mean anything. It doesn't mean this is a valid installer.


The whole circumstances of some random file on an SD card and someone trying to perform a fatally flawed manual security check on said file is highly suspicious. Again, why are you doing this? Where did this file and the SD card come from? The only valid way to get Sierra is by downloading it. If you didn't download this file, do NOT copy it to your machine.

Nov 6, 2017 12:23 PM in response to jedikeeper

jedikeeper wrote:


I want to do this in first place and why I am doing this? is because every time I read at MacRumors a new build was released and ready to download from the Apple Store I created a bootable medias and save them in a SD Cards, the SD cards are the only storage media my old work always gave us as storage media, So I have a lot of previous versions I don't need anymore and I want to delete


Can you please elaborate "I am not sure if they would apply to something you copied from an SD card" I didn't get what do you mean

Hello again jedikeeper,

I was concerned that maybe someone had given or sold these SD cards to you so that you could avoid the massive download. I thought maybe you were trying to use this checksum as a means to validate the integrity and security of the installer.


If these are SD cards you made yourself and downloads that you made yourself, then obviously you don't have to worry about that.


I took a quick look at my archived files and I can't find any better way to see what the underlying download version is.


However, I would take this one step further. I suggest every year you just download a new copy of every installer in your purchase history. Take care to jump through the new hoops that Apple has added with Sierra (How to download macOS High Sierra - Apple Support) and probably High Sierra later. This way, you will always have the latest version of old installers. Plus, you will get a new installer with potentially a longer-lasting certificate. Sometimes those things expire. If you have installers form 2+ years ago, they may not even work anymore. Maybe test them with the wonderful Parallels Desktop Lite on the Mac App Store.

Nov 6, 2017 9:01 AM in response to etresoft

etresoft wrote:


Why do you even want to do this in the first place?


Again, why are you doing this? Where did this file and the SD card come from?

I want to do this in first place and why I am doing this? is because every time I read at MacRumors a new build was released and ready to download from the Apple Store I created a bootable medias and save them in a SD Cards, the SD cards are the only storage media my old work always gave us as storage media, So I have a lot of previous versions I don't need anymore and I want to delete


So, running the following command in the Terminal for Sierra:

shasum /Volumes/Install\ macOS\ Sierra/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg


I got


:~ xxxxxxxxxxx$ shasum /Volumes/Install\ macOS\ Sierra/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg

1432e3be6222c434b536721076ed8b16b1c6050e /Volumes/Install macOS Sierra/Install macOS Sierra.app/Contents/SharedSupport/InstallESD.dmg


Usign the GitHub page I found, this an old version 10.12.2 Sierra (16C67), I continue hashing my bootable medias and all of them are previous version and only one of them is 10.12.6 Sierra (16G29)


Same with El Capitan


shasum /Volumes/Install\ OS\ X\ El\ Capitan/Install\ OS\ X\ EL\ Capitan.app/Contents/SharedSupport/InstallESD.dmg

All of them are previous version except two of them that are 10.11.6 El Capitan (15G31), Checsum: 7739e3f62080000da5d28efa689c53976112a262


Can you please elaborate "I am not sure if they would apply to something you copied from an SD card" I didn't get what do you mean


By the way I never found build 10.11.6 El Capitan (15G1010) I don't know why 😕ℹ➕


So based in the checksum I did and the terminal command I wrote I can delete all the previous versions I have


Am I right?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Is possible to know the Checksums of any Install MacOS X?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.