YARA Rule
YARA Rule manages the YARA rules that endpoint agents use to scan files. Rules are stored in the console, so the list is the same as in the console's YARA Rule menu.
List
| Column | Description |
|---|---|
| Name | Rule name. Click it to open Edit YARA Rule |
| Provider | Who provided the rule. Rules registered by users are CUSTOM |
| Severity / Confidence / Type / CVE | Definition of the threat the rule detects |
| Status | Enabled or Disabled |
| Registered | When the rule was registered |
| Description | Rule description |
The shown columns follow the console settings. Enter a rule name in the search box and press Enter to search by name. Choose 30, 50 or 100 rows per page.
Adding
Click the Add YARA Rule button in the toolbar to open the registration dialog. The items follow the console settings and fall into three sections.
| Section | Items |
|---|---|
| General | Provider, Name, Rule, Message for Agent Notification, Description |
| Threat Definition | Severity, Confidence, Type of Threat, Associated CVE |
| How to Apply | Status |
Enter the YARA rule body in Rule.
rule suspicious_powershell_download
{
strings:
$a = "DownloadString" nocase
$b = "IEX" nocase
condition:
$a and $b
}
Clicking Save has the console server validate the rule first. On a syntax error the error message is shown and the rule is not saved.
Editing and copying
Click a rule name in the list to open Edit YARA Rule.
Built-in rules, whose provider is not CUSTOM, allow changes to How to Apply only; the name, rule,
description and so on cannot be edited. To build a new rule from a built-in one, click Copy. The
dialog switches to registration with (copy) appended to the name, and saving registers a new rule with
the CUSTOM provider.
Changing the status
Select rules in the list and choose Enabled or Disabled in the toolbar. Every selected rule is changed.
Deleting
Select the rules to delete and click the Remove YARA Rule button in the toolbar. After you confirm, they are deleted.
Validation
Click YARA Rule Validation in the toolbar to open the validation window. Enter a rule and run the check; the console server validates it and shows This is a valid YARA rule. when it passes. Use it to check the syntax without saving the rule.