Potential User Authentication Prompt Phishing
Description
Identifies attempts to coerce the victim to enter their credentials via spawning a browser child process from an unusual parent process pointing to a URL that resembles a legitimate authentication prompt.
Query · eql
process where event.type == "start" and event.action == "exec" and process.name in (
"zenity", "kdialog", "yad",
"ssh-askpass", "ssh-askpass-gnome", "gnome-ssh-askpass",
"ksshaskpass", "lxqt-openssh-askpass",
"pinentry", "pinentry-gnome3", "pinentry-gtk-2", "pinentry-qt"
) and
process.parent.executable like ("/tmp/*", "/var/tmp/*", "/dev/shm/*", "/run/user/*", "/var/run/user/*", "/home/*/*", "/root/*") and
process.command_line like~ (
"*password*", "*passwd*", "*credential*", "*login*", "*authentication*", "*sudo*", "*ssh*", "*wallet*", "*keyring*",
"*token*", "*2fa*", "*mfa*", "*pin*", "*secret*"
) and not (
(
process.name in ("pinentry", "pinentry-gnome3", "pinentry-gtk-2", "pinentry-qt") and
process.args == "pinentry"
) or
(
process.name in ("ssh-askpass", "ssh-askpass-gnome", "gnome-ssh-askpass", "ksshaskpass", "lxqt-openssh-askpass") and
process.parent.executable in ("/tmp/newroot/usr/bin/ssh-agent", "/tmp/newroot/usr/lib/git-core/git-remote-https", "/tmp/newroot/usr/bin/ssh")
)
)