Skip to main content

Lab 7 โ€“ Stopping Data Exfiltration with Endpoint DLP

Lab 7โฑ 25 minโš— Lab Tenant ยท Read/Write๐Ÿ‘ค Alex + Kevin
Stopping Data Exfiltration with Endpoint DLP

Kevin's file upload to ChatGPT was blocked in Lab 6 by Inline Web DLP. Undeterred, he decides to try a completely different approach โ€” one that bypasses the network proxy entirely. First he tries to open the sensitive file directly in Notepad++. Then, when that fails, he opens it in Word and tries to copy and paste the content instead. Neither the proxy nor the browser can stop these OS-level actions. Only Endpoint DLP can.

๐Ÿ’ก Why Endpoint DLP is needed here

Kevin's new attempts happen entirely on the endpoint โ€” no network request, no HTTP POST, no file transfer. The controls that cannot catch these actions are:

ControlWhy it misses
Inline Web DLP (Lab 6)No network traffic โ€” file access and clipboard never leave the OS
Browser DLP (Lab 8)Only covers actions inside the browser
Proxy inspectionProxy can inspect archive files up to 5 levels โ€” but these actions never reach the network

Endpoint DLP operates at the OS layer โ€” intercepting file read attempts and clipboard operations before any data can be extracted, regardless of protocol, application, or network path.


Prerequisite โ€” Verify Notepad++ on the Lab VMโ€‹

Notepad++ is pre-installed on the CloudShare VM, as described in Pre-Requisites for Module 2. Confirm it is available before Task 1. If it is missing, ask your facilitator to check the VM setup.

Complete Lab 5 first: both rules in this lab use the DP Project Code engine.


Task 1 โ€” Block Application File Access to Sensitive Documentsโ€‹

๐Ÿ›ก
Alex โ€” Security Administrator
Lab Tenant (Read/Write) โ€” Configuration Mode
You are Alex. Kevin's ChatGPT upload was stopped in Lab 6. Now you need to close the Application File Access channel โ€” ensuring that even if Kevin tries to open a sensitive file directly in an unauthorized application, the OS-level read is blocked before the application receives any data.

๐ŸŽฏConfigure an Application File Access rule, verify the Notepad++ application definition in DLP Resources, push the policy to the endpoint, then confirm Kevin's file open attempt is blocked and logged.

Step 1 โ€” Navigate to Endpoint DLP Policyโ€‹

Navigate to the Endpoint DLP policy page:

Data Security โ†’ Endpoint DLP โ†’ Configuration โ†’ Endpoint DLP Policy

Open the menu (โ˜ฐ), select Data Security, expand Endpoint DLP, and click Endpoint DLP Policy under Configuration.

Data Security โ†’ Endpoint DLP โ†’ Configuration โ†’ Endpoint DLP Policy, with Add Rule highlighted

Review the existing policy list. Don't click + Add Rule yet โ€” the highlighted button is where you will create the rule in Step 4. First, Steps 2โ€“3 check how the target application, Notepad++, is defined, because the rule will reference that definition. If your assigned tenant already contains the same lab rule, review and update it in Step 4 rather than creating a duplicate.

Step 2 โ€” Navigate to Endpoint DLP Resourcesโ€‹

Before creating the AFA rule, review how applications are defined. Navigate to:

Data Security โ†’ Endpoint DLP โ†’ Configuration โ†’ Endpoint DLP Resources

Endpoint DLP Resources โ€” Applications tab with the Notepad++ (Windows) definition highlighted

Step 3 โ€” Review the Notepad++ Application Definitionโ€‹

In DLP Resources, open the Applications tab (Endpoint Applications) and search for notepad. Click the application name Notepad++ (Windows) to open View Windows Application.

View Windows Application โ€” Application Details for Notepad++ (Windows)

The panel shows only Name (Notepad++ (Windows)) and Description. Notepad++ is a Well-Known Application: Zscaler maintains its definition, so the attributes used to recognise the process are not shown or editable here. Your rule only needs to reference the application by name.

