0
0
Cybersecurityknowledge~10 mins

Sandbox environments in Cybersecurity - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define a sandbox environment that isolates code execution.

Cybersecurity
sandbox = [1]()
Drag options to blanks, or click blank then click option'
AVirtualMachine
BSandbox
CContainer
DFirewall
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Firewall' which protects networks but does not isolate code execution.
Using 'VirtualMachine' which is a broader virtualization technology, not specifically a sandbox.
Using 'Container' which isolates applications but is not always used as a sandbox.
2fill in blank
medium

Complete the code to start monitoring suspicious behavior inside the sandbox.

Cybersecurity
sandbox.start_monitoring([1])
Drag options to blanks, or click blank then click option'
Abehavior_analysis
Bnetwork_traffic
Cfile_access
Duser_login
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'network_traffic' which monitors network but not overall behavior.
Choosing 'file_access' which only tracks file operations.
Choosing 'user_login' which is unrelated to sandbox monitoring.
3fill in blank
hard

Fix the error in the code that runs untrusted code inside the sandbox.

Cybersecurity
sandbox.run_code([1])
Drag options to blanks, or click blank then click option'
Atrusted_script
Bsystem_command
Cuntrusted_code
Dadmin_script
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'trusted_script' which defeats the purpose of sandboxing.
Using 'system_command' which can be dangerous to run directly.
Using 'admin_script' which has elevated privileges.
4fill in blank
hard

Fill both blanks to create a sandbox that limits resource usage and logs activity.

Cybersecurity
sandbox = Sandbox(limit=[1], log=[2])
Drag options to blanks, or click blank then click option'
Amemory
BTrue
CFalse
Dcpu
Attempts:
3 left
💡 Hint
Common Mistakes
Setting limit to 'memory' when CPU is more common for sandbox limits.
Disabling logging by setting log to False.
5fill in blank
hard

Fill all three blanks to filter files accessed in the sandbox and check if size is above threshold.

Cybersecurity
filtered_files = {f: size for f, size in sandbox.files.items() if size [1] [2] and f.endswith([3])}
Drag options to blanks, or click blank then click option'
A>
B1024
C'.exe'
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' instead of '>' which filters smaller files.
Using a number without quotes for file extension.
Using a wrong file extension.