Splunk Enterprise Security

Splunk ES - Detect Cleartext Passwords search not working

efheem
Explorer

Hello,

I have  the below use case to detect Cleartext Passwords at rest

| from datamodel:"Compute_Inventory"."Cleartext_Passwords" | stats max(_time) as "lastTime",latest(_raw) as "orig_raw",values(tag) as "tag",count by "dest","user","password"

This datamodel runs the below search query 

(`cim_Compute_Inventory_indexes`) tag=inventory (tag=cpu OR tag=memory OR tag=network OR tag=storage OR (tag=system tag=version) OR tag=user OR tag=virtual) tag=user password=*

But I am not getting any results. There are events like below which says password=x (I know its fetching from /etc/passwd) and not cleartext password, but still, I do not see any results when I do a pivot. Can someone please tell me why?

 

 

image.png

When I remove password=* and do a preview, I see password=x. Password is properly being extracted as a separate field when I run the query for its sourcetype and index.

 

image.png

0 Karma

BenjaminAbben
SplunkTrust
SplunkTrust

Hi,

 

its an old question but for other people that are having this problem.

 

for your datamodel to work you need to fill that datamodel with your events in order to get that datamodel filled.

next is that there must be events (so create a test event) to know what to add towards that model.

 

see splunk doc's how to ingest data into an datamodel.

 

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...