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:
-
Right-click the function, and then select Generate Rule for Function.
The Custom Rule Wizard opens.
- In the templates list, expand the DataflowCleanseRule folder, and then select Generic Validation Rule.
- Click Next.
- On the Rule Language step, select the source code language, and then click Next.
- On the Validation Function Information step, type the regular expressions for the package, class, and function.
- Verify that the information is correct, and then click Next.
- Select the argument to cleanse, and then click Next.
- Select the Rulepack to which you want to add the rule, and then click Finish.