This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Clone a SAST rule

This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

You can clone an existing SAST rule and use that as a base to build your own rule.

Cloning a rule provides the following benefits:

  • You can make changes to a rule and review the results instead of directly editing an existing rule.
  • You can create a clone of a rule that you do not have permission to edit and make your changes.

To clone a SAST rule:

  1. Select Policies & Rules from the left sidebar.

  2. Select SAST RULES.

  3. Click on the vertical three dots next to a rule and select Clone.

    A copy of the rule appears in the list of rules with the rule name in the format, <original rule name\>-\<Clone number\>. For example, the first clone of Arbitrary Code Execution - Unsanitized inputs becomes Arbitrary Code Execution - Unsanitized inputs Clone, with subsequent clones appended with Clone 1, Clone 2, etc.

    Clone SAST rule

  4. Select Edit to edit the cloned rule according to your requirements.

    See Edit a SAST Rule for more information.