LiveActive security incident?Get immediate response
MITRE ATT&CK® Mitigation

M1040: Behavior Prevention on Endpoint

Behavior Prevention on Endpoint refers to the use of technologies and strategies to detect and block potentially malicious activities by analyzing the behavior of processes, files, API calls, and other endpoint events. Rather than relying solely on known signatures, this approach leverages heuristics, machine learning, and real-time monitoring to identify anomalous patterns indicative of an attack. This mitigation can be implemented through the following measures:

Suspicious Process Behavior:

- Implementation: Use Endpoint Detection and Response (EDR) tools to monitor and block processes exhibiting unusual behavior, such as privilege escalation attempts. - Use Case: An attacker uses a known vulnerability to spawn a privileged process from a user-level application. The endpoint tool detects the abnormal parent-child process relationship and blocks the action.

Unauthorized File Access:

- Implementation: Leverage Data Loss Prevention (DLP) or endpoint tools to block processes attempting to access sensitive files without proper authorization. - Use Case: A process tries to read or modify a sensitive file located in a restricted directory, such as /etc/shadow on Linux or the SAM registry hive on Windows. The endpoint tool identifies this anomalous behavior and prevents it.

Abnormal API Calls:

- Implementation: Implement runtime analysis tools to monitor API calls and block those associated with malicious activities. - Use Case: A process dynamically injects itself into another process to hijack its execution. The endpoint detects the abnormal use of APIs like `OpenProcess` and `WriteProcessMemory` and terminates the offending process.

Exploit Prevention:

- Implementation: Use behavioral exploit prevention tools to detect and block exploits attempting to gain unauthorized access. - Use Case: A buffer overflow exploit is launched against a vulnerable application. The endpoint detects the anomalous memory write operation and halts the process.

EnterpriseM1040MitigationObject v1.1Modified
Glexia's Take · Automated analysis

Security context for executives and security teams

Automation confidenceMedium

M1040: Behavior Prevention on Endpoint describes Behavior Prevention on Endpoint refers to the use of technologies and strategies to detect and block potentially malicious activities by analyzing the behavior of processes, files, API calls, and other endpoint events. Rather than relying solely on known signatures, this approach leverages heuristics, machine learning, and real-time monitoring to identify anomalous patterns indicative of an attack. This mitigation can be implemented through the following measures: Suspicious Process Behavior: - Implementation: Use ...

Executive priority

M1040: Behavior Prevention on Endpoint is an official MITRE ATT&CK mitigation. Glexia treats it as defensive behavior context for prioritizing monitoring, control validation, and response planning without using the object by itself as an attribution claim.

Technical view

Security teams should validate M1040: Behavior Prevention on Endpoint by reviewing the official ATT&CK relationships, mapped tactics (the mapped ATT&CK tactic context), supported platforms (the platforms named in the official object), and available local telemetry before making detection or mitigation decisions.

Likely telemetry

  • Official ATT&CK relationships and object metadata

Detection direction

  • Validate whether M1040: Behavior Prevention on Endpoint appears in your detection coverage and tabletop scenarios.
  • Use the object to align executive risk language with SOC, incident response, and detection engineering work.
  • Do not treat ATT&CK relationship context as attribution without corroborating evidence.

Mitigation priorities

  • Map the object to existing controls and identify missing telemetry or response ownership.
  • Prioritize mitigations that reduce exposure on the listed platforms and tactics.
  • Review adjacent ATT&CK relationships before changing policy, detections, or reporting language.
Additional notes and limits

Baseline Glexia take generated from the official MITRE ATT&CK STIX object, source hash, tactics, platforms, and detection fields. It is safe to replace with a richer model-generated take for the same source hash later.

This baseline take is source-grounded and schema-validated, but it does not include environment-specific telemetry, incident evidence, or threat-intelligence corroboration.

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Official MITRE ATT&CK definition

Behavior Prevention on Endpoint

