# SAST: Custom Rule

The Custom Rule page displays a list of rules modified according to the programming language used during analysis for the purpose of discovering potential security vulnerabilities or specific security issues that are not covered by the default rule. You can add, remove rules to maintain project security according to the programming language used. Make sure your repository is scanned.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/19dekaast/7.0custom-rule.png" alt=""><figcaption><p>Custom Rule</p></figcaption></figure>

## Create Profile

Here are the steps to add a specific programming language field to use:

* Custom Rule Keys on the Create Profile page.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/19dekaast/7.1%20add.png" alt=""><figcaption><p>Custom Rule - Create Profile (a)</p></figcaption></figure>

* Display the Create Profile form in the Name column with the programming language name and Language select an available programming language and press the Create key to save the changes.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/19dekaast/7.3.png" alt=""><figcaption><p>Custom Rule - Create Profile (b)</p></figcaption></figure>

* Profile successfully created notifications are displayed.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/19dekaast/7.4sukses.png" alt=""><figcaption><p>Custom Rule - Create Profile (c)</p></figcaption></figure>

## Change Profile

Here are the steps to update rules that have been created:

* On the Custom Rule page of the Search by Language column enter the name of the programming language to update and on the Action press the Details icon.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/19dekaast/7.5.5search.png" alt=""><figcaption><p>Custom Rule - Change Profile (a)</p></figcaption></figure>

* You can assign a rule already created by checking in the project name and pressing the Edit Rules key to modify the rule.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/19dekaast/7.6.6edit.png" alt=""><figcaption><p>Custom Rule - Change Profile (b)</p></figcaption></figure>

* On the Edit Rules page by pressing the Bulk Change button to activate all available rules or select several rules to be assigned to your profile by pressing the Activate button.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/19dekaast/7.7activate.png" alt=""><figcaption><p>Custom Rule - Change Profile (c)</p></figcaption></figure>

* The Activate Rule window appears, press the Yes button to activate the rule.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/19dekaast/7.8activate%20rule.png" alt=""><figcaption><p>Custom Rule - Change Profile (d)</p></figcaption></figure>

## Delete Profile

Here are the steps to delete rules that are no longer in use:

* On the Custom Rules page, find the name of the programming language to be deleted and press the Delete icon.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/19dekaast/7.9delete.png" alt=""><figcaption><p>Custom Rule - Delete Profile (a)</p></figcaption></figure>

* Press the Delete button to continue the deletion process.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/19dekaast/7.10delete.png" alt=""><figcaption><p>Custom Rule - Delete Profile (b)</p></figcaption></figure>

* Display a "Profile successfully deleted" notice that it was deleted successfully.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/19dekaast/7.11sukses.png" alt=""><figcaption><p>Custom Rule - Delete Profile (c)</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.id/security/deka-ast/sast-custom-rule.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
