DNS req/res does not work with "transaction" scope

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DNS req/res does not work with "transaction" scope

L1 Bithead

Hi all,

 

I'm playing with the app-id custom signature to catch the DNS Rebinding. I have some experience with the custom app-ids and I do understand the difference between the "transaction" and "session" context (well, at least I thought so). The thing is... I want to base my signature based on the DNS req and res in a way they need to be "glued". For example, if I see a DNS req/res:

 

DNS query: abc.example.com

DNS answer: 10.10.10.10

 

it should match my custom app id.


In contrast, if a req/res looks like:
DNS query: abc.example.com

DNS answer: 10.10.10.11

 

I don't want to match on that.

 

Now comes the confusing part. For me, DNS req/res should be part of "transaction", i.e., Palo Alto sees a DNS req and waiting for the DNS res to match the signature. No difference than what we have with the HTTP req/res.

 

For some reason it seems this does not work for DNS. If I change the context to "session" based, it works. Unfortunately, there is no much, if any example on creating more complex signatures with multiple AND/OR operators and there is almost none documentation about "transaction" and "session" context, although it should be pretty clear what it is - it seems there are some intrinsic about it.

 

Any thoughts?

 

 

3 REPLIES 3

Cyber Elite
Cyber Elite

What about combination signature that matches 1 signature for request and 1 for response? I think maybe in some cases a transaction could be one direction also just in case see that your signature is configured to trigger in the two directions not just client to server or server to client.

 

 I have seen simmilar issue for HTTP req/response as I have mentioned in:

 

LIVEcommunity - Rate-Limiting File Uploads with Palo Alto Networks Custom Signatures. - LIVEcommunit...

Hi Nikoolayy1,

 

Thanks for replying!

Unfortunately, combination signature is for custom vulnerability. We don't have that option for app-id.

Anyhow, I would like to understand why it is working this way.

Forgot that we are talking app signatures and if Palo Alto Adds combination signature option for this as well it will be nice! Maybe open request for enhancement ? See Palo Alto New Feature Requests | Palo Alto Networks LIVEcommunity

 

 

I am wondering because DNS usually is UDP and the DNS decoder to be only in one direction for a transaction. Maybe try DNS over TCP and if you want open a case as Palo Alto Engineers may confirm if the DNS Decoder for transactions is just in one direction.

  • 360 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!