Defending macOS Against Sophisticated Attacks