Berildocs GitHub

References

Exercise index

Short drills by domain. Each has a level and the evidence that proves it. Use them when a week feels abstract, or as a warm-up before a lab.

Level: 1 recall, 2 guided, 3 independent, 4 chained.

Linux and networking#

#TaskLevelEvidence
1Find every world-writable file outside /tmp2find output with owners
2Explain each field in ls -l1Written answer
3Trace a process and log every file it opens2strace -f excerpt
4Capture a DNS query and the response2PCAP with annotations
5Build a TCP client in Python with a timeout2Script and output
6Explain the difference between a socket and a port1Written answer
7Read a certificate chain and list the failures2openssl s_client output
8Set up an SSH tunnel and prove it2Command and curl result

Web#

#TaskLevelEvidence
9Map every parameter in the web lab1Table
10Reproduce the IDOR with two sessions2Two requests
11Turn the reflected XSS into cookie theft3Listener log
12UNION the admin row through the SQLi3Request and response
13Read a file three levels above the web root2Path and content
14Use SSRF to reach the health endpoint2Request and response
15Forge the role cookie and open admin1Cookie and page
16Compare HTML and JSON leakage2Two responses
17Write the IDOR report3Markdown report
18Fix the SQLi and add a test3Diff and test run
19Bypass a 403 with a path normalization trick3Request pair
20Find a cache key mismatch on a lab proxy4Two responses
21Test a GraphQL field authorization with two roles3Query pair
22Chain an open redirect into an OAuth token leak4Flow log

Source and code#

#TaskLevelEvidence
23Find five dangerous sinks with ripgrep2Grep output
24Trace one source to one sink2Annotated call path
25Run semgrep and classify every hit3Triage table
26Write a Semgrep rule for one pattern3Rule and match
27Find a secret in git history2Commit and value
28Remove a tracked .env and rotate the value3Commands and diff
29Add a lockfile and a dependency scan2CI output
30Review a Dockerfile for five issues2List with fixes

Binary and RE#

#TaskLevelEvidence
31Identify the architecture and mitigations1checksec table
32Find the offset to RIP2Cyclic pattern and GDB
33Redirect to win2Payload and flag
34Leak the stack with %p2Output
35Read the secret with %s3Address and output
36Take over the UAF callback3Payload and flag
37Explain the integer wrap2ASAN report
38Recover the RE challenge stages3Decompiled notes
39Patch one branch3Patched binary
40Build a ROP chain for the hardened binary4PoC and 20 runs
41Turn %n into a write4Target and value
42Diff two builds and name the fix4Diff of the changed function

Fuzzing and triage#

#TaskLevelEvidence
43Write the input grammar1One line
44Build a seed corpus2Files and rationale
45Run libFuzzer for 60 seconds2Log and crash
46Read the ASAN top frame2Annotated frame
47Minimize the crash3Short input
48Fix the parser and rerun3Diff and clean run
49Classify five crashes3Triage table
50Write a CASR report3.casrep and summary

Mobile and firmware#

#TaskLevelEvidence
51List exported Android components1Manifest table
52Trigger the deep link2am start output
53Call the JS bridge from a page3Console log
54Explain the backup exposure2Written answer
55Extract the firmware image2unblob summary
56Prove the CGI injection2Request and uid=
57Explain the unsigned update risk2Written answer
58Find the key and name the blast radius2Path and impact
59Fix the CGI properly3Diff and test
60Run a static scan on the rootfs and triage3Findings table

Cloud and detection#

#TaskLevelEvidence
61List world-open ports and rank them2Table
62Explain the wildcard IAM blast radius2Written answer
63Read the host mount risk2Written answer
64Pin a base image by digest2Dockerfile diff
65Write a Sigma rule for the CGI injection3Rule and match
66Map three findings to ATT&CK2IDs and rationale
67Find a beacon in a PCAP3Stream and timing
68Write a false-positive analysis3Paragraph

Rust and Ghidra plugins#

#TaskLevelEvidence
69Identify a Rust binary from panic strings and mangled names2Strings and demangled sample
70Recover a crate name and version from a build path2Path and version
71Install GhidRust in a test Ghidra and apply FunctionID3Install log and renamed function
72Compare GhidRust output with Ghidra's upstream Rust support3Two decompiler views
73Write the Rust slice and trait-object layouts from memory2Diagram
74Map an async state machine to its await points4State table

How to use#

  1. Pick a level above your comfort zone, not below it.
  2. Write the evidence path before you start.
  3. Stop at 30 minutes. If stuck, write the blocker and move on.
  4. Revisit the blocker the next day.
  5. Add the answer to your notes, not only the command.

A drill without evidence is a read. A drill with a request, crash, or diff is practice.