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/T1027/T1027.013
MITRE ATT&CK Sub-Technique

T1027.013: Encrypted/Encoded File

ShareXLinkedInRedditHN

Adversaries may encrypt or encode files to obfuscate strings, bytes, and other specific patterns to impede detection. Encrypting and/or encoding file content aims to conceal malicious artifacts within a file used in an intrusion. Many other techniques, such as [Software Packing](https://attack.mitre.org/techniques/T1027/002), [Steganography](https://attack.mitre.org/techniques/T1027/003), and [Embedded Payloads](https://attack.mitre.org/techniques/T1027/009), share this same broad objective. Encrypting and/or encoding files could lead to a lapse in detection of static signatures, only for this malicious content to be revealed (i.e., [Deobfuscate/Decode Files or Information](https://attack.mitre.org/techniques/T1140)) at the time of execution/use. This type of file obfuscation can be applied to many file artifacts present on victim hosts, such as malware log/configuration and payload files.(Citation: File obfuscation) Files can be encrypted with a hardcoded or user-supplied key, as well as otherwise obfuscated using standard encoding schemes such as Base64. The entire content of a file may be obfuscated, or just specific functions or values (such as C2 addresses). Encryption and encoding may also be applied in redundant layers for additional protection. For example, adversaries may abuse password-protected Word documents or self-extracting (SFX) archives as a method of encrypting/encoding a file such as a [Phishing](https://attack.mitre.org/techniques/T1566) payload. These files typically function by attaching the intended archived content to a decompressor stub that is executed when the file is invoked (e.g., [User Execution](https://attack.mitre.org/techniques/T1204)).(Citation: SFX - Encrypted/Encoded File) Adversaries may also abuse file-specific as well as custom encoding schemes. For example, Byte Order Mark (BOM) headers in text files may be abused to manipulate and obfuscate file content until [Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059) execution.

Tactics
Stealth
Platforms
Linux, macOS, Windows

▪Parent technique

T1027: Obfuscated Files or Information

▪Mitigations (2)

M1049Antivirus/Antimalware

Antivirus/Antimalware solutions utilize signatures, heuristics, and behavioral analysis to detect, block, and remediate malicious software, including viruses, trojans, ransomware, and spyware. These solutions continuously monitor endpoints and systems for known malicious patterns and suspicious behaviors that indicate compromise. Antivirus/Antimalware software should be deployed across all devices, with automated updates to ensure protection against the latest threats. This mitigation can be implemented through the following measures: Signature-Based Detection: - Implementation: Use predefined signatures to identify known malware based on unique patterns such as file hashes, byte sequences, or command-line arguments. This method is effective against known threats. - Use Case: When malware like "Emotet" is detected, its signature (such as a specific file hash) matches a known database of malicious software, triggering an alert and allowing immediate quarantine of the infected file. Heuristic-Based Detection: - Implementation: Deploy heuristic algorithms that analyze behavior and characteristics of files and processes to identify potential malware, even if it doesn’t match a known signature. - Use Case: If a program attempts to modify multiple critical system files or initiate suspicious network communications, heuristic analysis may flag it as potentially malicious, even if no specific malware signature is available. Behavioral Detection (Behavior Prevention): - Implementation: Use behavioral analysis to detect patterns of abnormal activities, such as unusual system calls, unauthorized file encryption, or attempts to escalate privileges. - Use Case: Behavioral analysis can detect ransomware attacks early by identifying behavior like mass file encryption, even before a specific ransomware signature has been identified. Real-Time Scanning: - Implementation: Enable real-time scanning to automatically inspect files and network traffic for signs of malware as they are accessed, downloaded, or executed. - Use Case: When a user downloads an email attachment, the antivirus solution scans the file in real-time, checking it against both signatures and heuristics to detect any malicious content before it can be opened. Cloud-Assisted Threat Intelligence: - Implementation: Use cloud-based threat intelligence to ensure the antivirus solution can access the latest malware definitions and real-time threat feeds from a global database of emerging threats. - Use Case: Cloud-assisted antivirus solutions quickly identify newly discovered malware by cross-referencing against global threat databases, providing real-time protection against zero-day attacks. **Tools for Implementation**: - Endpoint Security Platforms: Use solutions such as EDR for comprehensive antivirus/antimalware protection across all systems. - Centralized Management: Implement centralized antivirus management consoles that provide visibility into threat activity, enable policy enforcement, and automate updates. - Behavioral Analysis Tools: Leverage solutions with advanced behavioral analysis capabilities to detect malicious activity patterns that don’t rely on known signatures.

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.

▪Used by groups (40)

G0007APT28G0012DarkhotelG0024Putter PandaG0026APT18G0027Threat Group-3390G0032Lazarus GroupG0043Group5G0045menuPassG0049OilRigG0050APT32G0059Magic HoundG0064APT33G0065LeviathanG0066ElderwoodG0070Dark CaracalG0073APT19G0081Tropic TrooperG0087APT39G0092TA505G0094KimsukyG0099APT-C-36G0100InceptionG0103MofangG0107WhiteflyG0108Blue MockingbirdG0117Fox KittenG0121SidewinderG0126HigaisaG0134Transparent TribeG0139TeamTNTG1002BITTERG1009Moses StaffG1013MetadorG1018TA2541G1026MalteiroG1031Saint BearG1036Moonstone SleetG1046Storm-1811G1052Contagious InterviewG1054MirrorFace

▪Software using this technique (193)

S0011TaidoormalwareS0013PlugXmalwareS0022UroburosmalwareS0044JHUHUGITmalwareS0046CozyCarmalwareS0074SakulamalwareS0081ElisemalwareS0082EmissarymalwareS0087Hi-ZormalwareS0113PrikormkamalwareS0125RemsecmalwareS0131TINYTYPHONmalwareS0136USBStealermalwareS0141Winnti for WindowsmalwareS0153RedLeavesmalwareS0168GazermalwareS0170HelminthmalwareS0172ReavermalwareS0180VolgmermalwareS0213DOGCALLmalwareS0226Smoke LoadermalwareS0228NanHaiShumalwareS0230ZeroTmalwareS0232HOMEFRYmalwareS0236KwampirsmalwareS0237GravityRATmalwareS0256MosquitomalwareS0257VERMINmalwareS0263TYPEFRAMEmalwareS0266TrickBotmalwareS0267FELIXROOTmalwareS0268BisonalmalwareS0284More_eggsmalwareS0330Zeus PandamalwareS0332RemcostoolS0339MicropsiamalwareS0342GreyEnergymalwareS0345SeasaltmalwareS0347AuditCredmalwareS0348Cardinal RATmalwareS0352OSX_OCEANLOTUS.DmalwareS0356KONNImalwareS0367EmotetmalwareS0370SamSammalwareS0373AstarothmalwareS0374SpeakUpmalwareS0375RemeximalwareS0380StoneDrillmalwareS0383FlawedGracemalwareS0385njRATmalwareS0386UrsnifmalwareS0387KeyBoymalwareS0388YAHOYAHmalwareS0391HAWKBALLmalwareS0394HiddenWaspmalwareS0395LightNeuronmalwareS0398HyperBromalwareS0401Exaramel for LinuxmalwareS0410FysbismalwareS0415BOOSTWRITEmalwareS0430Winnti for LinuxmalwareS0431HotCroissantmalwareS0433RifdoormalwareS0438AttormalwareS0448Rising SunmalwareS0451LoudMinermalwareS0455MetamorfomalwareS0456Aria-bodymalwareS0462CARROTBATmalwareS0466WindTailmalwareS0468SkidmapmalwareS0473AvengermalwareS0483IcedIDmalwareS0484CarberpmalwareS0487KesselmalwareS0491StrongPitymalwareS0493GoldenSpymalwareS0496REvilmalwareS0497DaclsmalwareS0501PipeMonmalwareS0520BLINDINGCANmalwareS0526KGH_SPYmalwareS0531GrandoreiromalwareS0534BazarmalwareS0565RaindropmalwareS0570BitPaymermalwareS0574BendyBearmalwareS0578SUPERNOVAmalwareS0579WaterbearmalwareS0581IronNetInjectortoolS0585KerrdownmalwareS0587PenquinmalwareS0588GoldMaxmalwareS0601HildegardmalwareS0603StuxnetmalwareS0612WastedLockermalwareS0613PS1malwareS0618FIVEHANDSmalwareS0629RainyDaymalwareS0633SlivertoolS0634EnvyScoutmalwareS0657BLUELIGHTmalwareS0658XCSSETmalwareS0661FoggyWebmalwareS0663SysUpdatemalwareS0665ThreatNeedlemalwareS0667ChrommmemalwareS0672ZoxmalwareS0678TorismamalwareS0689WhisperGatemalwareS0695DonuttoolS0698HermeticWizardmalwareS1013ZxxZmalwareS1014DanBotmalwareS1015MilanmalwareS1019SharkmalwareS1020KevinmalwareS1027Heyoka BackdoormalwareS1030SquirrelwafflemalwareS1032PyDCryptmalwareS1033DCSrvmalwareS1037STARWHALEmalwareS1041ChinoxymalwareS1044FunnyDreammalwareS1050PcSharetoolS1051KEYPLUGmalwareS1052DEADEYEmalwareS1059metaMainmalwareS1060MafaldamalwareS1065Woody RATmalwareS1100NinjamalwareS1111DarkGatemalwareS1113RAPIDPULSEmalwareS1122MispadumalwareS1124SocGholishmalwareS1132IPsec HelpermalwareS1134DEADWOODmalwareS1141LunarWebmalwareS1142LunarMailmalwareS1148Raccoon StealermalwareS1150ROADSWEEPmalwareS1153Cuckoo StealermalwareS1154VersaMemmalwareS1158DUSTPANmalwareS1159DUSTTRAPmalwareS1160LatrodectusmalwareS1164UPSTYLEmalwareS1169MangomalwareS1180BlackByte RansomwaremalwareS1182MagicRATmalwareS1183StrelaStealermalwareS1185LightSpymalwareS1190KapekamalwareS1200StealBitmalwareS1202LockBit 3.0malwareS1207XLoadermalwareS1210SagerunexmalwareS1212RansomHubmalwareS1213Lumma StealermalwareS1220MEDUSAmalwareS1221MOPSLEDmalwareS1226BOOKWORMmalwareS1232SplatDroppermalwareS1233PAKLOGmalwareS1235CorKLOGmalwareS1240RedLine StealermalwareS1242QilinmalwareS1244Medusa RansomwaremalwareS1245InvisibleFerretmalwareS1246BeaverTailmalwareS1247EmbargomalwareS1248XORIndex LoadermalwareS1249HexEval LoadermalwareS9010GlassWormmalwareS9013DRYHOOKmalwareS9014PHASEJAMmalwareS9015BRICKSTORMmalwareS9016CaminhomalwareS9017DCRATtoolS9018HeartCryptmalwareS9019PureCryptermalwareS9020LODEINFOmalwareS9021DOWNIISSAmalwareS9023HiddenFacemalwareS9024SPAWNCHIMERAmalwareS9025NOOPLDRmalwareS9026ROAMINGHOUSEmalwareS9027ANELLDRmalwareS9028PHPsertmalwareS9031AshTagmalwareS9034Tsundere BotnetmalwareS9036LP-NotesmalwareS9037RustyWatermalware

▪Reference

T1027.013on 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.