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-DA — Dynamic Analysis

Executing or opening a file in a synthetic "sandbox" environment to determine if the file is a malicious program or if the file exploits another program such as a document reader.

2NIST mappings
1Mitigation mapping
38Enterprise inferred
5ICS inferred

Detect · D3FEND ontology 1.6.0 · Active

Open official technique ↗
Official D3FEND definition

Definition

Executing or opening a file in a synthetic "sandbox" environment to determine if the file is a malicious program or if the file exploits another program such as a document reader.

Official D3FEND knowledge-base content

How it works

Analyzing the interaction of a piece of code with a system while the code is being executed in a controlled environment such as a sandbox, virtual machine, or simulator. This exposes the natural behavior of the piece of code without requiring the code to be disassembled.

Considerations

  • Malware often detects a fake environment, then changes its behavior accordingly. For example, it could detect that the system clock is being sped up in an effort to get it to execute commands that it would normally only execute at a later time, or that the hardware manufacturer of the machine is a virtualization provider.
  • Malware can attempt to determine if it is being debugged, and change its behavior accordingly.
  • For maximum fidelity, the simulated and real environments should be as similar as possible because the malware could perform differently in different environments.
  • Sometimes the malware behavior is triggered only under certain conditions (on a specific system date, after a certain time, or after it is sent a specific command) and can't be detected through a short execution in a virtual environment.

Implementations

  • Cuckoo Sandbox
Bare Metal Cyber interpretation

Implementation perspective

Dynamic Analysis 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 Document File, Executable File.

Use the technique to identify suspicious, unauthorized, or abnormal activity through observable evidence and repeatable analysis.

Questions to ask

  • Which events, states, or artifacts must be observed for the analysis to work?
  • What analytic logic, threshold, comparison, or signature turns observations into a finding?
  • How are expected false positives, blind spots, and environmental variations documented?
  • Who receives the result, and what action is expected when the technique produces a finding?

Evidence and validation

  • Telemetry and data-source configuration records
  • Analytic logic, thresholds, signatures, and version history
  • Test cases demonstrating expected positive and negative results
  • Alert, triage, escalation, and tuning records

Common failure patterns

  • Required telemetry is missing, delayed, or transformed in a way that invalidates the analysis.
  • The technique produces alerts without an accountable triage and response process.
  • Detection coverage is claimed from product deployment without testing the relevant analytic behavior.

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

analyzesDocument File
analyzesExecutable File
Show inferred artifact relationship paths (2)
Dynamic AnalysisanalyzesDocument File
Dynamic AnalysisanalyzesExecutable File
Curated semantic mapping

NIST SP 800-53 relationships

The relation label is preserved from the D3FEND ontology. It is not converted into a claim that the control automatically implements or validates this technique.

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.

D3FEND note: "Sandboxing" is often used to describe a detection environment which includes some forms of analysis (see D3-DA.)" Many forms of isolation (e.g., quarantining) are more static in nature and simply limit software's access to system resources.

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 (38)
T1016System Network Configuration DiscoveryDiscoveryT1027.001Binary PaddingStealthT1027.002Software PackingStealthT1027.004Compile After DeliveryStealthT1036.001Invalid Code SignatureStealthT1036.003Rename Legitimate UtilitiesStealthT1037.001Logon Script (Windows)Persistence, Privilege EscalationT1037.002Login HookPersistence, Privilege EscalationT1037.003Network Logon ScriptPersistence, Privilege EscalationT1037.004RC ScriptsPersistence, Privilege EscalationT1055.003Thread Execution HijackingPrivilege Escalation, StealthT1059Command and Scripting InterpreterExecutionT1114.001Local Email CollectionCollectionT1137.001Office Template MacrosPersistenceT1137.003Outlook FormsPersistenceT1140Deobfuscate/Decode Files or InformationStealthT1204.002Malicious FileExecutionT1218.005MshtaStealthT1220XSL Script ProcessingStealthT1505.003Web ShellPersistenceT1534Internal SpearphishingLateral MovementT1546.002ScreensaverPersistence, Privilege EscalationT1546.005TrapPersistence, Privilege EscalationT1546.006LC_LOAD_DYLIB AdditionPersistence, Privilege EscalationT1546.008Accessibility FeaturesPersistence, Privilege EscalationT1546.013PowerShell ProfilePersistence, Privilege EscalationT1546.015Component Object Model HijackingPersistence, Privilege EscalationT1547.001Registry Run Keys / Startup FolderPersistence, Privilege EscalationT1547.009Shortcut ModificationPersistence, Privilege EscalationT1548.002Bypass User Account ControlPrivilege Escalation
T1562.003Impair Command History LoggingStealth
T1564.007VBA StompingStealthT1565.003Runtime Data ManipulationImpactT1566.001Spearphishing AttachmentInitial AccessT1566.002Spearphishing LinkInitial AccessT1574.007Path Interception by PATH Environment VariableExecution, StealthT1574.008Path Interception by Search Order HijackingExecution, StealthT1574.009Path Interception by Unquoted PathExecution, Stealth
ATT&CK for ICS (5)
T0853ScriptingExecution
T0865Spearphishing AttachmentInitial Access
T0871Execution through APIExecution
T0894System Binary Proxy ExecutionEvasion
T0895Autorun ImageExecution
Source record

Authoritative sources