If you need to control an application that isn't in the well-known list, you can create a custom endpoint application definition in DLP Resources. That is out of scope for this lab.

Step 4 โ€” Create the Application File Access Ruleโ€‹

Navigate back to Endpoint DLP Policy and click + Add Rule:

Data Security โ†’ Endpoint DLP โ†’ Configuration โ†’ Endpoint DLP Policy โ†’ + Add Rule

Add Rule โ€” Application File Access channel, Notepad++ (Windows) endpoint application, DP Project Code engine, Block action, and rule name highlighted

FieldValue
Rule NameBlock Sensitive Data with AFA
ChannelApplication File Access
ApplicationsNotepad++ (Windows)
DLP EnginesDP Project Code
ActionBlock
Rule StatusEnable

Working through the screenshot:

  1. Channel: Application File Access
  2. Endpoint Applications: open the picker, select Well-Known Applications, tick Notepad++ (Windows), and click Apply
  3. Content Matching: Select DLP Engines โ†’ DP Project Code โ€” the engine from Lab 5
  4. Action: Block
  5. Rule Name: Block Sensitive Data with AFA, Rule Status: Enabled, Severity: High
  6. Click Save
Activate the configuration

After saving, click the Activation icon (cloud with an up arrow) in the top-right toolbar and Activate the pending changes. The endpoint cannot download a rule that hasn't been activated, so do this before Step 5.

Step 5 โ€” Push the Updated Policy to the Endpointโ€‹

After activating the rule, the policy must be pushed to the endpoint agent. On the lab VM:

  1. Right-click the Zscaler icon in the system tray
  2. Click Open Zscaler
  3. Navigate to Data Protection
  4. Click Update DLP Policy

ZCC โ€” Update DLP Policy to push new rule to endpoint

Callout 1 โ€” ZCC Connectivity: Service Status ON Callout 2 โ€” Right-click ZCC tray icon โ†’ Open Zscaler Callout 3 โ€” Click Data Protection Callout 4 โ€” Click Update DLP Policy


๐Ÿ‘ค
Kevin โ€” End User
Lab Tenant โ€” VM Session
You are Kevin. Your ChatGPT upload was blocked in Lab 6. You decide to try opening the file directly in Notepad++ โ€” thinking you can read the raw content and extract what you need without going through the network at all.

Step 6 โ€” Kevin Attempts to Open the File in Notepad++โ€‹

Kevin opens the Test files folder on the Desktop, right-clicks Dataparity_Q2_2025_Workforce_Financial_Summary.docx, and selects Edit with Notepad++.

Kevin right-clicks the sensitive file and selects Edit with Notepad++

The moment Notepad++ attempts to read the file, Application File Access intercepts at the OS layer โ€” before any data reaches the application.

Step 7 โ€” Endpoint DLP Blocks the File Readโ€‹

Kevin sees two simultaneous events:

Zscaler AFA block notification and Notepad++ cannot open file error

Zscaler block notification:

Blocked An application opened one or more files that contain potentially sensitive data. This activity was blocked by your organization.

  • File Name: Dataparity_Q2_2025_Workforce_Financial_Summary.docx
  • Destination: notepad++.exe

Notepad++ error dialog:

ERROR โ€” Can not open file C:\Users\Zscaler\Desktop\โ€ฆ\Dataparity_Q2_2025_Workforce_Financial_Summary.docx (the path shows wherever you opened the file from)

Notepad++ never displayed a single byte. The OS-level block happened before the application received any data.


๐Ÿ›ก
Alex โ€” Security Administrator
Lab Tenant โ€” Log Review
You are Alex. Kevin's file open attempt was blocked. Verify the event was captured in Endpoint DLP Insights with Activity Type: File Read.

Step 8 โ€” Navigate to Endpoint DLP Insightsโ€‹

Data Explorer โ†’ Internet & SaaS โ†’ Endpoint DLP Insights

Open the menu (โ˜ฐ), select Data Explorer, and click Endpoint DLP Insights under Internet & SaaS.

Data Explorer โ†’ Internet & SaaS โ†’ Endpoint DLP Insights

