Elastic high stable eql

Potential Successful SSH Brute Force Attack via macOS Security Events

Identifies a burst of failed inbound SSH authentication attempts on a macOS host followed shortly by a successful SSH authentication on the same host, using sshd authentication messages collected by the macOS Security Events integration. A successful login immediately after repeated failures indicates that a password brute force or password spraying attack against an exposed SSH service has likely succeeded.

View Source

Detection Logic

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 *"]

Field Validations

Loading…

Comments (0)

Loading comments...