MITRE ATT&CKmitigation
M1038 Execution Prevention
- Domain
- enterprise
- Version
- 1.3
- Created
- 2019-06-11
Description
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 in real time.
• Implemenation: Employ EDR solutions that analyze runtime behavior and block suspicious code execution.
Related
Mitigates · MITRE ATT&CK (82)
- T1685.007 Impair Autonomous Defenses sub-technique
- T1698 Indirect Prompt Injection technique
- T1699 Direct Prompt Injection technique
- T1685 Disable or Modify Tools technique
- T1685.003 Modify or Spoof Tool UI sub-technique
- T1059.013 Container CLI/API sub-technique
- T1176.001 Browser Extensions sub-technique
- T1176.002 IDE Extensions sub-technique
- T1674 Input Injection technique
- T1219.002 Remote Desktop Software sub-technique
- T1127.003 JamPlus sub-technique
- T1219.001 IDE Tunneling sub-technique
- T1204.004 Malicious Copy and Paste sub-technique
- T1059.011 Lua sub-technique
- T1059.010 AutoHotKey & AutoIT sub-technique
- T1218.015 Electron Applications sub-technique
- T1216.002 SyncAppvPublishingServer sub-technique
- T1036.008 Masquerade File Type sub-technique
- T1059.009 Cloud API sub-technique
- T1218.014 MMC sub-technique
- T1218.013 Mavinject sub-technique
- T1505.004 IIS Components sub-technique
- T1611 Escape to Host technique
- T1609 Container Administration Command technique
- T1553.005 Mark-of-the-Web Bypass sub-technique
- T1059.008 Network Device CLI sub-technique
- T1218.012 Verclsid sub-technique
- T1564.006 Run Virtual Instance sub-technique
- T1574.012 COR_PROFILER sub-technique
- T1059.007 JavaScript sub-technique