Security

Password hashing in Splunk

anandhalagaras1
Communicator

In one of the file the password seems to be present and the same has been getting ingested into Splunk. So is there any way to hash the password for that field so that it wont be visible in Splunk during searching eventhough it is present in the logs.

Tags (1)
0 Karma

woodcock
Esteemed Legend

Moving forward, you can use SEDCMD to strip it:
https://docs.splunk.com/Documentation/Splunk/latest/Data/Anonymizedata
or INGEST_EVAL to hash it (I would not bother):
https://splunkonbigdata.com/2019/03/22/ingest_eval/
Moving backward, you will have to reprocess it from original raw events OR use collect to re-index from existing events (then go back and delete the old evetns):
https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Collect

0 Karma

PavelP
Motivator

I don't think it is possible, but I can suggest a workaround:
You can mask passwords with SEDCMD command during the ingestion and send it to one index and send unmodified events into other index, which can be accessed by you only.

Let me know if it solves your question. If not - try to describe your use case so may be somebody can give your better solution.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...