custom app-id for unknown TCP application

Reply
Highlighted
L1 Bithead

custom app-id for unknown TCP application

good day,

i know that answer might be simple but cannot find correct approach.

I have an application which identified as unknown-TCP and i have created pattern for it with few conditions.

now I have discovered that some devices behave different way and my pattern order not match, so I think to identify app based on first string in ASCII format.

for instance, I have following string in pcap:

 

My Agent 2.43 pour MSWIN32.

 

if i create such pattern as unknown-rsp-tcp-payload, it works. But I would like to avoid issue in case of other version for application, but when I use new pattern:

 

My Agent \d\.[\d]{0,}\s pour MSWin32

 

it fails to apply.

if I will convert everything to HEX, I am afraid to be depended on version number...

 

I am new to regex and would like to understand how to create these custom app-id, so please help.

May the Force be with You!
Tags (1)
Community Manager

Re: custom app-id for unknown TCP application

I'd give this a whirl

My Agent [0-9]\.[0-100] pour MSWin32

 

check out this areticlefor more information about RegEx 

https://docs.paloaltonetworks.com/pan-os/9-0/pan-os-web-interface-help/objects/objects-custom-object...

L1 Bithead

Re: custom app-id for unknown TCP application

Thankyou for reply!

returnes: can't handle two dfas next to each other in pattern

 

however, I have converted it to hex to exclude version from it, so now I have 2 HEX parts which I am trying to put in conditions...

probable it will work after I find how to add them normally.

 

:)

May the Force be with You!
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 Live Community as a whole!

The Live Community thanks you for your participation!