Rules file format (YAML)
Format
Rules are stored in YAML files with a .yml extension and have the following format:
(* denotes required fields)
*name: string
*source: string
*description: string
id: string
*type: string
severity: string
references:
- string
authors:
- twitter: string
- name: string
- github: string
- email: string
tags:
- string
attack_types:
- string
tactics_and_techniques:
- string
detection_methods:
- string
default_actions:
- string
auto_review_classification: string| Field | Required | Description | Acceptable values |
|---|---|---|---|
| name | true | Name for the rule or query | Any string |
| source | true | Raw MQL | Any string |
| description | true | Digestible description of the rule and its purpose | Any string |
| id | false | uuid, auto-generated from hash of file name if absent | valid UUID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (RFC 4122 style). |
| type | true | Entity type | rule |
| severity | false | Criticality of a triggered rule | lowmediumhighcritical |
| references | false | References to where the rule was derived from. Blogs, tweets, papers, etc. | A list of strings (typically URLs) |
| tags | false | A way to categorize the rule or query | A list of any strings |
| false_positives | false | Descriptions of known false positives that can occur | A list of any strings |
| authors | false | Original author(s) | A list of Twitter profiles or names |
| attack_types | false | Profiles of cyber threats that pinpoint the attackers' primary intent, whether it's to steal credentials, distribute malware, or commit fraud. | BEC/FraudCallback PhishingCredential PhishingExtortionMalware/RansomwareSpam |
| tactics_and_techniques | false | Methods and strategies employed by threat actors to execute their attack, focusing on their actions, behaviors, and artifacts. | EvasionEncryptionExploitFree email providerFree file hostFree subdomain hostHTML smugglingImage as contentImpersonation: BrandImpersonation: EmployeeImpersonation: VIPIPFSISOLNKLookalike domainMacrosOneNoteOpen redirectOut of band pivotPDFPunycodeQR codeScriptingSocial engineeringSpoofing |
| detection_methods | false | Highlights the technical methodologies and Sublime specialized techniques that recognized and flagged the threat, offering insights. | Archive analysisComputer VisionContent analysisExif analysisFile analysisHeader analysisHTML analysisJavascript analysisMacro analysisNatural Language UnderstandingOLE analysisOptical Character RecognitionQR code analysisSender analysisThreat intelligenceURL analysisURL screenshotWhoisXML analysisYARA |
| default_actions | false | Actions to attach to the rule when it's installed from a feed. Supported for detection, DLP, and triage rules. | A list of action names from Default actions |
| auto_review_classification | false | Classification to apply to auto-reviewed messages. Required when default_actions includes auto_review. | maliciousbenignspamgraymailsimulationunwantedviolationnon-violation |
Multi-line strings in YAML are denoted using a | like so:
name: "Mismatched link"
source: |
type.inbound
and any(body.links, .mismatched)
type: ruleDefault actions
default_actions accepts these action names:
default_actions:
- quarantine_messageAlways available
quarantine_messagedelete_messagemove_to_spammove_to_graymailauto_review(the rule must also setauto_review_classification)
Conditionally available
- If Track Link Clicks is enabled:
track_link_clicks - If Email Data Loss Prevention (DLP) is enabled:
interdict_message(DLP rules only) - If Provider Encryption is enabled:
provider_encrypt_message(DLP rules only)
Note: Do not change the type of YAML files. The recommended method for migrating is to delete the old file and change the ID to guarantee ingestion of the new file either by file-name-change or explicit ID change.
Updated 5 days ago