Does Defender for Endpoint support custom inline behavior blocking?
Asked by
MellowCedar42
I'm comparing Microsoft Defender for Endpoint with CrowdStrike's Indicators of Attack. Defender has custom detections, but I can't find a way to immediately block a behavior based on conditions such as: the process is python.exe, the command line contains C:Users, and the command line ends in .py. Are custom detections only intended to alert and respond after execution, or is there another Defender feature that can enforce this kind of rule at execution time?
Answers
Youโre not overlooking a hidden custom-detection setting. A custom detection normally evaluates telemetry and then performs a response action, so it isnโt the same as an inline execution block. In this case, the functional gap is real: CrowdStrike may provide that behavior-based prevention in one product workflow, while Microsoft splits detection, ASR, and application control across separate features. The practical test is to run the exact command and compare when execution stops versus when the alert appearsโif the alert comes after the process runs, you have detection rather than prevention.
Reply to this answer
Defender for Endpointโs detection engine and Windows application-control features solve different problems. ASR can block certain predefined behaviors, but it doesnโt let you freely define a condition combining the executable, path, and command-line suffix like this. WDAC or AppLocker are the usual enforcement options, although they may not express this exact rule in the way you need.
Reply to this answer
Advanced Hunting and custom detection rules are probably the closest match. You can write a KQL query and trigger actions when it finds a match, but that is generally detection and response after the eventโnot an inline prevention rule that stops Python from starting.
MellowCedar42: Thatโs the limitation Iโm running into. The rule can detect the activity, but it doesnโt prevent the process from executing in the first place.
Reply to this answer
Add your answer
Answers are reviewed before publication.
MellowCedar42: We already use both WDAC and AppLocker, but neither gives us the contextual command-line rule described above.