Tag: Splunk

  • Exploring Data Insights Everywhere: A Comprehensive Guide to the Splunk Mobile App

    Exploring Data Insights Everywhere: A Comprehensive Guide to the Splunk Mobile App

    By Alex Trejo, Splunk Consultant

    In today’s fast-paced world, real-time data access is crucial for informed decision-making in any business landscape. Splunk, a powerhouse in data analytics, extends its capabilities through the Splunk Mobile App, empowering users to access valuable insights on the go.

    Getting Started: Setting Up Splunk Secure Gateway

    Before diving into the Splunk Mobile App, establishing a secure connection through the Splunk Secure Gateway is key.

    1. Download and Install Secure Gateway: Obtain the Splunk Secure Gateway software from Splunkbase website. Install and configure it on your Splunk instance to ensure a seamless connection setup.
    2. Configure Secure Gateway: Customize access controls, authentication, and permissions within the Secure Gateway to guarantee a secure and controlled data link.
    3. Connect to Splunk Instance: Establish a secure link between the Secure Gateway and your Splunk instance, ensuring uninterrupted and protected data accessibility.

    Navigating Splunk Mobile

    The Splunk Mobile App serves as an all-access pass to your Splunk instance, offering convenience and flexibility for data exploration.

    1. Download and Install Splunk Mobile: Find and install the Splunk Mobile App from your device’s app store. Get ready for effortless access to your data.
    2. Login: Use your Splunk instance credentials (URL, username, and password) to seamlessly access your data within the app.
    3. Connecting via Secure Gateway: Use the Splunk Mobile App to establish a connection to your Splunk instance through the configured Secure Gateway, ensuring a secure and encrypted connection.
    4. Dashboard Exploration: Explore pre-configured dashboards, reports, searches, and alerts optimized for mobile viewing, providing quick insights at your fingertips.
    5. Data Interaction: Engage with data by running searches, interacting with visualizations, and receiving real-time alerts directly on your mobile device, ensuring immediate responsiveness.

    Key Features for Seamless Insights

    Splunk Mobile boasts a suite of features tailored for a seamless and intuitive user experience:

    • Accessible Anywhere, Anytime: Enjoy unrestricted data access, ensuring connectivity regardless of your location, fostering continuous productivity.
    • Real-Time Data Interaction: Receive live updates and alerts for critical changes, facilitating prompt and agile decision-making.
    • Tailored Mobile Dashboards: Optimize dashboards for quick insights while on the move, ensuring efficiency and immediacy in data interpretation.
    • Interactive Data Analysis: Conduct searches, analyze visualizations, and troubleshoot issues conveniently from your mobile device, empowering effective data-driven actions.
    • Collaborative Decision-Making: Facilitate team collaboration and informed decision-making with real-time data access, ensuring cohesive efforts and streamlined workflows.
    • Stringent Security Measures: Adherence to high-level security standards ensures data protection across all mobile usage, guaranteeing confidentiality and integrity.

    Crafting and Accessing Your Dashboard

    Craft personalized dashboards on your desktop within Splunk, ensuring mobile-friendly designs for seamless access and interaction on the Splunk Mobile App. Effortlessly log in to the Splunk Mobile App and navigate to your pre-configured dashboard for on-the-go insights, ensuring consistent and convenient access to vital data.

    Best Practices for Optimal Use

    • Go Mobile-First: Embrace the mobile interface to maximize your experience, ensuring familiarity and efficiency in your data interactions.
    • Stay Updated: Keep the app updated for access to the latest features and improvements, ensuring enhanced functionalities and performance enhancements.
    • Secure Your Data: Utilize built-in security measures to protect sensitive information, prioritizing data integrity and privacy, and ensuring peace of mind in data management.

    Enabling Data Mobility with Splunk

    Splunk bridges the gap between desktop and mobile environments, ensuring constant access to vital data insights regardless of your location—be it in the office, traveling, or working remotely. Splunk Mobile stands as a testament to seamless data accessibility, empowering users with unparalleled data mobility and insights.

    Unlock the Potential of Splunk Mobile!

  • Find Hosts Not Ingesting into Splunk 

    Find Hosts Not Ingesting into Splunk 

    By Aaron Dobrzeniecki, Senior Splunk Consultant

    As my day was about to end, I was tasked with a rather extremely time-consuming mission. After researching for over 30 minutes to find a resolution to reach my end goal, one of my colleagues reached out to me with an ultimate resolution. Now, you may be wondering to yourself, what was my end goal? I had a list of 99 hosts that Splunk, when I ran the search below using Splunk SPL, provided only those 53 hosts that WERE ingesting into my index.

    “What is Splunk SPL?”, you may be asking. Splunk SPL (Search Processing Language) is the powerful query language used in Splunk for searching, analyzing, and visualizing machine-generated data. SPL commands are written in the Splunk search bar to interact with data indexed in Splunk. The TekStream team knows Splunk SPL well – we even spoke about this topic at .conf 2024!

    So back to my end goal: how can I easily and efficiently perform a function that will provide me with only the hosts NOT currently ingesting into my index?  

    index=<MYINDEX> host IN (LIST OF HOSTS) | stats count by host | fields – count

    Using the search above, I could take the results (which do not include the count number, this is easier for copy pasting of the hosts), download a software like Beyond Compare 4 and compare the complete list of hosts to my search results hosts. Not only would this take more work and time, but I would have to use an external software to achieve my goal. The easiest way to achieve our end goal is to use Splunk SPL.

    The search below is an adaptation of my search but includes some ingenious logic to achieve our goal. ***WHEN COPYING AND PASTING THE SEARCH BELOW, PLEASE MAKE SURE YOU FIX THE DOUBLE QUOTES, THEY WILL PASTE INCORRECTLY*** 

    index=<MYINDEX> host IN (YOUR HOSTS)  
    
    | eval host=upper(host)  
    
    | dedup host  
    
    | fields host  
    
    | eval DATASET="INDEXEDHOSTS"  
    
    | append  
    
        [| makeresults  
    
        | eval host="LIST OF YOUR HOSTS"  
    
        | eval host=upper(host)  
    
        | rex mode=sed field=host "s/[nr]/ /g"  
    
        | makemv host  
    
        | mvexpand host  
    
        | eval DATASET="ALLHOSTS"]  
    
    | stats values(*) AS * BY host  
    
    | eval Count=mvcount(DATASET)  
    
    | search Count =1 AND DATASET= "ALLHOSTS"  
    
    | eval host=lower(host) 
    
    | table host  
    
    | sort host 

    I will break the search into two parts. The first part searches the internal index searching for our hosts. I have added the upper command so that all the hosts are capitalized (you can use upper or lower for this part). The goal of the first part of the search is to list all the hosts that are ingesting into our index and label them as INDEXEDHOSTS.

    We then append the second part of our search to the above. The goal of the second half of the search is to create a dataset using all our hosts and call it ALLHOSTS. The rex command removes any newline or carriage return in the list so that our hosts are lined up in list form. The makemv and mvexpand consolidate the hosts into a single list, and then it expands the hosts into single hosts.

    After our two searches are appended together, we perform a stats values of every field appearing in the data. Preceding this, we run an eval of count doing an mvcount on DATASET. The mvcount function is used to count the number of values within a single field instance. The mvcount function helps you understand how many values are present in a multivalue field for each event or result in your search.

    Please see the screenshots below that show my search and the results. For testing purposes, I am using the internal index within Splunk. The last three hosts in my list starting with p204 do not exist and are not ingesting into the internal index. As you can see from the first screenshot, all the other hosts are ingesting into the internal index.

    A screenshot of the Splunk search interface showing an SPL (Splunk Search Processing Language) query used to count events from specific hosts in the _internal index, verifying data ingestion.
    A detailed Splunk Search Processing Language (SPL) query demonstrating the logic to compare a list of desired hosts against hosts actually ingesting data into the _internal index, specifically identifying non-ingesting hosts.
    A screenshot of Splunk search results displaying the "Statistics" tab and a list of three hosts (P2043354, P2043355, P2043356) identified as having limited or no recent event ingestion.

    As shown above, you can see the search I ran to accomplish my goal of providing me with the hosts that are not ingesting into the internal index. The three hosts shown in the results are the hosts that are not ingesting into the internal index, hence providing me with my resolution very quickly.

    In conclusion, being able to find the hosts quickly and efficiently in a list that are not ingesting into Splunk or a certain index allows you to get to the root cause of why they are not ingesting in a more rapid manner. Identifying the root cause, whether it be configuration errors, connectivity issues or other technical challenges, is the second step of our process towards resolution. Implementing corrective measures promptly, such as creating a scheduled report of the search above, will ensure uninterrupted flow of data into the designated indexes. If you are having configuration problems with your hosts, consider reviewing this TekStream Blog as well.

  • Splunk SOAR: Let’s Get That Pin

    Splunk SOAR: Let’s Get That Pin

    By David Burns, Senior Soar Engineer

    In a previous blog post, we introduced you to adding pins to the HUD. But what if you want to do something based off the information in the pin? Unless the pin was created within a custom code block or custom function, the pin id is blind to us. That means it’s hard to update or delete the pins natively.

    We’re left to trying to stash that value somewhere in the container or pass it around. What if we want to get the value of the pin? As of version 6.2.0, there isn’t a native function to get that data. Let’s build our own custom function to accomplish this!

    The meat of the function will be the container_pin endpoint.

    While the documentation’s example uses POST, this endpoint has a full set of CRUD operations. That means using GET will retrieve the first 10 pins that it retrieves, with the data structure below.

    ParameterTypeDescription  
    Id Integer Id of the pin. Able to reference this pin directly by appending it to the endpoint

    rest/container/42
    pin_styleStringValues are:  
    “grey” 
    “blue” 
    “red”  
    create_time StringExample : 2023-05-15T22:39:23.464533Z
    modified_timeString Example : 2023-05-15T22:39:23.464533Z
    custom_fieldString The name of the custom field stored with in the container.
    preset_metricStringIf the “pin_type” is set to “preset_metric” set the metric to use. Options are:

    “remaining tasks”
    “failed actions”
    “failed playbooks”
    “tasks exceeding sla”
    “time to resolve”
    orderIntegerPosition within the HUD
    pin_typeStringIt will be one of the four following options. And which one is present will determine what other fields are present.

    “data”
    “manual card”
    “custom field”
    “preset metric”
    ContainerIntegerWhich container the pin exists in.
    authorIntegerThe user id of whoever created the pin
    nameStringThe name of the pin when it was created
    messageStringThe string to display above the value in data
    dataStringThe value to display.
    input_typeStringEither  
    text
    select
    input_choicesJSON ListOnly if input_type is select, will this show the list of choices.
    Example: [“one”, “two”, “three”]

    If you were to just read the container_pin endpoint, you’d get swamped fast. It’s a better option to either move page to page or trying to parse the entire list with page_size=0. This means we need to use the endpoint filtering options. I highly recommend this “Cheat Sheet” to help filter down the options within the custom function.

    First, you need to get all the pins that are part of a specific container.

    A code snippet showing Python commands interacting with the Splunk SOAR (Phantom) API to build a REST URL and retrieve a container pin.

    Then, check each pin until you find the correctly named pin.

    
