Skip to main content

AD_4nXc9X48jzVAs2V4SwuB0-70mt76vsqQZsAAN8qt0xCeZSU77WPAdq1_iU7vDN5pJAbZ_HnvYSwu1BLn4vh0J2p2H279ErDFq1x-_5ES0SUIe4h7Y8VF80DmaWvidk76SHQjc9M5E?key=nBDwfaCgKNxZcDJyQBhRjKrC

Netskope Global Technical Success (GTS)

Netskope DLP : Securing Source Code in Google Gemini Interactions Activity ‘Upload’

 

Netskope Cloud Version - 123

 

Objective

DLP in the source code of Google Gemini activity - "Upload"

 

Prerequisites

Netskope Inline CASB license is required

 

Context

End-users often utilize Google Gemini for unofficial purposes, sometimes sharing sensitive source code-level information, inadvertently exposing their organization to potential data exfiltration risks. This article highlights how Netskope effectively addresses this concern. Netskope DLP can swiftly detect source codes within the chat environment and proactively prevent the unauthorized transmission of sensitive data

 

Do you Know?

  • Netskope acknowledges Google Gemini as a Cloud Application and provides a pre-defined cloud app connector.
  • As of Feb 24, 2025 with Netskope’s Google Gemini predefined connector, customers can exercise control over the following activities:

AD_4nXdRtK1_U1RdnujUSrfDQuTnD_7vcw6nxLZVOA21Uo7waJRWXkFVreKpiZ9hs03fl4Ik1RB0wCPtilfYzhqab5xjyuuQ1xvaMFgzTBfoEo51ekU-kqFy-qXo4ccNHm5j7zn7ftg9TQ?key=nBDwfaCgKNxZcDJyQBhRjKrC

 

Configuration

Step 1 - DLP profile

  • Netskope's predefined DLP profile effectively detects source codes

Path: Netskope Tenant UI >>> Policies >>> DLP

AD_4nXdR5GIvyFXqumzG6UaJ_lnOmfqUg7E4blYx3JFWu2uRejGDI9wEQNrB_yq8STvyT5h69Vyar-xQ2_zQ7Odc4oUehkv99_cH3CF20ZwXBnkM6zgXCNFadndzAf2Aifwxdgzt3kuRTw?key=nBDwfaCgKNxZcDJyQBhRjKrC

 

  • The predefined DLP profile can detect source codes written in below programming languages

AD_4nXfX8YQdI3DT58p1t6JodG4vkQ5D0gb-rh00gqwVqAwyqvWSAQWmwszFwgSFoBK1JQL3GEdbPTthQkk6YI2G_MbSbZChr4XV2cq28jo4HcKP-03fx876_upzbMMXLOHONIJL_BM-Uw?key=nBDwfaCgKNxZcDJyQBhRjKrC

 

Step 2 - Real-Time Protection policy

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

AD_4nXdBxFcyvWSoL1kgRB2pqtgJlrGDzyL-59jC6FkIHtZ26Zb3qkIYmZE_v_zz04Myt_snXD8tFOwIHZn41DjmTn2Pyu2EmgXp4ouyY72k4IEXbFaZ7M2BrmylASAn61s-uYfiF7xsww?key=nBDwfaCgKNxZcDJyQBhRjKrC

 

Verification

  • For testing I copied a random code written in C++ from Link

AD_4nXcahhHPckg7Me_q1xHgi2qDKXCGI1E383TDyie4K0ORMLX62JTrLFFfAG_dD1xoSvLeTrMId7Fp5K77WbiVgADiUL-Ix6OduwW5KObCHjWr4OYkZswPF7jNThdzwKU9wGkr7Tdw?key=nBDwfaCgKNxZcDJyQBhRjKrC

 

  • Access Google Gemini and upload the C++ source code

AD_4nXefwNqL3PMOxPnq7XHN_H7K4VE6RZIKwEHgyHqUXdq-nTHEDIpHfi7uJ2n-CIeUCSbX7TgMwnoz8pgX02PZ2xP6ps2WBPLOWzxC2KgUt92NW4Hd-hifFZh7-YVb0Vr83YNpNk1hsQ?key=nBDwfaCgKNxZcDJyQBhRjKrC

 

  • Netskope DLP detected C++ source code and now Google Gemini does not upload the file

AD_4nXcBUR7VH-CfzlMWHdhyBHAAI_1zATPd2sXbluZiEsz8SMj5kTU79cTQlGdsi2jEW-0_jZwv7nYSHKrCZYkw4SHqSM_tPUd7tYv2Hn4N-dy_Oais8IwaAiVLubfDou55auZ9iPbJIw?key=nBDwfaCgKNxZcDJyQBhRjKrC

 

  • Check policy hits

AD_4nXeML_UgPhHRZVXvzQcidoTXZrdMDixxXoh6g01_Dci5TCsBX4xruf2qoB-9HIYBiy2fv6xTslPFyVd2v8cDGvCdAOz9v3t-_o3Rts724X7_uXEGiR_GMiaVhEBmEd2eWPpq5UJDHQ?key=nBDwfaCgKNxZcDJyQBhRjKrC

AD_4nXf3lyytw4xJ1xNCMEqYtYXIT9KWi9U11yldlLZ61VeAB6ZmKk-gvuxm6O41x2qRE2RXoBCmQG78bovglvM2D1TstAqeI76yO6fOPIvM-TLg4zweKkT434ssSzFPYcWVJnDPc_ES?key=nBDwfaCgKNxZcDJyQBhRjKrC

 

  • If desired results are not obtained, verifying the SSL inspection settings is Step 1

AD_4nXft27ifLaQKwFd7nnavQFCKxxn3Sgwz4BhqggrPUSUhresHNFgqQDc3OjkFf7_wl7Y5xsKSVuaxDWNcanYXi--VxuwsTCO4-1ZxV354V7EqIPGhhGnxFX8FiHMZDoLBO4Moe43FvQ?key=nBDwfaCgKNxZcDJyQBhRjKrC

 

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!