Splunk Search

Restricted search question

klim
Path Finder

I am trying to set up a restricted search for a role so that they can only see data when a field1=customer01. The default way was to do it by field1::customer01 but that didn't show any results when I previewed the results. Instead I did field1=customer01 and that worked. Is there a reason why field1::customer01 doesn't generate any results?

Labels (2)
Tags (1)
0 Karma

venkatasri
SplunkTrust
SplunkTrust

Hi @klim 

Splunk advises to use indexed fields for searchFilter, in your case field1 is a non indexed field so if you wish  to avoid security issue you shall covert field1 to a indexed field and use :: which is a best practice.

Using = Operator  a smart splunk user using 'user knowledge Objects' (means they are scoped to user itself not shared across) can take  advantage and bypass filter to query the data that they are not supposed to access. 

-------------------------------------------------------------------

An upvote would be appreciated if it helps!

0 Karma

venkatasri
SplunkTrust
SplunkTrust

Hi @klim 

Your 'field1'  could be a search-time field. :: works for indexed fields.

---------------------------------------------------

An upvote would be appreciated if it helps!

klim
Path Finder

@venkatasri thanks that helps. Is it okay to use field1=cust01 ? I have tested it and it works but splunk just said there may be a security concern mentioned below in the docs at the bottom of the page.

https://docs.splunk.com/Documentation/Splunk/8.0.3/Security/Addandeditroles?ref=hk  

0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...