Regex for custom vulnerability signature - help needed

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

Regex for custom vulnerability signature - help needed

L4 Transporter


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:", that looks like this: ".*(Referer: http://cnn\.com)"

What I want to do next is make an expression that matches on everything except as the referer.

That means it should look for Referer, and then maybe negate ""?

Any ideas on how to do that?

- Tor


L7 Applicator

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

Thanks for your reply Jared!

Yeah, i know Smiley Happy 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. 

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. 

  • 3 replies
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!