OpenXTalkPaul wrote: ↑Tue Jan 21, 2025 5:21 am
tperry2x wrote: ↑Sun Jan 19, 2025 10:28 am
Save the script and copy it to another mac. It'll run unchallenged because it's a signed application...
Are you sure? I mean I thought AppleScript applets were ad-hoc signed for the user that saved it as an app, so it shouldn't work if you move it to another mac unless you signed it using a certificate that is also installed on the other mac's keychain. If not i would think that would trigger 'Gatekeeper' or it would at least ask the user permission to run. I could be wrong though.
Only as far as I can test here. I have about 6 macs - all on either MacOS 11 and MacOS 14.
4 of those are in a fairly 'vanilla' state - no gatekeeper mods and such, and as long as I don't transfer the script via the web (avoiding 'mark of the web' being set) - then it runs unchallenged on them.
Perhaps Applescript apps are automatically 'signed' with an ad-hoc cert or an apple dev cert???
Not sure what MacOS 15 does, but I don't have the motivation to try it quite frankly.
OpenXTalkPaul wrote: ↑Tue Jan 21, 2025 5:34 am
With any development tool, you could create and run malicious code. Which is allegedly the reason Apple wants people to use XCode (and not VSCode or similar), plus
code-signing with dev's certificate, submited for review, notarized, stapled (not kidding), and in triplicate
All that (emphasis mine to show the 'that') - it's a real shame to see the hole that Apple have currently dug themselves into. (...and are still trying to dig themselves out of...)
Despite all these steps Apple have embedded into the OS, the tools already exist within it to attack it from within. With system integrity protection, that does harden the underlying core of the OS, but does absolutely nothing to stop anything in a user's ~/ home folder (and anything running with inherited permissions within that context) to also do anything inside of ~/ too. Yes, you might not be able to take down the entire system, but you can lose all the data from that account, and even render the account incapable of being logged into. Kind of makes a mockery of all their security measures - you will never save users from themselves.
I can quite easily write a malicious C application from xCode, sign it for development, and the rest is just persuading the user to run it. Surely that's a huge issue?
So although Apple are doing their best to batten down the hatches, what they are doing in the process is gradually making their OS unusable. It will be so tightly sandboxed that is may as well be iOS, where nothing can be sideloaded. That's the only way you'd stop these kind of things running. At which point, development of anything that's not going via the Mac App Store won't be possible.