--- title: "Detect TCP protocol anomalies and session hijacking" slug: "detect-tcp-protocol-anomalies-and-session-hijacking" tags: ["ESM", "Product Usage"] updated: 2026-09-12T21:19:32Z published: 2026-09-12T21:19:32Z canonical: "docs.trellix.com/detect-tcp-protocol-anomalies-and-session-hijacking" --- > ## 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. # Detect TCP protocol anomalies and session hijacking You can detect and alert on TCP protocol anomalies and check to TCP session hijacking using the Stream5 preprocessor variable. 1. On the Trellix ESM console, click the **Policy Editor** icon ![GUID-D5AACD7D-9544-4011-8E37-D57FED1D7387-low.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-7b234e9a-be2c-e306-83f0-9984908b6c0e(1).png?sv=2026-02-06&spr=https&st=2026-11-22T17%3A26%3A56Z&se=2026-11-22T18%3A26%3A56Z&sr=c&sp=r&sig=QPpynKfli1wVyMD1BC7wRE1pGqLRgJO3f%2FwnLi6qHTs%3D). 2. In the **Rule Types** pane, click **Variable**. 3. In the Variables pane, expand the **preprocessor** group, then double-click **STREAM5_TCP_PARAMS**. 4. On the **Modify Variable** page, add one of the following in the **Value** field: - To detect and alert on TCP protocol anomalies, add `detect_anomalies` after **policy first**. - To check for TCP session hijacking, add `detect_anomalies check_session_hijacking` after **policy first**.