Gold Open Source
ExplorePackagesVulnerabilitiesCWEsMCP ServersScan
Login
Gold Open Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security, malware, and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Certified Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard
Home/ATT&CK/T1204/T1204.002
MITRE ATT&CK Sub-Technique

T1204.002: Malicious File

ShareXLinkedInRedditHN

An adversary may rely upon a user opening a malicious file in order to gain execution. Users may be subjected to social engineering to get them to open a file that will lead to code execution. This user action will typically be observed as follow-on behavior from [Spearphishing Attachment](https://attack.mitre.org/techniques/T1566/001). Adversaries may use several types of files that require a user to execute them, including .doc, .pdf, .xls, .rtf, .scr, .exe, .lnk, .pif, .cpl, .reg, and .iso.(Citation: Mandiant Trojanized Windows 10) Adversaries may employ various forms of [Masquerading](https://attack.mitre.org/techniques/T1036) and [Obfuscated Files or Information](https://attack.mitre.org/techniques/T1027) to increase the likelihood that a user will open and successfully execute a malicious file. These methods may include using a familiar naming convention and/or password protecting the file and supplying instructions to a user on how to open it.(Citation: Password Protected Word Docs) While [Malicious File](https://attack.mitre.org/techniques/T1204/002) frequently occurs shortly after Initial Access it may occur at other phases of an intrusion, such as when an adversary places a file in a shared directory or on a user's desktop hoping that a user will click on it. This activity may also be seen shortly after [Internal Spearphishing](https://attack.mitre.org/techniques/T1534).

Tactics
Execution
Platforms
Linux, macOS, Windows

▪Parent technique

T1204: User Execution

▪Mitigations (3)

M1038Execution 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 in real time. - Implemenation: Employ EDR solutions that analyze runtime behavior and block suspicious code execution.

M1040Behavior 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.

M1017User Training

User Training involves educating employees and contractors on recognizing, reporting, and preventing cyber threats that rely on human interaction, such as phishing, social engineering, and other manipulative techniques. Comprehensive training programs create a human firewall by empowering users to be an active component of the organization's cybersecurity defenses. This mitigation can be implemented through the following measures: Create Comprehensive Training Programs: - Design training modules tailored to the organization's risk profile, covering topics such as phishing, password management, and incident reporting. - Provide role-specific training for high-risk employees, such as helpdesk staff or executives. Use Simulated Exercises: - Conduct phishing simulations to measure user susceptibility and provide targeted follow-up training. - Run social engineering drills to evaluate employee responses and reinforce protocols. Leverage Gamification and Engagement: - Introduce interactive learning methods such as quizzes, gamified challenges, and rewards for successful detection and reporting of threats. Incorporate Security Policies into Onboarding: - Include cybersecurity training as part of the onboarding process for new employees. - Provide easy-to-understand materials outlining acceptable use policies and reporting procedures. Regular Refresher Courses: - Update training materials to include emerging threats and techniques used by adversaries. - Ensure all employees complete periodic refresher courses to stay informed. Emphasize Real-World Scenarios: - Use case studies of recent attacks to demonstrate the consequences of successful phishing or social engineering. - Discuss how specific employee actions can prevent or mitigate such attacks.

▪Used by groups (86)

G0005APT12G0007APT28G0012DarkhotelG0013APT30G0016APT29G0018admin@338G0019NaikonG0021MoleratsG0027Threat Group-3390G0032Lazarus GroupG0034Sandworm TeamG0035DragonflyG0037FIN6G0040PatchworkG0045menuPassG0046FIN7G0047Gamaredon GroupG0048RTMG0049OilRigG0050APT32G0056PROMETHIUMG0059Magic HoundG0060BRONZE BUTLERG0061FIN8G0062TA459G0064APT33G0065LeviathanG0066ElderwoodG0067APT37G0068PLATINUMG0069MuddyWaterG0070Dark CaracalG0073APT19G0075RancorG0078Gorgon GroupG0079DarkHydrusG0080Cobalt GroupG0081Tropic TrooperG0082APT38G0084GallmakerG0085FIN4G0087APT39G0089The White CompanyG0090WIRTEG0091SilenceG0092TA505G0094KimsukyG0095MacheteG0098BlackTechG0099APT-C-36G0100InceptionG0102Wizard SpiderG0103MofangG0107WhiteflyG0112WindshiftG0119Indrik SpiderG0121SidewinderG0126HigaisaG0127TA551G0129Mustang PandaG0130Ajax Security TeamG0131Tonto TeamG0133Nomadic OctopusG0134Transparent TribeG0136IndigoZebraG0137Ferocious KittenG0138AndarielG0140LazyScripterG0142ConfuciusG1001HEXANEG1002BITTERG1006Earth LuscaG1007Aoqin DragonG1008SideCopyG1011EXOTIC LILYG1012CURIUMG1018TA2541G1026MalteiroG1031Saint BearG1033Star BlizzardG1036Moonstone SleetG1039RedCurlG1046Storm-1811G1052Contagious InterviewG1054MirrorFaceG1055VOID MANTICORE

▪Software using this technique (98)

S0011TaidoormalwareS0013PlugXmalwareS0148RTMmalwareS0198NETWIREmalwareS0234BandookmalwareS0240ROKRATmalwareS0260InvisiMolemalwareS0263TYPEFRAMEmalwareS0266TrickBotmalwareS0268BisonalmalwareS0331Agent TeslamalwareS0332RemcostoolS0340OctopusmalwareS0348Cardinal RATmalwareS0356KONNImalwareS0367EmotetmalwareS0373AstarothmalwareS0384DridexmalwareS0389JCrymalwareS0390SQLRatmalwareS0402OSX/ShlayermalwareS0428PoetRATmalwareS0433RifdoormalwareS0435PLEADmalwareS0447LokibotmalwareS0453PonymalwareS0455MetamorfomalwareS0458RamsaymalwareS0464SYSCONmalwareS0465CARROTBALLtoolS0476ValakmalwareS0482BundloremalwareS0483IcedIDmalwareS0491StrongPitymalwareS0496REvilmalwareS0499HancitormalwareS0520BLINDINGCANmalwareS0526KGH_SPYmalwareS0527CSPY DownloadertoolS0528JavalimalwareS0531GrandoreiromalwareS0561GuLoadermalwareS0584AppleJeusmalwareS0585KerrdownmalwareS0606Bad RabbitmalwareS0622AppleSeedmalwareS0631ChaesmalwareS0634EnvyScoutmalwareS0635BoomBoxmalwareS0637NativeZonemalwareS0642BADFLICKmalwareS0648JSS LoadermalwareS0650QakBotmalwareS0660ClamblingmalwareS0665ThreatNeedlemalwareS0669KOCTOPUSmalwareS0670WarzoneRATmalwareS0696FlagpromalwareS1013ZxxZmalwareS1014DanBotmalwareS1017OutSteelmalwareS1018Saint BotmalwareS1021DnsSystemmalwareS1026MongallmalwareS1027Heyoka BackdoormalwareS1030SquirrelwafflemalwareS1037STARWHALEmalwareS1039BumblebeemalwareS1042SUGARDUMPmalwareS1063Brute Ratel C4toolS1064SVCReadymalwareS1065Woody RATmalwareS1066DarkTortillamalwareS1070Black BastamalwareS1075KOPILUWAKmalwareS1086Snip3malwareS1087AsyncRATtoolS1088DiscomalwareS1100NinjamalwareS1111DarkGatemalwareS1122MispadumalwareS1142LunarMailmalwareS1160LatrodectusmalwareS1169MangomalwareS1183StrelaStealermalwareS1213Lumma StealermalwareS1229HavocmalwareS1230HIUPANmalwareS1236CLAIMLOADERmalwareS1238STATICPLUGINmalwareS1240RedLine StealermalwareS1242QilinmalwareS1246BeaverTailmalwareS9020LODEINFOmalwareS9026ROAMINGHOUSEmalwareS9031AshTagmalwareS9035LAMEHUGmalwareS9037RustyWatermalware

▪Reference

T1204.002on MITRE ATT&CK

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation.