Safeguards for risky commands
Splunk Enterprise contains built-in search processing language (SPL) safeguards to warn you when you are about to unknowingly run a search that contains commands that might be a security risk. This warning appears when you click a link or type a URL that loads a search that contains risky commands.
The warning does not appear when you create ad hoc searches.
This warning alerts you to the possibility of unauthorized actions by a malicious user. Unauthorized actions include:
- Copying or transferring data (data exfiltration)
- Deleting data
- Overwriting data
A possible scenario when this might occur is when a malicious person creates a search that includes commands that exfiltrate or damage data. The malicious person then sends an unsuspecting user a link to the search. The URL contains a query string (q) and a search identifier (sid), but the sid is expired. The malicious person hopes the user will use the link and the search will run.
Commands that trigger the warning
The commands that trigger this warning are listed here:
Actions in the warning dialog box
Instead of running the search immediately, Splunk Enterprise analyzes the search for risky commands. If one or more risky commands are identified, a warning dialog box appears. You have the option to cancel, run, or investigate the search.
- Closes the warning dialog box. The search does not run and the search is removed from the Search bar. Closing the dialog box, by clicking the Close button (X), is the same as clicking Cancel.
- Runs the search.
- Displays the search in the Search bar so that you can review the SPL. Use this option to copy the syntax of the search. Send a copy of the search, along with any information about the source of the link, to your system administrator.
Turning off the warning
Only users with Write permission can edit the
web.conf file to turn off the warning dialog box.
You can turn off the warning for a specific command, or for all of the risky commands.
Turn off the warning for a specific command
- 1. Copy the
commands.conffile, which is located in the
- 2. Paste the copy of the file in the
- 3. Locate the command and change the setting from
is_risky = trueto
is_risky = false.
- 4. Restart Splunk Enterprise.
Turn off the warning for all of the commands
- 1. Open the
web.conffile. This file is located in the
- 2. Change the
- 3. Restart Splunk Enterprise.
In the Admin Manual:
Manage data integrity
Splunk server tokens
This documentation applies to the following versions of Splunk® Enterprise: 8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.5, 8.0.6, 8.0.7, 8.1.0