Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

custom app-id for unknown TCP application

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

custom app-id for unknown TCP application

L1 Bithead

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!
2 REPLIES 2

Cyber Elite
Cyber Elite

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

Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization

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!
  • 3823 Views
  • 2 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!