Share via

Source Code trainable classifier doesn't work at Endpoint channel

Haim Nazarovsky 0 Reputation points
2025-10-05T14:13:05.7733333+00:00

Hi, I’d appreciate some assistance, please.

I’ve created two identical DLP policies using the Source Code trainable classifier—one targeting the email channel and the other for endpoint (Defender for Endpoint is installed on the machines).

The email policy is working perfectly, but the endpoint policy is not working at all.

I’ve already tried adjusting rule priorities, modifying the included groups, and changing the actions, but nothing has worked so far.

Do you have any suggestions or ideas on what might be going wrong?

Microsoft Security | Microsoft Purview

1 answer

Sort by: Most helpful
  1. Pauline Mbabu 1,840 Reputation points Microsoft Employee
    2025-10-06T08:41:50.2666667+00:00

    Hello @Haim Nazarovsky ,

    Thank you for reaching out.
    I believe the issue might be due to limitations in File Type. Current endpoint DLP only applies advanced classification to Office documents and PDF files. This is a critical difference: if your source code is in .py, .cs, .java, or other plaintext code files, the endpoint DLP agent may not scan those file types for trainable classifier matches. https://learn.microsoft.com/en-us/purview/dlp-configure-endpoint-settings#advanced-classification-file-scanning-size-limits.

    You can also Verify that Advanced classification scanning and protection is turned on in your Endpoint DLP settings. Endpoint DLP requires this cloud-assisted scanning to detect trainable classifier content. If it’s off (or if the device exceeded any set bandwidth limits), the policy won’t recognize content via trainable classifiers on the endpoint.

    If you are still facing this issue after following the above, kindly reply back on the comments.
    If you find the answer above helpful, please Accept the answer to help anyone in the community who might have a similar question to quickly find the solution.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.