Defender for Endpoint File Hash Indicators: PE Files Only

SC-200 By islever Editorial Last updated

Short answer

A Only File1.sys is a portable executable (PE) file, so Defender for Endpoint file-hash indicators can block it, while File2.pdf, File3.docx, and File4.xlsx cannot be blocked with indicator hashes.

Question

You have a Microsoft 365 subscription that uses Microsoft Defender for Endpoint Plan 2 and contains 500 Windows devices.
As part of an incident investigation, you identify the following suspected malware files:
• sys
• pdf
• docx
• xlsx
You need to create indicator hashes to block users from downloading the files to the devices.
Which files can you block by using the indicator hashes?
  1. File1.sys only Correct Answer
  2. File1.sys and File3.docx only
  3. File1.sys, File3.docx, and File4.xlsx only
  4. File2.pdf, File3.docx, and File4.xlsx only
  5. File1.sys, File2.pdf, File3.docx, and File4.xlsx

Key Takeaways

The exam tests whether you know file-hash indicators in Defender for Endpoint are limited to PE files; the trap is assuming any hashed document can be blocked.

This SC-200 question tests the scope of Microsoft Defender for Endpoint file indicator hashes. Only File1.sys is a supported portable executable, so the answer is A.

Common mistake: Choosing E because hashes are extension-agnostic; a hash exists for every file, but MDE file indicators only enforce on PE files, so PDF, DOCX, and XLSX cannot be blocked this way.

Expert Analysis

The boundary is PE versus non-PE

The scenario asks you to create indicator hashes in Microsoft Defender for Endpoint, not to use every possible incident-response action. Microsoft's file-indicator documentation limits custom file indicators to portable executable (PE) files. Among the listed files, File1.sys is the only PE-format file; File2.pdf, File3.docx, and File4.xlsx are non-PE documents. That makes A correct, not E.

Why the hash-agnostic argument fails

A recurring argument is that a SHA-1 or SHA-256 hash is filename- and extension-agnostic, so any file could match. The hash value itself is indeed independent of the name, but Defender for Endpoint's file-indicator feature is scoped to supported PE file types. The extension is not the matching key; it determines whether this indicator type can be enforced at all. Community notes point back to Microsoft's "indicator-file" documentation and note that file indicators support PE files such as.exe and.dll, while another note cites broader "block and remediate" behavior. The question's wording, "create indicator hashes," keeps us in the custom-indicator workflow, so the PE limitation controls.

Do not blend in response actions

Defender's incident response actions can act on files observed during investigation, which can feel broader than a preconfigured hash indicator. Here, the requirement is specifically to block downloads by creating indicator hashes. Only File1.sys qualifies from the supplied list; PDF, DOCX, and XLSX require a different control. Therefore, the answer is A.

Official Reference

https://learn.microsoft.com/en-us/defender-endpoint/indicator-file

This link opens the official vendor documentation in a new tab.

Exam Strategy

When a question asks what Defender for Endpoint file indicators can block, classify each extension first: treat .exe, .dll, .sys, and other PE formats as supported, and treat .pdf, .docx, and .xlsx as unsupported. Ignore hash-agnostic reasoning unless the question asks about a response action rather than a custom indicator. Then select the option that includes only PE files.

Frequently Asked Questions

Can Microsoft Defender for Endpoint block a PDF or Office file by using a file-hash indicator?

No. File indicators support portable executable (PE) files, so File2.pdf, File3.docx, and File4.xlsx are outside that scope; use other controls for non-PE content.

Why is File1.sys blockable when the documentation examples mention .exe and .dll?

A .sys driver is a PE-format file. In the SC-200 scenario, it is treated as supported by file indicators, while PDF and Office documents are not.

Does 'Block and remediate' allow blocking any file hash?

It is not the same as a preconfigured file indicator. 'Block and remediate' is an incident response action; file-indicator creation is limited to supported PE file types.

More SC-200 FAQ →

Community Votes

E
47%
A
35%
C
12%
B
6%

