When referring to computer security, a sandbox is a location in memory designated by a program or user where a program can run without affecting the system. This enables a developer to test a program or script without affecting the system if anything goes wrong with the program or script.