M1038 / CONTROL
Execution Prevention
Prevent the execution of unauthorized or malicious code on systems by implementing application control, script blocking, and other execution prevention mechanisms. This ensures that only trusted and authorized code is executed, reducing the risk of malware and unauthorized actions. This mitigation can be implemented through the following measures: Application Control: - Use Case: Use tools like AppLocker or Windows Defender Application Control (WDAC) to create whitelists of authorized applications and block unauthorized ones. On Linux, use tools like SELinux or AppArmor to define mandatory access control policies for application execution. - Implementation: Allow only digitally signed or pre-approved applications to execute on servers and endpoints. (e.g., `New-AppLockerPolicy -PolicyType Enforced -FilePath "C:\Policies\AppLocker.xml"`) Script Blocking: - Use Case: Use script control mechanisms to block unauthorized execution of scripts, such as PowerShell or JavaScript. Web Browsers: Use browser extensions or settings to block JavaScript execution from untrusted sources. - Implementation: Configure PowerShell to enforce Constrained Language Mode for non-administrator users. (e.g., `Set-ExecutionPolicy AllSigned`) Executable Blocking: - Use Case: Prevent execution of binaries from suspicious locations, such as `%TEMP%` or `%APPDATA%` directories. - Implementation: Block execution of `.exe`, `.bat`, or `.ps1` files from user-writable directories. Dynamic Analysis Prevention: - Use Case: Use behavior-based execution prevention tools to identify and block malicious activity […]
- Category
- Detection & response
- Version / scope
- ATT&CK Enterprise 20.1; object 1.3
- Affected / relevant technologies
- Enterprise systems
- Evidence
- Documentation: pinned-source excerpt checked. Execution: not tested. Editorial: curated reference.
Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.
Mechanism and prerequisites
Assess applicability to the documented environment and obtain authorization before any testing. This publisher reference is not a tested configuration or execution guide.
Potential impact
The publisher describes a mitigation or detection scope; applicability does not establish local protection or an incident.
Versioned source scope
This record contains normalized, sometimes shortened source excerpts with editorial safety context. Markup and executable example blocks are omitted. Source-field verification does not establish device testing, a working detector or local applicability.
Publisher: MITRE. Release: ATT&CK Enterprise 20.1. Source checked: 2026-11-18.
Source object: course-of-action--47e0e9fe-96ce-4f65-8bb1-8be1feacb5db. Object created: 2019-06-11T16:35:25.488Z. Object modified: 2026-05-12T15:12:00.730Z.
Attribution and source terms (© The MITRE Corporation; reproduced with permission)Detection and investigation
- See publisher detection strategy relationships where available; local detection coverage requires independent assessment.
Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.
Mitigation and response
- Prevent the execution of unauthorized or malicious code on systems by implementing application control, script blocking, and other execution prevention mechanisms. This ensures that only trusted and authorized code is executed, reducing the risk of malware and unauthorized actions. This mitigation can be implemented through the following measures: Application Control: - Use Case: Use tools like AppLocker or Windows Defender Application Control (WDAC) to create whitelists of authorized applications and block unauthorized ones. On Linux, use tools like SELinux or AppArmor to define mandatory access control policies for application execution. - Implementation: Allow only digitally signed or pre-approved applications to execute on servers and endpoints. (e.g., `New-AppLockerPolicy -PolicyType Enforced -FilePath "C:\Policies\AppLocker.xml"`) Script Blocking: - Use Case: Use script control mechanisms to block unauthorized execution of scripts, such as PowerShell or JavaScript. Web Browsers: Use browser extensions or settings to block JavaScript execution from untrusted sources. - Implementation: Configure PowerShell to enforce Constrained Language Mode for non-administrator users. (e.g., `Set-ExecutionPolicy AllSigned`) Executable Blocking: - Use Case: Prevent execution of binaries from suspicious locations, such as `%TEMP%` or `%APPDATA%` directories. - Implementation: Block execution of `.exe`, `.bat`, or `.ps1` files from user-writable directories. Dynamic Analysis Prevention: - Use Case: Use behavior-based execution prevention tools to identify and block malicious activity […]
Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.
Related technical context
No protocol-specific mapping is asserted for this entry.
Publisher-defined relationships
These directed relationships come from the pinned publisher data. They describe framework context, not guaranteed prevention, detection coverage or equivalence between entities.
- M1038 → mitigates → T1219.001: IDE Tunneling
- M1038 → mitigates → T1216.002: SyncAppvPublishingServer
- M1038 → mitigates → T1553.003: SIP and Trust Provider Hijacking
- M1038 → mitigates → T1059.010: AutoHotKey & AutoIT
- M1038 → mitigates → T1036.005: Match Legitimate Resource Name or Location
- M1038 → mitigates → T1574.008: Path Interception by Search Order Hijacking
- M1038 → mitigates → T1574.006: Dynamic Linker Hijacking
- M1038 → mitigates → T1546.002: Screensaver
- M1038 → mitigates → T1564.003: Hidden Window
- M1038 → mitigates → T1553: Subvert Trust Controls
- M1038 → mitigates → T1176.002: IDE Extensions
- M1038 → mitigates → T1218.005: Mshta
- M1038 → mitigates → T1059.005: Visual Basic
- M1038 → mitigates → T1218.004: InstallUtil
- M1038 → mitigates → T1204: User Execution
- M1038 → mitigates → T1574.001: DLL
- M1038 → mitigates → T1204.004: Malicious Copy and Paste
- M1038 → mitigates → T1685.007: Impair Autonomous Defenses
- M1038 → mitigates → T1129: Shared Modules
- M1038 → mitigates → T1218.009: Regsvcs/Regasm
- M1038 → mitigates → T1548: Abuse Elevation Control Mechanism
- M1038 → mitigates → T1548.004: Elevated Execution with Prompt
- M1038 → mitigates → T1611: Escape to Host
- M1038 → mitigates → T1216.001: PubPrn
- M1038 → mitigates → T1547.009: Shortcut Modification
- M1038 → mitigates → T1218.012: Verclsid
- M1038 → mitigates → T1106: Native API
- M1038 → mitigates → T1698: Indirect Prompt Injection
- M1038 → mitigates → T1127.003: JamPlus
- M1038 → mitigates → T1218.015: Electron Applications
- M1038 → mitigates → T1219: Remote Access Tools
- M1038 → mitigates → T1216: System Script Proxy Execution
- M1038 → mitigates → T1047: Windows Management Instrumentation
- M1038 → mitigates → T1674: Input Injection
- M1038 → mitigates → T1059.007: JavaScript
- M1038 → mitigates → T1204.002: Malicious File
- M1038 → mitigates → T1546.010: AppInit DLLs
- M1038 → mitigates → T1059.004: Unix Shell
- M1038 → mitigates → T1574: Hijack Execution Flow
- M1038 → mitigates → T1505.004: IIS Components
- M1038 → mitigates → T1547.004: Winlogon Helper DLL
- M1038 → mitigates → T1699: Direct Prompt Injection
- M1038 → mitigates → T1059.002: AppleScript
- M1038 → mitigates → T1553.001: Gatekeeper Bypass
- M1038 → mitigates → T1036.008: Masquerade File Type
- M1038 → mitigates → T1218.008: Odbcconf
- M1038 → mitigates → T1685: Disable or Modify Tools
- M1038 → mitigates → T1059: Command and Scripting Interpreter
- M1038 → mitigates → T1574.007: Path Interception by PATH Environment Variable
- M1038 → mitigates → T1127: Trusted Developer Utilities Proxy Execution
- M1038 → mitigates → T1490: Inhibit System Recovery
- M1038 → mitigates → T1059.008: Network Device CLI
- M1038 → mitigates → T1218: System Binary Proxy Execution
- M1038 → mitigates → T1218.002: Control Panel
- M1038 → mitigates → T1059.003: Windows Command Shell
- M1038 → mitigates → T1546.006: LC_LOAD_DYLIB Addition
- M1038 → mitigates → T1220: XSL Script Processing
- M1038 → mitigates → T1080: Taint Shared Content
- M1038 → mitigates → T1059.009: Cloud API
- M1038 → mitigates → T1547.006: Kernel Modules and Extensions
- M1038 → mitigates → T1574.009: Path Interception by Unquoted Path
- M1038 → mitigates → T1059.006: Python
- M1038 → mitigates → T1059.013: Container CLI/API
- M1038 → mitigates → T1059.011: Lua
- M1038 → mitigates → T1127.001: MSBuild
- M1038 → mitigates → T1574.012: COR_PROFILER
- M1038 → mitigates → T1546.008: Accessibility Features
- M1038 → mitigates → T1546.009: AppCert DLLs
- M1038 → mitigates → T1176: Software Extensions
- M1038 → mitigates → T1068: Exploitation for Privilege Escalation
- M1038 → mitigates → T1176.001: Browser Extensions
- M1038 → mitigates → T1553.005: Mark-of-the-Web Bypass
- M1038 → mitigates → T1218.003: CMSTP
- M1038 → mitigates → T1219.002: Remote Desktop Software
- M1038 → mitigates → T1036: Masquerading
- M1038 → mitigates → T1218.014: MMC
- M1038 → mitigates → T1218.001: Compiled HTML File
- M1038 → mitigates → T1218.013: Mavinject
- M1038 → mitigates → T1564.006: Run Virtual Instance
- M1038 → mitigates → T1609: Container Administration Command
- M1038 → mitigates → T1685.003: Modify or Spoof Tool UI
- M1038 → mitigates → T1059.001: PowerShell
Authoritative sources and attribution
Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Source excerpts are attributed and adapted under the linked publisher license; editorial context is separate. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.
- https://attack.mitre.org/mitigations/M1038 — Publisher link; not separately HTTP-checked
- enterprise — source accessed 2026-11-18
Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.