A code snippet displaying Python logic for iterating through JSON response data to extract specific 'pin_data' based on a 'pin_name' match.

    This is straight forward, yes. But there are ways to make this overall function a bit more robust, so you end up with something like this.

    A screenshot of the Splunk SOAR (Phantom) platform interface, showing the configuration and Python source code for a custom function named get_pin_value designed to retrieve specific container pins.

    Now with this function, or something like it, you’ll have another way to pass information into playbooks. Imagine reading a pin that dictates what type of email to send when a playbook is kicked off. Or if you want to selectively pass IPs into a deeper investigation. The options are endless!

  • I Want A Splunk SOAR Playbook! Now What? 

    I Want A Splunk SOAR Playbook! Now What? 

    By Marvin Martinez, Team Lead, Automation Engineering

    Security Orchestration, Automation, and Response, or SOAR for short, has added an entirely new world of capabilities to any company’s tool belt. The possibilities are seemingly endless. While that may sound like an all-out win/win situation, it doesn’t come without its considerations and potential pitfalls. Splunk SOAR is not immune to this. What do you develop first? More importantly, how do you design and develop your playbook(s)?

    Developing a playbook may seem like it is mostly a technical endeavor but there very much is a significant element of “art” behind it as well! Everything from what the catalyst for your playbook will be, what fields need to be passed into it, all the way to “will there be any outputs from it?” or “does my process even need a SOAR playbook?” has to be conceptualized before you even click the “+ Playbook” button, let alone drag your first playbook block into your Visual Playbook Editor (VPE).

    The first, and most important, question is “Do I need a playbook in the first place?”. Many times, you may not need a Splunk SOAR playbook to accomplish what you’re looking to do and may be able to fulfill your requirements with just a Splunk alert or something else entirely that can keep your process streamlined and not too complex. One key question that is usually useful and helping determing if a Splunk SOAR playbook is necessary is: “Are there various activities I need to achieve in sequence as part of this process and, if not, is the single action I need available within my current toolset?”. There is no need to externalize and expand your process if your current tool (i.e. Splunk, etc.) can already do it. For example, if all you need is an email when a specific incident type is generated, you could easily do that within Splunk with an alert and some clever SPL.

    Ok, so you’ve decided that automation playbooks are the only way to achieve what you want. How do we design it?

    Once you’ve decided that you do need to develop a playbook to meet your requirements, you now need to design the end-to-end solution for your playbook. The very nature of Splunk SOAR being versatile and powerful means that, almost by definition, your playbook solution development is a blank canvas but don’t feel daunted! Some key basic items to consider when designing your playbook are:

    • Trigger: What is the catalyst/trigger for my playbook?
    • Fields: Does my playbook need specific fields? If so, how will the playbook reference them?
    • Playbook actions and general workflow design: What is my playbook doing?

    There are much more than just these considerations when it comes to playbook design, but these are the 3 basic ones we try to work from to extrapolate into a robust Splunk SOAR playbook solution. Let’s explore them.

    Trigger

    Playbooks can be triggered in a myriad of ways. For example, you could have an automation playbook that is triggered automatically when a container/event is created in SOAR with a specific label (i.e. “Defender”). This is the most common method when developing playbooks. You could also develop an input playbook that is called as part of an entire playbook solution. Note that automation playbooks can be manually executed and can also programmatically call other playbooks (automation or input) but input playbooks can do neither.

    With this in mind, deciding what type of playbook you need to create will largely depend on your use case as well. Generally speaking, if your playbook will be triggered from a Splunk search or other container-creating method (Splunk App For SOAR Export, etc), you’ll need an automation playbook that will execute based on the label that comes in. Configure this in your Splunk search/SOAR app configuration and the triggering of your playbook is that simple! On the other hand, input playbooks are more useful as part of larger playbook solutions or for more “ad-hoc” type executions that you want to call repeatedly from different playbooks. Think more of an “Send Email” playbook that would take in various inputs (Subject, recipient, etc.) and send an email but also generate notes or comments and perform some common status updates or things like that along the way that you don’t want to keep developing over and over in different playbooks.

    Fields

    So, you know what type of playbook you’ll need and how you’ll kick it off, but what does it need to do its job? Generally, if you’re kicking off a playbook from a Splunk search, some things to consider passing along are things like Incident IDs or any other identifying information that your SOAR playbook might need to execute its actions. Things like email addresses, usernames, timestamps, and error codes or error messages are common things that get passed along because they will likely make it easy for the SOAR playbook to send emails or reach out to its app integrations to get additional details using those identifiers. These fields will be populated in the artifact that gets created in the SOAR event/container and the playbook can easily read the data from there. You want to be careful to pass in your fields in meaningful and considerate ways: keep the field names free of special characters other than underscores as Splunk SOAR has issues with special characters, notably periods (.)!

    Playbook Actions/Workflow Design

    So, your SOAR container is showing up with the appropriate label and the fields are in the artifact. What’s my playbook supposed to do and how should it do it? This is where “art” and “science” intersect! It’s usually best to go back to fundamentals and simply create a workflow of what your business process looks like and begin to “SOAR-ify” it from there. Keep in mind a couple of the key SOAR development principles:

    • Modularize as much as possible. Develop smaller playbooks that work together instead of big, bulky playbooks where many more things can go wrong and it’s harder to troubleshoot or re-execute without doing too many things over.
    • Try to keep custom code within playbooks to a minimum. Create custom functions that can be reused as much as possible. This helps you eliminate having random code snippets all over the place and begins to help you build a library of “helpers” that you can use efficiently and repeatedly in future developments.

    Let’s consider a small example use case. A customer has Microsoft Defender data coming into their Splunk environment and they want to create a container in SOAR for every unique incident ID that comes in. Once this event is generated in SOAR, their playbook solution needs to take the incident ID and gather additional details for the Incident ID using their defender integration (status, description, comments, etc) and then send an email with that information to a specific group of people based on a lookup in Splunk. Here’s what a sample workflow would look like:

    Linear Splunk SOAR playbook flowchart showing automation steps from container creation to sending an alert email.

    In this case, you could design and develop a single playbook that would use the Incident ID present in the artifact and execute an action with the Microsoft Defender app integration to gather the incident details. This information comes back in JSON format and can contain extraneous information that isn’t relevant so the customer could develop a custom function that would take that JSON payload and extract the pertinent information and format it in an HTML-friendly string to send the email. After this, the customer could execute a Splunk app action with an SPL query to retrieve the user email list. Now, having all the information necessary, the Send Email step in the workflow could easily be converted into an input playbook of its own that would have some inputs (Recipients, Subject, Body) and would be able to take those inputs, send the email using the SMTP app, update the status to “Closed”, and add a comment to the container with confirmation of the email being sent. Once the small input playbook is developed, simply take the output from the custom function to populate the Body input to Send Email and the output of the SPL query from the Splunk app integration to populate the Recipients input to the Send Email playbook. The Subject can be hardcoded or a formatted input as well.

    As you can see, even a somewhat straightforward use case still required some design thought, two separate playbooks, three separate apps (Defender, SMTP, Splunk) and a custom function (mostly as a best practice). But, it resulted in a seamless playbook that does exactly what the customer needs and can be easily customized in the future should something change (i.e. additional users to email or updates to “pertinent” information from the Defender incident) and an input playbook that can now be used in the future to send an email and close out a container.

    Splunk SOAR is immensely useful and powerful. Taking adequate time to conceptualize and think through how you want to leverage that power and capability can provide immense dividends downstream as you grow your playbook library along with other objects like custom functions, custom lists, etc. So, don’t feel overwhelmed, take your time and let SOAR automations simplify your business processes!

  • Get Granular with Risked Based Alerting (RBA)

    Get Granular with Risked Based Alerting (RBA)

    By David Cheever, Team Lead, Advanced Services

    Introduction to RBA

    Splunk’s Risk-Based alerting (RBA) equips security professionals to prioritize and respond to security incidents efficiently, helping them focus on mitigating the most substantial risks to the organization’s infrastructure and data. RBA aids in reducing alert fatigue, optimizing resource utilization, increasing fidelity, and strengthening the overall security posture by swiftly identifying high-priority threats.

    This blog does not intend to provide a comprehensive explanation of RBA, as there is an abundance of existing documentation available for that purpose. Instead, the focus of this blog is to outline a distinctive approach to RBA that has proven highly successful in our experience.

    Leveraging a Flexible Approach

    Often when crafting a risk-based search we find that the option to assign granular risk scores is not inherently available through the user interface. With the current version of Splunk Enterprise Security (version 7.3 at the time of this blog), you can assign one risk score per risk object when using “Adaptive Response Actions”.

    Risk-based alerting configuration panel assigning separate risk scores to user and system objects in Splunk.

    Figure 1

    In Figure 1, what if we wanted to assign different risk scores based on the “title” field from the alert? With how risk is currently assigned, both a system triggering a “malware in registry detected” event and a user initiating a “Remote Desktop session” event would obtain an identical risk score.

    One alternative is to create multiple correlation searches tailored for each specific use case, but this approach can quickly become hard to manage. An effective strategy we have found is utilizing lookups to assign risk scores. With this method adaptive response actions are not used and instead risk rule properties are included in the SPL. Below is a sample from a lookup with over 100 rows. Note the diversity in risk scores allocated to different risk objects based on the detection title.

    Table of risk events showing object types, risk scores, and detailed alert titles for user and system activities.

    Practical Example

    In order to provide a comprehensive understanding of the approach, this section aims to delve into a practical example. Specifically, we’ll explore a correlation search that effectively employs lookups to manage and assess risks within Microsoft Defender data. By dissecting this example, we will gain insight into how lookups are utilized in the context of risk assignment, offering a clearer understanding of their functionality and impact within RBA.

    First, we construct a query designed to examine the desired index/data. In this example, our attention is directed towards Antivirus data, with an emphasis on organizing outcomes by destination, title, and incident ID.

    index=epav title IN ("*") 
    | eval user_account=coalesce('entities{}.accountName', 
    'entities{}.userPrincipalName','devices{}.loggedOnUsers{}.accountName') 
    | stats values(severity) as severity earliest(_time) as FirstTime latest(_time) as LastTime 
    latest(investigationState) as investigationState latest(status) as status values(alertId) 
    as alertId values("entities{}.detectionStatus") as detection_status values(user_account) 
    as user_account values(body) as body values(entities{}.ipAddress) as ipAddress 
    values(entities{}.fileName) as fileName values("entities{}.filePath") as filePath 
    values("entities{}.sha1") as sha1 values("entities{}.registryKey") as registryKey by dest 
    title incidentId 

    Next, we reference a lookup which breaks down each event title and provides a risk score to the risk object(s). This lookup enables us to apply more specific risk scores instead of employing a universal approach.

    | lookup defender_risk_scores title OUTPUTNEW risk_score risk_object AS lookup_risk_object 
    | eval risk_object_type=case(lookup_risk_object="user", "user", lookup_risk_object="system","system",lookup_risk_object="user/system",mvappend("user","system")) 
    | mvexpand risk_object_type  
    | eval risk_object=case(risk_object_type="user", user_account, risk_object_type="system", dest) 
    | mvexpand risk_object 

    Finally, we identify supplementary fields utilized in risk notables, such as search_name and risk_message. Then we employ the collect command to transmit the data to the risk index.

    | eval search_name="Defender - Event Alert - Risk" 
    | eval risk_message= title + " (" + risk_object + ")" 
    | convert timeformat="%Y-%m-%dT%H:%M:%S" ctime(FirstTime)  
    | convert timeformat="%Y-%m-%dT%H:%M:%S" ctime(LastTime) 
    | fillnull value=NULL risk_score risk_object 
    | search status!="Resolved" AND NOT risk_object IN ("NULL") AND NOT risk_score IN ("NULL")  
    | collect index=risk 

    Practical Assessment

    This correlation search is used in our production environment and has significantly reduced unnecessary volume and increased fidelity. Prior to adopting this methodology, Defender data was not used to its full capacity simply because there were thousands of events per day. Each event looked worthy of investigation, but the reality is there was not enough time in the day to perform proper analysis on each individual Defender alert.

    By integrating a lookup to dynamically assign risk, notables are generated only when the risk threshold is exceeded. This approach has significantly enhanced accuracy and provides additional context for contributing events, thereby enhancing the overall investigative insight.

  • TekStream Security Bulletin: TellYouThePass Ransomware

    TekStream Security Bulletin: TellYouThePass Ransomware

    By Julian Bermudez, Senior Splunk Consultant

    Introduction

    On June 8th, 2024, the TellYouThePass ransomware gang began exploiting the recently patched CVE-2024-4577.

    This vulnerability for remote code execution in PHP has been exploited to deliver webshells and execute encryptor payloads on exposed devices.

    Imperva researchers have determined that the bug is using the Windows mshta.exe binary to execute arbitrary PHP code to run malicious HTML app files.

    In short, it has been stated that the vulnerability can be seen being exploited with the following chain of events:

    1. The Windows mshta.exe binary contains a VBScript that loads a .NET variant of the ransomware into memory.
    2. The malware then fires off an HTTP request to what is perceived to be a CSS resource but is actually a command-and-control server that encrypts files on the target host.
    3. The final step is to place a README ransom note with instructions on how to recover data.

    Additional details can be found here: BleepingComputer Post about the PHP Exploit

    Mitigation Strategies

    The vulnerability has been acknowledged by WatchTowr Labs and they have suggested various mitigation steps to prevent its exploitation.

    These steps include:

    1. Immediately patching PHP installations with the patched versions 8.1.29, 8.2.20, and 8.3.8.
    2. For servers that cannot be quickly upgraded, there are temporary mitigation steps that can be taken such as alerting Apache rewrite rules or disabling the PHP-CGI feature. Steps for this potential remediation can be found here: Remediation Steps

    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:

    GitHub Link with CVE details

    DEVCORE blog post about CVE-2024-4577

    Detection with Splunk

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

    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 CVE-2024-4577 vulnerability being exploited. Here at TekStream, we have several security engineers that are intimate with cybersecurity knowledge and especially the logs of our clients.

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

    Note: The follow-up of the initial access attack is normally the execution of a specific script that establishes a connection to a rogue server. Detecting this part 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.

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

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

    SPL

    LEVERAGING ENDPOINT DATA TO SEARCH FOR MALICIOUS FILES (EDR, AV, OS, etc.)

    | 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 = "* mshta.exe" 
    OR Filesystem.file_name = "* d.hta") 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")

    LEVERAGING ENDPOINT DATA TO SEARCH FOR MALICIOUS HASH (EDR, AV, OS, etc.)

    | tstats `summariesonly` latest(_time) as _time, values(Processes.user) as user, 
    values(Processes.process) as process, latest(Processes.parent_process) as 
    parent_process, latest(Processes.parent_process_exec) as parent_process_exec, 
    latest(Processes.parent_process_guid) as parent_process_guid, 
    latest(Processes.parent_process_id) as parent_process_id, 
    latest(Processes.parent_process_path) as parent_process_path, 
    latest(Processes.process_path) as process_path, latest(Processes.process_exec) 
    as process_exec, latest(Processes.process_guid) as process_guid, 
    latest(Processes.process_id) as process_id, latest(Processes.process_hash) as 
    process_hash from datamodel="Endpoint"."Processes" where 
    (Processes.process_hash IN(
    “9562AD2C173B107A2BAA7A4986825B52E881A935DEB4356BF8B80B1EC6D41C53”,
    “5a2b9ddddea96f21d905036761ab27627bd6db4f5973b006f1e39d4acb04a618”,
    “95279881525d4ed4ce25777bb967ab87659e7f72235b76f9530456b48a00bac3”) 
    by Processes.dest, Processes.process_name, Processes.parent_process_name | 
    head 10000 | `drop_dm_object_name("Processes")` | fields _time, dest, user, 
    process_name, process, process_hash, process_path, process_exec, process_id, 
    process_guid, parent_process, parent_process_name, parent_process_path, 
    parent_process_exec, parent_process_guid, parent_process_id

    LEVERAGING NETWORK TRAFFIC DATA TO DETECT MALICIOUS CONNECTIONS (Firewall, IDS/IPS, DNS, etc.)

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

    LEVERAGING AUTH DATA TO ATTEMPT TO DETECT UNAUTHORIZED ACCESS (OS, MFA/SSO, application, etc.)

    | tstats `summariesonly` latest(_time) as _time, 
    values(Authentication.src_user_id) as src_user_id, 
    values(Authentication.src_user_role) as src_user_role, 
    values(Authentication.user_id) as user_id, values(Authentication.user_role) as 
    user_role, values(Authentication.vendor_account) as vendor_account, 
    values(Authentication.authentication_method) as authentication_method from 
    datamodel="Authentication"."Authentication" where 
    (Authentication.src="88.218.76.13" OR Authentication.dest="88.218.76.13") by 
    "Authentication.action", "Authentication.app", "Authentication.src", 
    "Authentication.src_user", "Authentication.dest", "Authentication.user" 
    | head 10000 
    | `drop_dm_object_name("Authentication")` 
    | fields _time, action, app, src, src_user, src_user_id, src_user_role, dest, user, 
    user_id, user_role, vendor_account, authentication_method
    
    

    LEVERAGING WEB DATA TO DETECT MALICIOUS URLs (Firewall, Proxy, DNS, etc.)

    Note: replace hxxp with http when searching. This search shows hxxp to prevent an accidental click.

    | 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 (“hxxp://88.218.76.13/dd3.hta”) 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")

    IoCs

    URL: hxxp:/88.218.76[.]13/dd3.hta

    C2 IP: 88.218.76[.]13

    Hash (HTA sample): 95279881525d4ed4ce25777bb967ab87659e7f72235b76f9530456b48a00bac3

    Hash (HTA sample): 5a2b9ddddea96f21d905036761ab27627bd6db4f5973b006f1e39d4acb04a618

    Hash Extracted .NET binary: 9562AD2C173B107A2BAA7A4986825B52E881A935DEB4356BF8B80B1EC6D41C53

    Bitcoin Wallet address: bc1qnuxx83nd4keeegrumtnu8kup8g02yzgff6z53l

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

    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: A Clear Path to Detecting Fog Ransomware

    TekStream Security Bulletin: A Clear Path to Detecting Fog Ransomware

    By David Cheever, Team Lead, Advance Services

    Introduction

    Fog is a new ransomware variant that encrypts files and appends a “.fog” or “.flocked” extension to them. The attackers behind Fog have exploited compromised virtual private network (VPN) credentials to deploy their ransomware. Their primary targets are educational institutions across the United States, with 80% of victims from the education sector and the remaining 20% from the recreation sector.

    The attackers appear financially motivated, focusing on quickly encrypting data without exfiltrating information. After encrypting the files, Fog leaves a ransom note in the form of a text file called “readme.txt”. This highlights the necessity of secure off-site backups and a robust, multi-layered security strategy to promptly detect and mitigate such threats. This bulletin provides a method of detecting Fog Ransomware using Splunk.

    Indicators of Compromise (IoCs) of Fog Ransomware

    TypeIndicator
    Hashes617d79c02ebac68b613d5b7cdbf001fd
    f7c8c60172f9ae4dab9f61c28ccae7084da90a06
    507b26054319ff31f275ba44ddc9d2b5037bd295
    e1fb7d15408988df39a80b8939972f7843f0e785
    83f00af43df650fda2c5b4a04a7b31790a8ad4cf
    44a76b9546427627a8d88a650c1bed3f1cc0278c
    eeafa71946e81d8fe5ebf6be53e83a84dcca50ba
    763499b37aacd317e7d2f512872f9ed719aacae1
    3477a173e2c1005a81d042802ab0f22cc12a4d55
    90be89524b72f330e49017a11e7b8a257f975e9a
    e11e7db705a11f8ca250d8d6826371e550b3214757f5bb9b648c7b0fad09294b
    8b9c7d2554fe315199fae656448dc193accbec162d4afff3f204ce2346507a8a
    d0c1662ce239e4d288048c0e3324ec52962f6ddda77da0cb7af9c1d9c2f1e2eb
    e67260804526323484f564eebeb6c99ed021b960b899ff788aed85bb7a9d75c3
    HostnamesDESKTOP-7G1IC87
    Kali
    VPS65CCB8B75352
    PACKERP-VUDV41R
    File Names*.flocked
    *.fog
    readme.txt
    DBgLog.sys
    Veeam-Get-Creds.ps1
    psexesvc.exe
    netscan.exe
    lck.exe
    locker_out.exe
    fs.exe
    locker_out.exe
    mon.dll
    advanced_port_scanner.exe
    advanced_port_scanner_2.5.3869.exe
    sharpshares(1).exe
    IP Addresses5[.]230[.]33[.]176
    77[.]247[.]126[.]200
    107[.]161[.]50[.]26

    Leveraging Enterprise Security’s Threat Intelligence Framework

    Uploading Threat Intelligence hinges significantly on correctly formatting your CSV file. The framework requires specific header field values to be utilized, ensuring the CSV contains the necessary columns and headers for effective threat matching. Prior to uploading, ensure IP addresses are stripped of brackets added for inadvertent navigation protection.

    To begin, navigate to Enterprise Security -> Configure -> Data Enrichment -> Threat Intelligence Management -> Sources. From here, select “New” to upload the below CSV file containing relevant Fog IoCs.

    <Fog_Ransomware_IoCs.csv>

    After uploading, navigate to Security Intelligence -> Threat Intelligence -> Threat Artifacts to view your uploaded values in the Threat Overview section. Filter for Fog_Ransomware_IoCs under Threat Group to confirm successful updates for both endpoint and network artifacts.

    Matches identified through various Threat Gen searches populate the threat_activity index and tag events for the Threat Intelligence data model, which security analysts can review on the Threat Activity dashboard. Notable events are generated by the Threat Activity Detected correlation search based on matches from threat sources, which in turn adjust risk scores for relevant assets and identities. Analysts can review these notable events on the Incident Review dashboard, alongside the updated risk scores displayed on the Risk Analysis dashboard.

    Detecting Fog with Data Models

    If you do not have Enterprise Security, you can still generate searches to detect these IoCs using standard data models, which are beneficial since they normalize fields across different data sources. Various data models may exhibit these IoCs; below are two excellent starting points:

    Network Traffic DM -The Network Traffic data model monitors flows of data across network infrastructure components.

    | tstats `summariesonly` latest(_time) as _time, values(All_Traffic.user) as user, 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 ("5[.]230[.]33[.]176","77[.]247[.]126[.]200","107[.]161[.]50[.]26") OR All_Traffic.src_ip IN ("5[.]230[.]33[.]176","77[.]247[.]126[.]200","107[.]161[.]50[.]26") OR All_Traffic.dest IN ("5[.]230[.]33[.]176","77[.]247[.]126[.]200","107[.]161[.]50[.]26") OR All_Traffic.dest_ip IN ("5[.]230[.]33[.]176","77[.]247[.]126[.]200","107[.]161[.]50[.]26") ```remember to remove brackets between octets``` by All_Traffic.action All_Traffic.src_ip All_Traffic.dest_ip
    | `drop_dm_object_name("All_Traffic")`

    Endpoint DM -The Endpoint data model monitors endpoint clients, such as end user machines, laptops, and BYOD devices.

    | 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.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 ("readme.txt","DBgLog.sys","Veeam-Get-Creds.ps1","psexesvc.exe","netscan.exe","lck.exe","locker_out.exe","fs.exe","mon.dll","advanced_port_scanner.exe","advanced_port_scanner_2.5.3869.exe","sharpshares(1).exe","*.flocked","*.fog") OR Filesystem.file_hash IN ("f7c8c60172f9ae4dab9f61c28ccae7084da90a06","507b26054319ff31f275ba44ddc9d2b5037bd295","e1fb7d15408988df39a80b8939972f7843f0e785","83f00af43df650fda2c5b4a04a7b31790a8ad4cf","44a76b9546427627a8d88a650c1bed3f1cc0278c","eeafa71946e81d8fe5ebf6be53e83a84dcca50ba","763499b37aacd317e7d2f512872f9ed719aacae1","3477a173e2c1005a81d042802ab0f22cc12a4d55","90be89524b72f330e49017a11e7b8a257f975e9a","e11e7db705a11f8ca250d8d6826371e550b3214757f5bb9b648c7b0fad09294b","8b9c7d2554fe315199fae656448dc193accbec162d4afff3f204ce2346507a8a","d0c1662ce239e4d288048c0e3324ec52962f6ddda77da0cb7af9c1d9c2f1e2eb","e67260804526323484f564eebeb6c99ed021b960b899ff788aed85bb7a9d75c3","617d79c02ebac68b613d5b7cdbf001fd") by Filesystem.dest

    Recommendations

    To enhance your organization’s security posture, begin by ensuring all threat indicators are effectively blocked through appropriate controls. Utilize your security tools to actively search for IoCs within your environment and maintain strong cyber hygiene practices by regularly updating anti-virus software and implementing a comprehensive patch management lifecycle.

    Additionally, enhance access security by implementing two-factor authentication across all relevant systems. In the event of a ransomware attack, protect against data loss by maintaining offline, encrypted backups which are regularly tested for recovery effectiveness.  Exercise caution with emails from unfamiliar sources, as they can often serve as entry points for malicious actors. By adopting these practices, you can significantly enhance your organization’s resilience against ransomware and other cyber threats.

    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.

  • Whole-of-State Cybersecurity: Addressing Your SOC Management Concerns

    Whole-of-State Cybersecurity: Addressing Your SOC Management Concerns

    Stay Protected with Public Sector Cybersecurity Solutions  

    With the rise of cyber threats targeting government entities, a comprehensive and proactive approach to cybersecurity is more important than ever. Whole-of-State cybersecurity is a concept that focuses on the collective security of a state’s systems and data, emphasizing collaboration and information sharing across government agencies. In this blog post, we will explore the benefits of whole-of-state cybersecurity and how Leveraging their deep expertise in cloud services, enterprise architecture and specialized recruitment, TekStream ensures seamless integration of cutting-edge technologies to bolster security frameworks. By partnering with TekStream, government agencies gain not only robust protection but also enhanced operational agility and cost efficiencies, crucial for navigating today’s digital landscape.

    Start your research here: Public Sector IT solutions 

    Why Whole-of-State Cybersecurity?

    The landscape of cyber threats is ever shifting, pushing the boundaries of traditional security measures and demanding a more unified, strategic response. Whole-of-State cybersecurity emerges as a critical paradigm, emphasizing an approach where collaboration and shared intelligence form the linchpin of defense. It’s a strategy that recognizes the interconnectedness of public sector entities and the cumulative strength derived from this unity. The integration of efforts across various government levels not only amplifies the effectiveness of cybersecurity measures but also ensures a more resilient infrastructure against the sophisticated threats that now typify the digital age. 

    The latest data underscores a surge in cyber adversities, making it abundantly clear that a fragmented approach is no longer practical. The collective endeavor of Whole-of-State cybersecurity is not just a strategic move; it’s a necessary evolution to navigate and neutralize the complex web of cyber threats, safeguarding sensitive information and public trust in a world where digital realms are increasingly contested battlefields. 

    A Comprehensive, Whole-of-State Approach

    TekStream’s bespoke cybersecurity solutions offer a blueprint for public sector entities aiming to fortify their digital protection with a whole-of-state methodology. This approach encompasses an array of services designed to enhance the cybersecurity landscape comprehensively. From an initial security assessment that offers a clear view of vulnerabilities and strategic gaps, to implementing robust MDR – managed detection and response – systems that act as the digital immune system against threats, our offerings are a testament to a tailored, forward-thinking cybersecurity strategy. Leveraging innovative technologies and methodologies, including the strategic use of Splunk and Cisco for deep security insights and optimization, TekStream ensures that every facet of public sector cybersecurity is not just covered but optimized for resilience and adaptability. The holistic strategy extends to ensuring compliance with critical frameworks like CMMC, safeguarding not just data but the very continuity and trust in public sector operations. Through a harmonized, strategic partnership, TekStream propels public sector entities towards achieving a fortified, responsive, and integrated cybersecurity posture, ready to meet the demands of today’s digital challenges and beyond. 

    Discover TekStream Whole of State solutions 

    Security Assessment: The Foundation of Proactive Security

    Embarking on the journey to a fortified cybersecurity posture begins with a TekStream Security Assessment. This crucial first step delves into the heart of your organization’s security framework, scrutinizing the architecture, tools and procedures that form your current defenses. It’s a process designed not just to highlight vulnerabilities but to map out a strategic course towards a robust security protocol. TekStream’s approach is deeply interactive, engaging stakeholders in a collaborative exploration of their security landscape. The outcome? A comprehensive blueprint tailored to guide your cybersecurity endeavors, meticulously prioritized to tackle risks of the highest concern with precision. Engaging in this assessment is more than a procedural necessity; it’s a strategic pivot towards building a security stance that’s as resilient as it is responsive, setting the stage for a future where your public sector organization can navigate the digital domain with confidence and clarity. 

    Security Assessment: begin here 

    Managed Detection and Response

    Navigating the labyrinthine world of cyber threats requires more than passive defenses; it demands a vigilant, adaptive strategy. This is where TekStream’s MDR – Managed Detection and Response – service comes into play, offering a beacon of proactive surveillance in the murky waters of cyber threats. With a focus on early detection and rapid response, this service empowers public sector organizations with the capability to not only find but also neutralize threats before they escalate into full-blown crises. Utilizing a sophisticated blend of technology and expertise, TekStream’s team is always at the ready, monitoring systems around the clock for signs of intrusion or abnormal activity. This vigilant watch ensures that threats are not merely detected but are actively contested with strategic, informed responses. In a realm where cyber adversaries constantly evolve their tactics, having TekStream’s Managed Detection and Response at your side is akin to fortifying your digital domains with an elite guard, poised to counteract the specters of cyber threats with unmatched precision and agility. 

    Managed Detection and Response: Read More 

    Managed Security Service Provider (MSSP)

    Leveraging TekStream as your Managed Security Service Provider propels your public sector operations into a new echelon of cyber vigilance and operational efficiency. The essence of this partnership lies in offloading the intricate web of security monitoring and management, enabling your internal IT forces to pivot towards strategic initiatives that drive your mission forward. TekStream’s MSSP framework is engineered to provide an unwavering digital watchtower, orchestrating 24/7 threat detection, real-time incident response, and profound security analytics. This continuous surveillance blanket ensures that potential cyber threats are identified and neutralized with surgical precision, maintaining the integrity and continuity of your critical operations. By integrating TekStream’s MSSP services, government agencies embrace a dynamic shield, meticulously crafted to counter the evolving cyber threat landscape while fostering an environment where innovation and public service can flourish unimpeded by the specters of digital risks. 

    Splunk and Cisco Security Optimization

    Splunk and Cisco emerge as cornerstone technology in the realm of cybersecurity, offering unparalleled insights into the security ecosystem of public sector organizations. Through meticulous optimization by TekStream, Splunk and Cisco transcend their role as mere tools, becoming pivotal assets in the strategic arsenal against cyber threats. This level of optimization ensures that anomalies do not merely signal alarms but become gateways to actionable intelligence, enabling rapid, informed decisions in the face of potential security incidents.  

    The brilliance of integrating Splunk and Cisco into cybersecurity endeavors lies in its ability to sift through vast oceans of data, identifying the critical signals amidst the noise. TekStream’s adept implementation harnesses this capability, transforming raw data into a clear narrative that outlines both threats and opportunities within the security landscape. It’s about making the invisible visible, bringing shadowy cyber threats into the light where they can be confronted with precision and agility. 

    Moreover, the strategic use of technology facilitates a proactive security posture. It’s not just about responding to threats but expecting them, crafting a security environment where potential vulnerabilities are addressed before they can be exploited. In a domain where timing is everything, this proactive approach—powered by Splunk’s deep analytical capabilities—provides the edge that public sector entities need to stay one step ahead in the cybersecurity game. 

    Security Optimization 

    CMMC Compliance

    Navigating the complex landscape of cybersecurity compliance, particularly for defense contractors, demands a meticulous and informed approach. This is where CMMC (Cybersecurity Maturity Model Certification) compliance becomes pivotal. TekStream’s aid in this critical area ensures that organizations are not merely compliant but are fortified bastions of security in the defense sector. Through a detailed process that assesses, identifies and remediates gaps in cybersecurity practices, TekStream’s guidance is instrumental in steering organizations toward not just meeting, but exceeding the rigorous standards set forth by the Department of Defense. 

    Engaging with TekStream on the path to CMMC compliance is to embark on a journey of strategic enhancement of your cybersecurity framework. It’s a proactive step towards building a resilient security posture that can withstand the evolving threats in the digital domain. TekStream leverages its deep industry knowledge and technical expertise to navigate the intricate requirements of CMMC, ensuring that every aspect of your cybersecurity measures is aligned with the highest standards of security and compliance. This focused approach not only safeguards sensitive information but also solidifies your standing as a trusted, secure partner in the defense sector, poised to meet the challenges of today and anticipate those of tomorrow. 

    CMMC Compliance Certification Guide 

    TekStream: Your Public Sector IT Solutions Provider

    TekStream stands at the forefront of redefining IT solutions within the public sector, offering a partnership that extends beyond mere service provision to become a keystone in the edifice of government cybersecurity efforts. With an arsenal of customized solutions, TekStream meets the distinct demands of public sector operations. This synergy of deep industry insights and innovative technological acumen enables TekStream to craft strategies that not only address the immediate challenges but also pave the way for enduring security and resilience. Embracing TekStream’s comprehensive suite of services, government entities are equipped to navigate the digital terrain with an unmatched level of protection, efficiency, and foresight. The partnership with TekStream transforms the complex web of cybersecurity into a structured, manageable framework, empowering public sector agencies to leverage their IT infrastructure as a catalyst for growth, innovation, and fortified security. In the dynamic landscape of cybersecurity, TekStream emerges as a beacon of clarity, guiding public entities through the tumultuous waters of digital threats towards a horizon of security, stability, and success. 

    Explore how public sector challenges can be transformed into opportunities for growth and enhanced security 

  • Can You See Me Now? Ensure SOAR Playbook Visibility Into Artifact Data Regardless of Scope 

    Can You See Me Now? Ensure SOAR Playbook Visibility Into Artifact Data Regardless of Scope 

    By Marvin Martinez, Team Lead of Security Automation Operations

    Splunk SOAR, formerly known as Phantom, is essentially a canvas on which to build out your automation solutions. One particular aspect of how Splunk SOAR works behind the scenes can sometimes be beneficial, or somewhat of a hindrance, depending your use case. As you know, Splunk SOAR has this notion of “scope” when determining whether an artifact is “visible” to a playbook while it is running. This is not normally an issue if you’re manually executing a playbook and are able to select the scope before executing the playbook, as displayed below.

    SOAR platform UI showing artifact scope dropdown with options for new and all artifacts before running a playbook.

    There are use cases, however, where you may want to be able to repeatedly execute playbooks and ensure that some, or all, artifacts are always visible to the playbook. For example, you may have a workbook attached to the container with playbook references and analysts/users may need to run the same playbook more than once. In cases like this, the only usual option is to ensure you manually set the scope on each playbook block in your playbook to “All Artifacts” as you develop it. Depending on the length of your playbook, this may be unnecessarily tedious, particularly if you’re doing it repeatedly for multiple playbooks!

    A SOAR Hack

    In use cases like this, there is a clever SOAR hack you could employ that will ensure your playbook always has the artifact information available. You can leverage the REST API to retrieve the artifact data using a custom function and then it will be available as output variables in a utility block within your playbook.

    Creating a custom function ensures that you can re-use this piece of code any time you need it and for any artifact that’s in your container. A basic introduction to this custom function is below. In your SOAR environment, go to “Custom Functions” and click to create a new one.

    Inputs

    • artifact_name (item) – This will be the name of artifact in your container that you want to retrieve the values for.
    • container_id (item) – The container id of the container where the desired artifact is. This can easily be referenced by selecting “event” -> “id” in the parameter select screen when populating the inputs for the custom function call.

    Outputs

    • artifact_cef_values (item) – This will be a dictionary field that will contain all of the cef values in the artifact.

    As for the code, insert the following code snippet after the “Write your custom code here…” line in your custom function.

        #Create dictionary for results 
    
        artifact_cef_values_dict = {} 
    
        found_values = False 
        #Generate REST API call with filters to get artifact data 
    
        artifact_url = phantom.build_phantom_rest_url('artifact') 
    
        artifact_url = f'{artifact_url}/?_filter_container_id=
    
    {container_id}&_filter_name='{artifact_name}'' 
    
        response = phantom.requests.get(artifact_url, verify=False) 
    
        content = json.loads(response.text) 
        #Iterate through results and convert fields/values to dictionary keys 
    
        if content['count'] > 0: 
    
            found_values = True 
    
            artifact_cef_values = content['data'][0]['cef'] 
    
            keys = list(artifact_cef_values.keys()) 
    
            values = list(artifact_cef_values.values()) 
    
            counter = 0 
    
            for key in keys: 
    
                value = values[counter] 
    
                artifact_cef_values_dict[key] = value 
    
                counter = counter + 1 
        if not found_values: 
    
            comment = "NOTE: no field values found!" 
    
            phantom.comment(comment=comment) 
    
        else: 
    
            pass 
        #Assign output variable with internal results dictionary 
    
        outputs['artifact_cef_values'] = artifact_cef_values_dict 

    Results

    Once implemented, this custom function can now be called from your playbook (preferably at the top of it as one of your first blocks) and you can then reference the outputs of that block for any fields from your desired artifact, no matter what scope it’s running in. Below is a sample playbook that shows how this custom function could be utilized:

    SOAR playbook diagram highlighting steps to retrieve artifact CEF values, format output, and add a comment.

    The container this playbook will run on has one artifact named “test_artifact” with a few fields, one of which is a “destinationAddress”.

    Artifact metadata panel displaying test artifact details including protocol, destination address, and request URL.

    In the playbook above, the custom function is called as the first block and retrieves all the values for “test_artifact” in the current container. The configuration for the custom function is as shown below:

    Configuration screen for get_artifact_cef_values utility with defined artifact name and container ID variables.

    In the format output block immediately after, select the “artifact_cef_values” output from the custom function block and then just add the desired field at the end in object notation (i.e. add “destinationAddress” like get_artifact_cef_values_26:custom_function_result.data.artifact_cef_values.destinationAddress). In this case, we are just preparing a quick comment to show how the field retrieval works.

    Playbook format block dynamically referencing destination address from artifact CEF values for visibility.

    Now, just use the output of the format block in the comment block after that to output a comment to the container showing the data. The output of the comment block will display as shown below.

    Playbook result displaying extracted destination address from artifact data with command prompt for user input.

    As you can see, once implemented, it’s that easy to reference any values from your artifact at any point in your playbook with no need to worry about scopes or references at any point. If you have multiple artifacts, you could easily string together various of these blocks and just name them accordingly for use within your playbook.