Credential Access (TA0006)(external, opens in a new tab or window)
Initial Access (TA0001)(external, opens in a new tab or window)
text code block:sequence by host.id with maxspan=15s [authentication where event.dataset == "macos.authentication" and host.os.type == "macos" and macos.event.message.description : ("Failed password for*", "Failed keyboard-interactive/pam for*", "error: PAM: authentication error for*")] with runs=10 [authentication where event.dataset == "macos.authentication" and host.os.type == "macos" and macos.event.message.description : "Accepted *"]
Install detection rules in Elastic Security
Detect Potential Successful SSH Brute Force Attack via macOS Security Events in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).