47% of anonymous learners picked answer E. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 26 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 26

  1. liveup2it 👍 21 Answered E
    Based on File hashes, you should be able to block each and every file with this hash, regardless the name of the file.
  2. Hawklx 👍 10 Answered A
    This 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
  3. g_man_rap 👍 6 Answered A
    Key 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.
  4. Feredi 👍 5 Answered A
    According to Microsoft Defender for Endpoint documentation, you can block files based on hash only if they are executable. This typically includes: .exe, .dll, .sys, .msi, .scr, .drv, .com
  5. phoenix5 👍 3
    Answer - 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.
Show 21 more comments
  1. 1375514 👍 3 Answered A
    https://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.
  2. Syncure 👍 3
    Portable Executable(PE) include: .exe .dll .sys .ocx .cpl .scr The answer es A at the moment, I don't see Office 365 files supports in the MD for Endpoint V2 in this feature
  3. Tuitor01 👍 2
    I second this...adding though that M$ doesn't recommend using hash based IOC since they can change in a blink of an eye but use App control instead (side note), so Answer E, undoubtedly since a hash is file name and extension agnostic.
  4. Krayzr 👍 2
    However, given this straight forward link. It should be A: https://learn.microsoft.com/en-us/defender-endpoint/indicator-file#windows-prerequisites
  5. b9cf0e5 👍 2
    Answer is D: Blocking .sys files could affect system functionality, and thus Defender for Endpoint does not allow blocking system-critical files.
  6. 4420964 👍 2 Answered C
    Hash blocking works only for executables and macro-based documents. So the answer is C
  7. talosDevbot 👍 2 Answered A
    File indicators only support Portable Execution (PE) files like exe, dll, sys
  8. RonWonkers 👍 2 Answered E
    You make get a hash for every file and block it.
  9. KAMOMILED 👍 2 Answered E
    13 Sep 2025 TEST
  10. Krayzr 👍 1
    Are There Limitations? Could there be restrictions based on file type or extension? In some security contexts, blocking might focus on execution (e.g., for .exe or .sys) rather than file access. However, Microsoft Defender for Endpoint’s "Block and remediate" action is designed to prevent file operations broadly—reading, writing, or executing—based on hash matches. Documentation and practical use cases confirm that this applies to all file types, including documents like .pdf, .docx, and .xlsx, not just executables. There’s no indication in Plan 2 that certain file extensions are excluded from hash-based blocking.
  11. neogeek87 👍 1 Answered E
    A file indicator is based on the file’s SHA-1 or SHA-256 hash, not the filename extension. Therefore, Defender can block each specific file represented by a valid hash, including .sys, .pdf, .docx, and .xlsx. Correct answer E. File1.sys, File2.pdf, File3.docx, and File4.xlsx The “portable executable” wording in Microsoft’s documentation describes a common scenario, but it should not have been used to exclude document files from hash-based blocking. Create indicators for files documents creating file indicators using file hashes.
  12. The1BelowAll 👍 1 Answered B
    Microsoft Defender for Endpoint Plan 2 supports blocking executable files like: .exe .dll .sys (driver files) It also supports blocking Office files like: .docx .xlsx
  13. Avaris 👍 1 Answered E
    I 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
  14. QzLP2P 👍 1 Answered C
    You cannot block pdf https://learn.microsoft.com/en-us/defender-endpoint/indicator-ip-domain?view=o365-worldwide#limitations
  15. Rodwhite 👍 1 Answered E
    I took the hash from (.pdf, sys, doc,) and each file and was able to upload successfully. Therefore, the answer is E.
  16. rvln7 👍 1 Answered A
    Microsoft Defender for Endpoint indicator hashes can only block executable files. .exe .dll .sys .scr
  17. shdwktn 👍 1
    by this logic and the link you provided. .sys files are not even stated. Maybe I misunderstood
  18. Krayzr 👍 1
    https://learn.microsoft.com/en-us/defender-endpoint/indicator-file#windows-prerequisites
  19. arturro007 👍 1 Answered E
    Question is about hashes. You can add any hash to Defender and it will be blocked.
  20. smanzana 👍 1
    E https://learn.microsoft.com/en-us/defender-endpoint/indicator-file
  21. ada26b1 👍 1 Answered E
    Surely you can block all of them

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All SC-200 Questions

Access 80 questions with complete answers and detailed explanations.

View Full SC-200 Practice Test →

← Back to SC-200 Study Guide