tb2-supervisor commited on
Commit
257ea4c
·
1 Parent(s): 1afac25

result feal-differential-cryptanalysis r=1.0

Browse files
results-s0.jsonl CHANGED
@@ -1,3 +1,4 @@
1
  {"task": "adaptive-rejection-sampler", "status": "done", "reward": 1.0, "errored": 1, "exc": ["AgentTimeoutError"], "metrics_err": "no response.json in job dir", "cost_basis": "cumulative-session", "trajectory": "trajectories/adaptive-rejection-sampler.session.jsonl", "tool_calls_total": 32, "tool_calls_by_name": {"Bash": 21, "Write": 1, "Edit": 8, "Read": 2}, "thinking_chars": 221992, "out_tok_max_call": 51376, "inputTokens": 2389838, "outputTokens": 86647, "cacheReadTokens": 2321408, "cacheCreationTokens": 0, "usage_turns": 32, "cost_usd": 0.088491, "cost_usd_offpeak": 0.088491, "cost_usd_peak": 0.176983, "rate_tier": "offpeak", "latency_s": 971.5, "agent_budget_s": 900.0, "budget_frac": 1.079, "ts": "2026-08-30T11:13:24Z", "model": "deepseek-v4-flash-vision-exp", "harness": "nexus-cortex@4.87.1", "adapter": "v14-tb21", "arm": "tb21"}
2
  {"task": "caffe-cifar-10", "status": "done", "reward": 1.0, "errored": 0, "exc": [], "inputTokens": 8525966, "outputTokens": 79520, "cacheReadTokens": 8433024, "cacheCreationTokens": 0, "toolCallIterations": 105, "cost_usd": 0.131962, "cost_usd_offpeak": 0.131962, "cost_usd_peak": 0.263923, "rate_tier": "offpeak", "usage_raw": {"inputTokens": 3631, "outputTokens": 97, "totalTokens": 3728, "cache": {"cacheCreationTokens": 0, "cacheReadTokens": 3456, "uncachedInputTokens": 175, "cacheHitRate": 0.9518039107683833, "costSavingsRatio": 0.7138529330762875}, "reasoningTokens": 11}, "cost_basis": "cumulative-session", "trajectory": "trajectories/caffe-cifar-10.session.jsonl", "tool_calls_total": 113, "tool_calls_by_name": {"Bash": 81, "Read": 12, "BashOutput": 10, "Edit": 7, "WebSearch": 1, "Write": 2}, "thinking_chars": 241750, "out_tok_max_call": 7595, "usage_turns": 106, "latency_s": 1609.7, "agent_budget_s": 1200.0, "budget_frac": 1.341, "ts": "2026-08-30T11:40:26Z", "model": "deepseek-v4-flash-vision-exp", "harness": "nexus-cortex@4.87.1", "adapter": "v14-tb21", "arm": "tb21"}
3
  {"task": "compile-compcert", "status": "done", "reward": 1.0, "errored": 0, "exc": [], "inputTokens": 2120113, "outputTokens": 38149, "cacheReadTokens": 2088832, "cacheCreationTokens": 0, "toolCallIterations": 52, "cost_usd": 0.046682, "cost_usd_offpeak": 0.046682, "cost_usd_peak": 0.093364, "rate_tier": "offpeak", "usage_raw": {"inputTokens": 3541, "outputTokens": 374, "totalTokens": 3915, "cache": {"cacheCreationTokens": 0, "cacheReadTokens": 3456, "uncachedInputTokens": 85, "cacheHitRate": 0.9759954815024005, "costSavingsRatio": 0.7319966111268004}, "reasoningTokens": 54}, "cost_basis": "cumulative-session", "trajectory": "trajectories/compile-compcert.session.jsonl", "tool_calls_total": 61, "tool_calls_by_name": {"Bash": 60, "WebFetch": 1}, "thinking_chars": 92985, "out_tok_max_call": 3644, "usage_turns": 53, "latency_s": 1262.1, "agent_budget_s": 2400.0, "budget_frac": 0.526, "ts": "2026-08-30T17:48:21Z", "model": "deepseek-v4-flash-vision-exp", "harness": "nexus-cortex@4.87.1", "adapter": "v14-tb21", "arm": "tb21"}
 
 