Step 9 โ€” Review the AFA Violation Logโ€‹

Switch to the Logs tab, set Timeframe to the current day, add the filter DLP Engine = DP Project Code, and click Run Query.

Endpoint DLP Insights Logs โ€” DLP Engine filter and the Application File Access / File Read records highlighted

Locate the Application File Access event for your test. Screenshot counts and engine labels may differ; verify your event against the rule you configured:

FieldExpected value for your test
ChannelApplication File Access
Activity TypeFile Read
Source TypeLocal Drive
DLP EngineDP Project Code
Destination Namenotepad++.exe
Action TakenBlock
File Typedocx

Activity Type: File Read is the key differentiator from the Clipboard channel. This tells Alex exactly what Kevin attempted โ€” a direct file read by an unauthorized application โ€” not a network upload or clipboard operation.


Task 2 โ€” Block Clipboard Exfiltration to Local Applicationsโ€‹

๐Ÿ‘ค
Kevin โ€” End User
Lab Tenant โ€” VM Session
You are Kevin. Opening the file directly in Notepad++ was blocked. You realise Zscaler is blocking unauthorized applications from reading the file. You decide to use the legitimate application โ€” Microsoft Word โ€” to open the file, then manually copy the sensitive content and paste it into Notepad++ yourself.

๐ŸŽฏDemonstrate that even when Kevin uses a legitimate application to access the file, Endpoint DLP Clipboard control blocks the paste into an unauthorized destination.

๐Ÿ’ก Kevin's Escalation Logic

Kevin's reasoning: "Zscaler blocked Notepad++ from reading the file directly. But Word is allowed to open it โ€” it's the legitimate app for .docx files. If I open it in Word, copy the content, and paste it into Notepad++, maybe the endpoint agent won't catch it."

He's right that Word can open the file โ€” Application File Access doesn't block sanctioned applications. But the Clipboard channel catches the copy/paste at the OS clipboard layer, regardless of which application the content came from.

VM Required

This task must be performed from the lab VM machine. Ensure the Zscaler Client Connector is running before proceeding.

Step 1 โ€” Navigate to Endpoint DLP Policyโ€‹

As Alex, open the Endpoint DLP policy page:

Data Security โ†’ Endpoint DLP โ†’ Configuration โ†’ Endpoint DLP Policy

The AFA rule from Task 1 should now be listed; the page looks the same as the Task 1, Step 1 screenshot. Rule names and order may differ in your tenant.

Step 2 โ€” Configure the Clipboard DLP Ruleโ€‹

Click + Add Rule and configure Block Cut_n_Paste Sensitive Data below. If that lab rule already exists, edit it instead.

Add Rule โ€” Clipboard channel, Notepad++ (Windows) destination application, DP Project Code engine, Block action, and rule name highlighted

FieldValue
Rule NameBlock Cut_n_Paste Sensitive Data
ChannelClipboard
Destination ApplicationNotepad++ (Windows)
DLP EnginesDP Project Code
Rule StatusEnable
ActionBlock

Click Save, then click the Activation icon in the top-right toolbar and Activate the pending changes before pushing the policy in Step 3.

๐Ÿ’ก Destination Application Scoping

The Clipboard rule is scoped to Notepad++ (Windows) as the destination. This means paste of sensitive content is blocked specifically when the destination is Notepad++. Setting the destination to Any would block paste of sensitive content into any application on the endpoint โ€” email clients, chat tools, IDE editors, or any other process.

Scoping to a specific application allows a graduated rollout โ€” start with the highest-risk destinations, then expand once the policy is tuned.

Step 3 โ€” Push Updated Policy to Endpointโ€‹

After saving and activating the Clipboard rule, push the policy to the endpoint:

ZCC โ€” Update DLP Policy to push Clipboard rule to endpoint

Right-click ZCC tray icon โ†’ Open Zscaler โ†’ Data Protection โ†’ Update DLP Policy


Step 4 โ€” Kevin Opens the Document in Word and Selects Sensitive Contentโ€‹

