Tag: TekStream

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

  • Navigating the Complexities of Oracle Licensing on VMware

    Navigating the Complexities of Oracle Licensing on VMware

    Tools and Resources Guide

    Organizations running Oracle and VMWare are increasingly looking to save money since both vendors are actively increasing support costs annually.  Often both types of software are running on the same machine, meaning there is a significant opportunity for savings associated with an in-depth review. This blog will explore these ideas in more detail and outline some options for resolving them.

    With Broadcom’s new acquisition of VMware, there’s uncertainty about future licensing strategies from major IT vendors, which may pose new challenges. Expert consulting is handy for navigating these changes, as it guides the Oracle virtualization licensing process, optimizes costs, ensures compliance, and prepares for audits.

    Understanding Oracle Database Licensing

    Oracle provides two primary licensing models for its database software: Processor Licensing and Named User Plus (NUP) Licensing. Choosing the right model depends on your organization’s requirements and usage patterns. Understanding Oracle licensing details is important for budget planning and ensuring compliance.

    Processor Licensing

    Oracle’s processor licensing model counts the number of physical cores in the servers where you’ve installed the Oracle database. Processor licensing is ideal for monitoring individual users, which can be challenging, such as for web applications with thousands of anonymous visitors. It removes the requirement to count users and provides flexibility for varying user loads.

    To calculate the number of licenses required for processor licensing, you multiply the number of cores by Oracle’s processor licensing factor. To understand the licensing factor, Oracle assigns a processor factor value between 0 and 1 to each CPU type based on factors like architecture or number of cores.

    Named User Plus (NUP) Licensing

    Named User Plus is a more common licensing model as it charges per user and devices that access the Oracle database. In simpler words, it’s a pay-per-license model, and only a predefined number of authorized users can access resources under this model. The users can be human users or non-human devices or servers that make requests to the database. The licensing requirement depends on the minimum number of users required for the Oracle database edition.

    To calculate licensing for Named User Plus licensing, identify all access points, human and no-human, calculate a total user count, confirm that it matches the minimum requirements, and then purchase the higher number of licenses needed.

    Oracle Licensing Policies for VMware Environments

    Deploying Oracle databases in a virtualized VMware environment changes the licensing approach compared to traditional physical servers. The fluid nature of VMs complicates the assignment of licenses to static IPs or physical hosts. Oracle requires licensing all physical CPUs that VMs can access, regardless of the number of CPU cores each VM uses.

    Oracle’s rate cards specify that only the virtual CPUs (vCPUs) assigned by VMware to each database VM count toward licensing. However, because VMs can move between physical servers, you must license all physical CPUs in the VMware cluster where the Oracle database could potentially run.

    Licenses can move quickly between VMs, allowing multiple databases to share a single VM license instead of requiring separate licenses for each server. This flexibility can help optimize licensing costs but requires careful management to ensure compliance.

    In November 2023, Broadcom completed its acquisition of VMware, which may influence future Oracle licensing for VMware strategies. The long-term impacts on VMware’s product roadmap and client relationships are still uncertain. Broadcom introduced a “bring-your-own-subscription license” option, allowing customers with existing VMware subscription licenses to use them on approved VMware Cloud Foundation environments, both on-premises and in public clouds.

    Understanding these policies is essential for managing Oracle licenses in VMware environments, ensuring compliance, and optimizing costs. As the landscape evolves, staying informed about policy changes and leveraging expert consulting can help navigate these complexities.

    Common Challenges in Oracle Database Licensing on VMware

    While VMware is a widespread virtualization platform, Oracle licensing on VMware presents several complexities. One significant challenge is licensing Oracle databases across multiple VMware hosts and clusters. Oracle requires licensing based on a server’s total number of physical cores. However, since VMs can move around, this can make licensing complex, as Oracle mandates covering all potential physical cores the VM could use.

    Key Challenges:

    • Licensing Across Hosts: VMs can span multiple hosts, necessitating licenses for all physical cores in the cluster.
    • Migrations Between Clusters: Migrating VMs between clusters without a host may trigger re-licensing requirements. This adds complexity as it involves reassessing and potentially acquiring new licenses to remain compliant.
    • Temporary CPU Spikes: Compliance issues arise if peak VM core utilization exceeds licensed physical cores, leading to potential violations.
    • Incorrect Processor Counts: Miscounting processors can limit access to Oracle software upgrades and support. A thorough inventory of servers, VMs, and infrastructure is essential.
    • Licensing Only VMs: It’s a common mistake to think licenses are needed only for VMs running Oracle software. In reality, the entire physical server must be licensed.
    • Overlooking Non-Human Devices: Non-human devices like sensors and scanners also count towards licensing requirements.
    • Using Unlicensed Features: Activating unlicensed Oracle features can lead to compliance issues and penalties. Oracle audits check for feature usage, not just installed software.

    Monitoring and managing these aspects are essential to avoid non-compliance, audits, and penalties. Consulting with an Oracle licensing expert can help navigate these challenges effectively and ensure proper licensing.

    Tools and Resources for Oracle Licensing Management

    Managing Oracle licensing can be a complex task requiring accurate software usage tracking across physical and virtual environments. With proper tools and resources, organizations can seamlessly handle Oracle licensing and stay compliant.

    • Oracle License Management Services (LMS): LMS is Oracle’s flagship license management platform, designed to track software usage, users, and cores. It provides insights into optimization for both on-premise and cloud-based services.
    • Third-party tools: Other third-party solutions provide advanced capabilities for Oracle optimization. They automate inventory collection, user and core counting, usage tracking, spend projections, and license true-ups.[1] 
    • Asset and configuration management databases: Integrations with existing IT asset databases, like IBM Configuration Manager, allow Oracle data to be centralized, aiding in comprehensive management.
    • Custom scripts: For environments lacking tools, administrators can write SQL and other scripts to query databases, scan server configurations, VMs, and files to pull inventory and usage details.
    • Oracle resources: Websites with documentation on licensing metrics, policies, audit programs, and support entitlement details help interpret licensing requirements accurately.
    • Consulting services: Oracle license VMware consulting services offer licensing assessments, optimization strategies, educational workshops, and licensing reviews to help customers better understand requirements, licensing models, and best practices.

    At TekStream, we understand Oracle’s complex licensing models and offer expert consulting, Oracle migration management and managed services to reduce audit risks. We conduct a thorough inventory and assessment of your current VMware environment, including applications, VMs, storage, networks and performance metrics to help you understand licensing needs.

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

  • Banging Your Head Against the (Fire) Wall? Creating a Proxy Tunnel With Ansible 

    Banging Your Head Against the (Fire) Wall? Creating a Proxy Tunnel With Ansible 

    By William Phelps, Senior Technical Architect

    In today’s IT world, it’s very common to encounter network restrictions in accessing resources between servers. The restriction often manifests itself as a firewall rule, keeping a server in a development environment from accessing a production server, for example. This practice keeps servers segregated from inadvertent or even malicious access but introduces a hassle to manage from a central server.

    This article outlines how Ansible can be used to “tunnel” a server connection out of one environment through a bastion host to a port in another environment. The use case being described in this article is an Oracle SQLPLus session needing to get to a database server that resides in another environment. Please read the disclaimer at the end of the article.

    A “bastion” server serves as a gateway to access servers without granting direct access to the destination server(s). A bastion typically would be exposed to the outside world in some fashion, with “outside world” meaning that the bastion sits in front of one or more networks, with access to the networks having to come via the bastion. The rest of the servers have some level of ingress/egress access restrictions that require the passing of the request packet stream through the bastion. In some more intricate cases, there are multiple bastions that must be traversed in order to access a resource.

    The environment setup is described as below:

    • A Linux RHEL-compatible server (“controlServer”) with the Oracle SQL Developer client installed. The client software includes SQLPlus as part of the software package.
    • A server (“DB Server”) hosting the Oracle database. (For this exercise the actual database operating system is totally irrelevant, as the access will be going to the database listener port.)
    • A Linux RHEL compatible server (“bastion”) that is serving as the bastion host.
    • “controlServer” can access “bastion” over SSH. The SSH port in this case is 22.
    • A user with an SSH private key exists on “controlServer”, and the corresponding user exists on the “bastion” with the public key in the user’s “authorized_keys” file.
    • The “bastion” has a network path to reach the database listener port on “DB Server”.

    A simple picture gives a general idea of the basic conceptual flow. The control server issues a request to the bastion via a tunnel on port 22, and the bastion in return ”forwards” the request to the DB server via port 1521.

    
