--- title: "Add the condition for packet grep protocol match" slug: "add-the-condition-for-packet-grep-protocol-match-2" tags: ["Product Usage", "IPS 11.1.x"] updated: 2026-11-19T12:27:39Z published: 2026-11-19T12:27:39Z canonical: "docs.trellix.com/add-the-condition-for-packet-grep-protocol-match-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. # Add the condition for packet grep protocol match Steps to add the condition to the example signature: 1. Click **Condition 1** so that it is highlighted. 2. Click **AND** in the Comparisons section. The **Add AND Comparison** dialog opens. **Packet Grep Protocol Match**![Packet Grep Protocol Match](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-ce4703db-283f-fb1a-cb4d-bc119ee0bc0b(7).png?sv=2026-02-06&spr=https&st=2026-11-20T14%3A20%3A41Z&se=2026-11-20T15%3A20%3A41Z&sr=c&sp=r&sig=%2BgDEOlUMdeiYxx7HzTl2TiyNrKnqDdOyFM%2Bxm3NJUwk%3D) 3. For this example, select **Packet Grep Protocol Match** in the **Comparison Type** drop-down menu. 4. Select **dnp3** from the **Protocol** list. Because you selected IPv4, the Custom Attack Editor displays the IPv4-specific protocol fields on the following screen. 5. Configure the packets you want to parse. For this example, specify **Request Packets Only** for the **Parse** field. 6. From the **Operator** drop-down list, select the matching criteria as **Equals**. 7. Type the text you are searching for in the packets in the **Text to Match**. For this example, the text to match is " \x00\x00\x00\x3a\x20\x45\x56\x00\x0a". 8. (Optional) Deselect **Ignore Case** and **Ignore String Position**. 9. Click **Save**. Your comparison appears under **Condition 1**. 10. Click **Add** in the **New Custom Attack** window. 11. Verify that the attack definition is listed on the **Native Trellix IPS Format** tab. ![GUID-70AEEE04-2EFB-46C6-B802-EC062D2FCF28-low.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-21896676-821f-5eb6-ec07-540c8f31fb79(7).png?sv=2026-02-06&spr=https&st=2026-11-20T14%3A20%3A41Z&se=2026-11-20T15%3A20%3A41Z&sr=c&sp=r&sig=%2BgDEOlUMdeiYxx7HzTl2TiyNrKnqDdOyFM%2Bxm3NJUwk%3D) 12. Click **Save** to save the Trellix IPS Custom Attack in the Manager server database. 13. Make sure the Trellix IPS Custom Attack is saved in the database and also published in the policies.