What is Sandboxing?
Sandboxing in cyber security is running an untrusted file, link or script inside an isolated, instrumented machine to watch what it does before it reaches a real endpoint. The sandbox records the processes it starts, the files and registry keys it writes, and the DNS lookups and connections it makes. That report is the evidence an analyst works from.
Definition
- Sandboxing
- Sandboxing in cyber security is running an untrusted file, link or script inside an isolated, instrumented machine to watch what it does before it reaches a real endpoint. The sandbox records the processes it starts, the files and registry keys it writes, and the DNS lookups and connections it makes. That report is the evidence an analyst works from.
How Sandboxing Works
NIST's glossary, quoting CNSSI 4009-2022, defines sandboxing as "a restricted, controlled execution environment that prevents potentially malicious software, such as mobile code, from accessing any system resources except those for which the software is authorized" (NIST CSRC). That covers browser tabs and mobile apps too. In a SOC the word nearly always means the analysis kind: a disposable virtual machine that runs a sample, watches it and hands back a report. The open-source CAPE sandbox, which grew out of Cuckoo, lists what that report is built from: behavioral instrumentation through API hooking, the files created, modified and deleted during the run, network traffic captured as PCAP, classification from behavioral and network signatures, desktop screenshots, and full memory dumps of the guest.
Where files get detonated
Many detonations happen before an analyst ever sees the file. Email security gateways open attachments and follow links before delivery. Next-generation firewalls and secure web gateways send downloads to a sandbox in line. EDR platforms submit unknown binaries from the endpoint, and SOAR phishing playbooks upload every attachment and URL from a reported email, then attach the verdict to the case. The manual upload, where you drag a file into ANY.RUN, Joe Sandbox or an internal CAPE, is the one where you choose the guest OS, the timeout and who gets to see the result.
How to read a detonation report
Read it in this order and leave the vendor's score for last. The score is the sandbox's opinion of the behavior; the behavior is what you will defend in the case notes.
- Did it actually run? Check the screenshots, the run length and the guest OS. One process, no children and no traffic can mean the file is benign, broken, built for another OS, or waiting the sandbox out. The report alone can't tell you which.
- Process tree. Who started whom.
WINWORD.EXEstartingcmd.exe,powershell.exeormshta.exeis the shape of a malicious document. A binary started from%TEMP%with a long encoded command line is the shape of a loader. - Dropped files. The attachment is what the user received; the dropped files are what would have stayed on the host. Copy the hashes of both.
- Registry. Writes to autostart locations, which Microsoft's Sysmon documentation names as the reason to watch registry create and delete events, are the persistence attempt. Note the exact key and value.
- DNS and network. Domains resolved, IPs contacted, ports and HTTP paths. Separate the sample's traffic from the guest's own background traffic before anything goes into a blocklist.
- Signatures and score. Read which behaviors matched, not just the number.
From the report to your own endpoints
Every section of the report has a counterpart in your own telemetry:
| Report section | Sysmon event on your hosts | Defender XDR table | Match on |
|---|---|---|---|
| Process tree | 1, Process creation (full command line and file hash) | DeviceProcessEvents | Hash, ProcessCommandLine |
| Dropped files | 11, FileCreate (file created or overwritten) | DeviceFileEvents | Hash, FileName, FolderPath |
| Registry changes | 12 (key or value created or deleted), 13 (value set) | DeviceRegistryEvents | RegistryKey, RegistryValueName |
| Network connections | 3, Network connection | DeviceNetworkEvents | RemoteIP, RemotePort |
| DNS queries | 22, DNSEvent | DeviceEvents with ActionType == "DnsQueryResponse"; DeviceNetworkEvents for the connection that follows | AdditionalFields.DnsQueryString; RemoteUrl |
Three details in the Sysmon documentation change what you can expect to find. Event ID 3 is disabled by default, so a host on a minimal configuration has no record of the connection the sandbox saw. Event ID 22 relies on telemetry added in Windows 8.1, so Windows 7 hosts produce none. And Event ID 1 carries the file hash in the algorithms the configuration selects (<HashAlgorithms>), which is what lets you match a sandbox hash against process starts.
Did the file run on your endpoints?
Defender XDR advanced hunting covers up to 30 days of raw data. Start with the hashes from the report. Microsoft's schema reference for both DeviceFileEvents and DeviceProcessEvents says the SHA256 column "is usually not populated" and to use SHA1 when available, so match on both:
// Hashes copied from the detonation report
let ReportSha1 = "<SHA-1 from the report>";
let ReportSha256 = "<SHA-256 from the report>";
union
(DeviceFileEvents
| where Timestamp > ago(30d)
| where SHA1 == ReportSha1 or SHA256 == ReportSha256
| project Timestamp, DeviceName, ActionType, FileName, FolderPath,
FileOriginUrl, InitiatingProcessFileName),
(DeviceProcessEvents
| where Timestamp > ago(30d)
| where SHA1 == ReportSha1 or SHA256 == ReportSha256
| project Timestamp, DeviceName, ActionType, FileName, FolderPath,
ProcessCommandLine, InitiatingProcessFileName)
| order by Timestamp asc- Hits in
DeviceFileEventsonly: the file landed (a download, a saved attachment, a copy) and nothing recorded it starting.FileOriginUrlshows where it came from. - Hits in
DeviceProcessEvents: it ran. TheDeviceNamevalues are your scope; follow each process tree from there. - No hits: not proof of absence. A DLL never shows up as a process of its own, because
rundll32.exeor another host process loads it. Look for its hash inDeviceImageLoadEventstoo.
Then take the network section of the report:
// Domains and IPs from the report's network section
let ReportDomains = dynamic(["<domain-1>", "<domain-2>"]);
let ReportIPs = dynamic(["<ip-1>"]);
DeviceNetworkEvents
| where Timestamp > ago(30d)
| where RemoteUrl has_any (ReportDomains) or RemoteIP in (ReportIPs)
| summarize FirstSeen = min(Timestamp), LastSeen = max(Timestamp), Connections = count()
by DeviceName, InitiatingProcessFileName, RemoteUrl, RemoteIP
| order by FirstSeen ascInitiatingProcessFileName is the column to read. A browser reaching the domain is a user who clicked a link. A binary from a Downloads or Temp folder reaching it is the sample, or its second stage, calling out. Both queries use documented columns of these tables; SOCSimulator has not run them against a live tenant.
Sandbox evasion: why a clean report is not a clean file
MITRE ATT&CK tracks this as T1497, Virtualization/Sandbox Evasion, with three sub-techniques:
| Sub-technique | What the sample checks | How it can look in the report |
|---|---|---|
| T1497.001 System Checks | VM artifacts in memory, processes, files, hardware and the registry; network adapter addresses, CPU core count, memory and disk size | WMI or registry queries for hardware details, then an early exit |
| T1497.002 User Activity Based Checks | Speed and frequency of mouse movement and clicks, browser history, the number of files on the desktop; some samples wait for a document to close before the macro runs | Nothing happens, because the trigger is an interaction the sandbox never performs |
| T1497.003 Time Based Checks | Uptime and the system clock (GetTickCount, GetSystemTimeAsFileTime), and whether a sleep was fast-forwarded | Long sleeps and an idle run |
On the sandbox side, ANY.RUN's plans page (checked October 2026) lists a 60-second VM timeout on its free Community plan, against 660 and 1,200 seconds on the paid tiers. A sample that sleeps for two minutes produces an empty 60-second report.
When the report is clean and the alert still looks wrong, re-run with a longer timeout and a guest OS that matches your fleet, use interactive mode to open the document and click through it yourself, and run the hunting queries above anyway.
Public sandboxes and what you upload
ANY.RUN's plans page also says public submissions and their reports are available to all users and may be used for research, asks users not to upload personal or confidential third-party data in public mode, and keeps private analyses to its paid plans. A phishing attachment can be a real invoice, a real contract or an employee's own file. Search the hash first: if the sample is already known, you get a report without uploading anything. If it isn't, and it may hold customer or employee data, use a private or internal sandbox.
Windows Sandbox is not an analysis sandbox
Windows Sandbox turns up in the same searches and does a different job. Microsoft describes it as a lightweight, isolated desktop that runs its own kernel on the Microsoft hypervisor and discards all software, files and state when it closes; it isn't available on Windows Home. It records nothing for you: no process tree, no PCAP, no report. Software installed on the host isn't available inside, so a monitoring tool has to be installed in every session. Microsoft also warns that networking is on by default and that enabling it can expose untrusted applications to the internal network, so turn it off in the .wsb configuration file before you open anything suspicious.
Sandboxing in SOC Operations
Sandbox output reaches you in three ways: attached to a reported phishing email by a SOAR playbook, as the verdict behind an email gateway or firewall block, and as a report you run yourself on a file pulled from an EDR alert. The work is the same each time. Read the behavior before the score, then turn the dropped-file hashes, domains and IPs into [IOCs](/glossary/ioc) and search for them across your own [EDR](/glossary/edr) telemetry. The case has to answer whether the file ran on your hosts, and the sandbox can't answer that. Record both halves in the case notes: what the sample did in the sandbox, and which devices show the same hashes or connections. A clean verdict on a file you have other reasons to distrust is unfinished work, since evasion is a documented technique. The [phishing email playbook](/playbooks/investigate-phishing-email) and the [macro malware playbook](/playbooks/investigate-macro-malware-execution) show where the sandbox step fits. SOCSimulator rooms give you SIEM, XDR and firewall consoles over the same incident, which is where you practice checking what a file did on the endpoint.
Practice Sandboxing in a Real SOC
SOCSimulator provides hands-on training with realistic SIEM, XDR, and Firewall interfaces. Build real analyst skills investigating sandboxing scenarios with zero consequences, free.
Frequently Asked Questions
- What is sandboxing in cyber security?
- Running an untrusted file or link in an isolated virtual machine that records what it does: the processes it starts, the files and registry keys it writes, its DNS lookups and its network connections. Email gateways, firewalls, EDR and SOAR playbooks detonate files this way. The analyst reads the report and searches for the same indicators on the organization's own endpoints.
- How does sandboxing work?
- The sandbox starts a clean guest, usually a Windows virtual machine, copies the sample in and runs it while instrumenting the run, for example by hooking API calls and capturing traffic as PCAP. When the timeout ends it collects dropped files, screenshots and memory, matches the behavior against signatures, writes the report and resets the guest for the next sample.
- Is Windows Sandbox safe for opening suspicious files?
- Safer than your own desktop: it runs a separate kernel on the Microsoft hypervisor and discards everything when you close it. Microsoft's documentation adds two caveats. Networking is on by default and can expose the file to your internal network, so disable it in the .wsb configuration file, and it is not available on Windows Home. It also records nothing, so it won't tell you what the file did.
- What is sandbox evasion?
- Malware checking whether it is inside an analysis environment and behaving differently if it is. MITRE ATT&CK tracks it as T1497, with three sub-techniques: system checks for virtual machine artifacts, user activity checks such as mouse movement or browser history, and time-based checks such as uptime or fast-forwarded sleeps. A sample that evades produces a quiet report.
Sources
- NIST CSRC Glossary: sandbox
- CAPE Sandbox documentation: What is CAPE?
- Microsoft Learn: Sysmon (Sysinternals)
- Microsoft Learn: Overview of advanced hunting
- Microsoft Learn: DeviceFileEvents table in the advanced hunting schema
- Microsoft Learn: DeviceProcessEvents table in the advanced hunting schema
- Microsoft Learn: DeviceNetworkEvents table in the advanced hunting schema
- Microsoft Learn: DeviceEvents table in the advanced hunting schema
- Azure Sentinel hunting query: DNSPattern [Nobelium] (DnsQueryResponse, DnsQueryString)
- Microsoft Learn: DeviceImageLoadEvents table in the advanced hunting schema
- Microsoft Learn: DeviceRegistryEvents table in the advanced hunting schema
- MITRE ATT&CK: T1497 Virtualization/Sandbox Evasion
- MITRE ATT&CK: T1497.001 System Checks
- MITRE ATT&CK: T1497.002 User Activity Based Checks
- MITRE ATT&CK: T1497.003 Time Based Checks
- ANY.RUN: Plans (VM timeout and public submissions)
- Microsoft Learn: Windows Sandbox overview
Related Terms
EDR (endpoint detection and response) is security software that puts an agent on each laptop, server...
Phishing is a social engineering attack delivered via email, SMS, voice calls, or other channels tha...
Threat intelligence is analyzed, contextualized information about current and emerging cyber threats...
In cyber security, an indicator of compromise (IOC) is forensic evidence, such as a file hash, IP, o...
Threat hunting is the proactive search through security telemetry for attackers that existing contro...
In cyber security, the attack surface is every point where an attacker could get into your environme...
More Concepts Terms
Related SOC Training Resources
SOC Analyst (Tier 1) Career Guide: Salary & Skills
Tier 1 SOC Analysts are the front line. You monitor alert queues, triage incoming detections, classify them as true or f…
Read more Career PathDetection Engineer Career Guide: Salary & Skills
Detection Engineers build the rules, analytics, and automated workflows that determine what the SOC can see. You transla…
Read more Career PathSecurity Engineer Career Guide: Salary & Skills
Security Engineers build and maintain the infrastructure that SOC analysts depend on. You deploy SIEMs, configure firewa…
Read more ComparisonSOCSimulator vs LetsDefend: Comparison
SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…
Read more ComparisonSOCSimulator vs CyberDefenders: Comparison
SOCSimulator trains the operational workflow: alert triage, correlation, and response under pressure. CyberDefenders tra…
Read more ToolSIEM Training Console: SOCSimulator
The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…
Read more ToolXDR Training Console: SOCSimulator
The XDR console in SOCSimulator replicates the investigation workflow of platforms like CrowdStrike Falcon, Microsoft De…
Read more TechniqueMITRE ATT&CK® Techniques: Detection Training Library
Browse all MITRE ATT&CK® techniques with detection strategies and example alerts.
Read more Career PathCybersecurity Career Paths: 2026 Guide
Explore SOC analyst career paths with salary data, required skills, and certification roadmaps.
Read more PlaybookSOC Investigation Playbooks: Step-by-Step Guides
Practitioner investigation playbooks with decision trees and real SIEM queries.
Read more FeatureShift Mode: Real-Time SOC Simulation
Practice alert triage under realistic time pressure with SLA timers and noise injection.
Read more FeatureOperations: Guided Training Operations
Structured CTF-style investigation operations covering real-world attack scenarios.
Read more