{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2604-03750","title":"CREBench: Evaluating Large Language Models in Cryptographic Binary Reverse Engineering","arxiv_id":"2604.03750","date":"2026-04-04","proceeding":null,"authors":["Baicheng Chen","Yu Wang","Ziheng Zhou","Xiangru Liu","Juanru Li","Yilei Chen","Tianxing He"],"abstract":"Reverse engineering (RE) is central to software security, particularly for cryptographic programs that handle sensitive data and are highly prone to vulnerabilities. It supports critical tasks such as vulnerability discovery and malware analysis. Despite its importance, RE remains labor-intensive and requires substantial expertise, making large language models (LLMs) a potential solution for automating the process. However, their capabilities for RE remain systematically underexplored. To address this gap, we study the cryptographic binary RE capabilities of LLMs and introduce CREBench, a benchmark comprising 432 challenges built from 48 standard cryptographic algorithms, 3 insecure crypto key usage scenarios, and 3 difficulty levels. Each challenge follows a Capture-the-Flag (CTF) RE challenge, requiring the model to analyze the underlying cryptographic logic and recover the correct input. We design an evaluation framework comprising four sub-tasks, from algorithm identification to correct flag recovery. We evaluate eight frontier LLMs on CREBench. GPT-5.4, the best-performing model, achieves 64.03 out of 100 and recovers the flag in 59\\% of challenges. We also establish a strong human expert baseline of 92.19 points, showing that humans maintain an advantage in cryptographic RE tasks. Our code and dataset are available at https://github.com/wangyu-ovo/CREBench.","url_abs":"https://arxiv.org/abs/2604.03750","url_pdf":"https://arxiv.org/pdf/2604.03750","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.03750"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/wangyu-ovo/CREBench","reach":null}],"summary":{"ran":1,"ran_draft_wrong":7,"ran_honours":1,"unverified":5},"by_repo_kind":{"found_in_text":{"samples":14,"ran":9,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":14,"samples":[{"code_sha256_prefix":"4f6db53868ded31c","entry":"InstanceMetadataConfig","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4f6db53868ded31c"}},{"code_sha256_prefix":"e0b927e87921f191","entry":"_build_gdb_result","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e0b927e87921f191"}},{"code_sha256_prefix":"92a6174993bbc00e","entry":"_candidate_oracle_paths","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"92a6174993bbc00e"}},{"code_sha256_prefix":"67ffa4ded6c7dd2c","entry":"_gdb_failure_reason","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"67ffa4ded6c7dd2c"}},{"code_sha256_prefix":"0aeaa4a28212a99a","entry":"_locate_existing_oracle_binary","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0aeaa4a28212a99a"}},{"code_sha256_prefix":"7a57a3e1ae6f4656","entry":"_parse_test_results","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7a57a3e1ae6f4656"}},{"code_sha256_prefix":"c07bdabb7e1788fc","entry":"_truncate_output","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c07bdabb7e1788fc"}},{"code_sha256_prefix":"88566f74a54cd2bf","entry":"clean_out","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"88566f74a54cd2bf"}},{"code_sha256_prefix":"7c9010761fdc1eda","entry":"shlex_quote","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7c9010761fdc1eda"}},{"code_sha256_prefix":"a1f2019f11cd827c","entry":"ChallengeConfig","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a1f2019f11cd827c"}},{"code_sha256_prefix":"81c9bd2ce38396b4","entry":"DockerEnvironment","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"81c9bd2ce38396b4"}},{"code_sha256_prefix":"52922f9ad3d19d19","entry":"_build_oracle_binary","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"52922f9ad3d19d19"}},{"code_sha256_prefix":"a95695f6beb6da6d","entry":"_docker","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a95695f6beb6da6d"}},{"code_sha256_prefix":"119bed2cd7eeb1cd","entry":"run_code_tests","repo":"wangyu-ovo/CREBench","repo_kind":"found_in_text","path":"src/reverse_agent/evaluator.py","file_url":"https://github.com/wangyu-ovo/CREBench/blob/HEAD/src/reverse_agent/evaluator.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"119bed2cd7eeb1cd"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}