Blocking suspected malware by file hash indicators in Defender for Endpoint — only PE files are supported
Short answer
A Defender for Endpoint file hash indicators support portable executable (PE) files only, so only the .sys file can be blocked.
Question
Key Takeaways
Defender for Endpoint file indicators work only on portable executable (PE) files; .sys (a driver PE file) can be blocked, whereas .pdf, .docx, and .xlsx are not PE files and cannot be blocked by file hash indicators.
You must block suspected malware files (.sys, .pdf, .docx, .xlsx) by hash in Defender for Endpoint Plan 2; file hash indicators support portable executable (PE) files such as .exe, .dll, and .sys only.
Common mistake: Assuming any file type can be blocked by its hash — the indicator mechanism is limited to PE files, so only the .sys file among the listed candidates qualifies.
Expert Analysis
Why the Answer Is Correct
Microsoft Defender for Endpoint file indicators (IOC hashes) support portable executable (PE) files, including.exe,.dll, and.sys files only. Among the four listed files, File1.sys is the only PE file, so it is the only one that can be blocked by a file hash indicator.
Why the Other Options Are Wrong
The.pdf,.docx, and.xlsx files are not PE files, so none of them can be blocked through the file hash indicator mechanism, which rules out options B, C, D, and E. Choosing any option that includes non-PE files rests on the incorrect belief that any file type can be blocked by hash.
Community Comment Notes
The community leans E (block all four, 59 votes), but the more documented answers cite https://learn.microsoft.com/en-us/defender-endpoint/indicator-file, which states file indicators support PE files only. Hawklx, talosDevbot, and 1375514 all confirm only PE files (.exe/.dll/.sys) are supported, making File1.sys the sole blockable file.
Official Reference
https://learn.microsoft.com/en-us/defender-endpoint/indicator-file
This link opens the official vendor documentation in a new tab.
Community Votes
59% of anonymous learners picked answer E. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 13 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 13
-
liveup2it 👍 17 Answered EBased on File hashes, you should be able to block each and every file with this hash, regardless the name of the file.
-
g_man_rap 👍 5 Answered AKey Points: Executable Files: Microsoft Defender for Endpoint can block executable files such as .exe, .dll, .sys, and other similar types. Non-Executable Files: Generally, Microsoft Defender for Endpoint does not allow blocking of non-executable files (e.g., .pdf, .docx, .xlsx) by file hash using the same indicator mechanism designed for executables.
-
Hawklx 👍 5 Answered AThis feature is designed to prevent suspected malware (or potentially malicious files) from being downloaded from the web. It currently supports portable executable (PE) files, including .exe and .dll files. Ref: https://learn.microsoft.com/en-us/defender-endpoint/indicator-file
-
phoenix5 👍 3Answer - C (.sys , .docx, .xlsx as per this explanation by Copilot - You can create indicator hashes to block executable files with the following extensions: .exe, .dll, and .sys. Additionally, Office files like .docx and .xlsx can also be blocked using indicator hashes. However, PDF files cannot be blocked using indicator hashes in Microsoft Defender for Endpoint1.
-
talosDevbot 👍 3 Answered AFile indicators only support Portable Execution (PE) files like exe, dll, sys
Show 8 more comments
-
1375514 👍 2 Answered Ahttps://learn.microsoft.com/en-us/defender-endpoint/indicator-file From Microsoft: "File indicators support portable executable (PE) files, including .exe and .dll files only." Only the .sys is a PE file, therefore it is the only file that can be blocked via file indicator.
-
b9cf0e5 👍 2Answer is D: Blocking .sys files could affect system functionality, and thus Defender for Endpoint does not allow blocking system-critical files.
-
Avaris 👍 1 Answered EI am gonna go with a whim and select E for one reason, I remember blocking all types of files including pdfs we block with hashes I think
-
Rodwhite 👍 1 Answered EI took the hash from (.pdf, sys, doc,) and each file and was able to upload successfully. Therefore, the answer is E.
-
arturro007 👍 1 Answered EQuestion is about hashes. You can add any hash to Defender and it will be blocked.
-
smanzana 👍 1E https://learn.microsoft.com/en-us/defender-endpoint/indicator-file
-
RonWonkers 👍 1 Answered EYou make get a hash for every file and block it.
-
ada26b1 👍 1 Answered ESurely you can block all of them
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SC-200 Questions
Access 80 questions with complete answers and detailed explanations.
View Full SC-200 Practice Test →