Getting Data In

Opps. Passwords in UserID field

dokaas_2
Communicator

You'd be surprised at how many times a user will type their password in the UserID field. This shows up in a Windows EventCode=4625. By itself it wouldn't be an issue since in a single 4625 event you don't know the userID. However, if you correlate that to other events on the same host, you probably can figure out both the username and password. You'd want to keep the usernames in the field if they didn't look like a password. So my question is this:

Q: How would one propose to selectively find usernames that look like passwords and then substitute a character string (e.g. "********") at index time?

0 Karma

woodcock
Esteemed Legend

Here are 2 apps that can help:
https://splunkbase.splunk.com/app/3109/ (for fuzzy matches)
https://splunkbase.splunk.com/app/2734/ (for shannon entropy)

0 Karma

richgalloway
SplunkTrust
SplunkTrust

It depends. What does a username look like? What does a password look like? Can a password look like a username or vice versa?
If usernames are only alphanumeric (other than system accounts that end with "$") and passwords always have a special character in them then you may be able to define a regex that looks for special characters in the username field and masks the field if any are found.
If your usernames allow special characters or you use modern password rules that don't require special characters then what you want to do becomes much more of a challenge.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...