1
  {"task": "adaptive-rejection-sampler", "status": "done", "reward": 1.0, "errored": 1, "exc": ["AgentTimeoutError"], "metrics_err": "no response.json in job dir", "cost_basis": "cumulative-session", "trajectory": "trajectories/adaptive-rejection-sampler.session.jsonl", "tool_calls_total": 32, "tool_calls_by_name": {"Bash": 21, "Write": 1, "Edit": 8, "Read": 2}, "thinking_chars": 221992, "out_tok_max_call": 51376, "inputTokens": 2389838, "outputTokens": 86647, "cacheReadTokens": 2321408, "cacheCreationTokens": 0, "usage_turns": 32, "cost_usd": 0.088491, "cost_usd_offpeak": 0.088491, "cost_usd_peak": 0.176983, "rate_tier": "offpeak", "latency_s": 971.5, "agent_budget_s": 900.0, "budget_frac": 1.079, "ts": "2026-08-30T11:13:24Z", "model": "deepseek-v4-flash-vision-exp", "harness": "nexus-cortex@4.87.1", "adapter": "v14-tb21", "arm": "tb21"}
2
  {"task": "caffe-cifar-10", "status": "done", "reward": 1.0, "errored": 0, "exc": [], "inputTokens": 8525966, "outputTokens": 79520, "cacheReadTokens": 8433024, "cacheCreationTokens": 0, "toolCallIterations": 105, "cost_usd": 0.131962, "cost_usd_offpeak": 0.131962, "cost_usd_peak": 0.263923, "rate_tier": "offpeak", "usage_raw": {"inputTokens": 3631, "outputTokens": 97, "totalTokens": 3728, "cache": {"cacheCreationTokens": 0, "cacheReadTokens": 3456, "uncachedInputTokens": 175, "cacheHitRate": 0.9518039107683833, "costSavingsRatio": 0.7138529330762875}, "reasoningTokens": 11}, "cost_basis": "cumulative-session", "trajectory": "trajectories/caffe-cifar-10.session.jsonl", "tool_calls_total": 113, "tool_calls_by_name": {"Bash": 81, "Read": 12, "BashOutput": 10, "Edit": 7, "WebSearch": 1, "Write": 2}, "thinking_chars": 241750, "out_tok_max_call": 7595, "usage_turns": 106, "latency_s": 1609.7, "agent_budget_s": 1200.0, "budget_frac": 1.341, "ts": "2026-08-30T11:40:26Z", "model": "deepseek-v4-flash-vision-exp", "harness": "nexus-cortex@4.87.1", "adapter": "v14-tb21", "arm": "tb21"}
3
  {"task": "compile-compcert", "status": "done", "reward": 1.0, "errored": 0, "exc": [], "inputTokens": 2120113, "outputTokens": 38149, "cacheReadTokens": 2088832, "cacheCreationTokens": 0, "toolCallIterations": 52, "cost_usd": 0.046682, "cost_usd_offpeak": 0.046682, "cost_usd_peak": 0.093364, "rate_tier": "offpeak", "usage_raw": {"inputTokens": 3541, "outputTokens": 374, "totalTokens": 3915, "cache": {"cacheCreationTokens": 0, "cacheReadTokens": 3456, "uncachedInputTokens": 85, "cacheHitRate": 0.9759954815024005, "costSavingsRatio": 0.7319966111268004}, "reasoningTokens": 54}, "cost_basis": "cumulative-session", "trajectory": "trajectories/compile-compcert.session.jsonl", "tool_calls_total": 61, "tool_calls_by_name": {"Bash": 60, "WebFetch": 1}, "thinking_chars": 92985, "out_tok_max_call": 3644, "usage_turns": 53, "latency_s": 1262.1, "agent_budget_s": 2400.0, "budget_frac": 0.526, "ts": "2026-08-30T17:48:21Z", "model": "deepseek-v4-flash-vision-exp", "harness": "nexus-cortex@4.87.1", "adapter": "v14-tb21", "arm": "tb21"}