Behavior Prevention on Endpoint refers to the use of technologies and strategies to detect and block potentially malicious activities by analyzing the behavior of processes, files, API calls, and other endpoint events. Rather than relying solely on known signatures, this approach leverages heuristics, machine learning, and real-time monitoring to identify anomalous patterns indicative of an attack. This mitigation can be implemented through the following measures:

Suspicious Process Behavior:

- Implementation: Use Endpoint Detection and Response (EDR) tools to monitor and block processes exhibiting unusual behavior, such as privilege escalation attempts. - Use Case: An attacker uses a known vulnerability to spawn a privileged process from a user-level application. The endpoint tool detects the abnormal parent-child process relationship and blocks the action.

Unauthorized File Access:

- Implementation: Leverage Data Loss Prevention (DLP) or endpoint tools to block processes attempting to access sensitive files without proper authorization. - Use Case: A process tries to read or modify a sensitive file located in a restricted directory, such as /etc/shadow on Linux or the SAM registry hive on Windows. The endpoint tool identifies this anomalous behavior and prevents it.

Abnormal API Calls:

- Implementation: Implement runtime analysis tools to monitor API calls and block those associated with malicious activities. - Use Case: A process dynamically injects itself into another process to hijack its execution. The endpoint detects the abnormal use of APIs like `OpenProcess` and `WriteProcessMemory` and terminates the offending process.

Exploit Prevention:

- Implementation: Use behavioral exploit prevention tools to detect and block exploits attempting to gain unauthorized access. - Use Case: A buffer overflow exploit is launched against a vulnerable application. The endpoint detects the anomalous memory write operation and halts the process.

View the same entry on attack.mitre.org (MITRE-hosted reference; in-page links above use the Glexia ATT&CK library.)

Glexia analysis

How security teams should use this page

Treat this object as behavior context, not an attribution claim. Validate the related groups, software, data sources, and mitigations against official ATT&CK relationships and your own telemetry before making control-coverage decisions.

ATT&CK relationship table

Techniques used

This mirrors the MITRE pattern of making group, software, campaign, and technique relationships scannable. Relationship notes come from mirrored ATT&CK relationship text when available.

51 rows
DomainIDNameRelationship / procedure
EnterpriseT1036.008Masquerade File TypeSub-technique

Implement security controls on the endpoint, such as a Host Intrusion Prevention System (HIPS), to identify and prevent execution of files with mismatching file signatures.

EnterpriseT1543.003Windows ServiceSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent an application from writing a signed vulnerable driver to the system.CitationMalicious Driver Reporting Center On Windows 10 and 11, enable Microsoft Vulnerable Driver Blocklist to assist in hardening against third party-developed service drivers.CitationMicrosoft driver block rules

EnterpriseT1055.002Portable Executable InjectionSub-technique

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process.

EnterpriseT1055.004Asynchronous Procedure CallSub-technique

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process.

EnterpriseT1027.014Polymorphic CodeSub-technique

On Windows 10+, enable Attack Surface Reduction (ASR) rules to prevent execution of potentially obfuscated payloads

EnterpriseT1137.006Add-insSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent Office applications from creating child processes and from writing potentially malicious executable content to disk. Citationwin10_asr

EnterpriseT1055.009Proc MemorySub-technique

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process.

EnterpriseT1027.010Command ObfuscationSub-technique

On Windows 10+, enable Attack Surface Reduction (ASR) rules to block execution of potentially obfuscated scripts.CitationMicrosoft ASR Obfuscation

EnterpriseT1055.012Process HollowingSub-technique

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process.

EnterpriseT1047Windows Management Instrumentation

On Windows 10, enable Attack Surface Reduction (ASR) rules to block processes created by WMI commands from running. Note: many legitimate tools and applications utilize WMI for command execution. Citationwin10_asr

EnterpriseT1059.007JavaScriptSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent JavaScript scripts from executing potentially malicious downloaded content Citationwin10_asr.

EnterpriseT1204User Execution

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent executable files from running unless they meet a prevalence, age, or trusted list criteria and to prevent Office applications from creating potentially malicious executable content by blocking malicious code from being written to disk. Note: cloud-delivered protection must be enabled to use certain rules. Citationwin10_asr

