TechKnowSurge
VideoSecurityFree

Sandboxing

Sandboxing is a security and development technique that isolates programs or code in a controlled environment, preventing untrusted or potentially malicious software from affecting live systems or the broader network. It is widely used in both cybersecurity analysis and software development workflows to safely test, examine, and validate programs before they reach production.

Complete this video to capture a CTF flag worth 1 point.

About this video

Sandboxing is a core technique in both cybersecurity and software development that involves executing programs or code within a strictly controlled, isolated environment. By limiting what resources a sandboxed process can access and preventing it from interacting with the broader system or network, sandboxing allows security professionals and developers to safely observe behavior that would be too risky to permit on a live machine or production infrastructure. This isolation can be implemented physically, such as an air-gapped machine disconnected from the network, or logically, by partitioning a program from the rest of a system and granting it only the minimum resources it needs to run. In a cybersecurity context, sandboxing is a critical tool for analyzing suspicious or potentially malicious software. Rather than executing an unknown program directly on a production endpoint—where it could spread malware, exfiltrate data, or corrupt files—analysts can run it inside a sandbox to study its behavior in a contained space. This approach allows for safe, detailed analysis without putting live systems or sensitive data at risk. In software development and deployment workflows, sandboxing takes the form of dedicated testing, development, or staging environments that exist as intermediate steps before code reaches production. Organizations typically maintain several of these environments in sequence, each serving a distinct validation purpose. This structured approach ensures that bugs, unexpected behavior, or breaking changes are caught and resolved before they can affect end users or disrupt business operations.

What you'll learn

What's covered

Sandboxing

Key terms

Sandbox
A sandbox is an isolated, controlled execution environment used to run untrusted code or files and observe their behavior, preventing potentially malicious activity from affecting the host system or network.
Malware
Software specifically designed to disrupt, damage, or gain unauthorized access to a system.
Production
The live environment where software and services are actively running and accessed by real end users.
Staging Environment
A pre-production environment that mirrors production, used to test code and configurations before they are released to end users.
Virtual Machine
VM
A software emulation of a physical computer that runs an operating system and applications.
Network Segmentation
The practice of dividing a network into smaller segments to improve performance and limit the spread of security threats.

Topics

Sandboxing Malware Analysis Application Security Software Deployment Cybersecurity Isolated Environments

Transcript

There are times when we're not quite sure if we trust a program yet or not, and maybe we want to test it out in a test environment. Or maybe another scenario: maybe we know we can't trust it, that it has some sort of virus or malware inside of it, and so what we want to do is open it up and analyze it. But how do we do that without infecting our whole computer? Well, we can do that using something called sandboxing.

A Place to Play

I remember when I was a kid, I had a sandbox in my backyard. We'd go and we'd create different things. We'd create houses, we'd create castles, we'd create this whole imaginary world. And it was a fun place to play. Well, sandboxing is kind of like that. It's a little playground that we have that's not the real thing, but it's a place that we can play and experiment around with building things like houses and castles.

When it comes to programs, a sandbox is this area that we can start playing around with things and testing it that's not production, that's not live, that's not out there.

What Sandboxing Looks Like

So what does sandboxing look like? Well, let's say we have a program that we have some concerns over, or that we want to analyze before we're deploying it, or for some reason we don't want it to be out there in the real world, but we want it to be in a controlled environment, a controlled environment that doesn't have access to a lot of other resources.

So what would I do? Well, maybe I grab a laptop or a desktop and I set it up on there that's not connected to the rest of my network. Or maybe it's a whole environment, if I'm in a software development environment, it's a whole environment that we've created that we can deploy things through and test them out. Or maybe if it's on a computer, what I can do is I can segregate this program from everything else and give it access to certain resources, but only the resources it needs to run.

So it's this controlled environment that doesn't affect the whole computer or the whole environment, but it's a separate environment that only has access to certain resources, and we call that sandboxing.

Sandboxing Before Production

Here's a little different context when it comes to sandboxing. Here we have some production servers, and what we have is code that's running on these production servers that our clients are actually connecting into, that our users are connecting into. Now imagine if we just pushed out all of our changes directly to production. Well, this could affect our end users, and that could be problematic.

So instead we set up a testing environment, or a development environment, or a staging environment, or a sandbox environment. In fact, I've seen where we have usually multiple environments before it ever gets into production, each for their specific reasons. And so we set up this sandboxing environment to help test things and develop things before it goes to production.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →