Author: dystrick

  • 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.

  • TekStream Security Bulletin: Splunk Takes Out SysJoker Variant Written in Rust

    TekStream Security Bulletin: Splunk Takes Out SysJoker Variant Written in Rust

    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

    SysJoker is a backdoor malware that was first discovered in December 2021 by Intezer. This malware is a backdoor that targets multiple operating systems. It was initially discovered on a Linux-based web server belonging to a large educational institution. Recently, there has been a resurgence of its use, specifically a variant written in Rust, which suggests the malware code was completely rewritten. The use of this variant has been associated with some APTs (Advanced Persistent Threats) known to operate regions involved in the curre

    nt geopolitical climate in the Middle East. Indicators of compromise (IOCs) associated with the malware have been identified in the infrastructure of companies located in countries involved in the conflict.

    Threat Overview

    Due to the flexibility of the malware and the way its APT uses it, the recommendations are generic.

    These steps include:

    • Training and mitigations for phishing attacks – the most common way victims are exposed to this malware on workstations versions
    • Good security practice to ensure software updates and downloads only come from trusted vendors as it is believed this RAT is also spread via malicious NPM packages for server versions.
    • Ensure all devices on a network have an updated endpoint security system
    • Ensure the principle of least privilege has been used when setting up the production servers in an environment
    • At the proxy level, block unwanted connections to non-enterprise file-sharing domains 

    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 VMWare SysJoker Analysis.

    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 presence of the SysJoker malware. 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 used by the SysJoker RAT in its 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: The SysJoker RAT may masquerade and gather victim information in various ways not covered in this blog. An anomaly analysis tailored to your environment would be needed to discover this. Reach out to TekStream by filling out the form below if you’d like specific guidance on that aspect.

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

    1. Detect persistence attempt of the malware [Windows]
    2. Detect persistence attempt of the malware [Linux]
    3. Detect persistence attempt of the malware [MacOs]
    4. Detect the connection to a malicious Cloud Storage Link
    5. Detect connection attempts to the C2 Server IOCs (domains and IP addresses)

    Threat Implication

    Step 1

    Once the SysJoker malware is present on a victim machine, it first sets up persistence. The methods vary based on operating system, so let’s go through them – starting with Windows. In the Windows version, a dropper is masqueraded as a system update by making a registry object. The malware runs generic commands using common tools (eg; dnslookup, ping, etc) to get MAC address, username, physical media serial number, and IP address of victim machine.

    Actions Detect

    Creation of a Windows Registry Key

    Name: igfxCUIService 
    Type: REG_SZ 
    Data: “C:ProgramDataSystemDataigfxCUIService.exe”
    

    Detect the presence of Known Hashes Related to SysJoker RAT

    61df74731fbe1eafb2eb987f20e5226962eeceef010164e41ea6c4494a4010fc
    d476ca89674c987ca399a97f2d635fe30a6ba81c95f93e8320a5f979a0563517
    d1d5158660cdc9e05ed0207ceba2033aa7736ed1
    888226b749b3fa93dadf5d7c2acf32c71e3a0918
    d71e1a6ee83221f1ac7ed870bc272f01
    293f116c2c51473ae2bf7f4e787d3ec3
    1ffd6559d21470c40dcf9236da51e5823d7ad58c93502279871c3fe7718c901c
    36fed8ab1bf473714d6886b8dcfbcaa200a72997d50ea0225a90c28306b7670e
    

    Note: This CSV file includes all the listed hashes, along with other Indicators of Compromise (IOCs), conveniently consolidated for streamlined export into a lookup for notable detections.

    SPL 1 – Using the Windows Data Source for Registry Key Creation
    index=windows sourcetype=wineventlog EventCode=4657 Object_Name="*HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun*" New_Value_Type = "REG_SZ"  Object_Value_Name = "igfxCUIService"
    SPL 2 – Using the Endpoint Datamodel for Registry Key Creation
    | tstats allow_old_summaries=true count, values("Registry.registry_key_name") AS registry_key_name, values("Registry.registry_path") AS registry_path, min(_time) AS firstTime, max(_time) AS lastTime FROM datamodel=Endpoint.Registry WHERE ("Registry.registry_hive" = "HKEY_CURRENT_USERS*" AND "Registry.registry_path" = "*HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun*" AND "Registry.registry_value_type" = "REG_SZ" AND "Registry.registry_value_name" = "igfxCUIService" BY "Registry.dest", "Registry.user"
    SPL 3 – Using the Endpoint Datamodel for Hashes
    | 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 | Filesystem.file_hash IN ( "61df74731fbe1eafb2eb987f20e5226962eeceef010164e41ea6c4494a4010fc","d476ca89674c987ca399a97f2d635fe30a6ba81c95f93e8320a5f979a0563517","d1d5158660cdc9e05ed0207ceba2033aa7736ed1","888226b749b3fa93dadf5d7c2acf32c71e3a0918","d71e1a6ee83221f1ac7ed870bc272f01","293f116c2c51473ae2bf7f4e787d3ec3","1ffd6559d21470c40dcf9236da51e5823d7ad58c93502279871c3fe7718c901c","36fed8ab1bf473714d6886b8dcfbcaa200a72997d50ea0225a90c28306b7670e") | 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 2

    For the Linux version of the SysJoker malware, persistence is made by creating a cron job. The RAT creates or replaces a process called “updateSystem”.

    Actions Detect

    Detect the Creation of the “Update System” cron job

    @reboot (/.Library/SystemServices/updateSystem) 

    Detect the presence of Known Hashes Related to SysJoker RAT

    1a9a5c797777f37463b44de2b49a7f95abca786db3977dcdac0f79da739c08ac
    fe99db3268e058e1204aff679e0726dc77fd45d06757a5fda9eafc6a28cfb8df
    d0febda3a3d2d68b0374c26784198dc4309dbe4a8978e44bb7584fd832c325f0
    554aef8bf44e7fa941e1190e41c8770e90f07254
    f5149543014e5b1bd7030711fd5c7d2a4bef0c2f
    01d06375cf4042f4e36467078530c776a28cec05
    e06e06752509f9cd8bc85aa1aa24dba2
    6fb483e7ec55f8c56849d8f4f31bfd7b
    85dbbaa8c4d37ebb9829464f0510787b
    

    Note: This CSV file includes all the listed hashes, along with other Indicators of Compromise (IOCs), conveniently consolidated for streamlined export into a lookup for notable detections.

    SPL 1: Detect the Creation of a Cron Job
    | tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Filesystem where Filesystem.action=created Filesystem.file_path="/etc/cron.*" OR Filesystem.file_path ="* /.Library/SystemServices/updateSystem *" by _time
    | 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 | Filesystem.file_hash IN ("1a9a5c797777f37463b44de2b49a7f95abca786db3977dcdac0f79da739c08ac","fe99db3268e058e1204aff679e0726dc77fd45d06757a5fda9eafc6a28cfb8df","d0febda3a3d2d68b0374c26784198dc4309dbe4a8978e44bb7584fd832c325f0","554aef8bf44e7fa941e1190e41c8770e90f07254","f5149543014e5b1bd7030711fd5c7d2a4bef0c2f","01d06375cf4042f4e36467078530c776a28cec05","e06e06752509f9cd8bc85aa1aa24dba2","6fb483e7ec55f8c56849d8f4f31bfd7b","85dbbaa8c4d37ebb9829464f0510787b") | 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 3

    For the MacOS version of the SysJoker malware, persistence is made by creating a service. The RAT uses a service called launchAgents named “Apple launch service” targeting “/Library/MacOsServices/updateMacOs”.

    Actions Detect

    Detect the Creation of a service with LaunchAgent. Creates persistence via LaunchAgent under the path “/Library/LaunchAgents/com.apple.update.plist.”

    Detect the presence of Known Hashes Related to SysJoker RAT

    36fed8ab1bf473714d6886b8dcfbcaa200a72997d50ea0225a90c28306b7670e
    1ffd6559d21470c40dcf9236da51e5823d7ad58c93502279871c3fe7718c901c
    bd0141e88a0d56b508bc52db4dab68a49b6027a486e4d9514ec0db006fe71eed
    d028e64bf4ec97dfd655ccd1157a5b96515d461a710231ac8a529d7bdb936ff3
    1e894ddc237b033b5b1dcf9b05d281ff0a053532
    fad66bdf5c5dc2c050cbc574832c6995dba086a0
    23c56da0cdddc664980705c4d14cb2579a970eed
    b21ba8da278b75e1cc515b6e2c84b91be6611800
    9a7f0b64007cedfa9ae20dd212892d73
    d90d0f4d6dad402b5d025987030cc87c
    5e11432c30783b184dc2bf27aa1728b4
    C805649d6909bf1d7e220f144801044b
    

    Note: This CSV file includes all the listed hashes, along with other Indicators of Compromise (IOCs), conveniently consolidated for streamlined export into a lookup for notable detections.

    SPL 1: Service Creation Through LaunchAgent
    | tstats `security_content_summariesonly` count min(_time) as firstTime max(_time) as lastTime FROM datamodel=Endpoint.Filesystem where Filesystem.action=created Filesystem.file_path="*/Library/LaunchAgents/com.apple.update.plist*" by _time
    | 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 | Filesystem.file_hash IN ("36fed8ab1bf473714d6886b8dcfbcaa200a72997d50ea0225a90c28306b7670e","1ffd6559d21470c40dcf9236da51e5823d7ad58c93502279871c3fe7718c901c","bd0141e88a0d56b508bc52db4dab68a49b6027a486e4d9514ec0db006fe71eed","d028e64bf4ec97dfd655ccd1157a5b96515d461a710231ac8a529d7bdb936ff3","1e894ddc237b033b5b1dcf9b05d281ff0a053532","fad66bdf5c5dc2c050cbc574832c6995dba086a0","23c56da0cdddc664980705c4d14cb2579a970eed","b21ba8da278b75e1cc515b6e2c84b91be6611800","9a7f0b64007cedfa9ae20dd212892d73","d90d0f4d6dad402b5d025987030cc87c","5e11432c30783b184dc2bf27aa1728b4","c805649d6909bf1d7e220f144801044b") | 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

    Once persistence is established, the SysJoker malware grabs an encoded Google Drive (sometimes, OneDrive) link from within its package. This link is decoded, and it is requested to pull down a text file. This text file contains another encoded link – the Command-and-Control URL for the malware that is constantly updated.

    Actions Detect

    Navigating to the Known Malicious Google Drive URLs

    https[://]drive[.]google[.]com/uc?export=download&id=1-NVty4YX0dPHdxkgMrbdCldQCpCaE-Hn
    https[://]drive[.]google[.]com/uc?export=download&id=1W64PQQxrwY3XjBnv_QAeBQu-ePr537eu
    

    Note: This CSV file includes all the listed URLS, along with other Indicators of Compromise (IOCs), conveniently consolidated for streamlined export into a lookup for notable detections.

    SPL 1: Detect Known Malicious Google Drive 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[://]drive[.]google[.]com/uc?export=download&id=1-NVty4YX0dPHdxkgMrbdCldQCpCaE-Hn", "https[://]drive[.]google[.]com/uc?export=download&id=1W64PQQxrwY3XjBnv_QAeBQu-ePr537eu") 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")

    Note: The malicious URLs 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 5

    Once the command-and-control link is acquired, a connection attempt to the various known SysJoker infrastructure is attempted. This C2 connection can be used by an attacker to control the malware to execute remote commands, execute scripts, change registry entries and exit/hide. The malware makes GET requests to the C2 API endpoints and the C2 server responds in JSON with parameters/instructions.

    Actions Detect

    Connection Attempts to Known C2 Domains

    bookitlab[.]tech
    graphic-updater[.]com
    office360-update[.]com
    winaudio-tools[.]com
    github.url-mini[.]com
    graphic-updater[.]com
    sharing-u-file[.]com
    filestorage-short[.]org
    audiosound-visual[.]com

    Connection Attempts to Known C2 IP Addresses

    85.31.231[.]49
    62.108.40[.]129
    
    SPL 1 – Detect C2 Domains using Network Resolution 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 ("bookitlab[.]tech","graphic-updater[.]com","office360-update[.]com","winaudio-tools[.]com","github.url-mini[.]com","graphic-updater[.]com","sharing-u-file[.]com","filestorage-short[.]org","audiosound-visual[.]com"
    ) | table _time, dest, query, query_count, message_type, answer, reply_code | fieldformat Time = strftime(_time,"%m/%d/%Y %T")
    
    SPL 2 – Detect C2 Domains using 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, "(bookitlab[.]tech)|(graphic-updater[.]com)|(office360-update[.]com)|(winaudio-tools[.]com)|(github.url-mini[.]com)|(graphic-updater[.]com)|(sharing-u-file[.]com)|(filestorage-short[.]org)|(audiosound-visual[.]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 3 – Detect C2 IP Address Using Network Traffic 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 ("85.31.231[.]49","62.108.40[.]129") OR All_Traffic.dest IN ("85.31.231[.]49","62.108.40[.]129") 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

    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

    The file link below is an aggregate of IOCs found related to the SysJoker RAT malware. 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 SysJoker 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 and/or malware. 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 include:

    OTX.Alien Vault: SysJoker IOC’s

    OTX.Alien Vault: SysJoker Backdoor: Propagation, Exploitation, and Indicators of Compromise

    Bleeping Computer: New Rust-based SysJoker backdoor linked to Hamas hackers

    Intezer: New SysJoker Backdoor Targets Windows, Linux, and macOS

    VMware: SysJoker – An Analysis of a Multi-OS RAT

    Check Point Research: Israle-Hamas War Spotlight: Shaking The Rust Off SysJoker

    Disclaimer

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

  • Troubleshooting Splunk Forwarders Tutorial: Send Commands to Multiple Splunk Forwarders (Linux)

    Troubleshooting Splunk Forwarders Tutorial: Send Commands to Multiple Splunk Forwarders (Linux)

    By Alex Trejo, Splunk Consultant

    When working in a large Splunk environment it is common to troubleshoot multiple Splunk forwarders at one time. One approach to managing Splunk Forwarders is connecting directly to the hosts to troubleshoot. Connecting to a host, running commands, repeating on another host. This can be extremely time consuming when managing a large Splunk environment with hundreds of Splunk Forwarders. A solution to this time-consuming problem is creating a script which sends commands to multiple Splunk Forwarders.

    In this example, we will create a shell script which will be used to search for text in multiple Splunk forwarders. To begin, we will create a text file which will contain the list of the Splunk forwarders we are attempting to connect to.

    Screenshot showing how to create a text file that will contain the list of Splunk forwarders we are attempting to connect to.

    Here you would replace the IPs 10.0.0.X with the IPs that match your hosts.

    Next, we will decide which commands we want to send to the hosts. In our case, we want to search for text that resides in a directory on the hosts. Thus, we want to run the command:

    After you have decided which commands you want to run, begin creating the shell script that will be used to contact the hosts. Create a HOST_FILE variable that will read the path to the HostsList.txt file we created earlier.

    You will want to replace <path to host file> with the path to your host file.

    Next, create a USERNAME variable that will read the username we will be using to connect to the hosts.

    Make sure to replace with your username.

    For the variables being used in this example, /path/to/directory and “text_to_find” we will be reading the values as inputs and assigning them to the variables PATH_TO_TEXT and TEXT_TO_FIND.

    Next, we will create the remote script which will be the commands you want to send to the forwarders. In our case, the text searching commands.

    Optional: Before running the commands to the forwarders you can initiate output that will display that we are attempting to connect to the hosts.

    Now create a “for loop” which will loop through each host listed in our HOSTS_FILE.

    The variable DST is each host and will be referenced again when we are referencing a host and not the HOST_FILE.

    Next, you will run an SSH command which will run to connect to each DST.

    Finally, finish by closing the shell script.

    Notice, that you will still need to input a password every time the SSH connection is made with a forwarder. If you want to avoid this you will have to download SSHPASS. This will allow you to include the password in the SSH command bypassing the manual password input every time a connection is made. Once you download SSHPASS you can replace the SSH command with:

    Replacing <password> with your password (Not in quotation marks).

    This is what the final shell script for running commands on multiple Splunk forwarders will look like.

    That will do it! You should find that your forwarders have each been reviewed for trouble, and should have saved quite a bit of time with this efficient method of sending multiple commands. Happy Splunking everyone!