Splunk Search

How can I use Splunk to determine Phishing attempts?

Yancy
Path Finder

What are some methods of determining anomalous login behavior with Splunk?

1 Solution

Yancy
Path Finder

One method we've been using is looking for multiple failed logins from a single IP.

sourcetype="some source where login attempts are logged" ipaddress!=10.* NOT Succeeded| stats distinct_count(loginname) AS logincount by ipaddress | where logincount > 10

IE: For all ips not in our local subnet and without a "Succeeded" message in our application access log, provide stats on each login grouped by ipaddress, and only show me the results where 10 or more accounts had unsuccessful access attempted to.

Another method:

If you know the site that is phishing user data, you can also use Splunk to create a honeypot. To do this setup a saved search & alert on some sort of input value known only to you, and then use that value on the site. If the value you provided is attempted, you'll get an alert (hopefully with the data necessary to mitigate further). This is helpful as often the site phishing the data is not the IP that is attempting to re-use and exploit the data.

View solution in original post

Yancy
Path Finder

One method we've been using is looking for multiple failed logins from a single IP.

sourcetype="some source where login attempts are logged" ipaddress!=10.* NOT Succeeded| stats distinct_count(loginname) AS logincount by ipaddress | where logincount > 10

IE: For all ips not in our local subnet and without a "Succeeded" message in our application access log, provide stats on each login grouped by ipaddress, and only show me the results where 10 or more accounts had unsuccessful access attempted to.

Another method:

If you know the site that is phishing user data, you can also use Splunk to create a honeypot. To do this setup a saved search & alert on some sort of input value known only to you, and then use that value on the site. If the value you provided is attempted, you'll get an alert (hopefully with the data necessary to mitigate further). This is helpful as often the site phishing the data is not the IP that is attempting to re-use and exploit the data.

jrodman
Splunk Employee
Splunk Employee

Consider accepting your answer 😄

0 Karma

piebob
Splunk Employee
Splunk Employee

i ❤️ your icon!!!

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...

Index This | How many sevens are there between 1 and 100?

August 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...