--- title: "Write snort custom attacks" slug: "write-snort-custom-attacks-2" tags: ["Product Usage", "IPS 11.1.x"] updated: 2026-11-19T12:28:35Z published: 2026-11-19T12:28:35Z canonical: "docs.trellix.com/write-snort-custom-attacks-2" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Write snort custom attacks **Prerequisites:** Before you begin to construct the Snort rules, review the following: - In the rule, you can use only the variables, classtypes, and references that are available in the Manager. For information on how to view the available values, see Viewing the variables and classification types. - You can write only one rule at a time. You can construct Snort rules directly in the Manager using the Custom Attack Editor. Note that these rules must conform to the Snort rules language syntax. Structure of a Snort rule provides information how to construct Snort rules within Trellix IPS. To construct Snort rules in the Manager, perform the following steps: 1. Select **Policy** → **** → **Intrusion Prevention** → **Policy Types** → **IPS**. Click **Custom Attacks**. The Custom Attack Editor opens with the existing Custom Attacks listed on the **Native Trellix IPS Format** tab. 2. Click **Snort Format** tab. 3. Click ![GUID-F3F18CF8-B95D-4C8C-8DB8-996CDB6087FB-low.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-e18ed793-87a1-f95c-1c5b-8e24a797ea67(8).png?sv=2026-02-06&spr=https&st=2026-11-20T17%3A55%3A22Z&se=2026-11-20T18%3A55%3A22Z&sr=c&sp=r&sig=SHOII0sKY86GJzueH2lHquUw6no5u%2B%2FgqrrP%2B9k0TOM%3D). The **New Snort Rule** interface opens. **New Snort Rule window** ![](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/image(117).png?sv=2026-02-06&spr=https&st=2026-11-20T17%3A55%3A22Z&se=2026-11-20T18%3A55%3A22Z&sr=c&sp=r&sig=SHOII0sKY86GJzueH2lHquUw6no5u%2B%2FgqrrP%2B9k0TOM%3D) 4. Construct the Snort rule in the **Add Snort Rule** dialog. Note the following: - You cannot define variables in the **Add Snort Rule** dialog, but you can use the variables that are available in the database. - You can write only one rule at a time. - If you are using the keywords such as classtype or reference, make sure the corresponding values are already defined and available in the database. For example, to import classifications, you can import a file that calls the classification config file and then use these classifications in the rules that you construct. 5. Select **Check for Overlap with Trellix IPS Attacks** to verify if the rule matches an existing Trellix IPS attack definition. If the rule matches then the Snort Rule will be **Staged**. 6. Select the most appropriate **Protection Category** for the attack. 7. Select the **Supported Device Types**, from the available options: 1. **Any** 2. **NS-Series Only** 3. **VM-Series Only** 8. Select the **Supported Suricata Version**, from the available options: 1. **Any** 2. **Suricata 3.X Only** 3. **Suricata 8.X Only** > [!NOTE] > Important > > By default, ‘**Any**‘ option is selected, if no selection is done for **Supported Device Types** and **Supported Suricata Version**. > [!WARNING] > Note > > When an administrator selects **Suricata 3.X Only**, the Manager defers validation to the deployment stage. The UI displays a **Warning** validation status with the message: > > "The selected 'Supported Suricata Version' for this rule is '3x-only'. Suricata validation for this rule will be done at deployment stage." 9. Click **Add**. The rule is listed in the **All Custom Attacks** tab. 10. Save the rule to the database so that it gets published in the relevant policies.