Data Loss Prevention

 View Only
  • 1.  Using Custom Script Validators in Data Identifiers

    Posted Oct 19, 2012 03:04 PM

    If you are not getting the results you expect when using a Custom Script Validator in a Data Identifier (e.g. checking a prefix before a match) don't forget to try a different function.

     

    LOOK for the value "FALSE:" before a match - and do NOT create an incident:

    $PreValue = getAsciiStringAt($matchPrefix, 0x4, 6);

    $TestValue = 'FALSE:';

    AssertFalse($PreValue == $TestValue);

     

    The following does NOT work for me...

    LOOK for the value "FALSE:" before a match - and do NOT create an incident:

    $PreValue = getStringValueAt($matchPrefix, 0x4, 6);

    $TestValue = 'FALSE:';

    AssertFalse($PreValue == $TestValue);

     

    Don't confuse the functions getStringValueAt() and getAsciiStringAt() like I did...  save yourself some time.

    Bob.
     

     



  • 2.  RE: Using Custom Script Validators in Data Identifiers

    Posted Oct 22, 2012 03:03 PM

    Bob,

    We have a problem on endpoint with regex expressions not working quite right and are using some scripts like this.  Is that the same reason you are doing this?  The reason I ask is that we may be able to get some more attention paid to endpoint regex engine if you are having the same problem.