Apple patches macOS flaw exploited by malware to secretly sn