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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "metadata": {
    "total_nodes": 10,
    "total_edges": 12,
    "win_node_id": "crypto_rsa_decrypt_hex",
    "win_condition": {
      "type": "tool_output",
      "node_id": "crypto_rsa_decrypt_hex",
      "output_port": "text",
      "output_type": "Text_Generic",
      "description": "Execute RSA Decrypt and get the output from port 'text'"
    },
    "source_init": {
      "source_nodes": [
        "crypto_rsa_decrypt_hex",
        "csv_query",
        "hmac_sha256",
        "calc_gcd_7a5a"
      ],
      "by_node": {
        "crypto_rsa_decrypt_hex": {
          "node_name": "RSA Decrypt",
          "node_type": "Tool",
          "template_id": "crypto_rsa_decrypt_hex",
          "init_inputs": {
            "n": {
              "type": "Big_Int",
              "description": "Modulus n"
            }
          },
          "init_outputs": {}
        },
        "csv_query": {
          "node_name": "CSV Query",
          "node_type": "Tool",
          "template_id": "csv_query",
          "init_inputs": {
            "file_id": {
              "type": "File_Id",
              "description": "CSV file ID"
            },
            "select": {
              "type": "Text_Generic",
              "description": "Columns to select"
            },
            "where": {
              "type": "Text_Generic",
              "description": "Where clause"
            }
          },
          "init_outputs": {
            "rows": {
              "type": "Text_Generic",
              "description": "Result rows"
            }
          }
        },
        "hmac_sha256": {
          "node_name": "HMAC-SHA256 Calculator",
          "node_type": "Tool",
          "template_id": "hmac_sha256",
          "init_inputs": {
            "hex_key": {
              "type": "Hex_String",
              "description": "Hex key"
            },
            "text": {
              "type": "Text_Generic",
              "description": "Text message"
            }
          },
          "init_outputs": {}
        },
        "calc_gcd_7a5a": {
          "node_name": "BigInt GCD Calculator",
          "node_type": "Tool",
          "template_id": "calc_gcd",
          "init_inputs": {
            "a": {
              "type": "Big_Int",
              "description": "First integer"
            },
            "b": {
              "type": "Big_Int",
              "description": "Second integer"
            }
          },
          "init_outputs": {}
        }
      }
    },
    "initial_values": {
      "crypto_rsa_decrypt_hex": {
        "init_inputs": {
          "n": "928374651029384756102938475612"
        },
        "init_outputs": {}
      },
      "csv_query": {
        "init_inputs": {
          "file_id": "customer_transactions_2024.csv",
          "select": "transaction_id, user, amount",
          "where": "amount > 1000 AND status = 'completed'"
        },
        "init_outputs": {
          "rows": "[{\"transaction_id\": \"TX9823\", \"user\": \"alice_k\", \"amount\": 1200}, {\"transaction_id\": \"TX9941\", \"user\": \"bob_m\", \"amount\": 3400}, {\"transaction_id\": \"TX9982\", \"user\": \"charlie_d\", \"amount\": 1550}]"
        }
      },
      "hmac_sha256": {
        "init_inputs": {
          "hex_key": "4a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d",
          "text": "Authorize transfer of funds ID 8374"
        },
        "init_outputs": {}
      },
      "calc_gcd_7a5a": {
        "init_inputs": {
          "a": "485726381947582647382910384756",
          "b": "293847561029384756102938475610"
        },
        "init_outputs": {}
      }
    },
    "intro_narrative": "You are a rogue cyber-operative who has just infiltrated the subterranean server farm of 'OmniCorp', a shadowy tech conglomerate. They are about to launch a devastating global surveillance virus. The virus payload is locked behind a cascading encryption firewall. Alarms are blaring, and the lockdown protocols have been initiated. You have only minutes to navigate their complex security network, trace the data flows, and decrypt the master kill-switch before you are trapped forever and the virus goes live. Your handler 'Ghost' has provided you with remote access to some of the facility's initial nodes, but the rest is up to you. You must trace the data through various security checkpoints, linking terminals and processors to break the ultimate encryption.",
    "narrative_style": "techno_thriller"
  },
  "nodes": [
    {
      "id": "crypto_rsa_decrypt_hex",
      "name": "RSA Decrypt",
      "description": "RSA decrypt (hex cipher) with n,d (decimal).",
      "type": "Tool",
      "template_id": "crypto_rsa_decrypt_hex",
      "initial_visible": true,
      "is_revealed": true,
      "inputs": [
        {
          "name": "hex_cipher",
          "type": "Hex_String",
          "description": "Ciphertext (Hex)",
          "value": "51594894e9b8d54054e5ae17e85baf25ec06223bd696ce519778c5a54b40d967"
        },
        {
          "name": "n",
          "type": "Big_Int",
          "description": "Modulus n",
          "value": "928374651029384756102938475612"
        },
        {
          "name": "d",
          "type": "Big_Int",
          "description": "Private exponent d",
          "value": "1762273424"
        }
      ],
      "outputs": [
        {
          "name": "text",
          "type": "Text_Generic",
          "description": "Decrypted text",
          "value": "\u00074R?U-"
        }
      ],
      "init": {
        "inputs": {
          "n": "928374651029384756102938475612"
        },
        "outputs": {}
      },
      "narrative": "This is the Master Decryption Interface. It requires inputs from both the Data Format Converter and the Secure Authenticator to finally breach the system's firewall."
    },
    {
      "id": "num_base_convert",
      "name": "Base Converter",
      "description": "Convert integer between bases (2..36).",
      "type": "Tool",
      "template_id": "num_base_convert",
      "initial_visible": true,
      "is_revealed": true,
      "inputs": [
        {
          "name": "s",
          "type": "Big_Int",
          "description": "Input integer value",
          "value": 1762273424
        },
        {
          "name": "from_base",
          "type": "Big_Int",
          "description": "From base",
          "value": "1"
        },
        {
          "name": "to_base",
          "type": "Big_Int",
          "description": "To base",
          "value": "1207457333"
        }
      ],
      "outputs": [
        {
          "name": "str",
          "type": "Big_Int",
          "description": "Converted integer value",
          "value": "1762273424"
        }
      ],
      "narrative": "This is the Data Format Converter. It requires inputs from the Logic Synchronization Unit, the Quantum Inversion Core, and the Primary Integrity Checker to translate the encrypted signals."
    },
    {
      "id": "calc_gcd",
      "name": "BigInt GCD Calculator",
      "description": "Greatest common divisor of two large decimal integers.",
      "type": "Tool",
      "template_id": "calc_gcd",
      "initial_visible": true,
      "is_revealed": true,
      "inputs": [
        {
          "name": "a",
          "type": "Big_Int",
          "description": "First integer",
          "value": "2"
        },
        {
          "name": "b",
          "type": "Big_Int",
          "description": "Second integer",
          "value": "1207457333"
        }
      ],
      "outputs": [
        {
          "name": "gcd",
          "type": "Big_Int",
          "description": "GCD result",
          "value": "1"
        }
      ],
      "narrative": "This is the Logic Synchronization Unit. It requires inputs from both the Quantum Inversion Core and the Biometric Math Co-processor to synchronize the algorithms."
    },
    {
      "id": "calc_inv_mod",
      "name": "BigInt Modular Inverse",
      "description": "Modular inverse of a modulo mod (large decimal strings).",
      "type": "Tool",
      "template_id": "calc_inv_mod",
      "initial_visible": true,
      "is_revealed": true,
      "inputs": [
        {
          "name": "a",
          "type": "Big_Int",
          "description": "Integer a",
          "value": 3350192045
        },
        {
          "name": "mod",
          "type": "Big_Int",
          "description": "Modulus",
          "value": 1762273424
        }
      ],
      "outputs": [
        {
          "name": "inv",
          "type": "Big_Int",
          "description": "Modular inverse",
          "value": "1207457333"
        }
      ],
      "narrative": "This is the Quantum Inversion Core. It requires inputs from both the Primary Integrity Checker and the Secondary Integrity Checker to compute the modular shift."
    },
    {
      "id": "checksum_crc32",
      "name": "CRC32 Checksum",
      "description": "CRC32 over hex bytes.",
      "type": "Tool",
      "template_id": "checksum_crc32",
      "initial_visible": true,
      "is_revealed": true,
      "inputs": [
        {
          "name": "hex",
          "type": "Hex_String",
          "description": "Hex data",
          "value": "d856112f6b2ed06a37d67a3c97df7d49"
        }
      ],
      "outputs": [
        {
          "name": "hex",
          "type": "Hex_String",
          "description": "CRC32 Hex",
          "value": "690a2890"
        },
        {
          "name": "int",
          "type": "Big_Int",
          "description": "CRC32 Int",
          "value": 1762273424
        }
      ],
      "narrative": "This is the Primary Integrity Checker. It requires input from the Signature Generator Module to scan the generated signature."
    },
    {
      "id": "checksum_crc32_2119",
      "name": "CRC32 Checksum",
      "description": "CRC32 over hex bytes.",
      "type": "Tool",
      "template_id": "checksum_crc32",
      "initial_visible": true,
      "is_revealed": true,
      "inputs": [
        {
          "name": "hex",
          "type": "Hex_String",
          "description": "Hex data",
          "value": "690a2890"
        }
      ],
      "outputs": [
        {
          "name": "hex",
          "type": "Hex_String",
          "description": "CRC32 Hex",
          "value": "c7afdfad"
        },
        {
          "name": "int",
          "type": "Big_Int",
          "description": "CRC32 Int",
          "value": 3350192045
        }
      ],
      "narrative": "This is the Secondary Integrity Checker. It requires input from the Primary Integrity Checker to perform a deeper verification."
    },
    {
      "id": "hash_md5",
      "name": "MD5 Hasher",
      "description": "MD5 over UTF-8 text; returns hex.",
      "type": "Tool",
      "template_id": "hash_md5",
      "initial_visible": true,
      "is_revealed": true,
      "inputs": [
        {
          "name": "text",
          "type": "Text_Generic",
          "description": "Text to hash",
          "value": "[{\"transaction_id\": \"TX9823\", \"user\": \"alice_k\", \"amount\": 1200}, {\"transaction_id\": \"TX9941\", \"user\": \"bob_m\", \"amount\": 3400}, {\"transaction_id\": \"TX9982\", \"user\": \"charlie_d\", \"amount\": 1550}]"
        }
      ],
      "outputs": [
        {
          "name": "hex",
          "type": "Hex_String",
          "description": "MD5 Hex digest",
          "value": "d856112f6b2ed06a37d67a3c97df7d49"
        }
      ],
      "narrative": "This is the Signature Generator Module. It requires input from the Mainframe Database Terminal to process the retrieved records."
    },
    {
      "id": "csv_query",
      "name": "CSV Query",
      "description": "Query CSV: select columns and simple WHERE.",
      "type": "Tool",
      "template_id": "csv_query",
      "initial_visible": true,
      "is_revealed": true,
      "inputs": [
        {
          "name": "file_id",
          "type": "File_Id",
          "description": "CSV file ID",
          "value": "customer_transactions_2024.csv"
        },
        {
          "name": "select",
          "type": "Text_Generic",
          "description": "Columns to select",
          "value": "transaction_id, user, amount"
        },
        {
          "name": "where",
          "type": "Text_Generic",
          "description": "Where clause",
          "value": "amount > 1000 AND status = 'completed'"
        }
      ],
      "outputs": [
        {
          "name": "rows",
          "type": "Text_Generic",
          "description": "Result rows",
          "value": "[{\"transaction_id\": \"TX9823\", \"user\": \"alice_k\", \"amount\": 1200}, {\"transaction_id\": \"TX9941\", \"user\": \"bob_m\", \"amount\": 3400}, {\"transaction_id\": \"TX9982\", \"user\": \"charlie_d\", \"amount\": 1550}]"
        }
      ],
      "init": {
        "inputs": {
          "file_id": "customer_transactions_2024.csv",
          "select": "transaction_id, user, amount",
          "where": "amount > 1000 AND status = 'completed'"
        },
        "outputs": {
          "rows": "[{\"transaction_id\": \"TX9823\", \"user\": \"alice_k\", \"amount\": 1200}, {\"transaction_id\": \"TX9941\", \"user\": \"bob_m\", \"amount\": 3400}, {\"transaction_id\": \"TX9982\", \"user\": \"charlie_d\", \"amount\": 1550}]"
        }
      },
      "narrative": "An old but heavily fortified Mainframe Database Terminal."
    },
    {
      "id": "hmac_sha256",
      "name": "HMAC-SHA256 Calculator",
      "description": "HMAC-SHA256(text) with hex key.",
      "type": "Tool",
      "template_id": "hmac_sha256",
      "initial_visible": true,
      "is_revealed": true,
      "inputs": [
        {
          "name": "hex_key",
          "type": "Hex_String",
          "description": "Hex key",
          "value": "4a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d"
        },
        {
          "name": "text",
          "type": "Text_Generic",
          "description": "Text message",
          "value": "Authorize transfer of funds ID 8374"
        }
      ],
      "outputs": [
        {
          "name": "hex",
          "type": "Hex_String",
          "description": "HMAC Hex digest",
          "value": "51594894e9b8d54054e5ae17e85baf25ec06223bd696ce519778c5a54b40d967"
        }
      ],
      "init": {
        "inputs": {
          "hex_key": "4a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d",
          "text": "Authorize transfer of funds ID 8374"
        },
        "outputs": {}
      },
      "narrative": "A sleek and standalone Secure Authenticator device."
    },
    {
      "id": "calc_gcd_7a5a",
      "name": "BigInt GCD Calculator",
      "description": "Greatest common divisor of two large decimal integers.",
      "type": "Tool",
      "template_id": "calc_gcd",
      "initial_visible": true,
      "is_revealed": true,
      "inputs": [
        {
          "name": "trigger_hidden",
          "type": "Hidden_Item",
          "description": "Hidden item required to unlock this tool"
        },
        {
          "name": "a",
          "type": "Big_Int",
          "description": "First integer",
          "value": "485726381947582647382910384756"
        },
        {
          "name": "b",
          "type": "Big_Int",
          "description": "Second integer",
          "value": "293847561029384756102938475610"
        }
      ],
      "outputs": [
        {
          "name": "gcd",
          "type": "Big_Int",
          "description": "GCD result",
          "value": "2"
        }
      ],
      "init": {
        "inputs": {
          "a": "485726381947582647382910384756",
          "b": "293847561029384756102938475610"
        },
        "outputs": {}
      },
      "narrative": "A specialized Biometric Math Co-processor for secure calculations."
    }
  ],
  "edges": [
    {
      "source_id": "num_base_convert",
      "target_id": "crypto_rsa_decrypt_hex",
      "connection_type": "Big_Int",
      "source_port": "str",
      "target_port": "d"
    },
    {
      "source_id": "calc_gcd",
      "target_id": "num_base_convert",
      "connection_type": "Big_Int",
      "source_port": "gcd",
      "target_port": "from_base"
    },
    {
      "source_id": "calc_inv_mod",
      "target_id": "num_base_convert",
      "connection_type": "Big_Int",
      "source_port": "inv",
      "target_port": "to_base"
    },
    {
      "source_id": "checksum_crc32",
      "target_id": "calc_inv_mod",
      "connection_type": "Big_Int",
      "source_port": "int",
      "target_port": "mod"
    },
    {
      "source_id": "checksum_crc32",
      "target_id": "num_base_convert",
      "connection_type": "Big_Int",
      "source_port": "int",
      "target_port": "s"
    },
    {
      "source_id": "checksum_crc32_2119",
      "target_id": "calc_inv_mod",
      "connection_type": "Big_Int",
      "source_port": "int",
      "target_port": "a"
    },
    {
      "source_id": "calc_inv_mod",
      "target_id": "calc_gcd",
      "connection_type": "Big_Int",
      "source_port": "inv",
      "target_port": "b"
    },
    {
      "source_id": "checksum_crc32",
      "target_id": "checksum_crc32_2119",
      "connection_type": "Hex_String",
      "source_port": "hex",
      "target_port": "hex"
    },
    {
      "source_id": "hash_md5",
      "target_id": "checksum_crc32",
      "connection_type": "Hex_String",
      "source_port": "hex",
      "target_port": "hex"
    },
    {
      "source_id": "csv_query",
      "target_id": "hash_md5",
      "connection_type": "Text_Generic",
      "source_port": "rows",
      "target_port": "text"
    },
    {
      "source_id": "hmac_sha256",
      "target_id": "crypto_rsa_decrypt_hex",
      "connection_type": "Hex_String",
      "source_port": "hex",
      "target_port": "hex_cipher"
    },
    {
      "source_id": "calc_gcd_7a5a",
      "target_id": "calc_gcd",
      "connection_type": "Big_Int",
      "source_port": "gcd",
      "target_port": "a"
    }
  ]
}