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

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

  • Not Enough Space? Rotate Through Your Dashboard Panels Automatically

    Not Enough Space? Rotate Through Your Dashboard Panels Automatically

    By Marvin Martinez, Team Lead, Security Operations

    Splunk dashboards allow for great flexibility and can provide many ways to visualize your data. Sometimes, however, you may need to ensure you can fit everything on one non-scrollable screen. Perhaps you’re in a SOC with a main screen and need some different panes to display at specific intervals? What if you need to cycle through a set of data between different time ranges like the last 24 hrs, 7 days, and 30 days? In these situations, it would be very helpful to be able to have a dashboard that automatically rotates the desired panels on specific time intervals, not unlike a fast food menu screen or those digital billboards you frequently see on the interstate!

    In the example we’ll use for this article, I’ll demonstrate how to configure a dashboard to display an Attack Map in two separate ways. The first view will contain a full screen attack map with all of the different sources in one single map to provide a comprehensive view. The second view is a broken out set of panels that shows each individual source/group in its own panel with a dedicated attack map for added detail. The Missile Map app that contains this attack map visualization used below can be found on Splunkbase.

    View 1

    Cybersecurity attack map showing global data flows and threat origins in a single interactive panel.

    View 2

    Rotated Splunk dashboard displaying four grouped attack maps with segmented threat visualization panels.

    These two views will cycle automatically based on a specified time interval defined within a global search in your dashboard. There are a few tokens to ensure you set up correctly but, once set up as needed, your dashboard will cycle through the two configured views (sets of panels) on its own for use in any monitor on a wall or other constantly monitored screen.

    The snippet of dashboard XML code responsible for the setup is below, with a full detailed explanation below:

       <search> 
    
        <query>| makeresults count=1 
    
    | eval test = IF("global" = "global","individual","global") 
    
        </query> 
    
        <done> 
    
          <eval token="panelView">IF($panelView$ = 
    
    &quot;global&quot;,&quot;individual&quot;,&quot;global&quot;)</eval> 
    
          <set token="form.panelView">$panelView$</set> 
    
          <eval token="refreshCount">$refreshCount$ + 1</eval> 
    
        </done> 
    
        <refresh>15s</refresh> 
    
        <refreshType>interval</refreshType> 
    
      </search> 
    
      <fieldset submitButton="false"> 
    
        <input type="text" token="panelView" depends="$tok_hide$"> 
    
          <label>field1</label> 
    
          <initialValue>global</initialValue> 
    
        <change> 
    
          <condition value="global"> 
    
              <set token="globalView">true</set> 
    
              <unset token="individualView"></unset> 
    
          </condition> 
    
          <condition> 
    
            <unset token="globalView"></unset> 
    
            <set token="individualView">true</set> 
    
          </condition> 
    
        </change> 
    
        </input> 
    
      </fieldset> 

    Components

    The components of this setup are as follows:

    – Search to detect what view is currently being displayed and what the next one will be, as well as to define what the refresh interval will be

    – A hidden input to allow for catching the resulting value and setting the appropriate tokens for view hiding/showing.

    – Setup your rows (or panels) with the appropriate depends settings to leverage the appropriate tokens to ensure they are shown only when desired.

    First, the initial search. Set this search up at the top of your dashboard.

    <search> 
    
        <query>| makeresults count=1 
    
    | eval test = IF("global" = "global","individual","global") 
    
        </query> 
    
        <done> 
    
          <eval token="panelView">IF($panelView$ = &quot;global&quot;,&quot;individual&quot;,&quot;global&quot;)</eval> 
    
          <set token="form.panelView">$panelView$</set> 
    
          <eval token="refreshCount">$refreshCount$ + 1</eval> 
    
        </done> 
    
        <refresh>15s</refresh> 
    
        <refreshType>interval</refreshType> 
    
      </search> 

    The query is just a generic makeresults command to return some output value but it’s being leveraged to set the token value of the hidden input. This is to ensure that you don’t end up with an infinite loop by trying to set the token of an input within itself. Use the done event handler to set the token of the hidden input (“panelView” in my example) (details below) within it. Use an eval to set the token appropriately based on the value of the “panelView” input currently (i.e. if “global” currently, set it to “individual” and vice versa). The refresh property is what defines how often the panels/views will rotate between displaying. You can statically set it here or even define it using a token from an input, if desired, to make that refresh interval easily customizable.

    As far as the input is concerned, create a text box input and set the “depends” property on it to a token you don’t intend on setting so that it is always hidden (i.e. “$tok_hide$”). Add a change condition so you can set, and unset, appropriate tokens based on the value of the input. This is where the magic happens! When the value of the token is “global”, in this case, it sets the globalView token and unsets the individualView token. This will hide the individual panels and display the global one. The default condition after that is executed when the value is anything other than “global”, which is sufficient in our scenario but you may need additional explicit conditions if you have more than two views in your dashboard. Note how the set/unset is just reversed from the first one to ensure only one is set at any given time.

    <fieldset submitButton="false"> 
    
        <input type="text" token="panelView" depends="$tok_hide$"> 
    
          <label>field1</label> 
    
          <initialValue>global</initialValue> 
    
        <change> 
    
          <condition value="global"> 
    
              <set token="globalView">true</set> 
    
              <unset token="individualView"></unset> 
    
          </condition> 
    
          <condition> 
    
            <unset token="globalView"></unset> 
    
            <set token="individualView">true</set> 
    
          </condition> 
    
        </change> 
    
        </input> 
    
      </fieldset> 
    
     

    Finally, it’s time to configure your rows/panels with the appropriate depends property to hide/show panels when necessary, as shown below. Set the value of each to be the token that will show the panel/row.

      <row depends="$globalView$"> 

    Save your dashboard and enjoy the automatic cycling between your panels with no engagement from a human!

  • Splunk Index Earliest and Index Latest

    Splunk Index Earliest and Index Latest

    By Jay Young, Senior Splunk Consultant

    In Splunk, _index_earliest and _index_latest are two special time-based SPL and SPL2 search constraints that help you specify a time range based on indexed time and not event time for your search within a specific index. These constraints are useful for limiting the scope of your search to a specific a time and improving the efficiency of your searches. They also help find events they may have been indexed with incorrect event time stamps.

    _index_earliest

    The _index_earliest constraint specifies the earliest time that your search should begin when searching within a specific index.

    You can think of it as setting the starting point in time for your search within the specified index.

    This constraint is particularly useful when you want to focus on a specific time range within an index, allowing you to exclude data that’s outside that range.

    _index_latest

    The _index_latest constraint specifies the latest time that your search should end when searching within a specific index.

    It sets the ending point in time for your search within the specified index.

    Like _index_earliest, _index_latest helps you narrow down your search to a specific time frame, excluding data that falls outside of it.

    Reference materials can be found on the Splunk SPL Search Manual

    Example 1

    Suppose you have an index called “web_logs” and you want to search for events between 10:00 AM and 11:00 AM on a specific day.

    index=web_logs source=”/var/log/access.log” | search

    _index_earliest=”10:00:00″ _index_latest=”11:00:00″

    Example 2

    To search for events in the “security” index that occurred between October 1, 2023, and October 15, 2023, you can use the constraints like this:

    index=security | search _index_earliest=”10/01/2023:00:00:00″

    _index_latest=”10/15/2023:23:59:59″

    Example 3

    You can also use relative time expressions. For instance, to search for events within the last 24 hours in the “application” index:

    index=application | search _index_earliest=-24h _index_latest=now

    Conclusion

    These examples demonstrate how to use _index_earliest and _index_latest to specify time ranges when searching within specific indexes in Splunk. This can help you focus on relevant data and improve efficiency and find events that may have been ingested with an event timestamp that was out of the normal date and time range.