Tag: TekStream

  • Cybersecurity Just Got Personal – My County Was Held Hostage

    Cybersecurity Just Got Personal – My County Was Held Hostage

    By Judd Robins, Executive Vice President, Sales & Marketing

    Renewing my car tag should have been quick. But a cyberattack unexpectedly compromised Atlanta, GA’s (Fulton County) digital infrastructure. It paralyzed the local government’s digital systems, making routine tasks like paying water bills, accessing records and renewing a car tag impossible.

    The financial impact was steep, with an estimated $10-15 million cost to restore services plus another $10 million to harden the county’s cybersecurity infrastructure against future attacks (according to WSB Channel 2). As a local resident and cybersecurity executive, this attack hit close to home.

    The Escalating Attack on Public Data

    Cyberattacks, like the one in Fulton County, have become commonplace. Many public sector organizations are particularly vulnerable due to aging IT applications and very tight budgets.

    In 2023, 2,365 reported cyberattacks affected over 343 million victims. This represents a staggering 72% increase in data breaches since 2021, which previously held the record for the most breaches. And there’s more:

    These statistics highlight the escalating scope of cyber threats and the urgent need for enhanced security solutions — solutions that my team at TekStream provides to safeguard private and public organizations, like Fulton County, from debilitating cyberattacks.

    A Call to Action: How Organizations Like Fulton County Can Protect Themselves

    No organization — public or private — is 100% secure. Many struggle to stay ahead of cyber threats, grapple with workforce shortages and often lack the necessary security coverage for their specific environments. At TekStream, we’ve been tackling these challenges for years and have tailored our cybersecurity solutions to address them effectively.

    Using our Visibility, Fidelity and Automation (VFA) framework within a collaborative Splunk security environment, our MDR services assess and enhance clients’ security maturity. This strategic approach allows us to identify critical areas that require immediate attention, ensuring that security measures are precisely aligned with each organization’s unique needs.

    One of the key tools in our solution set of particular interest to government and educational IT departments is our deployment of a Shared Security Operations Center (Shared SOC). This innovative model allows multiple public sector teams to collaborate, sharing resources and intelligence.

    The Shared SOC not only broadens the scope of threat detection but also enhances the collective response capabilities, significantly strengthening the cybersecurity posture across organizations at a reduced cost of operations. Coincident with deploying a Shared SOC is our approach to addressing the significant gap in skilled cybersecurity professionals.

    Our SOC capabilities include providing supervised on-the-job training (OJT) of client personnel by our experienced MDR specialists, rapidly upskilling new entrants and enhancing the abilities of current team members. This initiative helps overcome the severe shortage in skilled cybersecurity talent and prepares teams to effectively counter and manage evolving cyber threats.

    An example of this model in action is the work we have done with Louisiana State University (LSU ) to set up their cybersecurity infrastructure through a Shared SOC. This collaborative effort between LSU, the university system and the state, has allowed LSU to significantly enhance its threat detection and response capabilities while developing the next generation of cybersecurity talent.

    At TekStream, we’re constantly working with clients to deploy creative solutions to enhance public sector cybersecurity cost effectively. Our goal is simple: to enable organizations to respond to threats while proactively anticipating and managing them.

    The results ensure that public entities are well-equipped to protect their critical digital infrastructures and the services provided to the constituents they serve.

    Securing Tomorrow

    Cyberattacks, like the one we experienced in Fulton County, demonstrate the vulnerability of our digital infrastructures. They disrupt essential services and personal safety.

    As part of a team that works hard to thwart these attacks, my car tag nightmare was a reminder of the importance of the work we do. It’s also a call for all public sector entities like Fulton County to aggressively seek solution partners like us to prevent the massive costs and disruptions that all the citizens of Fulton had to endure.

    To learn more about options to secure your cyber assets, read our guide, The Cybersecurity Paradox: Billions Spent but Breaches Boom. Or contact us for an evaluation of how your organization can cost-effectively secure its applications and better serve its constituents with a customized MDR solution.

  • Best Practices for Writing Efficient Splunk SPL Queries

    Best Practices for Writing Efficient Splunk SPL Queries

    By David Allen, Senior Splunk Consultant

    Data is the lifeblood of any organization, and harnessing its insights is paramount for making informed decisions. In the realm of data analytics, Splunk stands out as a powerful tool for searching, monitoring, and analyzing vast datasets.

    However, as datasets grow in size and complexity, the efficiency of your Splunk Search Processing Language (SPL) queries becomes a critical factor in unlocking the true potential of your data.

    In this blog post, we delve into the art of writing efficient SPL queries—strategies and best practices that not only enhance the speed of your searches but also contribute to a more streamlined and effective Splunk experience. Whether you are a seasoned Splunk veteran or just embarking on your data analytics journey, understanding how to optimize your SPL queries is a valuable skill set.

    In Splunk SPL, data is stored in indexes and the index command is used to specify the index or indexes from which you want to retrieve data. It is best practice to start your query with this command unless you are using another generating command. Here are scenarios and use cases where you would use the index command:

    Data Segmentation

    When your Splunk environment contains multiple indexes, you use the index command to segment your search to a specific index or a set of indexes. This is essential for isolating your search to a particular data source.

    index=your_index sourcetype=your_sourcetype

    Efficient Searches Across Indexes

    If you need to search across multiple indexes, you can use the index command to specify a list of indexes. This is useful when your data is distributed across different indexes based on sources or use cases and ensures that Splunk only scans the relevant indexes, improving the efficiency of your queries.

    index=index1 
    OR 
    index=index2

    Remember that the index command is a fundamental component of SPL and is often used in conjunction with other commands and criteria to tailor searches to your specific needs. Whether you’re conducting ad-hoc searches or building complex queries for monitoring and reporting, incorporating the index command allows you to precisely target and retrieve the data you require.

    After using the index command in Splunk SPL to specify a particular index or set of indexes, you can further refine and reduce the dataset using additional SPL commands and criteria. Here are several techniques to narrow down and focus your search:

    Specify Sourcetype or Source

    After filtering by index, you can refine your search by specifying a particular sourcetype or source. This is particularly useful when you want to focus on a specific type of data within the selected index.

    index=your_index sourcetype=your_sourcetype

    Time Range Restriction

    Limit the search to a specific time range using the earliest and latest parameters. This reduces the volume of data processed, enhancing search performance.

    index=your_index sourcetype=your_sourcetype earliest=-24h latest=now

    Field-Based Filtering

    Utilize field-based filtering to narrow down your search results based on specific field values. This is effective when looking for events that match certain criteria.

    index=your_index sourcetype=your_sourcetype field_name=value

    Combining Commands for Further Filtering

    index=your_index sourcetype=your_sourcetype 
    | stats count by field_name 
    | search count>100 
    | table field_name, count
    

    Advanced Field Filtering with eval

    Use the eval command to create calculated fields that meet specific conditions. This is helpful for advanced filtering based on complex expressions.

    index=your_index sourcetype=your_sourcetype 
    | eval new_field=if(old_field > 100, "High", "Low") 
    | search new_field="High"
    

    Regular Expression (Regex) Filtering

    Use regular expressions to filter events based on complex patterns or substrings. This is useful when you need to match events that follow a specific format. You can use a regex command for example to keep only the results that match a valid email address like [email protected].

    index=your_index sourcetype=your_sourcetype 
    | regex email="^([a-z0-9_.-]+)@([da-z.-]+).([a-z.]{2,6})$"
    

    Splunk Architecture Options

    In this next section we will look at the different architectures in Splunk and how we can take advantage of those architectures to write even more efficient SPL. But first, a little background information explaining the differences between a standalone and distributed environments.

    In Splunk, the terms “standalone” and “distributed” refer to different deployment architectures that organizations can adopt based on their data processing and scalability requirements. Let’s explore the key differences between a standalone and distributed environment in Splunk:

    Diagram comparing Splunk standalone vs. distributed environments, with icons illustrating single vs. multiple host configurations.

    Standalone Environment

    Single Instance:

    In a standalone environment, there is a single Splunk instance. This instance performs all functions, including indexing, searching, and serving the user interface.

    Indexing and Searching on the Same Instance:

    In a standalone deployment, the indexing and searching processes take place on the same machine. This simplicity is beneficial for smaller use cases but can be a limiting factor as data volumes increase resulting in slower SPL execution times.

    Distributed Environment

    Multiple Components:

    In a distributed environment, the Splunk deployment is composed of multiple components, each responsible for specific functions. Common components include indexers, search heads, and forwarders.

    Indexing and Searching on many Instances:

    Since every distributed environment contains more than one indexer and possibly more than one search head, searches can be distributed across all the indexers to effectively run your SPL in parallel on the indexers and each indexer runs the same SPL on its dataset. This results in lightning fast execution times compared to running the same SPL on a Single Instance.

    But this potential gain of the distributed environment can only be utilized if the SPL commands are arranged for maximum efficiency. This is because only certain commands can be run on the indexers and other commands can only be run on the search heads and once one of the search head only commands is reached then all subsequent commands must be run on the one search head which reduces efficiency. Unfortunately, search head commands are not distributed across all search heads in search head cluster environments.

    Distributable Streaming Commands

    This type of command can run on the indexers. Here are the most common distributed streaming commands….

    Graphic listing common SPL transformation commands including eval, fields, rename, replace, and regex.

    But as not all Splunk commands are distributable streaming commands, it is important to make sure that all preceding commands are distributable streaming commands. This will keep the SPL running on the indexers.

    Transforming Commands

    This type of command can only be run on search heads;

    Graphic listing SPL aggregation commands including chart, stats, rare, top, and timechart.

    As you can see in order to accomplish one of these commands the instance running this command must have the entire dataset and once one of these commands is reached, then all the results from the indexers are sent to the one search head which from that point on completes the remaining query regardless of the type of command used.

    So it is important as you write your SPL to run as much as you can on the indexers as long as possible before using a transforming command. Because once a transforming command is used all subsequent commands are run on the search head and the benefit of parallel processing is lost.

    Execution Speed Calculation

    You can always check to see how long it takes to run your search by looking at the Job Inspector. Here is how to do that:

    Screenshot of Splunk’s Job menu with the dropdown options to edit, inspect, or delete a job.
    Screenshot showing job inspector summary indicating 0 events scanned and the query completing in 0.067 seconds.

    In conclusion, mastering the art of writing efficient Splunk SPL (Search Processing Language) is pivotal for unlocking the full potential of this powerful analytics platform. Efficient SPL not only accelerates search performance but also enhances the overall user experience, enabling quick and accurate insights into your data.

  • Predict Your Incident Tickets With Splunk MLTK 

    Predict Your Incident Tickets With Splunk MLTK 

    Experimenting with Forecast Time Series Workflow

    By Kamal Dorairaj, Senior Splunk Consultant

    This blog details a step-by-step process on how to create and run a prediction model with Splunk MLTK. The use case explained is specifically showing how to predict the number of incident tickets created for an Operations Team during a busy holiday time, so the team can prepare for the workload. Here are my guidelines for the prediction model.

    Experiment

    The experiment predicts the number of incident creation tickets for each month in Salesforce, for the next five months. The Forecast Time Series experiment assistant workflow is used for this use case. The FTS Assistant predicts the next value in a sequence of time series data, and the result includes both the predicted value and a measure of the uncertainty of that prediction.

    Follow these steps to create a Forecast Time Series Experiment:

    Go to Apps -> Splunk_ML_Toolkit -> Experiments.

    Click on Create New Experiment

    Select Forecast Time Series from the dropdown

    Complete the Experiment Title and Description and click Create. (Both the name and description can be edited later if needed)

    Splunk Machine Learning Toolkit Experiments page showing multiple available experiment types including Smart Forecasting, Smart Outlier Detection, and Clustering.
    A dropdown menu in Splunk MLTK showing options for creating a new experiment, with Forecast Time Series highlighted among other predictive options.
     Blank forecast experiment setup screen in Splunk MLTK showing options to select an algorithm, field to forecast, and configure method and intervals.

    Build The SPL

    Creating the SPL is the 80% of the work. The SPL should filter the condition appropriately to a specific numeric field value. The below SPL is an example where the search scans thru the past four years of salesforce incident tickets count through the input lookup with a one month span. Develop similar SPL based on your data sources.

    [| INPUTLOOKUP SALESFORCE_INDEX.CSV ] SOURCETYPE=”SFDC:CASE” CASENUMBER=* STATUS!=DUPLICATE | EVAL TEMP=STRPTIME( CREATEDDATE, “%Y-%M-%DT%H:%M:%S.%Q”) | EVAL _TIME=TEMP | TIMECHART SPAN=1MON DISTINCT_COUNT(CASENUMBER) AS “TICKETS COUNT”

    Forecast experiment in Splunk MLTK with a SPL query entered for analyzing duplicate Salesforce case tickets, including eval and timechart functions.

    Algorithim

    Select the Kalman Filter algorithm from the Algorithm dropdown. A good understanding of each algorithm is needed to use the algorithm that works best for our use case. The Kalman Algorithm considers subsets of features such as local level (an average of recent values), trend (a slope of line that fits through recent values) and seasonality (repeating patterns).

    From the Field to Forecast list, select the Tickets Count field which we want to forecast for this use case.

    Next, specify 5 in the Future Timespan field, which is 5 months of future data we want to forecast.

    Then, specify 95 in the Confidence Interval field, which is the percentage of the future data you expect to fall inside of the confidence envelope.

    All other fields are optional and can be used based on the use case.

    Completed forecast experiment setup in Splunk MLTK showing a populated query and configuration for Kalman Filter with a 95% confidence interval.

    Forecast

    Click on Forecast. The math behind the algorithm gets applied on the search results and will produce the results of the next five-month prediction count.

    Draft version of a forecast experiment for Salesforce duplicate tickets in Splunk MLTK, ready to be saved or executed with pre-filled parameters.
    Splunk MLTK forecast visualization with a line graph showing ticket count over time, shaded confidence intervals, and performance metrics like R² and RMSE.

    Definition of The Variables

    After you forecast a time series, review your results in the following tables and visualizations.

    Table explaining forecast result metrics in Splunk, including definitions for R² Statistic, Root Mean Squared Error, and Prediction Outliers.

    Run The Model

    Click on the Show SPL to generate a new modal window/overlay showing the search query you used to forecast. Copy the SPL for future use in other aspects of your Splunk environment.

    SPL code preview popup in Splunk MLTK showing the complete forecast command used to calculate and visualize predicted ticket counts.

    Once you are getting valuable results from your experiment, save it. Saving the experiment results in the following actions:

    Assistant settings saved as an experiment knowledge object. 
    The Draft version saves to the experiment Listings page. 
    Any affiliated scheduled trainings and alerts update to synchronize with the search SPL and trigger conditions. 

    Load a saved experiment by clicking the experiment name. 

    Within the experiment click  Open in Search  to generate a new search tab for this same dataset. This new search will open in a new browser tab, away from the assistant. This search query uses all data, not just the training set. You can adjust the SPL directly and see results immediately. You can also save the query as a Report, Dashboard Panel or Alert.

    Line and bar chart from a Splunk dashboard titled “Salesforce Monthly Incidents Prediction,” showing predicted and actual ticket creation counts from 2018 to early 2023, with a three-month forward forecast and confidence bands.

    Experiments are always stored under the user’s namespace, which means that changing sharing settings and permissions on experiments is not supported.

    Now you know how to create and run a prediction model with Splunk MLTK. Let us know if your model works, and if you have any questions after running your next prediction. Happy Splunking!

  • Splunk Timestamp Extraction – Where and How to Find Time!

    Splunk Timestamp Extraction – Where and How to Find Time!

    By Tyler Phillips, Splunk Consultant

    Splunk timestamp extraction can be tricky until you work with it a couple times. Follow along with me through a couple different examples and you should be able to extract a timestamp out of any data. 

    So, what do we use to extract a time stamp? There are a few settings in Splunk’s “Magic 8” that go into props.conf of the data you are trying to ingest. There are three settings were going to work with today.

    TIME_PREFIX

    TIME_PREFIX is the regex to tell Splunk where to start looking for the timestamp. Splunk will then attempt to make a timestamp out of the characters that follow the prefix. If the prefix cannot be found then timestamp extraction will not occur.

    MAX_TIMESTAMP_LOOKAHEAD

    This is the count of characters you want to look at in the timestamp. This count begins right after the end of the found TIME_PREFIX characters and counts from there. This does not count from the start of the event.

    TIME_FORMAT

    Time variables used to parse out our timestamp and tell Splunk what each item is.

    VariableDescription
    %EzSplunk-specific, timezone in minutes.
    %HHour (24-hour clock) as a decimal number. Hours are represented by the values 00 to 23. Leading zeros are accepted but not required.
    %IUppercase “i”. Hour (12-hour clock) with the hours represented by the values 01 to 12. Leading zeros are accepted but not required. Use with %p to specify AM or PM for the 12-hour clock.
    %MMinute as a decimal number. Minutes are represented by the values 00 to 59. Leading zeros are accepted but not required.
    %NThe number of subsecond digits. The default is %9N. You can specify %3N = milliseconds, %6N = microseconds, %9N = nanoseconds.
    %pAM or PM.
    %TThe time in 24-hour notation (%H:%M:%S). For example 23:59:59.
    %XThe time in the format for the current locale. For US English the format for 9:30 AM is 9:30:00.
    %ZThe timezone abbreviation. For example EST for US Eastern Standard Time.

    So, for testing we are going to use my local Splunk install and the add data wizard/upload data to test our configs and check the data.

    My first example is the splunkd_ui_accesslogs in my internal index. This one is pretty simple as Splunk actually already picks up the timestamp for us! That’s it right? Well, we could stop there and let Splunk do the work or we could tell Splunk exactly where to look and what to look at so it doesn’t have to waste resources trying to do this itself.

    Splunk's "Set Source Type" page showing basic line merge and line breaker settings without timestamp extraction configured.

    As you can see the correct timestamp is highlighted and yet we don’t have any settings set in advanced. Let’s change that.

    First were going to take this event into a regex tester (I use regex101) to create a regex for before the timestamp. Doing this I was able to use “s[“ as my TIME_PREFIX.

    TIME_PREFIX = s[

    Next, I counted the number of characters in the timestamp and came up with 30 characters including the space. Yes, the space does count.

    MAX_TIMESTAMP_LOOKAHEAD = 30

    Now for the fun part. We are going to use the Splunk Time Variables doc to create a TIME_FORMAT. 

    Using this page, we want to find the correct variable for each element of the time and write it out in the same format with those variables. Here is what I came up with for this timestamp.

    TIME_FORMAT = %d/%b/%Y:%H:%M:%S.%3N %z

    The %z at the end represents time zone in the data.

    Splunk source type configuration with advanced timestamp fields filled in, including TIME_PREFIX and TIME_FORMAT.

    Using these settings, we can see that our test worked and we are collecting the correct timestamp for Splunk so it can save on workload.

    Next, I am going to use a splunkd.log event.

    11-07-2023 12:09:09.683 -0500 INFO TailReader [1039908 tailreader0] – Batch input finished reading file=’/Applications/Splunk/var/spool/splunk/tracker.log’

    This event has the timestamp at the beginning of the event so we are going to use the TIME_PREFIX of “^”. This tells Splunk that the timestamp is at the very beginning of the event. The methods for creating the MAX_TIMESTAMP_LOOKAHEAD and TIME_FORMAT stay the same. Using this event, I came up with these settings.

    TIME_PREFIX = ^

    MAX_TIMESTAMP_LOOKAHEAD = 29

    TIME_PREFIX = %m-%d-%Y %H:%M:%S.%3N %z

    Splunk timestamp extraction example showing correctly parsed log events with yellow-highlighted timestamps and INFO-level log entries.

    Next, I did want to show some syslog data and working with its timestamps. Nothing different here but syslog is a very common type of data so I thought it would be good to include. Here I will be using a couple of F5 syslog events. My settings are:

    TIME_PREFIX = ^

    MAX_TIMESTAMP_LOOKAHEAD = 15

    TIME_FORMAT = %b %d %H:%M:%S

    Splunk input settings for source type F5_Example with mixed timestamp formats visible across multiple log types.

    If you are looking to work well with timestamps it may take a couple tries and some practice but it will be easy to pick up and make things smoother for you when bringing in data. I am happy to answer any questions you have, just contact me using the form below. Happy Splunking!

  • Useful Online Resources for the Aspiring Splunk Admin

    Useful Online Resources for the Aspiring Splunk Admin

    By Eric Levy, Splunk Consultant

    No matter how much training you go through and how many certifications you get, you can truly never know everything about Splunk. Some of it isn’t even provided in training itself – to properly use Splunk, you’ll need experience around the command line, data sources, and syslog. Even beyond that, you’ll never truly memorize every possible setting in props.conf or how to form every possible regular expression.

    Here is a list of resources that my fellow TekStream colleagues and I compiled that we use on a near daily basis to assist in our Splunk work.

    OFFICIAL SPLUNK RESOURCES 

    Splunk Docs

    You will never go a day using Splunk without referring to the official documentation, colloquially known as the “Docs”. It has pages on every product offered by Splunk, including premium apps and select supported apps in Splunkbase, and provides detailed installation steps, configuration steps, upgrade steps, and best practices. Nearly every .conf file and SPL command/function has its own page for reference, on top of formatting standards for time values and dashboards (both Classic and Studio). The added benefit is that Splunk keeps previous versions of the Docs available if you aren’t running on the latest version. While the Docs are an essential resource, be wary of vague wording on some pages.

    Splunk Community Posts

    If you didn’t find it in the Docs, somebody else didn’t either. The Splunk community has thousands of Q&A threads for tricky searches, error messages, unconventional log sources, and other specific use cases. Oftentimes community posts and the docs go hand in hand as several users link back to the docs for more information on an answer. It’s sites like here that show how limitless the sky can be with Splunk.

    Splunkbase

    A repository for apps to install in Splunk – some supported, others not. Includes technical add-ons (TAs) for data sources, front-facing apps with useful dashboards, alerts, and searches, and even custom visualizations (like a calendar, for example). While you’ll always interact with Splunkbase in some way or another (as Splunk communicates with it directly to install apps), the site itself is useful for documentation and important updates provided by the developers. Don’t see an app for your purposes? Develop one and submit it for others to use!

    ENTERPRISE SECURITY

    Splunk ES Detections

    This constantly updated list provided by Splunk has several threat detections to use in Enterprise Security. Each detection has steps for implementation, security context, and known false positives. Keep in mind that some are marked “experimental” and may not be confirmed as effective.

    Risk Based Alerting Guide

    Risk Based Alerting is a powerful and unique feature in Enterprise Security for prioritizing threat sources, and this free PDF is a guide for how to use it and get the most value out of your security notables.

    UNOFFICIAL SPLUNK RESOURCES

    Splunk Subreddit

    Unaffiliated with Splunk, but the subreddit is a sufficient alternative to the Splunk Community posts when searching for an unconventional use case.

    Stack Overflow

    Similar to the Splunk Community posts and the subreddit, here is another great resource to find unconventional use cases.

    GoSplunk 

    An open repository for SPL queries and dashboards, essential for anyone getting started with SPL and/or looking for inspiration for their own projects. They also have a blog with some helpful Splunk information, although they haven’t been updated in over 5 years.

    TekStream Splunk Blog Posts 

    Our esteemed Splunk Consultants from all over the country always post helpful information, tips, and resources to this very blog. Be sure to follow us on LinkedIn for updates and new blogs as they come in!

    NON-SPLUNK ESSENTIALS 

    RegexOne 

    A perfect starting ground for learning regular expressions.

    Regex101 

    Once you’ve mastered RegexOne, Regex101 becomes an invaluable tool for figuring out regular expressions for field extractions and line breaking. Don’t be surprised if you use this website every week, if not every day.

    JSON Formatter 

    Helpful for developing apps and deciphering complicated log files (although Splunk is generally quite good displaying these events via INDEXED_EXTRACTIONS or KV_MODE).

    Crontab Guru 

    Some reports and alerts may need to be run on an unconventional interval for their own reasons or for spreading out search jobs. Splunk uses cron jobs to set up such alerting and this site makes formatting them easy. Just copy and paste directly into Splunk when finished.

    Character Count Tool 

    MAX_TIMESTAMP_LOOKAHEAD and TRUNCATE are essential props.conf settings to help Splunk parse time and guide each sourcetype on event length. Instead of manually counting characters, paste an event or a timestamp here to get a value immediately.

    Epoch Time Converter 

    I’ve developed use cases for my own customers to filter dashboard panels based on time intervals, which involve weaving around values set by the time picker with directly comparing epoch values. Other times, I may want to verify that the timestamps coming in are being read correctly by Splunk into the right time zone offset. This converter is perfect for translating dates to and from epoch time for these use cases and beyond.

    This list is in no way comprehensive – there are infinite use cases for Splunk that may require other tools. These are just the ones that me and my fellow consultants at TekStream use regularly. Happy Splunking!

  • Get Your Custom App to Pass App Vetting on the First Try

    Get Your Custom App to Pass App Vetting on the First Try

    By Nate Hufnagel, Splunk Consultant II

    Introduction

    Every day, more and more Splunk customers are moving from on-prem to Splunk Cloud. While this move simplifies architecting and cuts down on server admin costs, it also makes it more difficult for Splunk admins to install new and existing custom apps (read non-Splunkbase). All apps in Splunk cloud must pass a vetting process called AppInspect. Without understanding the inner workings of the AppInspect process, the task of making an on-prem custom app Splunk Cloud compliant can be tedious and time consuming. This guide will give step-by-step instructions to get your custom app to pass the FIRST time. By the end, you’ll have a cloud app template you can use for other custom apps.

    Download Splunk Add-on Builder

    To get started, it is recommended to download the Splunk Add-On Builder and start by using the default add-on as a template. It contains the bare essential directories and files expected by the app vetting process (plus some extraneous files that can be removed).

    After downloading the app, navigate to the home page under Apps>Splunk Add-on Builder and click New Add-on on the far right.  Enter the name of your app, and optionally edit the directory name as needed. 

    Screenshot of the Splunk “Create Add-on” interface, showing fields like add-on name, folder name, version, and description used to initiate a custom app.

    The resulting custom app will be created under $SPLUNK_HOME/etc/apps.

    Prep the App

    Next the app will need to be prepped in order to pass AppInspect. These are the most common items that must be addressed for apps to pass (easiest to do these from the command line. Assume that the working directory for all steps is “$SPLUNK_HOME/etc/apps/”):

    1. Remove addon_builder.conf in the app’s default directory
    2. Move the auto-generated app.conf from local to default
      a. It’s recommended to use the auto-generated one, even if there is already an app.conf in the existing version of the custom app.
    3. Modify the auto-generated app.conf to clear errors and warnings
      a. Check that the package attribute and stanza already exist. Create them if they do not:
      [package]
      id = <custom_app_directory_name>
      b. Add the following additional id stanza and attributes anywhere in app.conf:
      [id]
      id = <custom_app_directory_name>
      name = <custom_app_directory_name>
      version = x.x.x
      *Make sure the version numbers are the same if they are listed multiple times.
    4. Ensure that app.manifest to matches what’s in app.conf
      a. Check the first block of json and ensure that “info.title”, “info.id.name”, and “info.id.version” have values that match what’s in app.conf.
    Code snippet showing a JSON schema definition for a Splunk app, including version info, app title, ID, and metadata structure.
    1. Remove the local directory (double check that it’s empty first!)
    2. Add binaries/conf files
      a. Be sure to place any executables in “bin/” and all Splunk configurations in “default/”
    3. Edit default.meta with necessary permissions
      a. The “admin” role is not available in Splunk cloud, so every reference in must be changed to “sc_admin”, which is the Splunk cloud equivalent.
      b. If the original custom app has a local.meta, it must be merged into default.meta.
    Code snippet displaying access control settings in a Splunk configuration file, including read/write permissions and export rules.
    1. Change permissions on app directories/files and compress the app
      a. All files must be changed to allow others to read, while all directories must allow others to read/write.
      b. On Linux/macOS, this equates to 755 for directories and 644 for files.
      c. Once the permissions are correct, compress the custom app into a .tgz or tar.gz archive.
      i. Note: if this is done on a mac, be sure to exclude any “__MACOSX” files. The command line options for this can vary depending on the current macOS version.

    Install in Splunk Cloud

    The new custom app is ready to be installed.  Navigate to Apps>Manage Apps>Uploaded Apps>Upload app on the desired search head in Splunk cloud and select the custom app archive.  Splunk will automatically run the app through AppInspect and create a report of its findings before installation, which can be viewed by clicking the “View Report” link in the pop-up window.  If there are no issues, Splunk Cloud will give the option to install the package.

    Note: It is recommended to also clear all warnings, even though the app can still technically be installed with warnings present.

    Here are some of the most common “gotchas” to look out for:

    1. If the custom app contains scheduled reports within savedsearches.conf, make sure that they are disabled before vetting. To do this, ensure that every instance of “enableSched” is set to 0 or false.
    2. Same with any data models in datamodels.conf – ensure that “acceleration = false” or “acceleration = 0”
    3. If the app utilizes an SDK, ensure that it’s updated to the latest version.

    And that’s it! By following this guide, you’ll be able to filter out the most common failures when building a custom app for Splunk Cloud. Depending on the complexity of the custom app, there may be additional failures to address in the custom config files.

  • Unleashing the Power of Serverless Automation

    Unleashing the Power of Serverless Automation

    Supercharge Your Business Efficiency with AWS Lambda and EventBridge

    By Jay Almers, Senior Solutions Architect

    Let’s face it, the digital landscape is always changing. Technology keeps evolving, and businesses are constantly looking for ways to optimize operations, cut costs, and stay agile. That’s where AWS Lambda and EventBridge come in. They have the power to revolutionize your business processes through serverless automation. So, hop on board as we embark on a journey that will show you how these technologies can streamline integration, improve scalability and boost operational efficiency.

    Serverless Automation

    What is serverless automation, you ask? It’s a game-changing approach that combines the best of serverless computing with the magic of automation. With serverless automation, you can automate tasks, workflows, and integrations without the need for manual intervention or the hassle of managing infrastructure. Thanks to nifty tools like AWS Lambda and EventBridge, businesses can achieve seamless automation, real-time data processing, and make agile decisions that drive success.


    In the past, businesses had to rely on manual processes, batch jobs, or clunky custom-built solutions to automate operations. Those approaches (mostly) worked, but came with their fair share of complexities, maintenance headaches, and limited scalability. Enter serverless automation, the superhero of the automation world. It offers a scalable, event-driven architecture that can handle all your business events, triggers, and data processing needs with remarkable efficiency.


    So, why should you embrace the benefits of serverless architecture? Well, it’s all about automatic scaling, reduced infrastructure management, and the beauty of pay-per-use pricing models. Picture this: with serverless architecture, your business can effortlessly scale up or down based on demand, ensuring top-notch performance while keeping costs in check. Say goodbye to the burden of server management, and hello to the freedom to focus on your core objectives, drive innovation, and deliver real value to your customers. And let’s not forget the cherry on top – pay only for the resources you actually use rather than over-provisioned downtime, maximizing cost efficiency and financial flexibility.

    AWS Lambda

    Now, let’s dive into the heart of the matter: AWS Lambda, the superhero of business automation. With AWS Lambda, you get a serverless compute service that lets you run your code without worrying about provisioning or managing servers. It’s like having a magic wand that can automate a wide range of business processes – from data processing to file transformations, image resizing, and more. The result? Faster time-to-market, improved scalability, and reduced operational headaches.


    But wait, there’s more! Enter EventBridge, the trusty sidekick of serverless automation. EventBridge acts as a central event bus that seamlessly integrates your applications and systems. It’s the master of event-driven automation, effortlessly streamlining workflows and making real-time data processing a breeze. With EventBridge, you can capture and respond to events from various sources – think AWS services, third-party applications, and your own custom systems. It’s the secret sauce that allows you to automate processes, trigger actions, and achieve that seamless integration you’ve always dreamed of.

    Use Cases

    Now, let’s take a look at some real-world use cases where serverless automation can save the day. Imagine optimizing your order processing with the power of Lambda and EventBridge. Orders fly through the system, automatically validated, inventory updates happening in real-time, and notifications swiftly sent to customers and stakeholders. All of this creates a smooth, efficient order management process that’ll have your customers singing your praises.


    Workflow orchestration with Lambda and EventBridge become a piece of cake as tasks get routed, approvals happen like magic, and notifications are sent – all within a seamlessly automated workflow. Say goodbye to manual effort and hello to efficient collaboration and task execution. It’s workflow orchestration taken to a whole new level.

    Real-Time Data Analytics

    Finally, let’s talk about real-time data analytics. Picture Lambda and EventBridge at work, capturing and processing data events in real-time. The result? Immediate analysis, data-driven decision-making, and actions triggered on the fly. You’ll be making informed decisions faster than ever before, allowing you to proactively respond to changing business conditions where time and efficiency are paramount.


    With serverless automation, you take advantage of the power of scalability that dynamically allocates resources based on demand, ensuring optimal performance and cost efficiency. Say goodbye to operational headaches and hello to the freedom to focus on your core objectives. And let’s not forget the magic of seamless integration, courtesy of event-driven architectures powered by Lambda and EventBridge. You’ll have a harmonious ecosystem where applications, systems, and services come together to work cohesively, on your behalf.

    Conclusion

    In conclusion, get ready to embark on a transformative journey with serverless automation. We’ve got the power of AWS Lambda and EventBridge at our fingertips, ready to streamline your business processes, supercharge your scalability, and achieve that seamless integration you’ve always dreamed of. Partner with TekStream Solutions and let our experience pave the way to operational efficiency and success.

  • Splunk Compliance Essentials: Your One-Stop Shop

    Splunk Compliance Essentials: Your One-Stop Shop

    Meet The Requirements of CMMC, DFARS, FISMA and More

    By David Cheever, Team Lead, Advanced Services

    Introduction

    Splunk’s Compliance Essentials provides several features that can help organizations meet the requirements of various compliance frameworks. This app comes pre-packaged with a library of compliance practices, dashboards that can be used to monitor compliance status & track progress, and reports that can be used to demonstrate compliance to auditors.

    After a fresh installation, the app will direct you to the App Initial Setup Page to select a framework.  You can also select multiple frameworks if more than one is applicable to your organization. Compliance Essentials addresses the requirements for the following five frameworks:

    1. Cybersecurity Maturity Model Certification (CMMC)
    2. Defense Federal Acquisition Regulation Supplement (DFARS)
    3. Federal Information Security Modernization Act (FISMA)
    4. Risk Management Framework (RMF)
    5. Office of Management (OMB) M-21-31

    This blog will provide a general overview of the features and benefits of the app, which is available for free on Splunkbase.

    Overview Pages

    The overview pages provide a high-level overview of your audit and continuous monitoring program. The Domain Overview page displays a selection of domains, each of which drills down into a Practice Overview page. The Practice Overview page, in turn, displays a selection of dashboards that provide more detailed information about the status of the program. For a single pane of glass view, the Executive Overview dashboard provides a top-down view of the status of the various audit review entries across the full scope of the solution.

    Executive Overview dashboard showing review metrics, practice status mix, and audit entry timelines for various security controls.

    Practice Dashboards

    Compliance Essentials uses lookups and KV Store collections to map content to different controls. It also relies on data models to ensure that pre-built dashboards are populated correctly. The app comes with a robust library of more than 50 dashboards that align with OMB requirements, more than 100 dashboards that align with DFARS practices, more than 170 dashboards that align with CMMC practices, more 300 dashboards that align with FISMA practices and 2,900+ dashboards that align with RMF practices.

    Dashboard displaying successful and failed remote logins, privileged account authentications, and login details by user and IP address.

    Custom Content

    The Custom Content page in Compliance Essentials includes a list of custom dashboard panels which can be added to already existing dashboards. These panels are organized by practice and domain, making it easy to locate the panels you need. To add a panel to a dashboard, simply click on the “Add to dashboard” button. The panel will then be added to the corresponding dashboard. The solution includes over 300 custom panels that can be added to dashboards, in addition to the panels that ship out-of-the-box. This gives you a wide range of options to customize the dashboards to meet your specific needs and make them more informative and useful.

    List of compliance panels with audit titles, descriptions, and dashboard integration options under Access Control domain AC-2.14.

    Adding Records

    Users can also add records to each dashboard, making it easier to store relevant documentation and artifacts directly within Splunk. This is especially useful for practices that are documented or policy-driven, as it eliminates the need to search for artifacts in multiple locations.

    Table listing compliance-related documents and reports with completion dates, descriptions, and options to edit or delete.

    Audit Entries

    Each dashboard has an audit entry capability that allows you to view, manage, and create audit entries. This workflow can be used by your internal teams to track comments and feedback from reviews, verify compliance status, and set follow-up review dates.

    Audit entries interface showing creation dates, statuses, reviewers, and descriptions with a conformant status indicator.

    Solution Activity

    The Solution Activity page allows you to track the app’s activity and utilization, as well as audit the auditor’s work. It also provides monitoring capabilities for your audit and continuous monitoring program, both in terms of activities and overall trends.

    Solution User Activity dashboard visualizing page access counts, recent trends, and a timeline graph broken down by compliance module and user.

    Conclusion

    Splunk’s Compliance Essentials is a one-stop shop that can help organizations improve their compliance posture by providing a centralized view of all their compliance data. This can help organizations to identify potential compliance gaps and track their progress towards compliance. If you are looking for a way to improve your organization’s compliance posture, contact us for more information on implementing Compliance Essentials into your environment.

  • Splunk SOAR: Introduction to the HUD Space

    Splunk SOAR: Introduction to the HUD Space

    By David Burns, Soar Engineer

    Security Analysts Score with SOAR

    Are you familiar with the HUD (Heads Up Display) within Splunk SOAR? It’s part of the out of the box capabilities Splunk provides which are great for highlighting information that the Security Analysts (SAs) feel is important. If not, this overview article is for you.

    Build your Heads Up Display

    You can find the HUD on any container view in the upper left-hand corner.

    Splunk SOAR case management screen with “pin_demo” labeled and circled, introducing the HUD space in a live case.

    When expanded, it might look like this:

    SOAR HUD view showing three HUD cards with pinned values and a table listing each message, data, and the user who pinned it.

    You can see above the default options for the HUD as either cards (the top three items) or data values (bottom three values). Cards can be a choice of three colours: grey, blue, or red.

    To change the information being presented, click on the write icon on a card or the ellipse for the lines of data.

    Zoomed-in view of a grey card element in the HUD dashboard, indicating a placeholder for a pinned metric.
    Three-dot menu used in Splunk SOAR to access additional options for individual HUD entries or table rows.

    Pins can be added, or characteristics modified, by clicking on the gear in the upper right-hand corner. Clicking the gear will bring up a window like this:

    Configure HUD screen in SOAR showing editable HUD card titles and color options for each card.

    This interface allows SAs to add cards, change colors, and even change the order in which they are displayed. You can toggle displaying the data table here as well.

    To create a simple pin, click + Hud Card.

    Interface for manually adding a HUD card in Splunk SOAR, with options for message, values, card type and color.

    Message is the string that will be displayed above the value. Clicking save creates the card, but you will have to update the values as mentioned above.

    The great thing about pinning things to the HUD is that you can do it programmatically as well from within a playbook. This way you can bring something to your SA’s attention immediately as needed during playbook execution. The ability to add a pin is is found under the utility option, and below is a simple playbook that was used to create the pins in Figure 2 above.

    Workflow editor in Splunk SOAR with a configured “pin” utility used in a playbook flow, highlighting pin message and color settings.

    The underlying code for this call is the phantom.pin function. While not documented on the Container API page, here is some potential documentation as of SOAR 6.0.0:

    Success, message, pin_id = phantom.pin(container=container, data="600", message="Card Hud 3", name="example", pin_style="red", pin_type="data")
    Table in dark mode showing Splunk SOAR HUD configuration data. Includes columns for HUD card titles, pin types (e.g., card), colors (e.g., blue, red), data values, and timestamps for each entry.

    The pin_id is then can be referenced for the update_pin or delete_pin function.

    There are a couple of caveats to be aware when using the playbook utility function:

    1. When selecting the data pin type, pin colour is ignored.
    2. Card pins will be added at the end
    3. Users will need the Edit Events permission to add/modify any pins on the container.

    The phantom.pin function is obviously a wrapper for the container_pin REST call, but it doesn’t allow for access to all the different capabilities that a POST command can do. Look for XXX about how to create more complicated HUD pins to boost your SOAR’s capabilities.

    We hope this has helped you create an awesome heads up display, and that it makes your Splunk SOAR capabilities shine. Contact us if you have any additional questions:

  • TekStream Security Bulletin: APT Spotlight Ransomware from MeowCorp

    TekStream Security Bulletin: APT Spotlight Ransomware from MeowCorp

    By Bryan Bollou, Team Lead, Cybersecurity Engineering

    Introduction

    Confirmed to have been in use since February 2020, the Conti Ransomware has made a resurgence with a newer APT – MeowCorp. The ransomware’s code was originally leaked by an alleged Ukrainian hacker after the group publicly expressed support for Russia during the Russia-Ukraine war. With the code public, many other ransomwares have used its code as a base while many decryptors have been built from it at the same time. Being one of the copycats, the MEOW! ransomware shares many all the Conti characteristics from its use of ChaCha20 and RSA-4096 to encrypt files to dropping a ransom note named “readme.txt”.

    What is unique about this malware is this use of leaked source code for generating novel ransomware variants. This is a recent phenomenon, which simplifies the process for hackers to produce and spread new strains of ransomware. Such attacks can be disruptive and costly for organizations. The worst outcomes being the potential loss of crucial data and system access, often necessitating the payment of a ransom to regain access.

    Threat Overview

    The attacks using the Conti-based Ransomware from MeowCorp has been acknowledged by many cyber threat researchers including Kaspersky. Kaspersky has released a free decryptor for the ransomware linked here: https://support.kaspersky.com/common/disinfection/10556#block1

    NOTE: If you suspect your machine has been infected by ransomware, please follow good security practices, and escalate it to your information security team. Do not attempt to decrypt your files without the supervision of this team.

    Various mitigation steps to prevent a successful attack from MeowCorp are as follows;

    • Having regularly scheduled phishing simulations, routine education, and awareness training
    • Having communication on MFA fatigue and web browser hygiene
    • If MeowCorp IOCs are discovered, prioritize and block all indicators attributed to the threat actors and attacks
    • Ensure all workstations and servers had endpoint protection that is up-to-date

    So far, we have seen many good options and would like to present a few more specific cases using everyone’s favorite SIEM, Splunk.

    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 such as: https://www.pcrisk.com/removal-guides/25479-meow-ransomware

    The 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 MeowCorp Ransomware exploitation. 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 the MeowCorp Ransomware 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. 

    Note: This blog is purely focused on discovering IOCs related to the MeowCorp Ransomware. Determining the correct actions in your environment to take once a ransomware infection is an intensive process. This incident response is not covered in this blog post. Reach out to TekStream by filling out the form below if you’d like specific guidance on that aspect. TekStream MeowCorp IOC List

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

    1. Detect emails to and from any known addresses associated with the MeowCorp or use of the Conti ransomware
    2. Detect connection to any domains for either C2C communications or malicious domains for drive-by downloads
    3. Detect the existence of any of the file and/or processes hashes related to the MeowCorp ransomware
    4. Detect the existence of any file extensions associated with the MeowCorp Ransomware

    Detect the C2C communications to known IP addresses related to the MeowCorp ATP.

    Threat Implication

    There are many ways the MeowCorp ransomware can infect an environment. The most common ways the malware was discovered in the wild are as follows;

    • Infected email attachments distributed as part of phishing campaigns
    • Macros in infected documents (e.g.; word docs, spreadsheets)
    • Torrent websites
    • Malicious ads

    Threat Detection

    Step 1

    Detect emails to and from any known addresses associated with the MeowCorp or use of the Conti ransomware. This detection is important in for two reasons – you can detect a possible or a confirmed exploitation attempt. If an employee’s workstations gets infected, they may be drive to reach out to the preparator to resolve the issue without sounding the alarm.

    Actions Detect

    Detect the any incoming or outgoing communications to the following email addresses and telegram accounts. The accounts are listed below:

    List of telegram accounts and email addresses to determine exploitation attempt associated with MewoCorp or use of the Conti ransomware.
    SPL

    SPL – Detect outgoing/incoming emails to known malicious address using Email Datamodel

    | tstats `summariesonly` max(_time) as _time, values(All_Email.protocol) as protocol, values(All_Email.recipient) as recipient, count from datamodel=Email.All_Email where All_Email.src_user IN ("@meowcorp123","@meowcorp2022","amagnus@india[.]com","bitcoin143@india[.]com","braker@plague[.]life","byaki_buki@aol[.]com","byaki_buki@aol[.]com_mod2","crannbest@foxmail[.]com","cryptolocker@aol[.]com","cryptolocker@aol[.]com_graf1","cryptolocker@aol[.]com_mod","funa@india[.]com","grafdrkula@gmail[.]com","iizomer@aol[.]com","ivanivanov34@aol[.]com","lavandos@dr[.]com","load180@aol[.]com","meowcorp2022@aol[.]com","meowcorp2022@proton[.]me","meowcorp@msgsafe[.]io","meowcorp@onionmail[.]org","mkgoro@india[.]com","moshiax@aol[.]com","oduvansh@aol[.]com","pay4help@india[.]com","seven_Legion2@aol[.]com","stopper@india[.]com","trojanencoder@aol[.]com","vpupkin3@aol[.]com","watnik91@aol[.]com","webmafia@asia[.]com","worm01@india[.]com") All_Email.recipient IN ("@meowcorp123","@meowcorp2022","amagnus@india[.]com","bitcoin143@india[.]com","braker@plague[.]life","byaki_buki@aol[.]com","byaki_buki@aol[.]com_mod2","crannbest@foxmail[.]com","cryptolocker@aol[.]com","cryptolocker@aol[.]com_graf1","cryptolocker@aol[.]com_mod","funa@india[.]com","grafdrkula@gmail[.]com","iizomer@aol[.]com","ivanivanov34@aol[.]com","lavandos@dr[.]com","load180@aol[.]com","meowcorp2022@aol[.]com","meowcorp2022@proton[.]me","meowcorp@msgsafe[.]io","meowcorp@onionmail[.]org","mkgoro@india[.]com","moshiax@aol[.]com","oduvansh@aol[.]com","pay4help@india[.]com","seven_Legion2@aol[.]com","stopper@india[.]com","trojanencoder@aol[.]com","vpupkin3@aol[.]com","watnik91@aol[.]com","webmafia@asia[.]com","worm01@india[.]com") by All_Email.src,All_Email.src_user,All_Email.dest  |  `drop_dm_object_name("All_Email")`  | sort - count | fields _time, protocol, src, src_user, dest, recipient, count

    Step 2

    Detect connection to any domains for either Command-and-Control communications or malicious domains for drive-by downloads. There are many websites and domains associated with the Meow Ransomware ranging from credential harvesting sites, malware remote session sites, sites to buy decryptors, C2C domains, etc. Any attempt (successful or not) to these known malicious domains is a sign of a potential infection.

    Actions Detect

    Any successful or failed connection attempts to the following domains:

    Output the results of any successful or failed attempts for either Command-and-Control communications or malicious domains used for drive-by downloads.
    SPL

    SPL 1 – Detect C2 and Malicious Domains using the Web Data Model

    | 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) (anonfiles[.]com)|(badiwaw[.]com)|(balacif[.]com)|(barovur[.]com)|(basisem[.]com)|(bimafu[.]com)|(bujoke[.]com)|(buloxo[.]com)|(bumoyez[.]com)|(bupula[.]com)|(cajeti[.]com)|(cilomum[.]com)|(codasal[.]com)|(comecal[.]com)|(contirecj4hbzmyzuydyzrvm2c65blmvhoj2cvf25zqj2dwrrqcq5oad.[]]onion)|(contirecovery[.]top)|(dawasab[.]com)|(derotin[.]com)|(dihata[.]com)|(dirupun[.]com)|(dohigu[.]com)|(dubacaj[.]com)|(fecotis[.]com)|(fipoleb[.]com)|(fofudir[.]com)|(fulujam[.]com)|(ganobaz[.]com)|(gerepa[.]com)|(gucunug[.]com )|(guvafe[.]com)|(hakakor[.]com)|(hejalij[.]com)|(hepide[.]com)|(hesovaw[.]com)|(hewecas[.]com)|(hidusi[.]com)|(hireja[.]com)|(hoguyum[.]com)|(jecubat[.]com)|(jegufe[.]com)|(joxinu[.]com)|(kelowuh[.]com)|(kidukes[.]com)|(kipitep[.]com)|(kirute[.]com)|(kogasiv[.]com)|(kozoheh[.]com)|(kuxizi[.]com)|(kuyeguh[.]com)|(lipozi[.]com)|(lujecuk[.]com)|(masaxoc[.]com)|(mebonux[.]com)|(mihojip[.]com)|(modasum[.]com)|(moduwoj[.]com)|(movufa[.]com)|(nagahox[.]com)|(nawusem[.]com)|(nerapo[.]com)|(newiro[.]com)|(paxobuy[.]com)|(pazovet[.]com)|(pihafi[.]com)|(pilagop[.]com)|(pipipub[.]com)|(pofifa[.]com)|(radezig[.]com)|(raferif[.]com)|(ragojel[.]com)|(rexagi[.]com)|(rimurik[.]com)|(rinutov[.]com)|(rusoti[.]com)|(sazoya[.]com)|(sidevot[.]com)|(solobiv[.]com)|(sufebul[.]com)|(suhuhow[.]com)|(sujaxa[.]com)|(tafobi[.]com )|(tepiwo[.]com)|(tifiru[.]com)|(tiyuzub[.]com)|(tubaho[.]com)|(vafici[.]com)|(vegubu[.]com)|(vigave[.]com)|(vipeced[.]com)|(vizosi[.]com)|(vojefe[.]com)|(vonavu[.]com)|(wezeriw[.]com)|(wideri[.]com)|(wudepen[.]com)|(wuluxo[.]com)|(wuvehus[.]com)|(wuvici[.]com)|(wuvidi[.]com)|(xegogiv[.]com)|(xekezix[.]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")

    Note: The malicious domains have been kept sanitized using “[.]” for the periods, please remove these when running the SPL. Please be careful not to navigate to them outside a sandbox.

    SPL 2 – Detect C2 and Malicious Domains using the DNS Data Model

    | 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 IN ("anonfiles[.]com","badiwaw[.]com","balacif[.]com","barovur[.]com","basisem[.]com","bimafu[.]com","bujoke[.]com","buloxo[.]com","bumoyez[.]com","bupula[.]com","cajeti[.]com","cilomum[.]com","codasal[.]com","comecal[.]com","contirecj4hbzmyzuydyzrvm2c65blmvhoj2cvf25zqj2dwrrqcq5oad.[]]onion","contirecovery[.]top","dawasab[.]com","derotin[.]com","dihata[.]com","dirupun[.]com","dohigu[.]com","dubacaj[.]com","fecotis[.]com","fipoleb[.]com","fofudir[.]com","fulujam[.]com","ganobaz[.]com","gerepa[.]com","gucunug[.]com ","guvafe[.]com","hakakor[.]com","hejalij[.]com","hepide[.]com","hesovaw[.]com","hewecas[.]com","hidusi[.]com","hireja[.]com","hoguyum[.]com","jecubat[.]com","jegufe[.]com","joxinu[.]com","kelowuh[.]com","kidukes[.]com","kipitep[.]com","kirute[.]com","kogasiv[.]com","kozoheh[.]com","kuxizi[.]com","kuyeguh[.]com","lipozi[.]com","lujecuk[.]com","masaxoc[.]com","mebonux[.]com","mihojip[.]com","modasum[.]com","moduwoj[.]com","movufa[.]com","nagahox[.]com","nawusem[.]com","nerapo[.]com","newiro[.]com","paxobuy[.]com","pazovet[.]com","pihafi[.]com","pilagop[.]com","pipipub[.]com","pofifa[.]com","radezig[.]com","raferif[.]com","ragojel[.]com","rexagi[.]com","rimurik[.]com","rinutov[.]com","rusoti[.]com","sazoya[.]com","sidevot[.]com","solobiv[.]com","sufebul[.]com","suhuhow[.]com","sujaxa[.]com","tafobi[.]com ","tepiwo[.]com","tifiru[.]com","tiyuzub[.]com","tubaho[.]com","vafici[.]com","vegubu[.]com","vigave[.]com","vipeced[.]com","vizosi[.]com","vojefe[.]com","vonavu[.]com","wezeriw[.]com","wideri[.]com","wudepen[.]com","wuluxo[.]com","wuvehus[.]com","wuvici[.]com","wuvidi[.]com","xegogiv[.]com","xekezix[.]com")| table _time, dest, query, query_count, message_type, answer, reply_code | fieldformat Time = strftime(_time,"%m/%d/%Y %T")

    Note: The malicious domains have been kept sanitized using “[.]” for the periods, please remove these when running the SPL. Please be careful not to navigate to them outside a sandbox.

    Step 3

    Detect the existence of any of the file and/or processes hashes related to the MeowCorp ransomware. There are tons of known hashes associated with this malware. This comes from samples submitted from victims, samples identified by researchers in sandbox environments and even data from the Conti ransomware leak.

    Actions Detect

    The existence of any of the known hashes associated with the MeowCorp ransomware. This points to a potential infection and the hashes are as follows:

    Table showcasing the existence of any of the known hashes associated with the MeowCorp ransomware.
    SPL

    SPL – Detect existence of malicious hashes using the Endpoint Datamodel

    | 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, 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 from datamodel="Endpoint"."Filesystem" where Filesystem.file_hash IN ("222e2b91f5becea8c7c05883e4a58796a1f68628fbb0852b533fed08d8e9b853","fe311979cd099677b1fd7c5b2008aed000f0e38d58eb3bfd30d04444476416f9","7f624cfb74685effcb325206b428db2be8ac6cce7b72b3edebbe8e310a645099","5a936250411bf5709a888db54680c131e9c0f40ff4ff04db4aeda5443481922f","7f6421cdf6355edfdcbddadd26bcdfbf984def301df3c6c03d71af8e30bb781f","b5b105751a2bf965a6b78eeff100fe4c75282ad6f37f98b9adcd15d8c64283ec","938cbbf9061792b6fc9bd2440b8a93f2db1139212f73e4fde30499568cbe75ea","c4c5b77cceb82cd9b5f5e839136313e2fbfc97db731b162bc2e250d10fd62c1a","3460d66ff62bfccae55a26b499de0f18fc4b2d6efd2283b0278385269b047973","8ac29ab81c98c1b094aa0986a0e66c7473d5b6b7153f7b34ae0e0215eb474e66","e6f6fde7839a21807a321b79ac1395489c0eeea9b9187ba4d20c17559ccef608","c0941c7c8d162d60f73d56aefe36647a31575a5077392202015f480453024a6b","84b8c65ba4cf18f852fd435fc9210f108b090dcd5cc69cf3beaaebff6b8cec2c","0252a7441f7a2595add46aa89b4bf7d0b5e5a9eb4683550907b03c5917ece5bd","fca83ce362e14648eb729547e14b06a7f402c98cce2c96a9ab47bf676755bd02","4f0a7bf521f979afa947001eedd8b18a1ecd1994e1ae0ed90d65739de662684b","78d588aad48812f4421c22eeccee1a5b0499c41ae41e20ab6186982245719b86","ae21a4210486695dbdf514d96250a4e05f0e6e572f7eaad7048b3bdd357b4aad","5cddda3ccbf63faea37daf019437b760daa627632b986e1d764d11978944757a","2191fe7baba338a2b3f5a12a95ea4e42cad96850f2afd4a6c7eaa23289d610c5","9de83968d33d896fc2a2629a271fbc9bcaf5bf504e033cfdb1fb99fd55953cde","041e879548c2839ebb36f642c5a25870ab1b015e875775077b7d8b951d53e0a1","ae6eef72bba38ab89c5cbe418d839b75b78a9247f06aa3e1df4850f103a6b1dd","1eaef39c48fcce2af0bf1ee089dd412d29d1396b31f0536138879cd0421d53ec","2a0f684bb99a9077914961bea16bac5f8baa5368a40a305a0ea0008a4c2f1bdf","c5bf64ac95cc82f65205984c8adb107870c71197c767744209bbc4a3e19aede8","f15cff9bf29f9098999401b16d73f61fe73789866e51319c7c24c4594ed7367d","6065d4b46266a2114dc8363b15ec7f884cbdbed1735f0ca4f1eb60df85d61a9b","f9e47d2cb8ba9a69c9ba8b2bc6017a1e54da68c944ee4324873047b0200546d0","47d7d2027548f7562b221acdebe3b33d67ddd1dd278b98ad05a5f3ac14dea3fe","c32f2ec819fee8581fbeed9b4eea40cb17efda7284beed5d12ed48e5af45c41c","234665c66de8541ef8e95cb9ccbcd5ecccb0189d3cf174c4e11a2c60dbc1742e","1a34ba12130ffff45bb525cce48e5d19e4110e4a4bb06d79ad33d6a816f28927","72c55f299c997ec0f5cb87e82141707482067609f1d631ac3cc825af90540b9f","a18aab0f358b7b8e23ebf6eb1252172625430e9aa461b3dcebff1de357113626","b802f944cc6ba9b33c0d58c04295f9f6cf6473ffa602cfa447acb36a97afcc55","d8aa49acc0b40f52b3ac3027ecc16ee053fd01e383272eca4d0637f24fd51a55","df75243be11b86b6644b671dcfd16fdeaf47a7b64e28bfd3ac179c44a6312b46","d9e24d6bd5e118f04bc36fe3cfc314a808119d12190fd9b661b5f871c33fec6b","6b36a1d647d4de09e7f204f221b3445d499a540823c1c9b9612764e3241cdf62","fad2f925ad2267c01d604e12081017215fa9e5ca83279064885bd7682400b761","c1f5a70c2c5bb42ac973558c5c9ef510a2caab8aae19e4f1f68c76d1d10107b9","ede451e9a65e55d0827e217a25cf895163c46bc42432f7cbed0f46d99769c385","6cd17b4422772c99c93e388bbad4c7c213584e15400fb984d748e4cfecd9dd8d","94a9da09da3151f306ab8a5b00f60a38b077d594","987ad5aa6aee86f474fb9313334e6c9718d68daf","4f5d4e9d1e3b6a46f450ad1fb90340dfd718608b","578b1b0f46491b9d39d21f2103cb437bc2d71cac","5949c404aee552fc8ce29e3bf77bd08e54d37c59","59e756e0da6a82a0f9046a3538d507c75eb95252","4dd2b61e0ccf633e008359ad989de2ed","1d70020ddf6f29638b22887947dd5b9c","8f154ca4a8ee50dc448181afbc95cfd7","3eff7826b6eea73b0206f11d08073a68","033acf3b0f699a39becdc71d3e2dddcc","0bbb9b0d573a9c6027ca7e0b1f5478bf") by Filesystem.src | 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 4

    Detect the existence of any file extensions associated with the MeowCorp Ransomware. Like any other ransomware, the MeowCorp ransomware has a unique way it encrypts and renames infected files. It has many similarities with the Conti ransomware file extension naming.

    Actions Detect

    The creation or movement of any files with the known MeowCorp file extensions. These extensions are as follows:

    File Extensions
    .MEOW
    .CONTI
    .KREMLIN
    .RUSSIA
    .PUTIN

    SPL

    SPL – Detect the creation or renaming of files file extensions related to the MeowCorp ATP using the Endpoint Datamodel

    | 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, 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 from datamodel="Endpoint"."Filesystem" where Filesystem.file_name IN ("*.MEOW","*.CONTI","*.KREMLIN","*.RUSSIA","*.PUTIN")  ```by Filesystem.src``` | 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

    Detect the C2C communications to known IP addresses related to the MeowCorp ATP. These C2C IP addresses have been associated with beaconing activity of the malware.

    Actions Detect

    Connection Attempts to Known C2 IP Addresses including the following:
    162.244.80[.]235
    85.93.88[.]165
    185.141.63[.]120
    82.118.21[.]1

    SPL

    SPL – Detect C2 IPs using Network Resolution Data Model

    | 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 ("162.244.80[.]235","85.93.88[.]165","185.141.63[.]120","82.118.21[.]1") OR All_Traffic.dest IN ("162.244.80[.]235","85.93.88[.]165","185.141.63[.]120","82.118.21[.]1") by "All_Traffic.action", "All_Traffic.src", "All_Traffic.dest", "All_Traffic.user" | head 10000 | `drop_dm_object_name("All_Traffic")` | table action, src, src_port, dest, transport, dest_port, user, bytes

    Note: The malicious IPs have been kept sanitized using “[.]” for the periods, please remove these when running the SPL. Please be careful not to navigate to them outside a sandbox.

    IOC List

    Below is an aggregate of IOCs found related to the MeowCorp ransomware. 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 MeowCorp 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. Also, subscribe to the TekStream blog to catch the next monthly security bulletin and apply the latest detections to protect your systems. Happy Splunking!

    References

    Articles referenced and used for this Blog Post

    Bleeping Computer: Conti-based ransomware ‘MeowCorp’ gets free decryptor

    Malwarebytes: The Conti Ransomware Leaks

    CISA.Gov: Conti Ransomware

    Sentinel Labs: Conti Unpacked | Understanding Ransomware Development As a Response to Detection

    The Record: Kaspersky releases decryptor for ransomware based on Conti source code

    PC Risk: MEOW (.MEOW) ransomware virus – removal and decryption options

    Kaspersky: The Kaspersky Rakhni Decryptor

    HivePro: New Ransomware Variants Created Using Leaked Conti Source Code

    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.

    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 or exploit – 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.