> For the complete documentation index, see [llms.txt](https://docs.enginsight.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enginsight.com/docs/manual/english/platform-usage/hosts/advanced-persistent-threats/rules/add-rule.md). Agents can also search and read this documentation through its [MCP server](https://docs.enginsight.com/docs/~gitbook/mcp).

# Add Rule

<i class="fa-computer-mouse">:computer-mouse:</i> Click <i class="fa-plus">:plus:</i> **Add Rule** in the upper-right corner of the [rule overview](https://docs.enginsight.com/docs/manual/english/platform-usage/hosts/advanced-persistent-threats/rules.md#rules-overview) to create a new rule. The **Hosts** → **Advanced Persistent Threats** → **Rules** → **Add** view opens.

<figure><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2FpWOKXtIUzSGoVfq9IB8r%2Fenginsight-screenshot-hosts-apt-rules-add-rule.jpg?alt=media&amp;token=468a16e6-1f11-442f-b0c2-6b33b3f2583b" alt=""><figcaption></figcaption></figure>

<i class="fa-computer-mouse">:computer-mouse:</i> Click **Add Rule** after you configured all settings to save and create the new rule.

<i class="fa-computer-mouse">:computer-mouse:</i> Click **Back** to return to the overview.

{% hint style="danger" %}
**Please note**: If you leave this view without clicking **Add Rule**, all configured settings will be permanently lost!
{% endhint %}

***

## Settings

The following options are available:

<table><thead><tr><th width="200.1328125">Option</th><th>Description</th></tr></thead><tbody><tr><td>Name</td><td>Enter a meaningful name for the rule.</td></tr><tr><td>Description</td><td><p>Provide a more detailed description for the rule.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This field is optional.</p></div></td></tr><tr><td>Vendor</td><td><p>Enter a name or organization that should be shown as the creator of the rule.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>The default vendor is the organization you are currently logged in to.</p></div></td></tr><tr><td>Tags</td><td><p>Define tags that should be assigned to the rule.</p><p></p><p><i class="fa-computer-mouse">:computer-mouse:</i> Click the <strong>Tags</strong> field to expand a list of all available tags. These can be predefined or <a href="https://docs.enginsight.com/docs/manual/english/platform-usage/hosts/management/global-tags.md">custom global tags</a>.</p><p></p><p>Select one or more tags. To do so, click the corresponding <a href="https://docs.enginsight.com/docs/manual/english/platform-usage/hosts/management/global-tags/add-global-tag.md">tag label</a> and, for custom global tags, select one of the associated <a href="https://docs.enginsight.com/docs/manual/english/platform-usage/hosts/management/global-tags/add-global-tag.md#tag-values">tag values</a>.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Only <em>one</em> associated tag value can be selected per tag label.</p></div><p><i class="fa-computer-mouse">:computer-mouse:</i> Click the <strong>Remove</strong> icon <i class="fa-xmark">:xmark:</i> next to an added tag to remove it from the <strong>Tags</strong> field.</p></td></tr><tr><td>Severity</td><td><p>Define a severity for the rule.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>The default severity is <strong>High</strong>.</p></div><p><i class="fa-computer-mouse">:computer-mouse:</i> Click the <strong>Severity</strong> field to expand a list of all available severity levels.<br><br>The following severity levels are available:</p><ul><li><strong>Critical</strong>: The rule has a very high criticality.</li><li><strong>High</strong>: The rule has a high criticality.</li><li><strong>Medium</strong>: The rule has a medium criticality.</li><li><strong>Low</strong>: The rule has a low criticality.</li></ul></td></tr><tr><td>Code Field</td><td><p>Paste the code for the rule into the field.</p><div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p><strong>Please note</strong>: The code must be written in YARA syntax. For more information, see the <a href="https://yara.readthedocs.io/en/latest/writingrules.html">YARA documentation: Writing YARA rules</a>.</p></div></td></tr></tbody></table>

***
