-1

According to this, in macOS Ventura, Gatekeeper should detect changes to signed & notarized applications not only before the first start of the downloaded application, but on every application start.

Our application is an electron app, so it consists of a lot of *.js files. I tried changing one of the *.js files (I inserted a comment at the beginning of the file), and I also changed a *.json file which contains confirgurations.

Neither of the changes bothered Gatekeeper. I could happily start the tampered app without any warning. Is that an expected behaviour? I'm aware that *.js files are not directly executable by the OS, but they still contain executable code, and changing *.js files can of course seriously break the application.

UPDATE

when I execute gateKeeper after editing my config.json file, by using the command spctl -a -vvv -t execute "/Applications/MyApp.app", the system responds with the message: a sealed resource is missing or invalid. If I revert the change, the message is accepted. So GateKeeper does notice the change. So how comes that the application can still be executed by the user?

Urs Meili
  • 618
  • 7
  • 19
  • Just to be clear: These files you have modified are in the scope of the notarization, i.e. possibly in the built `*.app`? If so, shouldn't building to an ASAR archive (as is default with, e.g., Electron Builder) mitigate this to some extent? As a side note, what's the point of storing configuration in files if it should essentially be set in stone (by signing it) once the app is built? – Alexander Leithner Aug 16 '23 at 08:39
  • @AlexanderLeithner see my "update". yes, they are part of the built `*.app`, and if I execute `spctl` manually, changes to those files get detetecd. We store the configuration in a file because we have multiple app builds customized for different countries. the executables themselves are the same, but some config values are different. So the user can just download the build suitable for his country, and it can be run without further configuration. – Urs Meili Aug 16 '23 at 09:13

0 Answers0