Can we block non-PE files (.docx, .xlsx, .pdf) in Defender for Endpoint indicators?

Clyd Steven Tito 20 Reputation points
2026-07-23T14:58:18.1466667+00:00

According to Microsoft Defender's documentation, file indicators support Portable Executable (PE) files such as .exe, .dll only.
https://learn.microsoft.com/en-us/defender-endpoint/indicator-file

Does this mean we cannot add/block non-PE files (.docx, .xlsx, .pdf) in Defender for Endpoint indicators?

Thank you.

Microsoft Security | Microsoft Defender | Other
0 comments No comments

Answer accepted by question author
Marcin Policht 102.3K Reputation points MVP Volunteer Moderator
2026-07-23T19:00:11.59+00:00

yep - unfortunately Microsoft Defender for Endpoint file indicators are designed specifically for Portable Executable (PE) files, meaning they cannot be used to block non-executable document formats like .docx, .xlsx, or .pdf. This limitation exists because the feature is intended for binary-level threats, and blocking documents by hash is impractical due to frequent, minor file changes.


If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

hth

Marcin

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most 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.