Forum Discussion

Wasfi_Bounni's avatar
Wasfi_Bounni
Icon for Cirrocumulus rankCirrocumulus
Mar 01, 2021
Solved

Regular expession failing when adding a custom attack signature

Hi;   I am trying to add a custom attack signature for a header, aiming to prevent the injection of certain headers. My approach is to use regular experssoins as the criteria instead of "contai...
  • Daniel_Wolf's avatar
    Mar 01, 2021

    Hi Wasfi,

     

    when Corona is over, you will have to invite me for a beer...

    There is a syntax:

    Attack and Bot Signature Syntax

     

    And there is a regexp validator in ASM

    Configuring General ASM System Options

    Scroll down till you find Validating regular expressions. Pay attention that RE2 is recommended as the RegExp engine.

     

    Cheers...

    Daniel