Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Commit 89bdd08

Browse files
koki-developclaude
andcommitted
Add descriptions and expected behavior to exploit test docstrings
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e680c4b commit 89bdd08

4 files changed

Lines changed: 20 additions & 0 deletions

File tree

tests/fallocate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Writing a large file to disk in the jobs directory, exhausting the
44
space will temporarly disable other jobs to be started.
55
6+
The sandbox should reject the write with a "File too large" error
7+
68
Discovered by
79
Discord Derpius#9144
810
"""

tests/fork.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
"""
2+
Description
3+
Fork bomb that recursively spawns processes to exhaust system resources
4+
5+
The sandbox should kill the process before it destabilizes the system
6+
7+
"""
8+
19
import os
210
while True:
311
try:

tests/network.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Description
33
Accessing external resources could be potentially dangerous
44
5+
The sandbox should block all outbound network access
6+
57
"""
68

79
import urllib.request

tests/runaway_output.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1+
"""
2+
Description
3+
Infinite loop printing to stdout to exhaust memory and disk via output capture
4+
5+
The sandbox should kill the process once output exceeds the allowed limit
6+
7+
"""
8+
19
while True:
210
print("Piston is secure")

0 commit comments

Comments
 (0)