4
+ {"task": "feal-differential-cryptanalysis", "status": "done", "reward": 1.0, "errored": 0, "exc": [], "inputTokens": 585123, "outputTokens": 46473, "cacheReadTokens": 561024, "cacheCreationTokens": 0, "toolCallIterations": 16, "cost_usd": 0.039901, "cost_usd_offpeak": 0.039901, "cost_usd_peak": 0.079802, "rate_tier": "offpeak", "usage_raw": {"inputTokens": 3596, "outputTokens": 151, "totalTokens": 3747, "cache": {"cacheCreationTokens": 0, "cacheReadTokens": 3584, "uncachedInputTokens": 12, "cacheHitRate": 0.996662958843159, "costSavingsRatio": 0.7474972191323693}, "reasoningTokens": 25}, "cost_basis": "cumulative-session", "trajectory": "trajectories/feal-differential-cryptanalysis.session.jsonl", "tool_calls_total": 17, "tool_calls_by_name": {"Bash": 14, "Write": 1, "Read": 1, "Edit": 1}, "thinking_chars": 133614, "out_tok_max_call": 9018, "usage_turns": 17, "latency_s": 553.4, "agent_budget_s": 1800.0, "budget_frac": 0.307, "ts": "2026-08-30T17:58:08Z", "model": "deepseek-v4-flash-vision-exp", "harness": "nexus-cortex@4.87.1", "adapter": "v14-tb21", "arm": "tb21"}
trajectories/feal-differential-cryptanalysis.decisions.jsonl ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"ts":1788112184919,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"b54ed21c80bc92cd37c7a49b4172a740","inputSummary":"{\"command\":\"cat /app/feal.py\",\"description\":\"Read the FEAL implementation source code\"}","success":true,"approachHash":"68a712fc02e55182"}
2
+ {"ts":1788112184928,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"ae04ade84ae450aaf19eb2cafc405a03","inputSummary":"{\"command\":\"ls -la /app/\",\"description\":\"List files in /app directory\"}","success":true,"approachHash":"6590bce15b1eec8a"}
3
+ {"ts":1788112261651,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"d30f81bc9d89771ab9aa4b6ad8244925","inputSummary":"{\"command\":\"cd /app && python3 -c \\\"\\nimport feal\\nprint('feal loaded')\\n# Reproduce the F function to analyze it\\nimport random\\nrandom.seed(1)\\nfeal.create_random_keys()\\nprint('keys:', [hex(x) for x in feal.key])\\np = 0x0123456789ABCDEF\\nprint('encrypt sample:', hex(feal.encrypt(p)))\\n\\\"\",\"descri…","success":true,"approachHash":"ddcdf453a68e3c47"}
4
+ {"ts":1788112267698,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"94d31def183871318d26df9898c8a41f","inputSummary":"{\"command\":\"cd /app && python3 -c \\\"\\nimport feal\\n\\n# Reproduce F function with full control\\ndef g(a,b,x):\\n t = (a+b+x)&0xFF\\n return ((t<<2)|(t>>6))&0xFF\\n\\ndef F(x):\\n xb=[0]*4\\n for i in range(4):\\n xb[i]=x&0xFF\\n x>>=8\\n y=[0]*4\\n y[2]=g(xb[3]^xb[2], xb[1]^xb[0…","success":true,"approachHash":"7e5f6b7720f14120"}
5
+ {"ts":1788112276556,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"47499f57ff836412461696fd8c07df2f","inputSummary":"{\"command\":\"cd /app && python3 -c \\\"\\nimport feal, random\\n\\ndef g(a,b,x):\\n t = (a+b+x)&0xFF\\n return ((t<<2)|(t>>6))&0xFF\\n\\ndef F(x):\\n xb=[0]*4\\n for i in range(4):\\n xb[i]=x&0xFF\\n x>>=8\\n y=[0]*4\\n y[2]=g(xb[3]^xb[2], xb[1]^xb[0], 1)\\n y[3]=g(xb[3], y[2], 0)\\…","success":true,"approachHash":"c81da9a6df92e5e1"}
6
+ {"ts":1788112301898,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"e702a7b6ad8b7db39654bf31ee03e7f0","inputSummary":"{\"command\":\"cd /app && python3 -c \\\"\\nimport random, itertools\\n\\ndef g(a,b,x):\\n t=(a+b+x)&0xFF\\n return ((t<<2)|(t>>6))&0xFF\\n\\ndef F(x):\\n xb=[0]*4\\n for i in range(4):\\n xb[i]=x&0xFF; x>>=8\\n y=[0]*4\\n y[2]=g(xb[3]^xb[2], xb[1]^xb[0], 1)\\n y[3]=g(xb[3], y[2], 0)\\n …","success":true,"approachHash":"6169cc8dbb45aeba"}
7
+ {"ts":1788112370869,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"d74479b650010702687056328521efe3","inputSummary":"{\"command\":\"cd /app && python3 -c \\\"\\nimport random\\nimport feal\\n\\ndef g(a,b,x):\\n t=(a+b+x)&0xFF\\n return ((t<<2)|(t>>6))&0xFF\\n\\ndef F(x):\\n xb=[0]*4\\n for i in range(4):\\n xb[i]=x&0xFF; x>>=8\\n y=[0]*4\\n y[2]=g(xb[3]^xb[2], xb[1]^xb[0], 1)\\n y[3]=g(xb[3], y[2], 0)\\n …","success":true,"approachHash":"308f4713440c7e0e"}
8
+ {"ts":1788112383202,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"c2e76ec9d42135d4a5ca036195e373dd","inputSummary":"{\"command\":\"cd /app && python3 -c \\\"\\nimport random\\nimport feal\\n\\ndef g(a,b,x):\\n t=(a+b+x)&0xFF\\n return ((t<<2)|(t>>6))&0xFF\\ndef F(x):\\n xb=[0]*4\\n for i in range(4):\\n xb[i]=x&0xFF; x>>=8\\n y=[0]*4\\n y[2]=g(xb[3]^xb[2], xb[1]^xb[0], 1)\\n y[3]=g(xb[3], y[2], 0)\\n …","success":true,"approachHash":"6a7048df13c19672"}
9
+ {"ts":1788112401965,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"8c1e09878b6626d443ff37bd6611a8e1","inputSummary":"{\"command\":\"cd /app && python3 -c \\\"\\nimport random\\n\\ndef g(a,b,x):\\n t=(a+b+x)&0xFF\\n return ((t<<2)|(t>>6))&0xFF\\ndef F(x):\\n xb=[0]*4\\n for i in range(4):\\n xb[i]=x&0xFF; x>>=8\\n y=[0]*4\\n y[2]=g(xb[3]^xb[2], xb[1]^xb[0], 1)\\n y[3]=g(xb[3], y[2], 0)\\n y[1]=g(xb[1]^…","success":true,"approachHash":"9f823251edb83f4a"}
10
+ {"ts":1788112471744,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Write","inputHash":"837454d58e96be45482b8c67b5a46364","inputSummary":"{\"content\":\"#!/usr/bin/env python3\\n\\\"\\\"\\\"Chosen-plaintext differential attack to recover key[5] of the FEAL-like cipher.\\n\\nAttack idea\\n-----------\\nWe use a probability-1 differential characteristic of the round function F:\\n\\n F(x) ^ F(x ^ 0x80808080) == 0x02000002 (for every x)\\n\\nThis let…","success":true,"approachHash":"8bffe0e67271660c"}
11
+ {"ts":1788112486974,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"09bc19e37ce9a5091683a6d7141d8cc6","inputSummary":"{\"command\":\"cd /app && python3 -c \\\"\\nimport random, time\\nimport feal\\nfrom attack import attack\\n\\ndef run_trial(seed):\\n random.seed(seed)\\n feal.create_random_keys()\\n true = feal.key[5]\\n start=time.time()\\n got = attack(feal.encrypt)\\n elapsed=time.time()-start\\n ok = (got…","success":true,"approachHash":"3297470516652d8c"}
12
+ {"ts":1788112550198,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"b4bd8032422f75cf4d84ee2182279332","inputSummary":"{\"command\":\"cd /app && python3 -c \\\"\\nimport random, time, re\\nimport feal\\nfrom attack import attack\\nimport inspect\\n\\n# Confirm signature is just (encrypt_fn)\\nprint('attack signature:', inspect.signature(attack))\\n\\n# Edge-case keys: force key[5] from particular seeds including 0 and 0xFFFF\\nsam…","success":true,"approachHash":"7c1238e6b21d47e9"}
13
+ {"ts":1788112574827,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"4ca3cb348151c34e7c393590116ccc57","inputSummary":"{\"command\":\"cd /app && python3 -c \\\"\\nimport random\\nimport feal\\nfrom attack import _f, _DPL, _DPR\\n\\n# 1) Confirm F differential 0x80808080 -> 0x02000002 is EXACTLY probability 1 (big sample)\\nrandom.seed(7)\\nbad=0\\nfor _ in range(400000):\\n x=random.getrandbits(32)\\n if _f(x) ^ _f(x^0x80808…","success":true,"approachHash":"b0f23acfbb15984b"}
14
+ {"ts":1788112591564,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Read","inputHash":"c813eee9a162c6608df468e2d6881b99","inputSummary":"{\"file_path\":\"/app/attack.py\"}","success":true,"approachHash":"fb398a4feea1b529"}
15
+ {"ts":1788112599771,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"6c42df7e766a74736c0455a72dbaa1c8","inputSummary":"{\"command\":\"cd /app && python3 -c \\\"\\nimport random, subprocess, sys\\n\\n# Simulate grader in a FRESH subprocess for a few seeds\\nfor seed in [0, 1, 777, 0xBEEF]:\\n code = f'''\\nimport random, feal\\nfrom attack import attack\\nrandom.seed({seed})\\nfeal.create_random_keys()\\nresult = attack(feal.enc…","success":true,"approachHash":"43d7902d0d2e2107"}
16
+ {"ts":1788112618735,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Edit","inputHash":"b615aa7bb0234d2950172882f291691d","inputSummary":"{\"file_path\":\"/app/attack.py\",\"new_string\":\" if len(candidates) == 1:\\n return candidates.pop() & _MASK\\n\\n # Should not happen with a valid key, but if multiple survive, return the one\\n # matching the most pairs (fall back to the first surviving candidate).\\n if candidates:\\n …","success":true,"approachHash":"62a52271ad58a924"}
17
+ {"ts":1788112621902,"sessionId":"427b2278-cf4f-45a7-b8e4-82535b355b89","toolName":"Bash","inputHash":"fbd1f412fb393a1f9983062c226628fb","inputSummary":"{\"command\":\"cd /app && python3 -c \\\"\\nimport random, time\\nimport feal\\nfrom attack import attack\\nrandom.seed(5); feal.create_random_keys()\\ntrue=feal.key[5]\\nt0=time.time(); got=attack(feal.encrypt); dt=time.time()-t0\\nprint('key[5] =', hex(true))\\nprint('recovered=', hex(got), 'type=' , type(got…","success":true,"approachHash":"c9e531d86a43af6b"}
trajectories/feal-differential-cryptanalysis.session.jsonl ADDED
The diff for this file is too large to render. See raw diff