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

# Create a SAST rule

To create a SAST rule:

1. Select **User menu** > **Policies & Rules** from the left sidebar.
2. Select **SAST RULES**.
3. Click **Create SAST Rule**.
4. Enter the SAST rule in the yaml format.

   <img src="https://mintcdn.com/endorlabs-b4795f4f/Uc3T4mPoaFbRUPbf/images/scan/sast/create-sast-rule.webp?fit=max&auto=format&n=Uc3T4mPoaFbRUPbf&q=85&s=f803341b28fd9aa06805cdafe3606f17" alt="Create SAST rule" style={{width: '60%'}} width="1434" height="1142" data-path="images/scan/sast/create-sast-rule.webp" />
5. Click **Save** to save the rule.
