Regex for custom vulnerability signature - help needed

Reply
L4 Transporter

Regex for custom vulnerability signature - help needed

Hi,

I'm not a regex expert, and I'm struggling to figure something out.

I'm making signature that looks at the "Referer" in the http-requst-header.

I've managed to build an expressions that matched on "Referer: http://cnn.com", that looks like this: ".*(Referer: http://cnn\.com)"

What I want to do next is make an expression that matches on everything except http://cnn.com as the referer.

That means it should look for Referer, and then maybe negate "http://cnn.com"?

Any ideas on how to do that?

- Tor

Tags (2)
L7 Applicator

Re: Regex for custom vulnerability signature - help needed

So, you're looking for a "negate" operator in the custom vulnerability signature functionality?  I don't believe that negate is there today... Check back in a week or so and there might be more information available.  :smileyhappy:

L4 Transporter

Re: Regex for custom vulnerability signature - help needed

Thanks for your reply Jared!

Yeah, i know :smileyhappy: But I'm actually looking for a way to do this in 6.0/6.1. If it's possible to build the regex in a way that makes it negate the string.

Not sure if it's supported, cause all my attempts have failed. 

L7 Applicator

Re: Regex for custom vulnerability signature - help needed

I'm not aware of a way to accomplish what you're asking in 6.0/6.1.  7.0 is supposed to be available today and includes the negate feature. 

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!