What are suspicious DNS queries?

What are suspicious DNS queries?

127778
Created On 09/26/18 21:04 PM - Last Modified 03/01/22 08:03 AM


Resolution

A PAN-OS device's threat logs show Suspicious DNS Query triggers. 

 

2016-06-09_susp-dns.png
Detail of Threat log with Suspicious DNS Query.


What are Suspicious DNS Query signatures?

Suspicious DNS Query signatures are looking for DNS resolution to domains potentially associated with C2 traffic, which could be an indication of a breached machine.

 

Suspicious DNS Query signatures are part of Palo Alto Networks' approach to injecting protections into every point in the kill chain, in order to provide a layered defence in one solution, in which a threat actor has to penetrate an additional point of inspection in order to be successful. With the dynamic nature of the current threat landscape, antivirus protections, vulnerability exploitation detection, and URL filtering are effective, but more can be done. If a connection to a potentially malicious destination can be cut down before a name resolution even occurs, this is something that should be done.

 

Suspicious DNS Query signatures can be set to alert, to block the name resolution by resetting or dropping the connection, or sinkholed by leveraging the product's DNS sinkhole features. The suggested mitigation to adhere with Palo Alto Networks best practices is to sinkhole, so that one can identify the source IP of the suspected DNS query.

 

How do Suspicious DNS Query signatures work? Where do they come from?

Suspicious DNS Query signatures operate by DNS traffic passing through the PAN-OS appliance inspected for a name lookup to any domain for which a signature currently exists. If packet captures are enabled on Suspicious DNS Query signatures, they are simply DNS queries with a specific domain in them. 

 

2.PNG

 

Suspicious DNS Query signatures are a result of intelligence gathering on the Palo Alto Networks back-end. WildFire sandbox sample detonation, external intelligence feeds, and analysis from researchers are some examples of where these signatures may originate.

 

Once created, these signatures make their way to PAN-OS appliances in two ways:

  • WildFire content:  They can be updated/changed in a regular interval, depending on how often the device's WildFire content update schedule is configured, and whether or not the signature is still active. These signatures will show up in the threat log in the following format: Malwarefamilyname:domain
    If no family name is associated with the samples used to generate the signature, 'None' takes its place.  (Ex: None:google[.]com)

 

  • Antivirus content:  AV content is usually released at roughly 7AM EST, once every twenty-four hours. These signatures will show up in the threat log in the following format: Suspicious DNS Query: Malwarefamilyname:domain (Ex: Suspicious DNS Query: None:google[.]com)
    If no family name is associated with the samples used to generate the signature, 'None' takes its place. 

 

You may have noticed that Suspicious DNS Query signatures that have been previously triggered have been removed from the signature package in a short period and you may be wondering why this happened.

Since content space is not infinite, keeping the most active and dangerous threats in the Suspicious DNS Query signatures content space at any one given time is a priority. Since the threat landscape changes so quickly, these signatures can be replaced.

 

Our current implementation of the threat monitor UI queries the "Name" field directly from the content database currently installed on the firewall. If the corresponding ID cannot be found in the content database on the firewall, the firewall looks up the name and pull the name from the Threat Vault.

 

It is possible to enable packet captures on Suspicious DNS Query signatures by opening the spyware profile assigned to the security rule the DNS traffic is traversing.

3.PNG

 

 

What should I do with Suspicious DNS Query signature triggers?

Suspicious DNS Query signature triggers are not meant to operate as an absolute indication of compromise, but can be used alongside other indicators to identify hosts that may be at risk, or require more attention. The host may be displaying outbound network patterns that are indicative of but not guaranteed to be malicious activity.

 

Seeing a host generate traffic to a domain a Suspicious DNS Query signature exists for can help proactive security analysts identify traffic on their networks that may warrant inspection or further action. If one sees a host trigger Suspicious DNS Query signatures, coupled with AV detection, a vulnerability signature trigger, or an attempt to visit via web browsing a URL categorized as malware, the Suspicious DNS Query signature can be used to add an additional measure of confidence to the necessity of further action on the host.

 

AutoFocus customers may look through their WildFire samples, other public samples, and query for any samples that had a verdict of malware and reached out to a specific domain. This can help the analyst understand why the signature exists, and what the behavior of the samples that generated traffic to the questionable domain look like, for potential incident response action. 

2016-06-10_susp-dns2.png
AutoFocus showing a query on a suspicious DNS domain.

To investigate the signature further, third-party open source intelligence sources are a fantastic method to see what kind of intelligence the security community has on the domain.

 

A few examples include:

  • Check other vendor responses via VirusTotal URL scanning.
  • Check passive DNS history of the domain using PassiveTotal (RiskIQ).
  • Leverage WHOIS to see specifics on who owns a domain, when it was registered, and other data.

 

Once determination has been made as to if the alert is worthy of investigation, packet captures on the host to see contextual data, such as user activity and suspicious traffic, can help to set the scene for whether or not further action is required.

 

What if you've done all the above, a specific Suspicious DNS Query signature is generating a significant number of alerts, and no negative activity appears to be associated with the domain as far as you can tell?

 

In this instance, Palo Alto Networks support can help identify if the signature is a candidate for disable or not. If the signature appears to be generating significant noise for numerous customers, we don't want you to grow tired inspecting your threat logs. However, if there is justification for the signature, you can always leverage exception functionality in spyware profiles to allow the traffic and stop alerts.

 

Example Suspicious DNS Query Signature:

Let us use SHA256 932836effd33218470e1c78dad3505d59af31ecff599e875ed79f47114552883 as an example.

We can see that this sample is a portable executable that, once executed, generated some suspected C2 HTTP traffic:

1.PNG

 

As a result, a C2 Domain Signature was generated to prevent traffic to the associated domain:

2.PNG

 



Attachments
Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000Cm5kCAC&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Attachments
Choose Language