Skip to main content

AD_4nXcFJC_HZgj42LROy68sWLhqxS1sAYqNPdHb-9J89d48JMFnNlphsyX-vK1sl_v2TgqAJWKjzWARJLTUTX6I7PhqLTo66t7G6IllwhcxqnUrPqnI5ACAn2NV7o_2j0_qxymPLI-B?key=C8A395rR3QCulRcAiihkmA

Netskope Global Technical Success (GTS)

Grok xAI - DLP on Activity 'Post'

 

Netskope Cloud Version - 129

 

Objective

Implement DLP on activity ‘Post’ 

 

Prerequisite

Netskope SWG or Next-Gen SWG license is required

 

Context

How to add DLP controls on activity ‘Post’  via Realtime protection policies

 

Do You Know?

  • As of Aug 26, 2025, Netskope recognizes Grok xAI as a Cloud Application, but no pre-defined cloud app connector is available. 

AD_4nXeJi-TzFBdqKAjmoI2lDKDSyTPCLiCEzjilQzt2ZUgYLa1nu13f6G_ZluxXb04HJjT75yKg71OlQLceBG6_TY6V51aBr6TUav_5aOp6I3morwAjeMCoIagtJTx-s8FCNWk_ZsGf?key=C8A395rR3QCulRcAiihkmA

 

  • Netskope Product Management is currently working on a product enhancement request that addresses the need for a predefined cloud app connector for Grok AI. At this time, there are no confirmed release timelines.
  • In the interim, customers can utilize the Custom Cloud App connector to apply DLP controls to the ‘Post’ activity.
  • To create a Custom Cloud App connector, it is essential to understand the behavior and traffic patterns of Grok AI. The following details outline the observed interactions and activities performed by the application -

i. When initiating an interaction with Grok AI (specifically referring to a chat session, not a file upload), the traffic is first redirected to https://grok.com/rest/app-chat/conversations/new

ii. This initial interaction is labeled as ‘New’.

iii. Upon this first interaction, Grok AI assigns a unique conversation ID to the session. Subsequent messages in the same conversation are labeled as ‘Responses’, and the traffic is redirected to https://grok.com/rest/app-chat/conversations/{conversation_id}/responses

For example:

https://grok.com/rest/app-chat/conversations/a33e6122-ddb4-444f-9ce3-8393303d1e8b/responses

Here, a33e6122-ddb4-444f-9ce3-8393303d1e8b is the dynamically assigned conversation ID for that particular chat session.

iv. The end-user chat messages can be found within the payload section of the HTTP traces. This is where the actual content of the user’s input is transmitted.

 

References

AD_4nXfZIaJryiQ6WLPeqSRg-myIMtoWlwzUH-eddsgpIMvJvFUIxI_9sQXd3GRjL_V226XztlV4SnS6uLf47PctR_8iXCAuE4peMLV8b48LUX04ybZWOpW7gbAD0vDKfgT9wZ8DiiZSaA?key=C8A395rR3QCulRcAiihkmAAD_4nXf-GqOLwcpRlQjw2v85pba6MtfzdZsiTNlL5q55LfiBDK_QknYBEH0UUt-bCbqvNp6J-zsyjU5n_ZSmQauEbdQg9iTcOYORGwI3V_ODwIQlXLyImAkO-ZLu8E4Hvc_2C7cSiaRFJA?key=C8A395rR3QCulRcAiihkmAAD_4nXewwBlE9fxlHDwgUC0Hr9paf7yWz5KGbs9DFeJPGkPdA_OPtbkZ0Ad-7WBdaW9vOevwLP87XhjCqWhKFTMnzQMUmVGiedGoMSce6ksEyhJ0s-56ShhKr6KhZcwAB-D0wECHDW_l?key=C8A395rR3QCulRcAiihkmAAD_4nXcuopnIkc36ehUxaaib1WIyx7OWPKe-Pfdo_CnBAlqcRNdLtsdDyJAX7dJdH7bq_gPEbE3FfpwpHjivNgKH5qBNuUGuii3nrAar9kulCCyA7oeEbyIpL-uMlQkpXSSdfaojGnOYeQ?key=C8A395rR3QCulRcAiihkmAAD_4nXfbuSROW1Y0I0aFmsgDaVPvfwUPMAYs9UaAoIF3MYrUry0Qr0uIZXT468OSwIhCZEmtmDkoedf0zL6k082t7-WUrlLBbusAY6HM7QvpaHZpDGAsSMKyOlUS3wQWmBIa2APPQ3E41Q?key=C8A395rR3QCulRcAiihkmAAD_4nXdzoe_MQahKM1Sgig2ck-0ldyRgWxkC5RtFxe4V31ycCHa1Rz6DSP2lzypi-V8U2HawS5oKf8Y748Qvkpd8SPSMwiM7WwaMcnHSrrE0FziYXSb2MNMSXUGYX0jdWiruCosu7eoeSg?key=C8A395rR3QCulRcAiihkmA

 

 

