How to Immediately Block a File Hash Organization-Wide with IOCs in MDE
A security analyst identifies a malicious file hash on one endpoint. They need to ensure that file is blocked from executing on all other endpoints in the organization immediately. Which Microsoft Defender for Endpoint feature should be used?
Quick Answer
The correct answer is Indicators of compromise (IOCs). This feature allows a security analyst to block a file hash across all endpoints immediately in Microsoft Defender for Endpoint by creating a custom indicator with an “Alert and Block” action, which enforces the block in near real-time on every managed device without relying on signature updates. On the MS-102 exam, this scenario tests your understanding of how IOCs provide rapid, organization-wide threat response, often appearing as a distractor against options like automated investigation or ASR rules. A common trap is confusing IOCs with threat intelligence feeds—remember that IOCs are custom, analyst-created blocks, while feeds are pre-built. Memory tip: IOC stands for “I O-Create” the block, putting you in control of the immediate response.
⚠ Common exam trap
Many exam-takers confuse 'Indicators of compromise (IOCs)' with 'Custom detection rules,' because both involve custom definitions, but IOCs are for immediate blocking of known artifacts while custom detection rules are for behavioral detection over time.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Indicators of compromise (IOCs)
Indicators of compromise (IOCs) in Microsoft Defender for Endpoint allow security analysts to create custom indicators (e.g., file hashes, IPs, URLs) that are enforced across all endpoints in near real-time. By adding the malicious file hash as an IOC with an 'Alert and Block' action, the file is immediately prevented from executing on any managed device, providing a rapid, organization-wide block without waiting for signature updates.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Indicators of compromise (IOCs)
Why this is correct
IOCs allow creating custom policy to block file hashes across all endpoints.
- ✗
Attack surface reduction rules
Why it's wrong here
These rules block behaviors (e.g., Office apps creating child processes), not specific file hashes.
- ✗
Automated investigation and response
Why it's wrong here
AIR automates response to alerts but does not provide a method to block arbitrary file hashes globally.
- ✗
Custom detection rules
Why it's wrong here
Custom detection rules use advanced hunting queries for alerts, not for blocking execution.
Go deeper
Related to this question
About these practice questions
This MS-102 question is part of Courseiva's 241-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
2 more ways this is tested on MS-102
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A security analyst has identified a new malware sample with SHA256 hash 'abc123...'. They need to immediately block this file from executing on any managed endpoint across the organization. Which Microsoft Defender for Endpoint capability should they use?
hard- A.Attack surface reduction rules
- ✓ B.Indicators (IoC)
- C.Automated investigation and response
- D.Threat analytics
Why B: Indicators of Compromise (IoC) in Microsoft Defender for Endpoint allow security analysts to create custom indicators (such as file hashes, IPs, or URLs) that are immediately enforced across all managed endpoints. This capability enables blocking execution of a specific SHA256 hash at the kernel level via the Microsoft Defender Antivirus driver, providing near-instant protection without requiring a signature update or policy change.
Variation 2. A security analyst has identified a new malware sample with a specific SHA256 hash. The analyst needs to immediately block this file from executing on any managed endpoint across the organization, including prevention of future execution. Which Microsoft Defender for Endpoint capability should the analyst use?
medium- A.Attack surface reduction (ASR) rules
- ✓ B.Indicators (IoCs) for file hashes
- C.Custom detection rules via advanced hunting
- D.Microsoft Defender Vulnerability Management
Why B: Indicators of Compromise (IoCs) for file hashes in Microsoft Defender for Endpoint allow an analyst to create a block indicator for a specific SHA256 hash. This action immediately prevents the file from executing on any managed endpoint and persists across reboots, effectively blocking future execution attempts. Unlike other capabilities, IoCs provide a direct, hash-based block that is enforced by the Microsoft Defender Antivirus engine at the point of execution.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This MS-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MS-102 exam.