-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlevels.json
More file actions
10299 lines (10299 loc) · 416 KB
/
levels.json
File metadata and controls
10299 lines (10299 loc) · 416 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"generated_at": "2026-04-08T16:03:44.281745+00:00",
"level_count": 500,
"modules": [
{
"name": "module-1-filesystem",
"levels": [
{
"id": "module-1-filesystem/level-1-navigate",
"name": "level-1-navigate",
"path": "modules/module-1-filesystem/level-1-navigate",
"mission": {
"name": "Lost in the Maze",
"description": "A configuration file is buried somewhere inside a nested directory tree inside the sandbox.",
"objective": "Find the file named 'secret.conf' and print its contents",
"xp": 100,
"difficulty": "beginner",
"expected_time": "5m",
"concepts": [
"ls",
"cd",
"find",
"cat",
"pwd"
],
"module": "module-1-filesystem",
"level": "level-1-navigate"
}
},
{
"id": "module-1-filesystem/level-2-create-dirs",
"name": "level-2-create-dirs",
"path": "modules/module-1-filesystem/level-2-create-dirs",
"mission": {
"name": "Build the Scaffold",
"description": "A web app expects a specific directory layout to exist before it starts. Without it, it crashes.",
"objective": "Create the directory tree: logs/app, logs/nginx, data/uploads, data/cache inside the sandbox",
"xp": 100,
"difficulty": "beginner",
"expected_time": "5m",
"concepts": [
"mkdir",
"mkdir -p",
"tree",
"ls"
],
"module": "module-1-filesystem",
"level": "level-2-create-dirs"
}
},
{
"id": "module-1-filesystem/level-3-find-delete",
"name": "level-3-find-delete",
"path": "modules/module-1-filesystem/level-3-find-delete",
"mission": {
"name": "Spring Cleaning",
"description": "The disk is filling up with leftover .tmp files scattered across the sandbox.",
"objective": "Delete all files ending in .tmp from the sandbox (leave everything else intact)",
"xp": 120,
"difficulty": "beginner",
"expected_time": "5m",
"concepts": [
"find",
"-delete",
"rm",
"glob",
"xargs"
],
"module": "module-1-filesystem",
"level": "level-3-find-delete"
}
},
{
"id": "module-1-filesystem/level-4-copy-move",
"name": "level-4-copy-move",
"path": "modules/module-1-filesystem/level-4-copy-move",
"mission": {
"name": "The Great Migration",
"description": "A deployment script dropped all config files into the wrong directory. They need to be moved to their correct locations.",
"objective": "Move all .conf files from staging/ into production/ and rename app.conf.bak to app.conf",
"xp": 120,
"difficulty": "beginner",
"expected_time": "8m",
"concepts": [
"mv",
"cp",
"rename",
"glob"
],
"module": "module-1-filesystem",
"level": "level-4-copy-move"
}
},
{
"id": "module-1-filesystem/level-5-find-by-name",
"name": "level-5-find-by-name",
"path": "modules/module-1-filesystem/level-5-find-by-name",
"mission": {
"name": "Needle in a Haystack",
"description": "A developer lost track of all Python files they created across several project directories.",
"objective": "Find every file ending in .py under the sandbox and write their paths to found.txt in the sandbox root",
"xp": 130,
"difficulty": "beginner",
"expected_time": "8m",
"concepts": [
"find",
"output redirection",
">",
"glob"
],
"module": "module-1-filesystem",
"level": "level-5-find-by-name"
}
},
{
"id": "module-1-filesystem/level-6-find-by-content",
"name": "level-6-find-by-content",
"path": "modules/module-1-filesystem/level-6-find-by-content",
"mission": {
"name": "The Password Leak",
"description": "Someone hardcoded a password in one of the config files. Security needs you to find which file contains the string 'password='.",
"objective": "Find the file containing 'password=' and write its path to leak.txt in the sandbox root",
"xp": 150,
"difficulty": "beginner",
"expected_time": "8m",
"concepts": [
"grep",
"-r",
"-l",
"output redirection"
],
"module": "module-1-filesystem",
"level": "level-6-find-by-content"
}
},
{
"id": "module-1-filesystem/level-7-symlinks",
"name": "level-7-symlinks",
"path": "modules/module-1-filesystem/level-7-symlinks",
"mission": {
"name": "The Shortcut",
"description": "An app always reads its config from /etc/myapp/active.conf but configs are versioned. You need to point active.conf at the correct version.",
"objective": "Create a symlink at $SANDBOX/etc/myapp/active.conf pointing to $SANDBOX/etc/myapp/v2/config.conf",
"xp": 150,
"difficulty": "intermediate",
"expected_time": "8m",
"concepts": [
"ln -s",
"symlinks",
"readlink",
"ls -l"
],
"module": "module-1-filesystem",
"level": "level-7-symlinks"
}
},
{
"id": "module-1-filesystem/level-8-archives",
"name": "level-8-archives",
"path": "modules/module-1-filesystem/level-8-archives",
"mission": {
"name": "Pack and Unpack",
"description": "A backup archive arrived but the files need to be extracted. Then you must archive the results directory.",
"objective": "Extract backup.tar.gz into extracted/, then create archive.tar.gz containing all .log files from logs/",
"xp": 150,
"difficulty": "intermediate",
"expected_time": "10m",
"concepts": [
"tar",
"-xzf",
"-czf",
"gzip",
"compression"
],
"module": "module-1-filesystem",
"level": "level-8-archives"
}
},
{
"id": "module-1-filesystem/level-9-disk-usage",
"name": "level-9-disk-usage",
"path": "modules/module-1-filesystem/level-9-disk-usage",
"mission": {
"name": "Disk Hog",
"description": "The server disk is nearly full. You need to identify the largest files and directories.",
"objective": "Find the single largest file in the sandbox and write its path to biggest.txt in the sandbox root",
"xp": 150,
"difficulty": "intermediate",
"expected_time": "8m",
"concepts": [
"du",
"df",
"sort",
"-h",
"-S",
"find -size"
],
"module": "module-1-filesystem",
"level": "level-9-disk-usage"
}
},
{
"id": "module-1-filesystem/level-10-hidden-files",
"name": "level-10-hidden-files",
"path": "modules/module-1-filesystem/level-10-hidden-files",
"mission": {
"name": "Secrets in Plain Sight",
"description": "Hidden dotfiles are used to configure many Linux tools. A token file is hiding in the sandbox \u2014 but ls alone won't show it.",
"objective": "Find the hidden file (starting with .) containing 'AUTH_TOKEN', read its value, and copy it to token.txt in the sandbox root",
"xp": 150,
"difficulty": "beginner",
"expected_time": "8m",
"concepts": [
"ls -a",
"dotfiles",
"hidden files",
"cat"
],
"module": "module-1-filesystem",
"level": "level-10-hidden-files"
}
}
]
},
{
"name": "module-2-text",
"levels": [
{
"id": "module-2-text/level-1-head-tail",
"name": "level-1-head-tail",
"path": "modules/module-2-text/level-1-head-tail",
"mission": {
"name": "Log Triage",
"description": "A service crashed and left a huge log file. You need to see the first and last entries quickly.",
"objective": "Write the first 5 lines of app.log to first5.txt and the last 5 lines to last5.txt",
"xp": 100,
"difficulty": "beginner",
"expected_time": "5m",
"concepts": [
"head",
"tail",
"-n",
"output redirection"
],
"module": "module-2-text",
"level": "level-1-head-tail"
}
},
{
"id": "module-2-text/level-2-grep-pattern",
"name": "level-2-grep-pattern",
"path": "modules/module-2-text/level-2-grep-pattern",
"mission": {
"name": "Error Extraction",
"description": "Ops needs a report of all ERROR and FATAL lines from the log for the post-mortem.",
"objective": "Extract all lines containing ERROR or FATAL from app.log and save to errors.txt",
"xp": 120,
"difficulty": "beginner",
"expected_time": "8m",
"concepts": [
"grep",
"-E",
"regex",
"alternation",
"|"
],
"module": "module-2-text",
"level": "level-2-grep-pattern"
}
},
{
"id": "module-2-text/level-3-count-wc",
"name": "level-3-count-wc",
"path": "modules/module-2-text/level-3-count-wc",
"mission": {
"name": "By the Numbers",
"description": "The product team wants a quick report on the access log: total requests, unique IPs, and total bytes served.",
"objective": "Write a report.txt with 3 lines: total request count, unique IP count, and total bytes (sum of field 3)",
"xp": 150,
"difficulty": "intermediate",
"expected_time": "10m",
"concepts": [
"wc",
"awk",
"sort",
"uniq",
"pipes"
],
"module": "module-2-text",
"level": "level-3-count-wc"
}
},
{
"id": "module-2-text/level-4-sort-uniq",
"name": "level-4-sort-uniq",
"path": "modules/module-2-text/level-4-sort-uniq",
"mission": {
"name": "Top Talkers",
"description": "Security wants to know which IPs made the most requests \u2014 a classic log analysis task.",
"objective": "Produce a ranked list of IPs by request count (highest first) and save to top_ips.txt",
"xp": 150,
"difficulty": "intermediate",
"expected_time": "10m",
"concepts": [
"sort",
"uniq -c",
"pipes",
"awk"
],
"module": "module-2-text",
"level": "level-4-sort-uniq"
}
},
{
"id": "module-2-text/level-5-sed-replace",
"name": "level-5-sed-replace",
"path": "modules/module-2-text/level-5-sed-replace",
"mission": {
"name": "Find and Replace",
"description": "The staging config file still has old hostname references that need to be updated for production.",
"objective": "Replace all occurrences of 'staging.internal' with 'prod.internal' in config.conf and save to config.prod.conf",
"xp": 150,
"difficulty": "intermediate",
"expected_time": "8m",
"concepts": [
"sed",
"s/old/new/g",
"-i",
"substitution"
],
"module": "module-2-text",
"level": "level-5-sed-replace"
}
},
{
"id": "module-2-text/level-6-cut-awk",
"name": "level-6-cut-awk",
"path": "modules/module-2-text/level-6-cut-awk",
"mission": {
"name": "Column Harvest",
"description": "A CSV export contains many columns but the billing system only needs usernames and email addresses.",
"objective": "Extract only the username (field 1) and email (field 3) from users.csv, save to extract.csv (comma-separated)",
"xp": 150,
"difficulty": "intermediate",
"expected_time": "10m",
"concepts": [
"cut",
"awk",
"-F",
"-d",
"field extraction"
],
"module": "module-2-text",
"level": "level-6-cut-awk"
}
},
{
"id": "module-2-text/level-7-pipes",
"name": "level-7-pipes",
"path": "modules/module-2-text/level-7-pipes",
"mission": {
"name": "Pipeline Master",
"description": "A multi-step data transformation: filter, transform, sort, and count \u2014 all in one pipeline.",
"objective": "From access.log, extract only POST requests, count how many came from each IP, save ranked result to post_ips.txt",
"xp": 200,
"difficulty": "intermediate",
"expected_time": "12m",
"concepts": [
"pipes",
"grep",
"awk",
"sort",
"uniq -c",
"chaining"
],
"module": "module-2-text",
"level": "level-7-pipes"
}
},
{
"id": "module-2-text/level-8-diff",
"name": "level-8-diff",
"path": "modules/module-2-text/level-8-diff",
"mission": {
"name": "Spot the Difference",
"description": "Two versions of a config file exist. You need to see what changed between them and document the differences.",
"objective": "Compare v1.conf and v2.conf using diff and save the output to changes.diff",
"xp": 120,
"difficulty": "beginner",
"expected_time": "5m",
"concepts": [
"diff",
"patch",
"-u",
"unified format"
],
"module": "module-2-text",
"level": "level-8-diff"
}
}
]
},
{
"name": "module-3-permissions",
"levels": [
{
"id": "module-3-permissions/level-1-chmod-exec",
"name": "level-1-chmod-exec",
"path": "modules/module-3-permissions/level-1-chmod-exec",
"mission": {
"name": "Script Won't Run",
"description": "A deployment script was uploaded but it refuses to run \u2014 permission denied.",
"objective": "Make deploy.sh executable by the owner, then run it to generate output.txt",
"xp": 100,
"difficulty": "beginner",
"expected_time": "5m",
"concepts": [
"chmod",
"+x",
"execute permission",
"bash"
],
"module": "module-3-permissions",
"level": "level-1-chmod-exec"
}
},
{
"id": "module-3-permissions/level-2-chmod-numeric",
"name": "level-2-chmod-numeric",
"path": "modules/module-3-permissions/level-2-chmod-numeric",
"mission": {
"name": "Octal Surgery",
"description": "Three files need exact permission settings for a web server to function securely.",
"objective": "Set permissions: index.html\u2192644, app.py\u2192755, secrets.conf\u2192600",
"xp": 150,
"difficulty": "beginner",
"expected_time": "8m",
"concepts": [
"chmod",
"octal",
"numeric permissions",
"644",
"755",
"600"
],
"module": "module-3-permissions",
"level": "level-2-chmod-numeric"
}
},
{
"id": "module-3-permissions/level-3-chown",
"name": "level-3-chown",
"path": "modules/module-3-permissions/level-3-chown",
"mission": {
"name": "Wrong Owner",
"description": "Files were created as root but the app runs as 'nobody'. The app can't read its own config.",
"objective": "Change ownership of all files in config/ so the current user owns them (use your actual username)",
"xp": 150,
"difficulty": "beginner",
"expected_time": "8m",
"concepts": [
"chown",
"ls -la",
"whoami",
"ownership"
],
"module": "module-3-permissions",
"level": "level-3-chown"
}
},
{
"id": "module-3-permissions/level-4-sticky-bit",
"name": "level-4-sticky-bit",
"path": "modules/module-3-permissions/level-4-sticky-bit",
"mission": {
"name": "Shared Space",
"description": "A shared uploads directory lets any user write files \u2014 but users are deleting each other's work!",
"objective": "Set the sticky bit on the shared/ directory so only file owners can delete their own files",
"xp": 150,
"difficulty": "intermediate",
"expected_time": "8m",
"concepts": [
"sticky bit",
"chmod +t",
"chmod 1777",
"shared directories"
],
"module": "module-3-permissions",
"level": "level-4-sticky-bit"
}
},
{
"id": "module-3-permissions/level-5-setuid",
"name": "level-5-setuid",
"path": "modules/module-3-permissions/level-5-setuid",
"mission": {
"name": "The Audit Trail",
"description": "A shell script logs who runs it. You must identify which files in the sandbox have SUID or SGID bits set \u2014 a common security audit task.",
"objective": "Find all files with SUID or SGID bits set and save their paths to suid_files.txt",
"xp": 200,
"difficulty": "intermediate",
"expected_time": "10m",
"concepts": [
"find",
"-perm",
"SUID",
"SGID",
"4000",
"2000",
"security"
],
"module": "module-3-permissions",
"level": "level-5-setuid"
}
},
{
"id": "module-3-permissions/level-6-umask",
"name": "level-6-umask",
"path": "modules/module-3-permissions/level-6-umask",
"mission": {
"name": "Default Lockdown",
"description": "New files created by an app have world-writable permissions. The default umask is too permissive.",
"objective": "Understand what umask value produces 640 for files and 750 for dirs. Write the answer to umask_answer.txt",
"xp": 150,
"difficulty": "intermediate",
"expected_time": "10m",
"concepts": [
"umask",
"default permissions",
"022",
"027"
],
"module": "module-3-permissions",
"level": "level-6-umask"
}
},
{
"id": "module-3-permissions/level-7-fix-webserver",
"name": "level-7-fix-webserver",
"path": "modules/module-3-permissions/level-7-fix-webserver",
"mission": {
"name": "Web Server 403",
"description": "Nginx returns 403 Forbidden on every request. The web root directory and files have wrong permissions.",
"objective": "Fix the web root: directories need 755, HTML files need 644, and the webroot itself must be readable",
"xp": 200,
"difficulty": "intermediate",
"expected_time": "12m",
"concepts": [
"chmod",
"-R",
"find -exec",
"web server permissions",
"644",
"755"
],
"module": "module-3-permissions",
"level": "level-7-fix-webserver"
}
},
{
"id": "module-3-permissions/level-8-audit",
"name": "level-8-audit",
"path": "modules/module-3-permissions/level-8-audit",
"mission": {
"name": "World Writable Files",
"description": "Security scan flagged world-writable files in the app directory. These are a security risk \u2014 any user can modify them.",
"objective": "Find all world-writable files and remove write permission from 'others' for each one",
"xp": 200,
"difficulty": "intermediate",
"expected_time": "10m",
"concepts": [
"find -perm",
"-o-w",
"chmod o-w",
"security hardening"
],
"module": "module-3-permissions",
"level": "level-8-audit"
}
}
]
},
{
"name": "module-4-processes",
"levels": [
{
"id": "module-4-processes/level-1-ps-find",
"name": "level-1-ps-find",
"path": "modules/module-4-processes/level-1-ps-find",
"mission": {
"name": "Process Detective",
"description": "Something is consuming CPU. You need to identify the top CPU-consuming processes and document them.",
"objective": "List the top 5 CPU-consuming processes and save the output to top_procs.txt",
"xp": 100,
"difficulty": "beginner",
"expected_time": "5m",
"concepts": [
"ps",
"aux",
"top",
"--sort",
"head"
],
"module": "module-4-processes",
"level": "level-1-ps-find"
}
},
{
"id": "module-4-processes/level-2-kill",
"name": "level-2-kill",
"path": "modules/module-4-processes/level-2-kill",
"mission": {
"name": "Runaway Process",
"description": "A background script is running in an infinite loop and wasting resources. It needs to be stopped.",
"objective": "Find the 'sleep_loop.sh' process and kill it",
"xp": 120,
"difficulty": "beginner",
"expected_time": "8m",
"concepts": [
"pgrep",
"pkill",
"kill",
"SIGTERM",
"SIGKILL",
"ps"
],
"module": "module-4-processes",
"level": "level-2-kill"
}
},
{
"id": "module-4-processes/level-3-background-jobs",
"name": "level-3-background-jobs",
"path": "modules/module-4-processes/level-3-background-jobs",
"mission": {
"name": "The Background Worker",
"description": "A data processing script takes a while to finish. You need to start it without blocking your terminal, inspect the job list, and let it complete.",
"objective": "Run process.sh in the background and wait for it to finish so result.txt contains the finished output",
"xp": 150,
"difficulty": "intermediate",
"expected_time": "8m",
"concepts": [
"&",
"jobs",
"fg",
"bg",
"Ctrl+Z",
"disown"
],
"module": "module-4-processes",
"level": "level-3-background-jobs"
}
},
{
"id": "module-4-processes/level-4-nice",
"name": "level-4-nice",
"path": "modules/module-4-processes/level-4-nice",
"mission": {
"name": "Play Nice",
"description": "A CPU-heavy batch task is competing with other services. Launch it with a lower priority so it stays out of the way.",
"objective": "Run heavy.sh with niceness 15, save its PID to pid.txt, and confirm the process has the adjusted niceness",
"xp": 150,
"difficulty": "intermediate",
"expected_time": "8m",
"concepts": [
"nice",
"renice",
"ps -o ni",
"priority"
],
"module": "module-4-processes",
"level": "level-4-nice"
}
},
{
"id": "module-4-processes/level-5-signals",
"name": "level-5-signals",
"path": "modules/module-4-processes/level-5-signals",
"mission": {
"name": "Signal Relay",
"description": "A long-running listener reloads its configuration when it receives SIGHUP. Trigger that behavior without killing the service.",
"objective": "Send SIGHUP to listener.sh so it writes 'reloaded' to reload.log",
"xp": 200,
"difficulty": "intermediate",
"expected_time": "8m",
"concepts": [
"kill -HUP",
"signals",
"SIGHUP",
"trap",
"kill -l"
],
"module": "module-4-processes",
"level": "level-5-signals"
}
},
{
"id": "module-4-processes/level-6-zombie",
"name": "level-6-zombie",
"path": "modules/module-4-processes/level-6-zombie",
"mission": {
"name": "Zombie Apocalypse",
"description": "A buggy parent process left behind zombie children. Identify them, document what you found, and stop the parent so the zombies can be reaped.",
"objective": "Find the zombie processes, save their PIDs and names to zombies.txt, then kill the parent process",
"xp": 200,
"difficulty": "advanced",
"expected_time": "10m",
"concepts": [
"ps",
"zombie",
"Z state",
"PPID",
"kill parent",
"wait"
],
"module": "module-4-processes",
"level": "level-6-zombie"
}
}
]
},
{
"name": "module-5-scripting",
"levels": [
{
"id": "module-5-scripting/level-1-variables",
"name": "level-1-variables",
"path": "modules/module-5-scripting/level-1-variables",
"mission": {
"name": "Speak Variable",
"description": "Your onboarding script should greet whoever runs it, but the dynamic name support was never written.",
"objective": "Write greet.sh so running `bash greet.sh World` prints `Hello, World!`",
"xp": 150,
"difficulty": "beginner",
"expected_time": "5m",
"concepts": [
"bash",
"$1",
"echo",
"variables"
],
"module": "module-5-scripting",
"level": "level-1-variables"
}
},
{
"id": "module-5-scripting/level-2-conditionals",
"name": "level-2-conditionals",
"path": "modules/module-5-scripting/level-2-conditionals",
"mission": {
"name": "The Gatekeeper",
"description": "An automation script should tell you whether a target file exists, but the conditional logic is missing.",
"objective": "Write check_file.sh so it prints `EXISTS` when the path exists and `MISSING` when it does not",
"xp": 160,
"difficulty": "beginner",
"expected_time": "6m",
"concepts": [
"if",
"else",
"test",
"-f",
"-e"
],
"module": "module-5-scripting",
"level": "level-2-conditionals"
}
},
{
"id": "module-5-scripting/level-3-loops",
"name": "level-3-loops",
"path": "modules/module-5-scripting/level-3-loops",
"mission": {
"name": "Bulk Renamer",
"description": "A batch of text files needs to be archived with a new extension, and doing them one by one is not an option.",
"objective": "Write rename.sh so it renames every `.txt` file in the target directory to `.bak`",
"xp": 180,
"difficulty": "intermediate",
"expected_time": "8m",
"concepts": [
"for",
"glob",
"mv",
"basename"
],
"module": "module-5-scripting",
"level": "level-3-loops"
}
},
{
"id": "module-5-scripting/level-4-functions",
"name": "level-4-functions",
"path": "modules/module-5-scripting/level-4-functions",
"mission": {
"name": "DRY Deploy",
"description": "A repetitive deploy script works, but it is painful to maintain. Refactor it so one function handles each service.",
"objective": "Rewrite deploy.sh to use a function that deploys `api`, `web`, and `worker`",
"xp": 190,
"difficulty": "intermediate",
"expected_time": "8m",
"concepts": [
"functions",
"local",
"return",
"$?"
],
"module": "module-5-scripting",
"level": "level-4-functions"
}
},
{
"id": "module-5-scripting/level-5-input",
"name": "level-5-input",
"path": "modules/module-5-scripting/level-5-input",
"mission": {
"name": "Config Parser",
"description": "Your app stores environment variables in a `key=value` file. You need a loader script that turns those lines into exported shell variables.",
"objective": "Write load_env.sh so sourcing it with app.env exports APP_NAME, APP_ENV, and APP_PORT",
"xp": 210,
"difficulty": "intermediate",
"expected_time": "10m",
"concepts": [
"while read",
"IFS",
"export",
"source"
],
"module": "module-5-scripting",
"level": "level-5-input"
}
},
{
"id": "module-5-scripting/level-6-error-handling",
"name": "level-6-error-handling",
"path": "modules/module-5-scripting/level-6-error-handling",
"mission": {
"name": "Fail Loudly",
"description": "A fragile script crashes in confusing ways. Harden it so failures stop early and missing input gets a clear error message.",
"objective": "Fix safe_copy.sh so it uses strict mode and prints `SOURCE_FILE is required` when no source path is passed",
"xp": 220,
"difficulty": "advanced",
"expected_time": "10m",
"concepts": [
"set -euo pipefail",
"trap",
"stderr",
"exit 1"
],
"module": "module-5-scripting",
"level": "level-6-error-handling"
}
},
{
"id": "module-5-scripting/level-7-subshells",
"name": "level-7-subshells",
"path": "modules/module-5-scripting/level-7-subshells",
"mission": {
"name": "Parallel Launch",
"description": "Three independent tasks take too long one after another. Launch them in parallel and wait for all of them to finish.",
"objective": "Write run_all.sh so it runs task-a.sh, task-b.sh, and task-c.sh in parallel and waits until all three finish",
"xp": 230,
"difficulty": "advanced",
"expected_time": "10m",
"concepts": [
"subshells",
"&",
"wait",
"parallel jobs"
],
"module": "module-5-scripting",
"level": "level-7-subshells"
}
},
{
"id": "module-5-scripting/level-8-heredoc",
"name": "level-8-heredoc",
"path": "modules/module-5-scripting/level-8-heredoc",
"mission": {
"name": "Template Engine",
"description": "A config file should be generated from environment values, but the template logic was never written.",
"objective": "Write generate.sh so it reads vars.env and writes app.conf using a heredoc with the configured values",
"xp": 250,
"difficulty": "advanced",
"expected_time": "12m",
"concepts": [
"heredoc",
"<<EOF",
"source",
"variables"
],
"module": "module-5-scripting",
"level": "level-8-heredoc"
}
}
]
},
{
"name": "module-6-networking",
"levels": [
{
"id": "module-6-networking/level-1-ip-addr",
"name": "level-1-ip-addr",
"path": "modules/module-6-networking/level-1-ip-addr",
"mission": {
"name": "What's My IP?",
"description": "You were given a saved `ip addr` capture and need to summarize which interfaces have which addresses.",
"objective": "Extract each interface and IPv4 address from ip_addr.txt and save them to interfaces.txt",
"xp": 150,
"difficulty": "beginner",
"expected_time": "6m",
"concepts": [
"ip addr",
"grep",
"awk",
"interfaces"
],
"module": "module-6-networking",
"level": "level-1-ip-addr"
}
},
{
"id": "module-6-networking/level-2-ping",
"name": "level-2-ping",
"path": "modules/module-6-networking/level-2-ping",
"mission": {
"name": "Can You Hear Me?",
"description": "Your sandbox includes a mock ping helper that simulates which hosts respond. Use it to document reachability.",
"objective": "Check every host in hosts.txt and save only the reachable hostnames to reachable.txt",
"xp": 160,
"difficulty": "beginner",
"expected_time": "7m",
"concepts": [
"ping",
"exit codes",
"loops",
"if"
],
"module": "module-6-networking",
"level": "level-2-ping"
}
},
{
"id": "module-6-networking/level-3-ports",
"name": "level-3-ports",
"path": "modules/module-6-networking/level-3-ports",
"mission": {
"name": "What's Listening?",
"description": "You have a saved socket listing from a host and need to document which TCP ports are listening.",
"objective": "Extract the listening TCP port numbers from ss-output.txt and save them to listening.txt",
"xp": 180,
"difficulty": "intermediate",
"expected_time": "8m",
"concepts": [
"ss -tln",
"netstat",
"ports",
"awk"
],
"module": "module-6-networking",
"level": "level-3-ports"
}
},
{
"id": "module-6-networking/level-4-curl",
"name": "level-4-curl",
"path": "modules/module-6-networking/level-4-curl",
"mission": {
"name": "API Call",
"description": "The API response is stored locally, but you still need to fetch it with curl and extract one field from the JSON.",
"objective": "Use curl on response.json and save the value of `service.status` to status.txt",
"xp": 190,
"difficulty": "intermediate",
"expected_time": "8m",
"concepts": [
"curl",
"file://",
"json",
"pipes"
],
"module": "module-6-networking",
"level": "level-4-curl"
}
},
{
"id": "module-6-networking/level-5-dns",
"name": "level-5-dns",
"path": "modules/module-6-networking/level-5-dns",
"mission": {
"name": "Name Resolution",
"description": "DNS lookups are mocked in this sandbox. Resolve the provided hostnames and record the answers.",
"objective": "Resolve each hostname in hosts.txt with mock_dig.sh and save `host ip` pairs to resolved.txt",
"xp": 210,
"difficulty": "intermediate",
"expected_time": "9m",
"concepts": [
"dig",
"dns",
"hostnames",
"loops"
],
"module": "module-6-networking",