Configuration

Step 1 - Create a custom cloud app connector for Grok AI

Path: Netskope Tenant UI >>> Security Cloud Platform >>> Traffic Steering >>> App Definition >>> Cloud & Firewall Apps >>> Cloud App

AD_4nXfeyw3lW1M1YEPvJfNLdnTQ-M9q-8T61W5fmTBoVlhd-lzsgMt6yTI6aggfcli96uON5xdd-9lQcCcO-CN-Hs8MKW62E2cNw7QjH1djL76xWkJRnZ7COiseh5-vkhSOzvQXCJNvvQ?key=C8A395rR3QCulRcAiihkmA

 

AD_4nXfFejYuByYmsszhRBy7gL-swXhHacrupBkLReiwEes8hJ6CyZkPZ6r_ZhGeKulIgsZ0eBAzidzWAVmQhQItHtR92REE9JAAjtCJidqaednVhLRG3_gaFv_DQvUw_BdYTPuN_jywEA?key=C8A395rR3QCulRcAiihkmA

AD_4nXd9gNIj61lbiJjv0BdUYmrSpBU94Tq0_5zDFLcLR6X40SO7XbUVyai6DtslqIIO9iIjDbTXvQgO9vyOhdvYUH-MhACrRlAHbDEFWBXr5vPfbhS-NjsBZCy3QqSmRx27VnRtLmdW?key=C8A395rR3QCulRcAiihkmA

 

Note

a. Why ‘Upload’ and not ‘Post’?
With Netskope Custom Cloud App connector, DLP controls cannot be applied on the ‘Post’ activity, so we select ‘Upload’ instead to enforce the required policies.

 

b. Explanation of path /rest/app-chat/conversations/.+/responses
.+ is a regular expression designed to capture the conversation ID dynamically within the URL path.
 

Step 2: Realtime protection policy

Path: Netskope Tenant UI >>> Policies >>> Real-time Protection >>> New Policy

 

AD_4nXdQvANPa_BmeaqbYwIjYbjcGDkHsmH8_huoQ1cDmZXkYwrwFREEgOLS0XjO8ka0nYm0PTaUorMmLf4SK2-MCfImLcGIBKsenhfb_qEbHflXTJxN7AQZT42xdBeIfF6Vsjo_jnuwMQ?key=C8A395rR3QCulRcAiihkmA

 

Note - I am using a custom DLP to detect the keyword PAN

 

Verification

  • Access Grok xAI - Link
  • Test 1 - Start a conversation with violated content 

AD_4nXdwE7E5INCXyqip0Xj0o_Rm5OK6xyfdFIggS14THHWrY7fXt9tCLB_Ib2rOnOPLpsjkaRvgiK0bBRkeMHBCjbcqAE7xGrpC0GWPTWbeES_coUq6-ug-03KIpvroTZGEUMXaJIkH?key=C8A395rR3QCulRcAiihkmA

 

  • Test 2 - Add the violated content in the subsequent conversation

AD_4nXeq7Z8UM7L9QIB200g2G6Zm0gNAgKVcCfPIhhtPxNsQ8IMaFeZiVLYoA8AZp_53F2blvNoXUbBczqTfoGy6uEQgY3Z3EEaQkOj2iryCmJn1T6onljqy0yoNgHCxwKr-LrOs7EZ1mw?key=C8A395rR3QCulRcAiihkmA

Note - User Notification format used above Link

 

Author Notes

  • This document will be revised once Netskope introduces a pre-defined cloud app connector for Grok xAI.
  • With the pre-defined cloud app connector, there is no longer a need to create a custom category for Grok xAI.

 

Terms and Conditions

  • All documented information undergoes testing and verification to ensure accuracy.
  • In the future, it is possible that the application's functionality may be altered by the vendor. If any such changes are brought to our attention, we will promptly update the documentation to reflect them.

 

Notes

  • This article is authored by Netskope Global Technical Success (GTS).
  • For any further inquiries related to this article, please contact Netskope GTS by submitting a support case with 'Case Type – How To Questions'.
Be the first to reply!