A network diagram illustrating a Control Server connected to a Bastion server via port 22 through a firewall, and the Bastion server connected to a DB Server via port 1521 through another firewall.

    To execute the database portion of this overall request, the following items are needed so that a valid database connection string can be constructed:

    • database user and password
    • database service name or SID
    • database hostname or IP address
    • database listener port

    For simplicity, the Oracle EZConnect syntax will be employed for the SQLPLus execution. As an example, if the database resides on server “abc123” with a listener port of 1521, and a service name of “foobar”, the user “myDBUser” with a password of “myUserPass” will result in a connection string as “myDBUser/myUserPass@//abc123:1521/foobar”.

    (There is an intentional reason to avoid directly editing any tnsnames.ora files. The idea is to make the overall solution as portable and as less “OS level access dependent” required as possible.)

    For the bastion access portion of this exercise, the following items are needed:

    • A user account on the control server to login via a Putty/console session (i.e. “controlUser”).
    • A user account on the bastion server (i.e. “bastionUser”) to login via ssh.
      • While a username/password combination can be used, the safest approach is to use a public/private key file.
      • The “private” key must reside on the control server in a location where “controlUser” can access the key, and the “public” key resides in the “authorized_keys” file in the /home/bastionUser/.ssh folder. (Again, for this exercise the idea is to stay simple… an ssh agent to manage keys could be used, but the idea is to be as portable as possible.)

    On the control server, the following software is required:

    • Ansible (yum install ansible on RHEL compatible Linux). Keep in mind that Ansible cannot be installed on Windows. The control server will have to be a ‘nix base distribution.
    • Oracle SQLDeveloper or some flavor of the Oracle client that has the SQLPlus utility. Verify that SQLPlus will launch correctly before trying to run it via the playbook being created.

    Finally, the appropriate ingress/egress rules must exist in firewalls to allow communication. Specifically, there must be a route available from the control server to the bastion, and a route from the bastion host to the DB server host over the appropriate ports. There is no need to have a route between the control server and the DB server; there would be no need for this article if such connectivity already existed!

    Now that the majority of the pieces that are needed are in place, let’s discuss the general steps needed in the Ansible script.

    • Create a simple sql file that can be executed via SQLPlus. This is done by adding the file name to the end of the SQLPlus invocation as mentioned ealier, i.e “sqlplus ‘user/pass@connection’ @myFile.sql”.
    • Copy the file to a location on the control server.
    • Create the tunnel.
    • Run the SQL script.
    • Destroy the tunnel.

    It’s necessary to first look at how this tunnel would be constructed outside of any Ansible framework, as eventually we will take those commands and work them into the Ansible playbook.

    The rough outline of the command appears as follows:

    A screenshot of a multi-line SSH command used to establish a tunnel with local port forwarding and a proxy command.

    The next table explains the breakdown of each piece of the command. (“ProxyCommand” is a bit more backwards compatible than using the “-J” or jumphost option, so it’s used for this example.) Also note that some of this extended command could be offloaded into the server’s ssh_config file, but as stated earlier, the intent of this article is to minimize the need to touch files that the executing user simply may not have access to modify.

    ParameterMeaning/Intent
    -iidentity or key file
    -fRequests ssh to go to background just before command execution. This is useful if ssh is going to ask for passwords or passphrases, but the user wants it in the background.
    -NDo not execute a remote command. This is useful for just forwarding ports.
    -LSpecifies that connections to the given TCP port or Unix socket on the local (client) host are to be forwarded to the given host and port, or Unix socket, on the remote side. (More to come on this topic.)
    -ooption ServerAliveInterval=20 – letting SSH know to send a packet to test for a response from the server every 20 seconds
    -oProxyCommand
    -q: quiet
    -i: identity or key file
    -W: Requests that standard input and output on the client be forwarded to host %h on port %p over the secure channel

    Use the following steps to create and run the tunnel scripts.

    • On the control server, create a SQL script file with the following content as shown. This script will simply show the server host variable as reported by the DB.

    Name this file “db_tunnel_test.sql” and save it in the control user’s home directory for simplicity.  Be sure to include the trailing slash as shown.

    Omitting the slash will cause SQLPlus to hang and the Ansible script will not complete.    

    An SQL script querying sys_context('USERENV', 'SERVER_HOST') to test database connectivity.
    • The actual playbook example itself is brief, as it’s intended as “conceptual” code, not “production” code. To preserve formatting, the following representative screen print of the file is provided.
    An Ansible playbook in YAML format showing variable definitions, tasks for creating an SSH tunnel and executing a database test script, and a handler for stopping the tunnel.
    • Name the file “playbook_tunnel_test.yml” and save it in a location on the control server.
    • Invoke the playbook with the appropriate inventory if the connection details are not defined within the playbook, i.e.

    “ansible-playbook -v -i inventories/inventory_prod.ini playbook_tunnel_test.yml”

    Note the following highlights in the script above:

    • The “vars” section could be expanded within the file or abstracted out into a separate file. Some items that would normally be stored in variables were shown directly in the file for clarity.
    • The “shell” command shown in the first task of the playbook uses a line continuation feature of Ansible to allow the presentation of a rather long line in a condensed fashion (“>”). At the end of each line of that specific invocation, there is a single space plus a carriage return, and Ansible will keep picking up the next line until it gets to a line without a trailing space. Pay attention to the indentation of each of the next line(s); they must line up with the first “s” of “ssh”, and do not use tabs.
    • In the “Executing simple DB test script” task, notice that the SQLPlus invocation is actually using environment variables for db user and db user password that are created and subsequently destroyed at the end of the task. This is done to avoid displaying username and password in the output when using “-v” or having the username and password printed in the logs. A “nolog” option can be added to the Ansible task definition, but that approach can be problematic when trying to debug. (There is a way to thwart this attempt at credentials obfuscation, but that topic is not the point of this article.)
    • Style-wise it is best practice to “add” the options/parameters for an Ansible module in indented fashion as shown, rather than name/value pairs as a single line. The playbook becomes longer but the playbook becomes much more readable.

    The following successful (and redacted) output is shown.

    A screenshot of the Ansible playbook execution output, showing the successful creation of the SSH tunnel, the result of the database connection test, and the stopping of the tunnel.

    Still banging your head on Ansible problems? Contact us for assistance using the form below.

    Disclaimer

    The intent of this article is a basic “how-to” that strives to simply illustrate a basic process. Please review the solution and add additional steps/checks/processes as applicable to your use case. This article is not intended as “production-ready” for any/all cases, but “bare bones” to cover the concept as concisely as possible for educational purposes.

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

  • How VMware Pricing Strategy Differs from Broadcom’s Other Acquisitions

    How VMware Pricing Strategy Differs from Broadcom’s Other Acquisitions

    By Jonathan Stephan, Director, AWS Services East

    In the tech world, mergers and acquisitions are not uncommon occurrences. However, when it comes to Broadcom’s recent acquisition of VMware, the implications on pricing strategy have raised eyebrows in the industry. Let’s delve into how VMware’s pricing strategy differs from Broadcom’s other acquisitions and what it means for customers.

    Understanding Broadcom’s Acquisition Philosophy

    At the very heart of Broadcom’s identity is a strategy marked by profound ambition and a discerning eye for value. This approach has led Broadcom on a path of seeking out and integrating companies that stand as leaders within their sectors, companies that have carved out a niche for excellence and innovation. Broadcom’s acquisitions, such as those of CA Technologies and Symantec, are not just transactions but a testament to the company’s belief in harnessing the power of technology to forge new paths to growth and profitability.

    This strategy, while aggressive, is imbued with a sense of purpose and vision. Broadcom sees beyond the immediate; it envisages a future where the combined strengths of these acquisitions not only elevate the parent company but also nurture the growth and development of the technologies these acquired companies bring to the table. It’s a philosophy that cherishes the value of legacy and potential alike, aiming to create a synergistic effect that benefits not just the stakeholders but the broader tech ecosystem.

    However, it’s important to remember that this acquisition philosophy is not without its emotional complexities for the customers and employees of the acquired entities. There is an underlying concern about change, about the unknown, which is both natural and deeply human. Broadcom’s approach, while strategic and forward-looking, also carries the weight of these concerns, necessitating a balance between growth objectives and the need to honor the trust and loyalty of the customers and communities that have been pivotal to the success of the acquired companies.

    Understanding Broadcom’s acquisition philosophy thus offers a window into a strategy that is as much about technology and profitability as it is about vision and care. It’s a delicate balance, navigating the complexities of mergers and acquisitions with an eye not just on the bottom line but on the broader horizon of innovation and customer relationships.

    VMware’s Pricing Model Before Broadcom’s Acquisition

    Navigating through the world of IT infrastructure, VMware had long been a beacon of predictability and simplicity in its pricing model. This approach was akin to a comforting assurance in a sea of complexity, providing customers with a sense of stability and foresight in planning their technology investments. VMware’s pricing, known for its transparency, allowed businesses of all sizes to foresee their IT expenditures without fear of unexpected costs. It was this very predictability that fostered a relationship of trust between VMware and its users — a bond cemented through clarity and the shared understanding that planning for the future was as important to VMware as it was to its customers.

    The essence of VMware’s pricing model was built around the needs and concerns of its clientele. It acknowledged the importance of budgeting accuracy in the IT domain, offering a straightforward framework that alleviated the anxiety of hidden fees or convoluted licensing tiers. This customer-centric approach not only demystified IT budgeting but also empowered users with the knowledge and confidence to invest in VMware solutions, secure in the understanding that their investment was both sound and predictable.

    In essence, VMware’s approach before Broadcom’s acquisition was more than just about pricing; it was a reflection of a philosophy that valued customer trust and long-term partnership over short-term gains. It’s a legacy of transparency that has left many in the community watching with bated breath, hopeful that the values that once defined VMware’s pricing model will continue to shine through in this new chapter under Broadcom’s stewardship.

    The Broad Implications of Broadcom’s Acquisition on VMware Pricing

    As Broadcom takes the reins of VMware, a palpable sense of concern permeates the atmosphere among VMware’s loyal customer base. There’s an underlying worry that the pricing strategies that once made VMware a trusted partner could evolve in ways that might not favor their interests. This looming uncertainty stems from the speculation that Broadcom might implement pricing adjustments or modify licensing models, potentially leading to increased operational costs for existing customers.

    In the realm of business and technology, change is both inevitable and necessary for growth. However, when it comes to changes in pricing strategies, these adjustments carry a profound impact on the delicate relationship between service providers and their customers. The anxiety isn’t merely about numbers on a balance sheet; it’s about what these numbers represent — accessibility, fairness, and the ability for businesses to plan their futures in an already tumultuous landscape.

    Customers are rightfully concerned about maintaining the balance between the value they receive and the investments they must commit to continue benefiting from VMware’s solutions. The heart of these concerns lies in the potential for increased licensing costs, which could strain budgets and force businesses to make difficult decisions about their IT infrastructure. It’s a scenario that nobody looks forward to, as it brings into question the sustainability of long-term plans that were crafted with the original pricing models in mind.

    The broad implications of Broadcom’s acquisition extend beyond the immediate financial considerations. They touch on the essence of trust and mutual respect that has been cultivated over years. As the situation unfolds, the hope remains that Broadcom will navigate this transition with a deep understanding of the concerns and needs of VMware’s clientele. Embracing a strategy that considers the impact on customers will not only serve to uphold the integrity of VMware’s legacy but also reinforce the belief that in the world of technology, progress should not come at the cost of alienating those who have contributed to a company’s success.

    A Comparison of VMware and CA Technologies Post-Acquisition Strategies

    Exploring the journey of CA Technologies after its acquisition by Broadcom sheds light on potential paths that VMware’s pricing strategy might take, illuminating a landscape filled with both caution and hope. Broadcom, known for its strategic acquisitions, introduced notable changes in CA Technologies’ pricing model, adjustments that were met with a mixed reception from its longstanding customer base. These shifts, often seen as moves toward maximizing profitability, brought about an air of apprehension among CA Technologies’ clients, who feared that the essence of what made their partnership with CA so valuable might be at risk.

    In this delicate dance of transition, it’s essential to recognize the emotional fabric woven through the business relationships that both VMware and CA Technologies have nurtured over the years. The apprehension surrounding CA’s post-acquisition strategy mirrors the concerns now facing VMware’s loyal customers. The fear of the unknown, of potentially losing the transparent and predictable pricing model that has long been a cornerstone of VMware’s value proposition, is palpable.

    Yet, within this narrative of change, there exists an opportunity for Broadcom to pen a different story with VMware, one that honors the legacy of trust and partnership that VMware has established with its users. The comparison between VMware and CA Technologies in the post-acquisition phase is not just about pricing structures or licensing models; it’s about understanding the profound impact these strategies have on the human element of business — the hopes, the fears, and the trust of customers who have come to rely on these technologies to power their futures.

    As Broadcom charts its course with VMware, the lessons learned from CA Technologies’ integration could serve as valuable insights into fostering a pricing strategy that balances the need for growth and profitability with the genuine care and understanding of customer concerns. This delicate balance is not just good business — it’s a testament to the understanding that at the heart of technology, it’s the people, with their dreams and challenges, that truly matter.

    Broadcom’s Historical Approach to Symantec and its Reflection on VMware

    In the gentle ebb and flow of the tech industry, Broadcom’s acquisition of Symantec was a moment that caused many hearts to flutter with uncertainty. The apprehensions felt then resonate even now, as VMware embarks on a similar journey under Broadcom’s expansive wing. The experience of Symantec’s integration into Broadcom serves as a poignant chapter that VMware’s community observes with bated breath, hopeful yet cautious about the narrative that will unfold.

    Broadcom’s approach to Symantec was characterized by strategic shifts designed to streamline operations and focus on core products and profitability. This transition, while successful from a business standpoint, stirred a sea of emotions among Symantec’s clientele. Concerns about changes to pricing structures and the accessibility of vital services emerged, painting a picture of the intricate balance between a company’s growth and the loyalty and trust of its customers.

    This past chapter offers a mirror to the current sentiments surrounding VMware. The echoes of history bring forth a heartfelt empathy for those navigating the uncertainties of change. It’s a reminder that behind every corporate decision lies a community of individuals who rely on these technologies to drive their own futures. The reflection of Symantec’s journey is not just a tale of business strategies but a story of the human experiences intertwined with these changes.

    As VMware stands at the precipice of its new chapter with Broadcom, the collective hope is for a path that weaves together the lessons of the past with a deep respect for the relationships and trust built over the years. The reflection on Symantec’s integration into Broadcom shines a light on the importance of maintaining a delicate balance between evolving business strategies and nurturing the heartfelt connections that form the essence of true partnership and progress.

    The Heart of Customer Concerns: Licensing Costs and Accessibility

    Deeply woven into the fabric of these unfolding changes lies a shared concern that resonates with a powerful echo across VMware’s loyal community — the apprehension surrounding licensing costs and the accessibility of essential services. This concern is not merely a reflection of budgetary constraints but a profound testament to the value that VMware customers place on reliability and the ability to predict and manage their technological futures.

    As Broadcom charts a new course for VMware, it’s essential to understand that at the core of customer anxieties are the potential shifts in the landscape of licensing costs — a terrain that many have navigated with confidence in the past. The thought of navigating uncharted waters, where the familiar signposts of pricing and accessibility might no longer apply, brings with it a sense of vulnerability, a concern deeply felt by those who have built their IT infrastructure with VMware as its backbone.

    The question of accessibility extends beyond the reach of financial implications. It speaks to the ability of businesses, large and small, to harness the full potential of VMware’s offerings without being hindered by prohibitive costs or complex licensing models that could restrict innovation and growth. It’s a dialogue between the present and the future, a conversation imbued with hopes for a continuity of partnership and the preservation of a legacy that has empowered countless organizations to thrive in the digital age.

    Understanding these concerns requires more than a cursory acknowledgment; it demands a heartfelt commitment to empathizing with the emotions and aspirations of VMware’s customer base. It’s about recognizing the trust placed in VMware’s solutions and the earnest hope that, even amidst change, this trust will not only be honored but nurtured, ensuring that the path ahead is illuminated with the promise of accessibility, transparency, and shared growth.

    Broadcom’s Potential Strategy for VMware’s Future Growth

    In the unfolding of this new chapter for VMware under the stewardship of Broadcom, the contours of the future strategy are yet to be clearly defined. However, amidst the tides of change, there remains a fervent hope among the community that Broadcom will chart a course that not only seeks to amplify VMware’s technological prowess and market presence but also respects and cherishes the deep-seated values that have endeared VMware to its users. The potential strategy for VMware’s growth under Broadcom is envisioned with a careful consideration of the legacy that VMware carries — a legacy of innovation, customer centricity, and a commitment to making technology accessible and manageable for businesses of all sizes.

    At the heart of Broadcom’s strategic considerations might be the harmonization of growth objectives with a nurturing touch that understands the pulse of VMware’s dedicated user base. It involves a delicate balance, weaving together the threads of advanced technological development and market expansion, with the golden strands of trust, reliability, and affordability that have been the hallmark of VMware’s relationship with its customers.

    In navigating these waters, Broadcom could potentially focus on leveraging VMware’s strengths in cloud infrastructure and digital workspace technology, while also exploring new horizons that promise mutual growth and innovation. The strategy might unfold through a tapestry of initiatives aimed at fostering deeper integration of VMware’s offerings with Broadcom’s broader technology ecosystem, thus creating synergies that enhance value for both entities and, most importantly, for the customers who stand at the intersection of this transformation.

    As this journey progresses, the hope is that Broadcom will approach VMware’s future growth with a vision that embraces the essence of what has made VMware a trusted partner for countless organizations. A vision that recognizes the importance of continuity in the values and principles that define VMware, ensuring that as the landscape evolves, the trust and confidence of VMware’s community remain steadfast, guiding the way towards a future that is as promising as it is inclusive.

    How Changes in VMware Pricing Could Influence the Broader Market

    The prospect of changes in VMware pricing under Broadcom’s guidance opens up a new chapter not just for VMware and its dedicated user base, but for the entire tech landscape. This shift, marked by uncertainty and concern, could be a beacon for transformation across the broader market. It invites a period of reflection and adaptation, where competitors may find themselves reevaluating their own pricing structures to remain aligned with industry standards and customer expectations.

    In a space as interconnected as the tech industry, the ripple effects of VMware’s pricing strategy could extend far and wide. Competitors might see this as an opportunity to attract VMware customers who are searching for stability and predictability in their IT expenditures. This could lead to a more competitive environment, with companies striving to offer value propositions that emphasize not just cost-effectiveness but also transparency and customer loyalty. On the other hand, it could also prompt a deeper industry-wide introspection on pricing models and customer relationships, encouraging a shift towards more customer-centric approaches.

    For customers, this period of change may inspire a broader exploration of available options, leading to a more dynamic and varied IT ecosystem. As businesses consider their paths forward, the dialogue around pricing, value, and partnership becomes ever more critical. It’s a moment that calls for open communication, as companies and their tech partners navigate these waters together, seeking solutions that uphold the principles of accessibility, reliability, and mutual growth.

    In this evolving narrative, the enduring hope is that the core values that have defined relationships between technology providers and their users — trust, respect, and shared ambition — remain at the forefront, guiding decisions that shape the future of the tech industry.

    Navigating Your Next Steps: Tips for VMware Customers

    In these times of transition and uncertainty following Broadcom’s acquisition of VMware, it’s more important than ever for VMware customers to navigate this period with both vigilance and understanding. While the future of VMware’s pricing strategy remains an evolving story, here are a few heartfelt recommendations to help you stay ahead:

    Engage Directly with VMware

    Reach out to your VMware account manager or customer service representative. Having an open line of communication can provide you with the most current information and reassurance about the changes that might affect your services and pricing.

    Stay Informed

    Keep an eye on official announcements from VMware and Broadcom. Staying informed through official channels will help dispel rumors and ensure you’re getting accurate information directly from the source.

    Join Community Forums

    Engage with other VMware customers in community forums and social media groups. These platforms can offer support, insights, and shared experiences that may help you better understand and navigate any changes.

    Evaluate Your Current Setup

    Take this time to review your current VMware usage and infrastructure. Understanding where you can optimize or adjust can prepare you for potential changes in the pricing model, ensuring you’re using VMware’s solutions most effectively for your business needs.

    Consider Long-term Planning

    Though immediate changes may be concerning, think about your long-term technology strategy. How does VMware fit into your future plans? This broader perspective can help guide your decisions in a way that aligns with your company’s growth and technology goals.

    Approaching this period with a proactive and informed mindset will empower you, as a VMware customer, to make decisions that best serve the future of your business. Remember, change, though challenging, also brings opportunities for growth and adaptation.

    Looking Ahead: The Future of VMware under Broadcom

    As we peer into the horizon, the journey of VMware is at a pivotal moment, where the essence of this transition lies not just in the strategic maneuvers of corporate synergy but in the needs of every customer who has ever trusted VMware to be the backbone of their technological infrastructure. The dialogue around VMware’s future pricing strategies whispers of a delicate dance between sustaining innovation and nurturing the seeds of accessibility and customer trust. Does Broadcom see things the same way?

    It’s about more than just numbers; it’s about honoring a commitment that VMware has made to their customers. Your firm and your team are facing some big decisions. If you commit to preparation, research and expert consultation, the future is in your capable hands.

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