Kevin opens Dataparity_Q2_2025_Workforce_Financial_Summary.docx in Microsoft Word โ€” which is allowed, as Word is a sanctioned application. He selects the entire document so that the Credit Cards, ABA Bank Routing Number, and DP Project Code signals required by the engine are included.

Kevin selects sensitive content in the Word document

Kevin presses Ctrl+C to copy. He then opens Notepad++ and attempts Ctrl+V to paste.

Step 5 โ€” Endpoint DLP Blocks the Pasteโ€‹

Instead of pasting, Kevin sees a Zscaler block notification:

Zscaler Clipboard block notification โ€” paste to Notepad++ blocked

Blocked The copied content contains potentially sensitive data. This activity was blocked by your organization.

  • Destination: notepad++.exe

Notepad++ remains empty โ€” not a single character was pasted.


๐Ÿ›ก
Alex โ€” Security Administrator
Lab Tenant โ€” Log Review
You are Alex. Verify the Clipboard event was captured โ€” and compare its Activity Type to the AFA event from Task 1.

Step 6 โ€” Navigate to Endpoint DLP Insightsโ€‹

Data Explorer โ†’ Internet & SaaS โ†’ Endpoint DLP Insights

Same path and page as Task 1, Step 8 โ€” refer to that screenshot if needed.

Step 7 โ€” Review the Clipboard Violation Logโ€‹

On the Logs tab, set Timeframe to Last 30 Minutes, add the filter Channel = Clipboard (Include), and click Run Query.

Endpoint DLP Insights Logs โ€” Channel = Clipboard filter and the Paste Text record highlighted

FieldValue
ChannelClipboard
Activity TypePaste Text
DLP EngineDP Project Code
Rule NameBlock Cut_n_Paste Sensitive Data (or the existing lab rule you updated)
Action TakenBlock

Compare Activity Type: Paste Text (Task 2) vs Activity Type: File Read (Task 1). Two distinct OS-level events, two different channels, one unified Endpoint DLP Insights log โ€” giving Alex a precise audit trail of exactly what Kevin attempted at each layer.

๐Ÿ’ก Key Insight โ€” Lab 7 Complete

Kevin tried two OS-level evasion techniques after his network upload was blocked in Lab 6:

  • Application File Access (Task 1) โ€” tried to open the file directly in Notepad++. Blocked at the file read layer before any data reached the application.
  • Clipboard (Task 2) โ€” opened in Word (allowed), copied content, tried to paste into Notepad++. Blocked at the clipboard paste layer.

Neither attempt generated network traffic. Neither was visible to the proxy. Only Endpoint DLP โ€” running at the OS layer โ€” could intercept them.

Lab 8 moves to browser interactions using preconfigured Browser DLP policies. The Notepad++-scoped rules tested here do not cover every browser destination; Lab 8 demonstrates masking, sensitive-download blocking, and watermarking inside Chrome.


Lab Summaryโ€‹

In this lab:

  1. Alex reviewed the Notepad++ application definition in DLP Resources
  2. Alex created an Application File Access rule using the DP Project Code engine
  3. Alex pushed the updated policy to the endpoint via ZCC โ†’ Update DLP Policy
  4. Kevin right-clicked Dataparity_Q2_2025_Workforce_Financial_Summary.docx โ†’ Edit with Notepad++ โ†’ blocked at OS file read layer
  5. Alex confirmed Activity Type: File Read in Endpoint DLP Insights
  6. Kevin opened the file in Word (allowed), copied sensitive content, attempted to paste into Notepad++ โ†’ blocked at OS clipboard layer
  7. Alex confirmed Activity Type: Paste Text in Endpoint DLP Insights โ€” two distinct channels, one unified log

Key Takeaway: Endpoint DLP closes the OS-layer gaps that proxy and browser DLP cannot cover. Application File Access and Clipboard are two complementary channels that together prevent both direct file extraction and content copy/paste exfiltration โ€” entirely off-network.

๐ŸŽ“
Lab Assistant
Data Security Lab Guide ยท Dataparity
Lab 7 โ€” Endpoint DLP
Browse all topics