EnterpriseT1543Create or Modify System Process

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent an application from writing a signed vulnerable driver to the system.CitationMalicious Driver Reporting Center On Windows 10 and 11, enable Microsoft Vulnerable Driver Blocklist to assist in hardening against third party-developed drivers.CitationMicrosoft driver block rules

EnterpriseT1559.002Dynamic Data ExchangeSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent DDE attacks and spawning of child processes from Office programs.CitationMicrosoft ASR Nov 2017CitationEnigma Reviving DDE Jan 2018

EnterpriseT1574Hijack Execution Flow

Some endpoint security solutions can be configured to block some types of behaviors related to process injection/memory tampering based on common sequences of indicators (ex: execution of specific API functions).

EnterpriseT1569.002Service ExecutionSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to block processes created by PsExec from running. Citationwin10_asr

EnterpriseT1055.014VDSO HijackingSub-technique

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process.

EnterpriseT1055.013Process DoppelgängingSub-technique

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process.

EnterpriseT1216.001PubPrnSub-technique

On Windows 10, update Windows Defender Application Control policies to include rules that block the older, vulnerable versions of PubPrn.CitationMicrosoft_rec_block_rules

EnterpriseT1036Masquerading

Implement security controls on the endpoint, such as a Host Intrusion Prevention System (HIPS), to identify and prevent execution of potentially malicious files (such as those with mismatching file signatures).

EnterpriseT1055.003Thread Execution HijackingSub-technique

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process.

EnterpriseT1137.004Outlook Home PageSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent Office applications from creating child processes and from writing potentially malicious executable content to disk. Citationwin10_asr

EnterpriseT1137Office Application Startup

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent Office applications from creating child processes and from writing potentially malicious executable content to disk. Citationwin10_asr

EnterpriseT1091Replication Through Removable Media

On Windows 10, enable Attack Surface Reduction (ASR) rules to block unsigned/untrusted executable files (such as .exe, .dll, or .scr) from running from USB removable drives. Citationwin10_asr

EnterpriseT1137.001Office Template MacrosSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent Office applications from creating child processes and from writing potentially malicious executable content to disk. Citationwin10_asr

EnterpriseT1137.002Office TestSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent Office applications from creating child processes and from writing potentially malicious executable content to disk. Citationwin10_asr

EnterpriseT1574.013KernelCallbackTableSub-technique

Some endpoint security solutions can be configured to block some types of behaviors related to process injection/memory tampering based on common sequences of indicators (ex: execution of specific API functions).

EnterpriseT1059.005Visual BasicSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent Visual Basic scripts from executing potentially malicious downloaded content Citationwin10_asr.

EnterpriseT1055.011Extra Window Memory InjectionSub-technique

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process.

EnterpriseT1564.014Extended AttributesSub-technique

During artifact review, packaging, or deployment stages, scan extended attributes alongside file contents to detect hidden payloads, obfuscated data, or suspicious attribute keys that may indicate malicious behavior.

EnterpriseT1027.012LNK Icon SmugglingSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent execution of potentially obfuscated scripts or payloads.

EnterpriseT1486Data Encrypted for Impact

On Windows 10, enable cloud-delivered protection and Attack Surface Reduction (ASR) rules to block the execution of files that resemble ransomware.Citationwin10_asr In AWS environments, create an IAM policy to restrict or block the use of SSE-C on S3 buckets.CitationHalcyon AWS Ransomware 2025

EnterpriseT1137.005Outlook RulesSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent Office applications from creating child processes and from writing potentially malicious executable content to disk. Citationwin10_asr

EnterpriseT1204.002Malicious FileSub-technique

On Windows 10, various Attack Surface Reduction (ASR) rules can be enabled to prevent the execution of potentially malicious executable files (such as those that have been downloaded and executed by Office applications/scripting interpreters/email clients or that do not meet specific prevalence, age, or trusted list criteria). Note: cloud-delivered protection must be enabled for certain rules. Citationwin10_asr

