Creating custom cleanse rules

You can create custom cleanse rules for specific functions from Fortify Audit Workbench.

To create a cleanse rule for a function:

  1. Right-click the function, and then select Generate Rule for Function.

    The Custom Rule Wizard opens.

  2. In the templates list, expand the DataflowCleanseRule folder, and then select Generic Validation Rule.
  3. Click Next.
  4. On the Rule Language step, select the source code language, and then click Next.
  5. On the Validation Function Information step, type the regular expressions for the package, class, and function.
  6. Verify that the information is correct, and then click Next.
  7. Select the argument to cleanse, and then click Next.
  8. Select the Rulepack to which you want to add the rule, and then click Finish.