MacOS has built-in protections to prevent this sort of attack, including Gatekeeper. But this hack got around those safeguards by abusing iCloud and Safari features that macOS already trusts.
Support the originator by clicking the read the rest link below.