Category: Splunk

  • How to Avoid Skipped Searches in Splunk Cloud

    How to Avoid Skipped Searches in Splunk Cloud

    By Kamal Dorairaj, Senior Splunk Consultant

    When working in Splunk, scheduled searches often skip or cannot execute for one reason or another. If a search got skipped, a scheduled job waits on the line for the search slot and the job sits in deferred status. If the scheduling window expires, the search does not run and the job resets to skipped status.


    Reports, alerts, data models and many app dashboards like Enterprise Security (ES) depend on your scheduled searches. When these searches do not run in the scheduled time window, the overall Splunk environment becomes unreliable because of missing data or incorrect data in the dashboards and reports. This can cause you to miss crucial alerts and can slow the performance of dashboards.

    How to Find Skipped Searches in Splunk Cloud

    The below spls show any scheduled searches that are being skipped, the reason why and the savedsearch name. Time range of last 7 days is a good place to start, and can go back up to 30 days.

    index=_internal sourcetype=scheduler status=”skipped” | stats values(savedsearch_name) count by reason
    index=_internal sourcetype=scheduler savedsearch_Name=* status=skipped | stats count by reason
    

    Skipped Search Reasons and Solutions

    These are the most common reasons for skipped searches in any Splunk Cloud stack:

    Reason 1: The maximum number of concurrent running jobs for historical scheduled searches on this instance or cluster has been reached.

    Explanation: By default, only one instance of a given search is kept running at the same time. Therefore, if the search is already running for scheduled_time and when the next cron scheduled _time comes due for the next run, the scheduler will not execute the next job. So, the next scheduled search job is skipped now because the previous scheduled search job for the same saved search is still running. Example: The cron schedule configured to run the search every 5 minutes but the search itself takes 10 minutes to complete.

    Solution:
    a. Tune the spl of the search job to run within the configured time window. If possible, shorten the earliest time for the job.
    b. If you cannot improve the search runtime, then increase the cron period to make sure it’s more than the search execution time.

    Reason 2: The maximum number of concurrent historical scheduled search on this cluster has been reached or the maximum number of concurrent auto-summarization searches has been reached.

    Explanation:
    Each Splunk cloud stack is configured to run a maximum number of concurrent searches. We can find it under Settings -> Search Preferences -> Limits set for scheduled searches and summarization searches. As a cloud customer, set these values in the backend in the limits.conf. When we change the percentage from 50% to 75%, we can see the number of search slots for the scheduled searches and summarization searches (DM) increased. Before increasing this concurrency limit, please make sure all the best practices listed in the below Solution section are implemented. Example: If a DM skipped for last 5 minutes acceleration then when it runs the next time it tries to run for last 10 minutes data. If that is also skipped, the next time it tries to run for last 15 minutes data and keeps accumulating.

    Solution:
    a. Avoid scheduling search jobs at the top of the hour, like 10:00 am, 11:00 am or 10:30 pm, 11:30 pm, etc. It means we are scheduling too many searches at the same time. Tune the cron schedules of the scheduled jobs to fire on different minutes, which makes the load spread through the hour/day.
    b. Disable unused scheduled searches. Remove unused apps and TA’s.
    c. Not all the DMs need to be accelerated. Only if the summary data is more than 1GB is the acceleration useful.
    d. Consider workload management. The following rule limits the number of concurrent ad hoc searches to 50% of the total search concurrency limit, which in turn provides more search slots for scheduled searches and summarization searches: search_type=adhoc AND adhoc_search_percentage >50.
    e. Create WLM rule to place prioritized searches in the high priority pool to get them maximum resources and hence the search completes faster.
    f. Tune Datamodel to search only the indexes needed.

    Best practice setup for search jobs can eliminate skipped searches and incomplete data. Following the quick tips here will ensure more thorough alert reporting and faster dashboards.

  • A Beginner’s Guide to Splunk App/User Context Configuration Files

    A Beginner’s Guide to Splunk App/User Context Configuration Files

    By Eric Levy, Splunk Consultant

    This article will give Splunk admins a beginner’s guide to Splunk App/User Context Configuration Files. In a previous post, I went over several Splunk configuration files that one would find in a global context – independent of any apps or users. As a quick refresher, configuration files in Splunk (or “conf files”) dictate almost all settings in a Splunk environment. Splunk can have several of the same conf files in several directories, and “merge” via precedence rules. These rules differ depending on the context. Here, we will discuss Splunk conf files in the app/user context.

    When is the App/User Context Applicable?

    This context applies when editing conf files that pertain to a certain app or dealing with knowledge objects/actions owned by certain users. Search related activities is most common to this context, and most conf files discussed will have direct effects on search related processes.

    App/User Context Conf File Precedence

    Conf files can exist in default or local directories within apps or the overall system. Generally, local settings take precedence over default settings, and it is recommended users make changes in local directories. Further ordering depends on global or app/user context. For the app/user context, the baseline precedence order is as follows (taken from Splunk documentation):

    1. User directories for current user (/opt/splunk/etc/users/) – local, then default
    2. App directories for current running app (/opt/splunk/etc/apps/running_app_name)– local, then default
    3. App directories for other apps (/opt/splunk/etc/apps/other_app_name/) – local, then default
    4. System directories (/opt/splunk/etc/system/) – local, then default

    For example, if I had savedsearches.conf files stored within:

    1. /opt/splunk/etc/users/admin/search/local/savedsearches.conf
    2. /opt/splunk/etc/apps/search/local/savedsearches.conf
    3. /opt/splunk/etc/apps/search/default/savedsearches.conf
    4. /opt/spunk/etc/apps/TA-splunksearches/local/savedsearches.conf
    5. /opt/splunk/etc/system/local/savedsearches.conf

    The first settings to take precedence would be the ones set in the admin user directory, as they would have any options set per user. Then, any settings set locally within the running app (in this case, search) would take precedence, followed by the app’s default settings. That is followed by settings in any other app contexts, and finally settings in the system directories that would apply if not overridden by a higher precedence file.

    App directory names can determine additional precedence. For app/user context, Splunk uses reverse-lexicographical order for priority. For example, a file that starts with the letter “Z” has a higher precedence than a file with the letter “A”.

    Here are some common conf files found in the app/user context in Splunk:

    ALERT_ACTIONS.CONF

    alert_actions.conf provides settings for saved search actions. Different options exist for configuring alerts to send emails, RSS notifications, scripts, scheduled searches, and custom alert actions.

    The [default] stanza dictates settings for all alert_actions within the conf file but can be overridden by individual alert_action stanzas.

    Here are some settings commonly configured in [default]:

    maxresults = <integer> – the max number of search results sent through alerts

    hostname = [protocol]<host>[:<port>] – the hostname in the URL sent through alerts

    maxtime = <integer>[m|s|h|d] – the allowed amount of time for an alert to execute before it’s aborted

    command = <string> – the search command that executes the action

    label = <string> – sets the label in the UI for custom alert actions

    description = <string> – sets the description in the UI for custom alert actions

    FIELDS.CONF

    fields.conf provides settings for Splunk to handle indexed and extracted fields, multivalue fields, and how search time handles field values.

    Again, the [default] stanza dictates settings for all fields that can be overwritten by individual field stanzas.

    For local settings, the stanza name may be the field name itself, or a wildcard expression for a certain sourcetype formatted like this:

    sourcetype::<sourcetype>::<wildcard>

    Additional settings:

    TOKENIZER = <regex> – indicates a field value is part of a larger token (pertinent to multivalue fields)

    INDEXED = <Boolean> – specifies if the field is created at index or search time

    INDEXED_VALUE = several options:

    • Set to “true” if the value is in the raw event text
    • Set to “false” if not
    • Can also set to a sed-cmd string to substitute a field value
    • Can also set to a simple substitution string
    MACROS.CONF

    macros.conf provides settings to configure search macros, or reusable pieces of SPL referred to by a name between two backticks. This makes it very easy to use the same search strings in several different searches. Arguments can be passed into macros for more flexibility, and macros can contain eval statements.

    Each stanza in macros.conf is specific to each search macro, and its naming convention is the name of the macro unless specified otherwise.

    Available settings:

    Available settings:

    args = <string>, <string>, … – any arguments passed into the macro

    definition – the search terms referred by the macro. Any arguments must be separated by dollar signs.

    validation = <string> – verifies that the macro has appropriate arguments. Should return NULL if valid, or a Boolean/string if false.

    errormsg  = <string> – the error message returned by the macro if passed bad arguments and the validation setting is a Boolean statement.

    Iseval = true|false – specifies if the definition is an eval expression that returns a string of the expanded macro

    description = <string> – optional setting to describe what the macro does

    PROPS.CONF

    I went over props.conf in the global context in my last post, but this file can exist in both the global and the app/user context, depending on what settings are being used.

    Use the EXTRACT or REPORT settings in props.conf to create search time field extractions. Typically, EXTRACT is the setting to use, but REPORT can be used across multiple sources/sourcetypes/hosts, to apply multiple extractions, to set up delimiter extractions, multivalue fields, to extract fields that start with numbers or underscores, and to manage formatting.

    Example formatting: EXTRACT-hostname = d{4}sHostName=(?<HostName>w{5})s

    Use the rename = <string> setting to rename a sourcetype at search time.

    SAVEDSEARCHES.CONF

    savedsearches.conf provides possible setting/value pairs for saved searches. The standard settings, under each stanza representing a saved search, are:

    disabled = <Boolean> – is the search enabled or not

    search = <string> – the SPL for the saved search

    dispatchAS = [user|owner] – who does the search run as?

    There are settings for additional configurations of saved searches including scheduling, notifications, workload management, and event actions.

    TRANSFORMS.CONF

    This file is used in tandem with props.conf to enact more complex regex transformations at both index time (global context) and search time (app/user context).

    In a global context, transforms.conf uses regex to override host and sourcetypes values, mask sensitive data, create index time field extractions, and set up fields from lookup tables.

    The app/user context uses regex or delimiters to help create search time field extractions. When the extraction occurs depends on which Splunk instance includes the transforms.conf file – for the app/user context, put transforms.conf on a search head. Settings for search time extractions include:

    REGEX = <regex> – the regular expression used

    FORMAT = <string> – required for index time extractions, but optional for search time extractions. Specifies formatting, particularly using $<number> to specify the capture group to output the regex.

    SOURCE_KEY = <string> – defines the field(s) where Splunk applies the regex – the default is _raw

    DELIMS = <quoted string list> – only applicable for search time extractions, to extract fields based on a delimiter separating field values

    FIELDS = <quoted string list> – gives the option to provide field names to extracted fields

    For further reading, here is a full list of Splunk conf files, and once again, here is a list to my original blog post about global conf files. Happy Splunking!

  • Creating Chart Overlays and Annotations (Flags) in a TimeChart

    Creating Chart Overlays and Annotations (Flags) in a TimeChart

    The TimeChart function is one of most used visualizations of Splunk Dashboards, easily showing the volume of specific events, broken down by category over time. In certain situations, you may want to overlay additional data on top of your time chart to highlight certain events that correlate with the time chart. Luckily the masterminds at Splunk have already thought of a clever way on how we can flag certain search results and overlay it: Annotations!

    It’s not as simple as clicking a few buttons on your dashboard. Don’t be worried though, it’s not difficult either! As long as looking at the XML source doesn’t scare you, you’ll be fine. Let’s continue.

    Create a Chart Overlay

    In this example we’ll be using the Simple XML Dashboard. The below data will show a count of events over the span of 2 months. They’re placed into 1-day buckets using the span argument.

    Additionally, we’ll group these events by their action so we can distinguish the two different actions.

    SPL code example using timechart to count actions (search and list_health) over daily intervals in the audit index.

    This gives us a TimeChart that will look like this:

    Splunk bar chart displaying daily counts of 'search' and 'list_health' actions with separate bars for each category.

    Now, let’s stack our chart to reduce clutter across the TimeChart.

    Splunk chart editing panel set to stacked mode with multi-series enabled, allowing for layered visualization of time series data.
    Stacked bar chart showing combined daily totals for 'search' and 'list_health' actions for visual comparison over time.

    To give us more clarity in our data, we can also add an overlay to show the total of both groupings. We can do this with the addtotals command.

     SPL query showing the addition of a TOTAL field using addtotals to sum all daily action counts across columns.
    Bar chart showing TOTAL count as a third category, alongside search and list_health, visualized in distinct colors.

    Now we can use the new field created by the addtotals command, to overlay in the Dashboard settings.

    Splunk chart overlay settings with TOTAL selected as the overlay metric and axis view toggled on.

    This gives us a Dashboard that looks like this. You’ll see the orange TOTAL line is now added to the TimeChart.

    Combined bar and line chart showing 'search' and 'list_health' as bars, with a TOTAL overlay as a line for trend analysis.

    Now for the fun part. Let’s add in the Annotations, or flags, to highlight certain events.

    In this example, I’ll just be using a unique timestamp value from 3 of the events, but in real world situations you could use a dynamic search to flag server reboots or critical errors on an application.

    To add the Annotations:

    1) Go into ‘Edit’ on your Dashboard and modify the XML source.

    Splunk dashboard editor showing UI and Source buttons for switching between visual and XML editing views.

    2) Find the <chart> for your TimeChart in the XML

    XML snippet of a Splunk dashboard panel showing a timechart query, addtotals, and display options like chart height and refresh settings.

    3) Insert this annotation XML directly below the opening <chart> tag:

    <search type="annotation">
    <query>YOUR SPL QUERY HERE
    | eval annotation_label = “ANNOTATION LABEL – FREE TEXT HERE (optional)”
    | eval annotation_category = “SPECIFY A SPLUNK FIELD HERE (optional)”
    </query></search>
    XML code snippet showing how to define an annotation search within a Splunk dashboard. The query uses eval to define annotation_label as “- - - URGENT EVENT! - - -” and assigns the annotation_category based on the action field.

    After saving the XML, you’ll see your annotations display on your TimeChart if it found matching events. It may look something like this:

    A Splunk timechart displaying stacked bar and line data with three vertical dashed lines and flags at the top—representing annotated timestamps for urgent events layered onto the TOTAL line overlay.

    If you hover over the annotation label, you’ll see what we defined under the eval annotation commands.

    Close-up of a tooltip on a Splunk timechart annotation flag. It reads “- - - URGENT EVENT! - - -” and provides the action category (search) and the exact timestamp of the event (Oct 31, 2022, 11:36:12.220 PM).

    Voila! You’ve got yourself a powerful visualization, able to show multiple data sources and correlate them together through the TimeChart command. Happy Splunking!

  • Security Bulletin: Microsoft Zero-Day Office & Windows Vulnerability

    Security Bulletin: Microsoft Zero-Day Office & Windows Vulnerability

    By Bryan Bollou, Team Lead, Cybersecurity Engineering

    Purpose of TekStream Security Bulletins

    With the TekStream Security Bulletin, we are presenting some specific detection use cases using everyone’s favorite SIEM Splunk! We’ve cherry-picked vulnerabilities that are not only intriguing but also directly impactful for our valued clients. These vulnerabilities were chosen based on a multitude of factors, ranging from the technology in the crosshairs to the specific sectors being targeted. This is not a blog post to fully explain or give recommendations on remediating the vulnerability – this has been discussed at length by various resources. The goal here is to aggregate the detections to maximize your chances of detecting an attempt to exploit these vulnerabilities. A part of that is gathering the list of IOCs scattered in multiple locations on the internet and looking at activity that could point to the vulnerability being exploited. Here at TekStream, we have an amazing team of cybersecurity engineers armed with a deep knowledge of logs and the secrets they hold, ready to fortify your cyber resiliency!

    Introduction

    Confirmed to have been in use since July 3rd, 2023, the vulnerability CVE-2023-36884 is a zero-day Office and Windows HTML Remote Code Execution Vulnerability. This is an unpatched vulnerability that could be exploited by doing the following. 

    • An attacker designs a Microsoft document that downloads a malicious file when simply opened by an unsuspecting user. 
    • The malicious file downloaded has a script that injects an iframe into the system.  
    • This then leads to another download with a malicious payload. This payload can contain any number of malware including adware, spyware, and even ransomware. A well-known malware family associated with this vulnerability is “RomCom” malware. 

    Threat Overview

    The vulnerability has been acknowledged by Microsoft and they have suggested various mitigation steps to prevent its exploitation. These steps include Blocking Office applications from creating child processes or setting the FEATURE_BLOCK_CROSS_PROTOCOL_FILE_NAVIGATION registry key to avoid exploitation. In this blog post, we would like to present some specific detection use cases using everyone’s favorite SIEM: Splunk. 

    For information on remediating the vulnerability, various resources have discussed this at length, notably Picus Security. We recommend you review their assessment.

    Aggregate Detections

    The goal here is to aggregate the detections to maximize your chances of detecting an attempt to exploit this vulnerability. A part of that is gathering the list of IOCs scattered in multiple locations on the internet and looking at activity that could point to the CVE-2023-36884 vulnerability being exploited. Here at TekStream, we have several security engineers that are intimate with cybersecurity knowledge and especially the logs of our clients.  

    In this blog post, we go through the various steps in CVE-2023-36884 vulnerability exploitation and detection. With this format, we are providing a more generic data model “tstats” command. This is taking advantage of the data model to quickly find data that may match our IOC list. We then provide examples of a more specific search that will add context to the first find. There will be a wide variety of specific searches as each client has their own specific technologies.  

    Note: The initial infected Microsoft document is normally sent to the victims through a phishing campaign. Detecting this part is not covered in this blog post.  


    The following detection steps mirror the stages and TTP-related indicators used in the attack: 

    1. Detect if any Microsoft application started processes with PowerShell or a Windows shell – cmd.exe or powershell.exe.  
    1. Detect connections to IP addresses associated with malware known to exploit this vulnerability. 
    1. Detect connections to domains associated with malware known to exploit this vulnerability. Also, detect connections to URLs associated with malware that exploit this vulnerability and allow users to pay ransoms. 
    1. Detect if a “.url” file was created in Microsoft Office’s recent folder: C:Documents and Settingsuser profileApplication DataMicrosoftOfficeRecent. 
    1. Detect hashes and filenames of scripts known to exploit this vulnerability. 

    Threat Implication

    • Phishing campaigns with Microsoft document attachments are the main method of delivery to exploit this vulnerability. 
    • Customers who use Microsoft Defender for Office are protected from attachments that attempt to exploit this vulnerability. 

    Threat Detection

    Step 1

    When exploiting this vulnerability, a maliciously modified document is normally sent to a victim in a phishing email. This document will then spawn a child process when opened by an Office application to download more malicious files. Thus, detecting if any Microsoft application started processes with PowerShell or a Windows shell – cmd.exe or powershell.exe is the first step in detection.

    Actions Detect
    Table listing Microsoft Office applications as parent processes (e.g., Excel.exe, Word.exe, PowerPoint.exe) capable of spawning suspicious child processes like cmd.exe and powershell.exe—an indication of possible exploit activity linked to a zero-day vulnerability.
    SPL
    | tstats `summariesonly` latest(_time) as _time, values(Processes.user) as user, values(Processes.process) as process, latest(Processes.parent_process) as parent_process, latest(Processes.parent_process_exec) as parent_process_exec, latest(Processes.parent_process_guid) as parent_process_guid, latest(Processes.parent_process_id) as parent_process_id, latest(Processes.parent_process_path) as parent_process_path, latest(Processes.process_path) as process_path, latest(Processes.process_exec) as process_exec, latest(Processes.process_guid) as process_guid, latest(Processes.process_id) as process_id, latest(Processes.process_hash) as process_hash from datamodel="Endpoint"."Processes" where (Processes.parent_process IN ("Excel.exe","Graph.exe","MSAccess.exe","MSPub.exe","PowerPoint.exe","Visio.exe","WinProj.exe","WinWord.exe","Wordpad.exe") AND Processes.process IN ("cmd.exe","powershell.exe")) by Processes.dest, Processes.process_name, Processes.parent_process_name| head 10000 | `drop_dm_object_name("Processes")`| fields _time, dest, user, process_name, process, process_hash, process_path, process_exec, process_id, process_guid, parent_process, parent_process_name, parent_process_path, parent_process_exec, parent_process_guid, parent_process_id 

    Step 2

    There are two steps in the exploitation of this vulnerability in which a maliciously modified document may attempt to connect to an external source to download additional malicious scripts and/or payloads. To detect the connection to some of the known destinations associated with this malware, this detection looks for attempted connections to known bad IP addresses.

    Actions Detect

    Attempted Connections to the following IP addresses. Note: These and other IOCs are listed in the CSV attached at the end of this blog post.

    Duplicate table showing Office-based parent processes and associated child processes (cmd.exe, powershell.exe) involved in potentially malicious behavior exploited in Microsoft’s zero-day vulnerability.
    SPL
    | tstats `summariesonly` latest(_time) as _time, sum("All_Traffic.bytes") as bytes, values("All_Traffic.src_port") as src_port, values("All_Traffic.transport") as transport, values("All_Traffic.dest_port") as dest_port from datamodel="Network_Traffic"."All_Traffic" where All_Traffic.src IN ("104.234.239.26","138.124.183.8","209.127.116.190","209.159.147.170","45.9.148.118","45.9.148.123","45.9.148.219","65.21.27.250","66.23.226.102","74.50.94.156 ","74.50.94.156","94.232.40.34") OR All_Traffic.dest IN ("104.234.239.26","138.124.183.8","209.127.116.190","209.159.147.170","45.9.148.118","45.9.148.123","45.9.148.219","65.21.27.250","66.23.226.102","74.50.94.156 ","74.50.94.156","94.232.40.34") by "All_Traffic.action", "All_Traffic.src", "All_Traffic.dest", "All_Traffic.user" | head 10000 | `drop_dm_object_name("All_Traffic")`| eval earliest_time = IF(isnum("$earliest_time$"),"$earliest_time$",strftime(relative_time(now(),"$earliest_time$"),"%s")) | eval latest_time = CASE(isnum("$latest_time$"),"$latest_time$","$latest_time$"="now",now(),1=1,strftime(relative_time(now(),"$latest_time$"),"%s")) | where _time >= earliest_time AND _time <= latest_time | head 10000 | table action, src, src_port, dest, transport, dest_port, user, bytes 

    Step 3

    Like above, there are two steps in the exploitation of this vulnerability in which a maliciously modified document may attempt to connect to an external source to download additional malicious scripts and/or payloads. To detect the connection to some of the known destinations associated with this malware, this detection looks for attempted connections to known bad domains.

    Detect connections to URLs associated with malware that exploit this vulnerability and allow users to pay ransoms.

    Actions Detect

    Attempted Connections to the list of domains. IOC Domain Checklist

    SPL

    Detect Domains

    | tstats `summariesonly` sum("Web.bytes") as bytes,values("Web.http_content_type") as http_content_type,values("Web.http_method") as http_method,values("Web.http_user_agent") as http_user_agent,values("Web.status") as status from datamodel="Web"."Web" by "Web.src", "Web.dest", "Web.user", "Web.http_referrer", "Web.url", _time | `drop_dm_object_name("Web")` | where match(url, "(?i)(altimata.org)|(bentaxworld.com)|(finformservice.com)|(penofach.com)|(ukrainianworldcongress.info)|(wexonlake.com)") | fields _time src, dest, user, http_referrer, url, http_content_type, http_method, http_user_agent, status, bytes | eval ip_pair = src . " - " . dest  | stats values(_time) as Time values(ip_pair) AS src_dest, values(user) as user, values(http_referrer) as http_referrer, values(http_user_agent) as http_user_agent, values(http_method) as http_method, values(status) as status, values(bytes) as bytes count by url | fieldformat Time = strftime(Time,"%m/%d/%Y %T") 

    Detect URLs 

    | tstats `summariesonly` sum("Web.bytes") as bytes,values("Web.http_content_type") as http_content_type,values("Web.http_method") as http_method,values("Web.http_user_agent") as http_user_agent,values("Web.status") as status from datamodel="Web"."Web" where Web.url IN ("https://finformservice.com:80/api/v1.5/subscriptiontoken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9","https://finformservice.com:80/api/v1.5/subscriptiontoken=eyJpZCI6MTIzNDU2Nzg5LCJuYW1lIjoiSm9zZXBoIn0","https://finformservice.com:80/api/v1.5/subscriptiontoken=OpOSSw7e485LOP5PrzScxHb7SR6sAOMRckfFwi4rp7o","https://65.21.27.250:8080/mds/O--------------------------","https://finformservicecom:8080/mds/S-------------------------- ") by "Web.src", "Web.dest", "Web.user", "Web.http_referrer", "Web.url", _time | `drop_dm_object_name("Web")` | fields _time src, dest, user, http_referrer, url, http_content_type, http_method, http_user_agent, status, bytes | eval ip_pair = src . " - " . dest | stats values(_time) as Time values(ip_pair) AS src_dest, values(user) as user, values(http_referrer) as http_referrer, values(http_user_agent) as http_user_agent, values(http_method) as http_method, values(status) as status, values(bytes) as bytes count by url| fieldformat Time = strftime(Time,"%m/%d/%Y %T") 
    

    Step 4

    During the exploitation of the vulnerability, a new file normally one with a “.url” extension has been seen to be dropped. This would be detected in the Microsoft Office’s “recent” folder: C:Documents and Settingsuser profileApplication DataMicrosoftOfficeRecent

    Actions Detect

    A file with the extension “.url” created or moved into the Microsoft Office “recent” folder.

    SPL
    | tstats `summariesonly` latest(_time) as _time, latest(Filesystem.file_create_time) as file_create_time, latest(Filesystem.file_modify_time) as file_modify_time, latest(Filesystem.file_access_time) as file_access_time from datamodel="Endpoint"."Filesystem", values(Filesystem.dest) as dest, values(Filesystem.action) as action, values(Filesystem.file_name) as file_name, values(Filesystem.file_hash) as file_hash, values(Filesystem.file_path) as file_path, values(Filesystem.file_size) as file_size |`drop_dm_object_name("Filesystem")` | where match (file_name, "(i?)(.url)$” AND match(file_path, “(?i)( C:\\Documents and Settings\\.*\\Application Data\\Microsoft\\Office\\Recent))”| fields _time, dest, action, file_name, file_hash, file_path, file_size, file_create_time, file_modify_time, file_access_time 
    | fieldformat Time = strftime(_time,"%m/%d/%Y %T") 
    

    Step 5

    While there is a ton of variety for the malware payload that can be downloaded in the last step of this vulnerability’s exploitation, there are certain scripts seen often. This detection is to find the hashes of these commonly seen malicious scripts in a client’s environment.

    Actions Detect

    The occurrence of the following hashes in the environment.

    Table displaying two columns of hexadecimal hash values—likely file or process hashes—used to identify known malicious files or indicators of compromise (IOCs) associated with the Microsoft Office and Windows zero-day vulnerability.
    SPL
    | tstats `summariesonly` latest(_time) as _time, latest(Filesystem.file_create_time) as file_create_time, latest(Filesystem.file_modify_time) as file_modify_time, latest(Filesystem.file_access_time) as file_access_time from datamodel="Endpoint"."Filesystem", values(Filesystem.dest) as dest, values(Filesystem.action) as action, values(Filesystem.file_name) as file_name, values(Filesystem.file_hash) as file_hash, values(Filesystem.file_path) as file_path, values(Filesystem.file_size) as file_size where Filesystem.file_hash IN ("0501d09a219131657c54dba71faf2b9d793e466f2c7fdf6b0b3c50ec5b866b2a","07377209fe68a98e9bca310d9749daa4eb79558e9fc419cf0b02a9e37679038d","1a7bb878c826fe0ca9a0677ed072ee9a57a228a09ee02b3c5bd00f54f354930f","3a3138c5add59d2172ad33bc6761f2f82ba344f3d03a2269c623f22c1a35df97","48142dc7fe28a5d8a849fff11cb8206912e8382314a2f05e72abad0978b27e90","5f40cb4852ec50ee24f3cd951a172c725d02012d17dd645b6ce22d324aa140ad","a61b2eafcf39715031357df6b01e85e0d1ea2e8ee1dfec241b114e18f7a1163f","d3263cc3eff826431c2016aee674c7e3e5329bebfb7a145907de39a279859f4a","e7cfeb023c3160a7366f209a16a6f6ea5a0bc9a3ddc16c6cba758114dfe6b539") |`drop_dm_object_name("Filesystem")` | fields _time, dest, action, file_name, file_hash, file_path, file_size, file_create_time, file_modify_time, file_access_time 
    | fieldformat Time = strftime(_time,"%m/%d/%Y %T") 

    Conclusion

    It is highly recommended to implement scheduled searches using lookup tables, as demonstrated above, to enhance the precision of matching specific and novel detections. By setting these searches to run continuously, you can ensure constant monitoring of your assets for emerging vulnerabilities. To maintain timeliness and efficiency, it is essential to remove old, patched vulnerabilities from the lookup table. If you need assistance in creating a dynamic and customizable process tailored to your environment, feel free to consult our experts by completing the form below. Additionally, stay informed by subscribing to the TekStream blog for the latest monthly security bulletin and applying the most recent detections to fortify your systems. Happy Splunking! 

    References

    Articles referenced and used for this security bulletin:

    CVE-2023-36884 – Microsoft Office and Windows HTML Remote Code Execution: Threat Brief (Updated)

    Storm-0978 attacks reveal financial and espionage motives

    CVE-2023-36884: A Detailed Look at The Recent Microsoft Vulnerability

    Yet Another Microsoft Office365 zero-day: CVE-2023-36884

    Disclaimer

    The approaches recommended herein have not been tested broadly across the TekStream customer base. They are preliminary in nature and come without any certification of efficacy.

  • Using clientName to Simplify Forwarder Management

    Using clientName to Simplify Forwarder Management

    By Jon Walthour, Technical Architect

    Today, I want to introduce you to a new way of simplifying configuration management with Splunk’s deployment server/deployment client architecture. The goal is to get you out of the business of constantly adding new hostnames to or removing hostnames from whitelists or csv files in your serverclass.conf file on your deployment server. You can put all that on automatic with this approach.

    Overview

    As an overview, a deployment server manages the configuration for multiple deployment clients, usually forwarders, via a model where clients connect to a deployment server, identify themselves and then, based on that identification, download app bundles from the deployment server which the deployment server has been configured for them to receive. This determination by the deployment server of which apps a client downloads is usually done by matching the hostname of the client or its IP address against a list of values defined in a configuration file called “serverclass.conf” on the deployment server. These lists are in the form of one or more whitelist or blacklist settings in a “serverClass” stanza and are typlically comprised of hostnames and IP addresses, either in whole or in part with the use of wildcards (*). Whenever a new deployment client is added or an old one retired, a change to these listings must be made and the deployment server’s configuration reloaded.

    Auto-Scale AWS Heavy Forwarders

    Let’s say, for example, you need to auto-scale heavy forwarders to handle increased AWS event traffic. You can’t be constantly adding and removing ec2 instance names to one or more serverclasses in serverclass.conf. You need a way to have the deployment client communicate to the deployment server, letting it know “I’m an AWS heavy forwarder” and have the deployment server recognize that and send the client a listing of apps to install and update based solely on its classification as an “AWS heavy forwarder” without needing to have the particular hostname or IP address or IP address range detailed anywhere in serverclass.conf.

    The answer here is to add that designation to the deployment client when the universal forwarder software is installed. This way, when the deployment client connects to the deployment server for the very first time, it identifies itself properly. This designation is defined in a setting called “clientName” in deploymentclient.conf in the “[deploynent- client]” stanza. It is recommended this setting be added to the copy of deploymentclient.conf in $SPLUNK_HOME/etc/system/local as it is an identifier for that particular server and will remain untouched by any changes made by the deployment server in $SPLUNK_HOME/etc/apps. Unlike “hostname” or “DNS name”, multiple deployment clients can have the same clientName. It’s just a categorization, a tag, a label to say, “I’m a web server” or “I’m a database server” or, in our example, “I’m an AWS heavy forwarder.” The actual value you use for clientName by itself is unimportant. What is important is that the “clientName” in deploymentclient.conf matches against one or more server classes on the deployment server to determine which apps are to be retrieved by the client from the server.

    So, a deploymentclient.conf file in $SPLUNK_HOME/etc/system/local might look like this:

    [deployment-client] clientName = aws-idm

    and the serverclass.conf file on the deployment server might contain something like this:

    [serverClass:aws-heavy-forwarders] whitelist.0 = aws-idm
    
    [serverClass:aws-heavy-forwarders:app:Splunk_TA_aws]
    

    Notice that you use the “clientName” value in serverclass.conf in the same way you would use hostname or IP address. So, you could also have a configuration in serverclass.conf that looks like this:

    [serverClass:all-aws] whitelist.0 = aws-*
    machineTypesFilter = linux-x86_64 [serverClass:all-aws:app:Splunk_TA_nix]
    

    This configuration could be used to address all AWS instances running a Linux OS to distribute the Unix/Linux TA to them.

    Mix and Match Identifiers

    You can also mix and match the use of clientName with the other identifiers such as hostname or IP address. So, this example is also possible using a wildcarded clientName of “:oracle:”:

    [serverClass:all-oracle] 
    whitelist.0 = *:oracle:* 
    whitelist.1 = oraclehost01 
    whitelist.2 = oraclehost02 
    whitelist.3 = 192.168.23.*

    Remember that the order of these various identifiers like “clientName”, “hostname” and “IP address” are evaluated by the deployment server. “clientName” takes precedence over “hostname” or “DNS name”. So, you can use a phased in approach if you want to introduce this categorization system into an existing Splunk deployment. Add the clientName values alongside the existing hostnames and other identifiers. As deployment clients are configured with their clientName value, it is that value that will take precedence and eventually, when all clients have a clientName, the hostname can be removed from serverclass.conf to clean up the file. Just be careful during the transition. Just because clientName is part of the client’s identification of itself doesn’t mean that hostname or IP address is ignored. They are still part of the identification. The precedence just means that, should both identifiers exist in a serverClass stanza, the clientName setting will be decisive in determining the client’s membership in that serverClass.

    clientName Values

    The clientName value can be anything. You don’t need to segment it with dashes or colons. It could be just a string like “weblogic” or “database”. However, I have found in implementing this approach with customers that using segmentation in the value allows these clientNames to have multiple dimensions in them. You could, for example, identify a host as being in “Production” versus “Development”, in the “Finance” department or the “Sales” department, in the “Seattle”, “Chicago” or “New York” offices, all within the same clientName. For example:

    newyork:sales:sqlserver:prod

    By evaluating the segments, different apps can be sent to different hosts simply distinguished only by the value of one particular segment. For example, a serverClass to configure the collection of database log events from all the Microsoft SQL Server hosts could, using the example hostname above, employ a simple whitelist like:

    [serverClass:mssqlservers] whitelist.0 = *:*:sqlserver:*

    Or server classes could be configured to send prod hosts’ event data to a production indexer cluster while those in the development environment to the development cluster.

    [serverClass:prod_forwarder_outputs] whitelist.0 = *:*:*:prod
    
    [serverClass:dev_forwarder_outputs] whitelist.0 = *:*:*:dev
    

    If you choose to take this approach, though, consider the nature of your infrastructure carefully and how Splunk is laid out in it. Then, design your “clientName” conventions to your best advantage.

    In this article, you have seen how you can get out of the business of maintaining lists of server hostnames in serverclass.conf because of constantly onboarding new and removing decommissioned hostnames. With the “clientName” setting in deploymentclient.conf, you can put the management of configuring deployment clients on automatic.

  • Dynamic Inputs: Make Your Splunk Dashboards More Flexible

    Dynamic Inputs: Make Your Splunk Dashboards More Flexible

    By Nate Hufnagel, Splunk Consultant

    Splunk’s dashboarding capabilities separate it from the rest of the pack. The ability to normalize and visualize data in a way that’s meaningful to all levels of an organization is one of the many reasons it has been widely adopted by businesses in nearly every industry. To achieve this level of versatility, Splunk dashboards come out-of-the-box with powerful features that allow users to create flexible and reusable templates. One of those features is the dynamic input.

    Dynamic Inputs: Pros and Cons

    Dynamic inputs let you pass one or more values to a panel by using a separate SPL search to populate a list of values. When a user loads a dashboard with dynamic inputs, the populating searches run automatically and return the list of values.

    Pros

    Dynamic inputs (by definition) are non static, which makes them good for data that changes frequently. That translates to less time reworking inputs to fit incoming data, making your dashboards more flexible.

    Cons

    It adds another search, and could eat up more resources. This is why we need to make it as performative as possible, and we’ll use tstats to do that.

    What is tstats and How is it Used?

    Tstats is a generating command that performs statistical queries on indexed fields (as opposed to search time fields). It works similarly to the stats command and even uses the same functions, with one key difference: tstats performs these operations on the tsidx files, as opposed to the raw data in the indexes. This makes tstats much faster than stats: it’s like looking at the table of the contents for information instead of flipping through the whole book.

    Implementing tstats Into the Dashboard Inputs

    Imagine a Classic dashboard panel showing the top sources by host for a given index. Perhaps this is shown through a piechart visualization. If the list of possible hosts changes frequently, or are too numerous to type by hand, a dynamic input token might be the right tool for the job.

    Pie chart visualization in Splunk showing the distribution of log file sources by host. The majority of the data originates from a Windows-based universal forwarder path, with additional sources from various Linux-based log files.

    In the dashboard while in Edit mode, select “Add Input” and choose the appropriate input type for your use case.  In this example, the Dropdown option will do nicely.  These are the important settings and their values:

    • Under “General” – set the appropriate label and make sure “Search on Change” is selected. 
    • Under “Token Options” – give the “Token” field the name of the token to use for this input.
    • Under “Dynamic Options” – the “Search String” text box is where you’ll put the search that dynamically returns the values.  This is where the tstats search will go.  Two things to consider: make sure the search returns a list of values, and be sure to set the time range appropriately for your use case. With tstats you can look over longer time ranges without drastically impacting how long the search runs. Set the values for “Field for Label” and “Field for Value”, which can both be the name of the output field (in most cases). Below is a simple example:
    | tstats values(host) where index=<your_index_name>
    | rename values(host) as Hosts
    | stats list() by Hosts
    
    Dynamic dropdown configuration panel in Splunk dashboard settings. The configuration uses a search string to populate the dropdown with host values from a specified index over the last 60 minutes.

    Once finished, click “Apply”. Double check that your search is returning the correct results and each host is selectable in the dropdown. Finally, add the input token you just created to the appropriate search(es).

    Splunk dashboard editor displaying a checkbox input configuration. Multiple dynamically populated host values are shown as selectable options using a token named “host_token.”

    That’s it! You can add multiple dynamic inputs to your dashboard by repeating these steps, or pass multiple values through a single token by making a few changes:

    1. Instead of using the Dropdown input, select “Checkbox” or “Multiselect”
    Splunk search query using a tokenized input. The query filters internal index logs based on selected hosts and uses the top command to return the five most frequent sources.

    2. Adjust the SPL in the relevant panels to accept multiple values:

    Screenshot showing how to adjust the SPL in the relevant panels to accept multiple values.

    My guess is that this will demonstrate that Splunk really does stand out from the pack. With the ability to normalize and visualize your data, you’ll provide actionable insights and put your company on the path to success using Splunk. Fill out the form below if you’d like to ask more. Happy Splunking!

  • TekStream Recognized in 2023 Splunk Partner Awards 

    TekStream Recognized in 2023 Splunk Partner Awards 

    TekStream Named 2023 Public Sector Trailblazer Award Winner for Outstanding Partnership 

    ATLANTA, GA – July 18, 2023 – TekStream, the Atlanta-based firm specializing in Managed Detection and Response (MDR) and a Shared SOC model for universities and state/local government, announced today it has received the 2023 Public Sector Trailblazer Award for exceptional performance and commitment to their Splunk partnership. The Public Sector Trailblazer Award recognizes a Splunk partner who has demonstrated innovation and resilience using Splunk products & technologies to deliver breakthrough solutions to solve complex customer challenges. This partner goes above and beyond in their technology engagement with Splunk to deliver value to their customers with a proven ability to penetrate new markets with a joint value proposition. For more information on Splunk’s award program: 2023 Partner Awards.

    “Led by Bruce Johnson, Senior Director Enterprise Security, this team demonstrated a singular commitment to solving the unprecedented need for agencies and educational institutions to secure their intellectual property and citizen data,” says Matthew Clemmons​,​ Managing Director, Splunk at TekStream. “Our team works hard to help customers solve challenges every day, so it is fitting they are being recognized for a relentless commitment to excellence.”​    

    ​“This award recognizes an amazing team of expert developers who sought out new and trailblazing ways to handle urgent ransomware security issues faced by the public sector,” said Judd Robins, Executive Vice President, Sales and Marketing. “With Splunk as our partner, we can achieve great things.”​ 

    “Congratulations to TekStream for being named the 2023 Public Sector Trailblazer,” said Gretchen O’Hara, Vice President, Worldwide Partners and Alliances, Splunk. “The 2023 Splunk Partner Awards recognize partners like TekStream for outstanding performance and innovation and celebrate the joint success that helps customers build resilience and solve day-to-day challenges. Together we are focused on delivering continuous value to our joint customers.”

    The Splunk Partner Awards recognize dedicated global and regional partners who demonstrate a steadfast commitment to collaboration and innovation in their Splunk partnership to help customers achieve positive business outcomes and accelerate their mission to better the world. All award recipients were selected by a group of Splunk executives, theater leaders and the global partner organization.

    About TEKSTREAM

    TekStream accelerates clients’ digital transformation by navigating complex technology environments with a combination of technical expertise and staffing solutions. We guide client decisions, quickly implement the right technologies with the right people and keep them running for sustainable growth. Our battle-tested processes and methodology help companies with legacy systems get to the cloud faster, so they can be agile, reduce costs and improve operational efficiencies. With hundreds of deployments under our belt, we can guarantee on-time and on-budget project delivery. That’s why 98% of our clients are repeat customers.

    Media Contact Information: Cece Kintner, Marketing Operations Manager, [email protected] or 404-643-1847.

    ### End Release ### 

  • Security Bulletin: SPLUNK it to detect MOVEit

    Security Bulletin: SPLUNK it to detect MOVEit

    By Bryan Bollou, Team Lead, Cybersecurity Engineering

    Background

    On May 31st, 2023, it was announced that there was an expanding occurrence of the MOVEit vulnerability – an application used on over 2.5k servers on the internet. This was a critical vulnerability that could be exploited using SQL injection to do the following: 

    • Obtain a list of all folders, files, and users within MOVEit 
    • Download any file within MOVEit 
    • Insert an administrative backdoor user into MOVEit and give attackers an active session to allow credential bypass 

    Since then, a patch has been released that will prevent this exploitation of systems. So, the issue is resolved, right? Absolutely not! We know change management processes can take a while, even in serious situations like this. It may take many cycles before the proper patching is done to your machines to stop this attack. You may have already put in some workarounds to prevent the attack such as disabling ports 80 and 443 on the web servers or some detections to see the exploit. So far, we have seen many good options and would like to present a few specific cases using everyone’s favorite SIEM: Splunk.

    Objective

    The purpose of this security bulletin is not to fully explain or give recommendations on remediating the vulnerability, as has been discussed at length by various resources such as Progress Community.

    Our goal here is to aggregate the detections to maximize your chances of detecting this critical attack. A part of that is gathering the list of IOCs scattered in multiple locations on the internet and looking at activity that could point to the MOVEit vulnerability being exploited. Here at TekStream, we have several security engineers that are intimate with cybersecurity knowledge and especially the logs of our clients.

    We will walk you through the various steps in the MOVEit vulnerability exploitation and detection. With this format, we are providing a more generic data model “tstats” command. This is taking advantage of the data model to quickly find data that may match our IOC list. We then provide examples of a more specific search that will add context to the first find. There will be a wide variety of specific searches as each client has their own specific technologies. To get help building detection for your specific client, fill in the form below and get access to our Splunk/security expertise.

    The following detection steps mirror the stages and TTP-related indicators used in the attack:

    1. Detect initial malicious file spawning SQL Injections
    2. Search for potential beaconing web traffic containing specific parameters
    3. Detect existence of downloaded malicious script
    4. Detect ancillary signs of malicious script activity
    5. Persistent malicious file install
    6. Detect data exfiltration
    7. Scan for related known malicious IPs
    8. Scan for related known malicious web domain

    Detections

    Step 1

    As part of the exploitation, a backdoor named “human2.aspx” was uploaded to multiple sites, this was a main file responsible for performing the SQL injection and exfiltrate sensitive data. Other executable files leveraged in the attack include:

    moveitisapi.dll to perform SQL injection directed by specific headers seen below.

    guestaccess.aspx to create a session and grab CSRF tokens and other parameters for more actions.

    Actions to Detect
    GET /human2.aspx – 443 
    POST /moveitisapi/moveitisapi.dll
    POST /guestaccess.aspx
    GET /human2.aspx

    SPL

    | tstats `summariesonly` sum("Web.bytes") as bytes,values("Web.http_content_type") as http_content_type,values("Web.http_method") as http_method,values("Web.http_user_agent") as http_user_agent,values("Web.status") as status from datamodel="Web"."Web" where (http_method = GET AND Web.url = "*human2.aspx*") OR (http_method = POST AND Web.url = "*/moveitisapi/moveitisapi.dll*") OR (http_method = POST AND Web.url = "*/guestaccess.aspx*") OR (http_method = GET AND Web.url = "*/human2.aspx") by "Web.src", "Web.dest", "Web.user", "Web.url", _time | fields _time src, dest, user, url, http_content_type, http_method, http_user_agent, status, bytes | fieldformat Time = strftime(_time,"%m/%d/%Y %T")
    
    

    Step 2

    In the backdoor code, there is a check for specific parameters that will tell the malicious script what action to perform. Looking for the specific string of this request could be used to detect attempts to exploit the MOVEit Vulnerability. Search for web requests that contain any of the request or response headers listed below:

    Parameters to Detect
    X-siLock-Step1
    X-siLock-Comment
    X-siLock-Step2
    X-siLock-Step3

    SPL

    | tstats `summariesonly` sum("Web.bytes") as bytes,values("Web.http_content_type") as http_content_type,values("Web.http_method") as http_method,values("Web.http_user_agent") as http_user_agent,values("Web.status") as status from datamodel="Web"."Web" where Web.url = "*X-siLock-Step1*" OR Web.url = "*X-siLock-Comment*" OR Web.url = "*X-siLock-Step2*" OR Web.url = "*X-siLock-Step3*" by "Web.src", "Web.dest", "Web.user", "Web.url", _time | fields _time src, dest, user, url, http_content_type, http_method, http_user_agent, status, bytes | fieldformat Time = strftime(_time,"%m/%d/%Y %T")

    Step 3

    As mentioned above, depending on the parameters supplied, the malicious script can do multiple actions. Some include creating a backdoor user or deleting it. The account is called “Health Check Service” and doing searches for the existence of the user in a MOVEit database, or any account activity would help in detecting the exploit.

    Activity to Detect
    IF X-siLockStep1 = -2
    A backdoor user called Health Check Service is removed from the users table, potentially as a method to cover tracks.

    IF X-siLockStep1 = null AND X-siLock-Step2 = null AND X-siLock-Step3 = null
    The malicious script creates an administrative user named Health Check Service in the users table. It also creates and inserts a new active session for this user into the application.

    SPL

    | tstats `summariesonly` latest(_time) as _time from datamodel="Change"."All_Changes" where nodename="All_Changes.Account_Management" (All_Changes.user="Health Check Service" OR All_Changes.src_user="Health Check Service") by "All_Changes.action", "All_Changes.src", "All_Changes.Account_Management.src_user", "All_Changes.dest", "All_Changes.user"  | fields _time, action, src, src_user, dest, user
    | fieldformat Time = strftime(_time,"%m/%d/%Y %T")
    

    Step 4

    Like the above, with different parameters, the malicious script looks to enumerate information about the targeted MOVEit instances. It uses a malformed Azure account that can be detected.

    Activity to Detect

    IF X-siLockStep1 = -1
    The script will attempt to leak Azure information via the response header and return a GZIP stream of all files, file owners and file sizes, and institution data present in MOVEit instance. Account to Detect- azureAccout

    SPL

    index=azure (sourcetype="azure:aad:audit" "initiatedBy.user"=" azureAccout") OR (sourcetype="azure:aad:signin" userPrincipalName=" azureAccout ")

    Step 5

    The posting of the malicious file “human2.aspx” will add the file to the C:MOVEitTransferwwwroot directory on the MOVEit instance. This filesystem path is based on install locations and can vary (for example it can be E drive). The detections here are to detect any files that are created in these vulnerable locations.

    File and File Location to Monitor

    :MOVEitTransferwwwroot
     human2.aspx
     App_Web_*.dll

    SPL

    | tstats `summariesonly` latest(_time) as _time, latest(Filesystem.file_create_time) as file_create_time, latest(Filesystem.file_modify_time) as file_modify_time, latest(Filesystem.file_access_time) as file_access_time from datamodel="Endpoint"."Filesystem", values(Filesystem.dest) as dest, values(Filesystem.action) as action, values(Filesystem.file_name) as file_name, values(Filesystem.file_hash) as file_hash, values(Filesystem.file_path) as file_path, values(Filesystem.file_size) as file_size where (Filesystem.file_name = "*human2.aspx" OR Filesystem.file_name = "*App_Web_*.dll" OR Filesystem.file_path = "*:MOVEitTransferwwwroot*") | fields _time, dest, action, file_name, file_hash, file_path, file_size, file_create_time, file_modify_time, file_access_time
    | fieldformat Time = strftime(_time,"%m/%d/%Y %T")
    

    Step 6

    Detecting the exfiltration of data is another way to find out if a bad actor is exploiting the MOVEit vulnerability. Examine firewall logs for large outbound network transfers from the MOVEit environment. 

    IPs and Volume to Detect

    IPs – these will be your MOVEit Instance IPs
    Volume in bytes – this will depend on time (defaulted to 1 hour in this detection) and what is considered abnormally high volume in your environment (default to 1MB in this detection).

    SPL

    | tstats `summariesonly` values(_time) as _time, sum("All_Traffic.bytes") as bytes, values("All_Traffic.src_port") as src_port, values("All_Traffic.transport") as transport, values("All_Traffic.dest_port") as dest_port from datamodel="Network_Traffic"."All_Traffic", values("All_Traffic.action") as action where All_Traffic.src="[INSERT MOVEit INSTANCES IPS]” AND All_Traffic.action !=blocked AND All_Traffic.dest_category !=internal AND All_Traffic.bytes > 1000
     by  "All_Traffic.dest" , "All_Traffic.user", "All_Traffic.src", _time span=1h
    | rename "All_Traffic.dest" as dest, "All_Traffic.user" as user, "All_Traffic.src" as src
    | table_time, action, src, src_port, dest, transport, dest_port, user, bytes
    | fieldformat Time = strftime(_time,"%m/%d/%Y %T") 

    Step 7

    There are several IP addresses that have been associated with the exploitation of the MOVEit vulnerability. TekStream has consolidated a list of these IOCs from numerous sources on the internet. These IOCs can be added to a lookup table and used in the detection below.

    TekStream MOVEit IOC List

    This CSV has the list of the IOCs at the time of this blog post being written – for a more updated version and/or information on how to build the lookup in the detection, please contact a TekStream consultant below.

    Search firewall and MOVEit IIS logs for requests from any of the IP addresses specified within the IOCs below.

    IPs To Detect

    In this case, you will look for any and all of the IP’s on the TekStream MOVEit IOC List

    SPL

    | tstats `summariesonly` values(_time) as _time, sum("All_Traffic.bytes") as bytes, values("All_Traffic.src_port") as src_port, values("All_Traffic.transport") as transport, values("All_Traffic.dest_port") as dest_port from datamodel="Network_Traffic"."All_Traffic", values("All_Traffic.action") as action
     by  "All_Traffic.dest" , "All_Traffic.user", "All_Traffic.src"
    | rename "All_Traffic.dest" as dest, "All_Traffic.user" as user, "All_Traffic.src" as src
    | eval allips = mvappend(src, dest)
    | inputlookup TS_MOVEit_IPs_List.csv | fields ip | rename ip as allips
    | table_time, action, src, src_port, dest, transport, dest_port, user, bytes
    | fieldformat Time = strftime(_time,"%m/%d/%Y %T")

    Step 8

    There is a domain associated with the MOVEit vulnerability and it is detectable with the logic below.

    Domain to Detect

    dojustit[.]mooo[.]com

    SPL

    | tstats `summariesonly` latest(_time) as _time  values("DNS.dest") as dest, values("DNS.query") as query, values("DNS.query_count") as query_count, values("DNS.message_type") as message_type, values("DNS.answer") as answer, values("DNS.reply_code") as reply_code from datamodel="Network_Resolution"."DNS" where DNS.query="dojustit[.]mooo[.]com" | table _time, dest, query, query_count, message_type, answer, reply_code | fieldformat Time = strftime(_time,"%m/%d/%Y %T")

    IOC List

    Below is an aggregate of IOCs found related to the MOVEit vulnerability. It has been presented here for you to have it consolidated in one spot and made easier to export to a lookup for notable detections.

    TekStream MOVEit IOC List

    Conclusion

    Ideally, you could make scheduled searches like what is shown above with lookup tables for matching more specific and new detections. These can be set to run on a continuous schedule to ensure the monitoring of your assets from new vulnerabilities. Old vulnerabilities that have been patched (and applied) can also be aged out of this lookup table to ensure it is timely and efficient. For questions on how to build such a process that is dynamic and customizable for your environment, ask one of our consultants by filling in the form below.

    References

    Articles referenced and used for this post: Trusted SEC, Huntress, Progress Community

    Disclaimer: The approaches recommended herein have not been tested broadly across the TekStream customer base. They are preliminary in nature and come without any certification of efficacy.

    We are available to assist if you have any questions, just contact us here:

  • Release Notes: What We Know About The Splunk Enterprise 9.1 Release

    Release Notes: What We Know About The Splunk Enterprise 9.1 Release

    By Zubair Rauf, Team Lead, Professional Services

    The world of data analytics is constantly evolving, now at a faster pace than ever as new technology is being introduced to process and analyze data faster and better than before. With the latest Splunk 9.1 release, Splunk is committed to helping organizations turn their raw data into actionable intelligence with new features and improvements. In this blog post we will recap some of those features and how they can help organizations turn data into action!

    UI and UX Features

    With every new release, Splunk focuses on improving their user experience for users. Some notable changes are recapped below:

    Redesigned Home Page

    The new home page has a tabular layout with a side bar. The updated sidebar will allow users to pin frequently used apps to the top of the sidebar and be able to search apps by name for easy access to apps. There are five new tabs which help with better organization. Now users can start where they left off with recently viewed knowledge objects, access Quick Links for commonly tasks and resources, view a home dashboard, view knowledge objects created by them and view knowledge objects that are shared with them.

    Screenshot of the Splunk Enterprise 9.1 home dashboard displaying the Quick Links tab. Options include adding data, searching, visualizing, managing permissions, and accessing learning resources.

    This is what the new home page looks like in Splunk v9.1

    Dashboard Studio Updates

    The new version comes with several Dashboard Studio updates to improve user experience for interacting with dashboards. Some notable changes included here are:

    • Export data of visualizations to CSV files
    • Base and Chain behavior is updated – now base searches do not need to update if the chain search SPL changes, and users can now also create up to TEN chain searches. This translates to improved performance for dashboards.
    • Events viewer visualization is available on dashboard studio, with workflow actions which help users take predefined actions on events/fields.
    • Inputs are available on the canvas, making user inputs be closer to the panels they impact, making them easier to interact with.
    • Users can now choose to show or hide panels in Absolute layout based on availability of data to display
    • Map visualizations also have Choropleth map layers added
    • Configuration UI introduced for axes charts which were previously only available via source code
    • Trellis is now available for single value visualizations

    Health Report Enhancements

    The health report has introduced new enhancements which will allow users to:

    • Disable individual features in distributed health report to remove noise
    • Track user modified threshold values and restore defaults
    • New built-in validation for indicator thresholds and feature names.

    Splunk 9.1 has also introduced these UI features:

    • Dark and light mode for the Search & Reporting app
    • Search history is preserved across search heads in search head clusters now by leveraging KV Store
    • Triggered Alerts page has a new backend framework to improve accessibility
    • Classic dashboards will also warn users if a script is detected in the XML before running it
    • Admins can also control how searches are shared through Splunk web

    Under The Hood

    Splunk 9.1 comes with a lot of new features and enhancements under the hood that will greatly improve Splunk capabilities for data ingestion, search, disaster recovery and more.

    Ingest Actions

    Ingest actions has been phenomenal since it was launched, and it has allowed customers to improve their data ingestion process and allows filtering, masking and routing data. It allows users to configure this without having to tinker with the .conf files. Some improvements for ingest actions we took note of are:

    • Multiple S3 destinations are now supported for routing. There can be a maximum of 8 destinations per provider
    • Using a combination of sourcetype name and timestamp, users can now partition S3 outputs so that all logs do not end up in the same S3 bucket folder. It looks like this:
    Screenshot showing event partitioning configuration in Splunk 9.1, including a sample S3 bucket schema path organized by year, month, and day with optional source type as a secondary key.
    • Cross-account KMS encryption is supported
    • Outputs can be customized for better federated search performance and there is more control over batch size, compression type and JSON output. This is what we saw:
    Splunk 9.1 interface for configuring output format, fields, compression type, and batch parameters. Dropdown shows ‘New line delimited JSON’ selected as the default format.

    Federated Search

    Federated search originally introduced in Splunk Enterprise 8.2 allows users to execute unified search across multiple Splunk environments. These can include Splunk Cloud and on-prem. Splunk 9.1 brings some much-needed enhancements to the federated search experience.

    • New remote dataset types introduced for standard mode federated search. These include
      • Metrics Index datasets which allow users to use mstats command in federated search for remote metrics indexes
      • Last job datasets convert last jobs run by remote scheduled searches into datasets that are searchable
    • Splunk Admins can now deactivate federated providers so users can’t search those datasets, deactivate federated indexes, and deactivate the ability of users to run transparent federated searches
    • Standard mode will now also allow wildcard searches to search across multiple indexes
    • Support for accelerated data models has been improved
    • Better access control on federated providers to control which federated indexes can users search in transparent mode

    License Manager

    Splunk 9.1 now supports a highly available license manager architecture to alleviate. Now customers with unlimited license can deploy multiple license managers in (can be in different regions) behind a load balancer.

    Search Head Cluster

    Search Head Clusters running Splunk Enterprise 9.1 now support automated rolling upgrades and this reduces complexity of the upgrade process for admins.

    Search

    A notable improvement in search is the support for parallel reduction for lookup command. Now searches using the lookup command can now leverage the processing power of indexers to return results. This helps improve search efficiency especially for high cardinality data.

    Version 1 of the stats command has been deprecated and users will see a warning banner for that. This command is replaced with version 2 of the stats command.

    Our Assessment

    Splunk Enterprise 9.1 has introduced a lot of new features and improved on existing features that will help users understand their data faster and better. We are pleased with what we see, and it reinforces our belief that Splunk continually improves to make our journey more effective. We think it is worthy of upgrading to the newest version as soon as possible.

    There are a lot of other features and enhancements introduced with Splunk Enterprise 9.1 for improving performance and user experience. Details on the additional features can be found here.

    If your organization is thinking about buying Splunk to start your data journey or upgrading an older version of Splunk to 9.1 to benefit from the latest features, reach out to me or another of our Splunk experts by filling the form below.