Knowledge is Power

Sitewide Search

Search Bare Metal Cyber

Search courses, individual lessons, wiki entries, books, podcasts, magazine articles, Daily Cyber News, and Darwin.

MITRE D3FEND™ Learning Center

D3-FE — File Encryption

Encrypting a file using a cryptographic key.

1Mitigation mapping
99Enterprise inferred
8ICS inferred
1Parent technique

Harden · D3FEND ontology 1.6.0 · Active

Open official technique ↗
Official D3FEND definition

Definition

Encrypting a file using a cryptographic key.

Official D3FEND knowledge-base content

How it Works

Files are encrypted using either a single key for both encryption and decryption or separate keys. Single key encryption is symmetric encryption and using two key distinct keys is asymmetric encryption.

Symmetric Cryptography

Symmetric encryption uses the same cryptographic key for both the encryption and decryption a file. Managing keys at scale sometimes uses asymmetric key exchange. Protocols such as RSA or Diffie-Hellman can be used to share the symmetric cryptographic key with the others.

Asymmetric Cryptography

Asymmetric encryption is typically accomplished using public and private key certificates based on the X.509 standard. Files are encrypted using the public key and decrypted using their private key. Asymmetric encryption is typically slower than symmetric encryption and not widely used for large file encryption, but is popular for key wrapping, key exchanges, and digital signatures.

Considerations

  • Continuous monitoring must be carried out to ensure private keys are not compromised and the certificate authority (CA) is trusted.
  • Transfer of private keys between multiple devices must be performed securely.
Bare Metal Cyber interpretation

Implementation perspective

File Encryption should be treated as a technical defensive capability rather than a product checkbox. In practice, teams should define the protected scope, the conditions under which the technique acts, and the observable evidence that demonstrates the intended behavior. For this technique, likely engineering context includes File.

Use the technique to increase the effort, prerequisites, or constraints an adversary must overcome before exploitation or misuse succeeds.

Questions to ask

  • Which component, configuration, credential, interface, or behavior is being hardened?
  • What secure baseline or policy defines the intended state?
  • How are exceptions approved, time-limited, and reviewed?
  • How is the hardened state verified after deployment and significant change?

Evidence and validation

  • Approved hardening standards and configuration baselines
  • Automated configuration or integrity assessment results
  • Exception records with owners, rationale, and expiration dates
  • Test results demonstrating that the intended restriction is enforced

Common failure patterns

  • A secure setting is documented but not enforced consistently across the environment.
  • Hardening breaks required functions and is permanently weakened through undocumented exceptions.
  • Teams measure deployment of a product rather than verification of the hardened condition.

This implementation perspective is original Bare Metal Cyber educational content. It does not replace the official D3FEND definition or establish that a specific product implements the technique.

Ontology hierarchy

Technique hierarchy

Top-level family

Parent techniques

Direct child techniques

None listed at this level.

D3FEND graph relationships

Artifacts and ontology entities

These relationships describe how D3FEND connects a defensive technique to artifacts or other ontology entities. They describe graph semantics, not a product certification.

Explicit technique relationships

encryptsFile
Show inferred artifact relationship paths (1)
File EncryptionencryptsFile
Curated D3FEND mapping

ATT&CK Enterprise mitigation relationships

These links come from the D3FEND ontology’s ATT&CK mitigation mapping. They help users navigate between the knowledge bases and do not guarantee mitigation effectiveness.

Inferred and experimental

Offensive-technique relationships

These relationships are generated from D3FEND graph paths and are explicitly experimental. They should be treated as hypotheses for defensive analysis—not as proof that the technique prevents, detects, or removes an offensive behavior.

ATT&CK Enterprise (99)
T1003.007Proc FilesystemCredential AccessT1003.008/etc/passwd and /etc/shadowCredential AccessT1005Data from Local SystemCollectionT1014RootkitStealthT1016System Network Configuration DiscoveryDiscoveryT1018Remote System DiscoveryDiscoveryT1027.001Binary PaddingStealthT1027.002Software PackingStealthT1027.004Compile After DeliveryStealthT1033System Owner/User DiscoveryDiscoveryT1036.001Invalid Code SignatureStealthT1036.003Rename Legitimate UtilitiesStealthT1036.005Match Legitimate Resource Name or LocationStealthT1036.006Space after FilenameStealthT1037.001Logon Script (Windows)Persistence, Privilege EscalationT1037.002Login HookPersistence, Privilege EscalationT1037.003Network Logon ScriptPersistence, Privilege EscalationT1037.004RC ScriptsPersistence, Privilege EscalationT1041Exfiltration Over C2 ChannelExfiltrationT1048.002Exfiltration Over Asymmetric Encrypted Non-C2 ProtocolExfiltration
T1053.004LaunchdExecution, Persistence, Privilege Escalation
T1055.001Dynamic-link Library InjectionPrivilege Escalation, StealthT1055.002Portable Executable InjectionPrivilege Escalation, StealthT1055.003Thread Execution HijackingPrivilege Escalation, StealthT1055.009Proc MemoryPrivilege Escalation, StealthT1055.014VDSO HijackingPrivilege Escalation, StealthT1059Command and Scripting InterpreterExecution
T1070.002Clear Linux or Mac System LogsStealth
T1070.004File DeletionStealthT1071Application Layer ProtocolCommand and ControlT1071.001Web ProtocolsCommand and ControlT1072Software Deployment ToolsExecution, Lateral MovementT1074.001Local Data StagingCollectionT1083File and Directory DiscoveryDiscoveryT1114.001Local Email CollectionCollectionT1119Automated CollectionCollectionT1127.001MSBuildExecution, StealthT1137.001Office Template MacrosPersistenceT1137.003Outlook FormsPersistenceT1140Deobfuscate/Decode Files or InformationStealthT1187Forced AuthenticationCredential AccessT1204.002Malicious FileExecutionT1218.005MshtaStealthT1218.011Rundll32StealthT1220XSL Script ProcessingStealthT1486Data Encrypted for ImpactImpactT1505.003Web ShellPersistenceT1534Internal SpearphishingLateral MovementT1543.001Launch AgentPersistence, Privilege EscalationT1543.002Systemd ServicePersistence, Privilege EscalationT1543.004Launch DaemonPersistence, Privilege EscalationT1546.002ScreensaverPersistence, Privilege EscalationT1546.004Unix Shell Configuration ModificationPersistence, Privilege EscalationT1546.005TrapPersistence, Privilege EscalationT1546.006LC_LOAD_DYLIB AdditionPersistence, Privilege EscalationT1546.008Accessibility FeaturesPersistence, Privilege EscalationT1546.009AppCert DLLsPersistence, Privilege EscalationT1546.010AppInit DLLsPersistence, Privilege EscalationT1546.013PowerShell ProfilePersistence, Privilege EscalationT1546.014EmondPersistence, Privilege Escalation

Showing the first 60 of 99 source-derived relationships. Open the official D3FEND technique for the current graph view.

ATT&CK for ICS (8)
T0851RootkitEvasion, Inhibit Response Function
T0853ScriptingExecution
T0865Spearphishing AttachmentInitial Access
T0871Execution through APIExecution
T0888Remote System Information DiscoveryDiscovery
T0893Data from Local SystemCollection
T0894System Binary Proxy ExecutionEvasion
T0895Autorun ImageExecution
Source record

Authoritative sources