EnterpriseT1055.008Ptrace System CallsSub-technique

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process.

EnterpriseT1106Native API

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent Office VBA macros from calling Win32 APIs. Citationwin10_asr

EnterpriseT1055Process Injection

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process. For example, on Windows 10, Attack Surface Reduction (ASR) rules may prevent Office applications from code injection. Citationwin10_asr

EnterpriseT1569System Services

On Windows 10, enable Attack Surface Reduction (ASR) rules to block processes created by PsExec from running. Citationwin10_asr

EnterpriseT1006Direct Volume Access

Some endpoint security solutions can be configured to block some types of behaviors related to efforts by an adversary to create backups, such as command execution or preventing API calls to backup related services.

EnterpriseT1559Inter-Process Communication

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent DDE attacks and spawning of child processes from Office programs.CitationMicrosoft ASR Nov 2017CitationEnigma Reviving DDE Jan 2018

EnterpriseT1027Obfuscated Files or Information

On Windows 10+, enable Attack Surface Reduction (ASR) rules to prevent execution of potentially obfuscated payloads. Citationwin10_asr

EnterpriseT1027.009Embedded PayloadsSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent execution of potentially obfuscated scripts.Citationwin10_asr

EnterpriseT1137.003Outlook FormsSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent Office applications from creating child processes and from writing potentially malicious executable content to disk. Citationwin10_asr

EnterpriseT1546.003Windows Management Instrumentation Event SubscriptionSub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent malware from abusing WMI to attain persistence.Citationwin10_asr

EnterpriseT1003.001LSASS MemorySub-technique

On Windows 10, enable Attack Surface Reduction (ASR) rules to secure LSASS and prevent credential stealing. Citationwin10_asr

EnterpriseT1059Command and Scripting Interpreter

On Windows 10, enable Attack Surface Reduction (ASR) rules to prevent Visual Basic and JavaScript scripts from executing potentially malicious downloaded content Citationwin10_asr.

EnterpriseT1055.005Thread Local StorageSub-technique

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process.

EnterpriseT1027.013Encrypted/Encoded FileSub-technique

On Windows 10+, enable Attack Surface Reduction (ASR) rules to block execution of potentially obfuscated scripts.CitationObfuscated scripts

Security tools should be configured to analyze the encoding properties of files and detect anomalies that deviate from standard encoding practices.

EnterpriseT1055.001Dynamic-link Library InjectionSub-technique

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process.

EnterpriseT1055.015ListPlantingSub-technique

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process.

EnterpriseT1003OS Credential Dumping

On Windows 10, enable Attack Surface Reduction (ASR) rules to secure LSASS and prevent credential stealing. Citationwin10_asr

Relationship explorer

All related ATT&CK context

Change history

Object version and sync metadata

The fields below describe the current mirrored snapshot. When Glexia retains multiple ATT&CK source imports, you can open the table to compare the same object across releases (hashes and MITRE timestamps). For MITRE’s own release notes and roadmap, see ATT&CK resources — Updates.

ATT&CK release
19.2
Object version
1.1
Created
Modified
Raw hash
d22d3c6d3233910c...
Imported snapshots across ATT&CK releases(2)
ReleaseBundle importedObject versionModifiedStatusRaw hash
19.21.1Current bundled22d3c6d3233…
19.11.1Older bundled22d3c6d3233…
Raw source

Mirrored ATT&CK source object

The raw object is retained through the mirrored ATT&CK source bundle and object hash. The raw endpoint returns the exact object from the mirrored bundle when available.

Source references

External references and citations

MITRE external references are preserved separately from Glexia analysis so citations remain traceable to their original source records.

  1. [1]
    mitre-attackM1040
    Open source URL
Source and licensing

Source: MITRE ATT&CK®. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. MITRE ATT&CK and ATT&CK are registered trademarks of The MITRE Corporation. Glexia is not affiliated with or endorsed by MITRE.