> ## 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.

# Edit a SAST rule

You can edit only the custom SAST rules. You cannot edit or delete Endor Labs or third-party rules.

To edit a SAST rule:

1. Select **User menu** > **Policies & Rules** from the left sidebar.

2. Select **SAST RULES**.

3. Click edit next to a rule and select **Edit Rule**.

   <img src="https://mintcdn.com/endorlabs-b4795f4f/Uc3T4mPoaFbRUPbf/images/scan/sast/edit-sast-rule.webp?fit=max&auto=format&n=Uc3T4mPoaFbRUPbf&q=85&s=e3d035f9172292b7feccd3d4722e137c" alt="Edit SAST rule" style={{width: '80%'}} width="2664" height="1564" data-path="images/scan/sast/edit-sast-rule.webp" />

4. After you complete the edits, click **Save** to save the rule.
