> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endorlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Clone a SAST rule

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 **User menu** > **Policies & Rules** from the left sidebar.

2. Select **SAST RULES**.

3. Click 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\>-\<number of the clone\>`. For example, if you clone the rule `Arbitrary Code Execution - Unsanitized inputs` for the first time, a clone rule is created with the name, `Arbitrary Code Execution - Unsanitized inputs-1`.

   <img src="https://mintcdn.com/endorlabs-b4795f4f/Uc3T4mPoaFbRUPbf/images/scan/sast/clone-sast-rule.webp?fit=max&auto=format&n=Uc3T4mPoaFbRUPbf&q=85&s=2f0e541dc489a184bed7dc99c28e9a25" alt="Clone SAST rule" style={{width: '80%'}} width="2154" height="768" data-path="images/scan/sast/clone-sast-rule.webp" />

4. Click edit to the cloned rule to edit the cloned rule according to your requirements.

   See [Edit a SAST rule](/scan/sast/manage-sast-rules/edit-a-sast-rule) for more information.
