Splunk® Enterprise Security

Use Cases

The documentation for Splunk Enterprise Security versions 8.0 and higher have been rearchitected from previous versions, causing some links to have redirect errors. For documentation on version 8.0, see Splunk Enterprise Security documentation homepage.
This documentation does not apply to the most recent version of Splunk® Enterprise Security. For documentation on the most recent version, go to the latest release.

Use DNS data to identify malware patient zero

Malware outbreaks can cripple an organization's computer systems. Quickly identifying "patient zero" allows you to readily contain a malware outbreak, eliminate the malware from that machine while preventing reinfection, and learn more about the application and/or files that delivered the malware. This scenario walks you through using Splunk Enterprise Security and DNS (domain name system) data to identify patient zero in a malware outbreak in your environment.

Prerequisites

This scenario relies on the following data sources, ingested into the Splunk platform in compliance with the Splunk Common Information Model:

  • Asset information in the asset lookup. See Add asset and identity data to Splunk Enterprise Security in Administer Splunk Enterprise Security.
  • Endpoint anti-malware logs normalized to the Malware CIM data model. For example, Trend Micro OfficeScan server data, which can be added to Splunk Enterprise Security using TA-trendmicro, included with ES. See Install and deploy add-ons in the Installation and Upgrade Manual.
  • DNS lookup data normalized to the Network Resolution CIM data model. For example, DNS queries collected by Splunk Stream. See Install and deploy add-ons in the Installation and Upgrade Manual for details on integrating Enterprise Security with Splunk Stream.
  • Web surfing activity logs normalized to the Proxy object of the Web CIM data model.

Assess the current state of security incidents

Review notable events identified by Splunk Enterprise Security to see the current state of threats in your environment.

  1. Log in to Splunk Enterprise Security and view the Incident Review dashboard.
  2. Filter the notable events by urgency, viewing only the High and Critical events in the Endpoint security domain.
  3. Choose one of the High or Critical Priority Host With Malware Detected events to investigate.
  4. Open the event details. The malware Signature is TSPY_FAKEMS.C, a virus definition from TrendMicro.
  5. Perform a Notable Event Search on the signature using the field actions.
    The notable event search opens Incident Review scoped to events with the TSPY_FAKEMS.C malware signature. One of the events notes an Outbreak Detected Of TSPY_FAKEMS.C. That event is created when more than 10 hosts have a malware infection from that signature.
  6. After identifying the outbreak, open an investigation to share with other analysts. Select the relevant notable events and click Add to Investigation.
  7. Name the investigation something like Malware outbreak of TSPY_FAKEMS.C and add other analysts as collaborators so they can see your investigation progress.
  8. The tier one analysts begin cleaning up the malware outbreak.
    1. Assign the notable event for an infected host to a tier one analyst.
    2. The tier one analyst takes a forensic image of the hard drive, then has the machine reimaged.
    3. As the cleanup progresses, the tier one analyst updates the notable event statuses accordingly.
  9. The tier two analyst continues investigating the malware outbreak in depth.

Perform external research on the malware signature

External research can help you determine additional indicators of compromise specific to this malware signature, or learn about aliases and threat groups associated with the malware.

  1. The tier two analyst investigates and discovers that the malware signature TSPY_FAKEMS.C is an alias for another malware signature that Microsoft identifies as Trojan:Win32/Foosace.J!dha.
  2. Further research on the Win32/Foosace malware shows that it is associated with an advanced adversary identified by Microsoft as STRONTIUM.
  3. You determine that the STRONTIUM group is known to use the malwarecheck.info and softupdates.info domains for command and control operations.
  4. Investigate those domains to see if they appear in your environment.

Investigate the outbreak further with DNS data

Look for DNS requests to the command and control domains. Hunters often use the DNS dashboards included in Enterprise Security "Protocol Intelligence" for this purpose.

  1. Select Security Intelligence > Protocol Intelligence > DNS Search.
  2. Type the wildcard domain *malwarecheck.info in the Query filter.
  3. Select a time range of Last 30 days.
  4. Click Submit to search.
  5. The search results show DNS requests for the domain malwarecheck.info.
  6. Open Search and run the following search to determine if DNS queries for malwarecheck.info are correlated with the malware outbreak.

    tag=dns query=malwarecheck.info [search tag=malware tag=attack signature="TSPY_FAKEMS.C" | eval src=dest | fields src]


    The search results confirm that endpoint hosts associated with the malware outbreak are infected with malware and also performing queries to the malwarecheck.info domain that operates as a command and control server.
  7. Use the Investigation Bar to add the search to your investigation from your Action History in the Investigator Journal. This will allow other analysts to perform the same search in the future.

Locate patient zero with DNS data

Endpoint antivirus products can fail to identify malware infections, but now you know that a DNS query to the malwarecheck.info domain is an indicator of compromise. Report on DNS queries to this domain to determine the earliest signs of infection in your environment, even for hosts where the antivirus product did not identify an infection.

  1. In the Search dashboard, run a new search to determine which machines, other than those with the endpoint antivirus alerts, are performing DNS queries for the malwarecheck.info domain.

    tag=dns query=malwarecheck.info NOT [search tag=malware tag=attack signature="TSPY_FAKEMS.C" | eval src=dest | fields src] | stats count by src]


    The search results show activity from a single host performing a DNS lookup to the malwarecheck.info domain hours before the first antivirus alert.
  2. Add the event that shows this activity from the single host to your investigation using the event actions of the event.
  3. Add the search to your investigation from your Action History.
  4. Add a note to the investigation that the infected machine performed DNS queries for the malwarecheck.info domain.

Complete your investigation and remediate the malware outbreak

Identify patient zero and take remediation steps. After you identify DNS queries to the malwarecheck.info domain as an indicator of compromise, you know that the first machine to make contact with that domain was the originator of the malware outbreak: Patient Zero.

  1. Add a note to your investigation with your findings.
  2. Advise the tier one analysts to take a forensic image of the machine and wipe it to remove the malware infection.

Summary

To identify patient zero in the malware outbreak in your environment, you started by reviewing current notable events for malware. After identifying a troublesome malware signature, you performed additional research to determine additional indicators of compromise to help identify further infected hosts. Then you used DNS data to search for DNS queries that indicated command and control activity and located a host that made a query to the command and control host before any other hosts were infected. To contain the outbreak you took action to contain that host and the malware, and completed your investigation.

Last modified on 02 June, 2023
Using Enterprise Security to find Malware   Investigating potential zero-day activity

This documentation applies to the following versions of Splunk® Enterprise Security: 7.0.1, 7.0.2, 7.1.0, 7.1.1, 7.1.2, 7.2.0, 7.3.0, 7.3.1, 7.3.2


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters