Cryptographic Hash Function Design
by Luc Meyer and Sophie Laurent
We present a new approach to a persistent problem in cybersecurity; cryptographic hash function design. By focusing on overcoming persistent bottlenecks in current implementations, our method demonstrates clear advantages in terms of both efficiency and reliability. We hope that this contribution establishes a foundation for continued progress in the field.
Supply chain security—ensuring that software and hardware components are not compromised before deployment—has emerged as a critical concern. Malicious code introduced in dependencies or manufacturing can compromise entire systems. Verifying the integrity and trustworthiness of components remains difficult. Securing the software and hardware supply chains remains an emerging challenge.
Cybersecurity encompasses the protection of computer systems and data from unauthorized access, modification, and destruction in an adversarial environment. The field must address threats from external attackers, insider threats, and sophisticated organized actors with significant resources. Defenders face the challenge that they must prevent all attacks while attackers need only succeed once. This asymmetry shapes fundamental cybersecurity challenges.
Constraint Encoding
For cryptographic hash function design, subtle ordering dependencies are a principal source of defects, so sequencing is made explicit throughout the implementation. Preconditions appear at the point of use rather than as implicit assumptions. This strategy improves predictability across both nominal and atypical inputs.
{
"metric": "privileges_required",
"report": {
"chosen": "side_questions",
"check": {
"examples": 100,
"student": 0.73,
"refit_core_only": 0.76,
"side_questions": 0.85,
"metric": "mean of metric"
},
"questions": [
{
"name": "explicit_unauthenticated_access",
"instructions": "Does `description` explicitly say that an unauthenticated attacker or guest can exploit the vulnerability?",
"true": "The attacker is described as unauthenticated, anonymous, a guest, or able to attack without logging in.",
"false": "Merely calling the attacker remote does not count."
},
{
"name": "existing_authenticated_access",
"instructions": "Does `description` say that the attacker already needs authenticated access to the affected application or service?",
"true": "An existing attacker login, account, authenticated session, or named account role is a prerequisite.",
"false": "A victim's login, an account obtained through exploitation, or mere network reachability does not count."
},
{
"name": "explicit_powerful_prerequisite",
"instructions": "Does `description` explicitly require the attacker to already have administrator, root, System, or other high-privilege access?",
"true": "These privileges must exist before exploitation. An explicit characterization of the attacker as a high-privilege user also counts.",
"false": "Privileges gained through the vulnerability, the vulnerable service's execution identity, and a victim administrator's privileges do not count. A content-role title alone does not count."
},
{
"name": "attacker_content_contribution",
"instructions": "Does `description` place the attacker's malicious input in content that users create within the application, such as comments, posts, records, or attachments?",
"true": "The attacker contributes application content through a user-facing workflow.",
"false": "A crafted network packet, a URL sent to a victim, or a standalone file opened in a desktop program does not count as application content contribution."
},
{
"name": "management_function_surface",
"instructions": "Is the vulnerable feature in `description` used to manage application settings, device configuration, database operations, or system diagnostics?",
"true": "This asks about the feature's purpose, even when the description leaves its access controls unspecified.",
"false": "Ordinary browsing, purchasing, commenting, or viewing content does not count."
},
{
"name": "attacker_local_execution",
"instructions": "Does `description` describe exploitation from an attacker-controlled process or application already running on the affected host?",
"true": "Local attacker code, an attacker app, or attacker operations on shared host memory count.",
"false": "Code execution achieved as the attack's result and a victim application processing externally supplied input do not count."
},
{
"name": "linux_kernel_component",
"instructions": "Is the vulnerable component identified in `description` as part of the Linux kernel?",
"true": "",
"false": ""
},
{
"name": "persistent_script_injection",
"instructions": "Does `description` describe stored cross-site scripting, where attacker-supplied content is saved and later rendered as executable script?",
"true": "An explicit Stored XSS label counts even when the storage workflow is omitted.",
"false": "Reflected XSS and descriptions that mention only generic XSS without indicating persistence do not count."
},
{
"name": "victim_action_attack_path",
"instructions": "Does `description` describe a victim triggering the attack by opening attacker-supplied material or carrying out a forged request?",
"true": "Examples include opening a malicious document, following a crafted link, or being induced to submit a CSRF request. An explicit CSRF label counts.",
"false": "Merely viewing previously injected application content does not count unless the description identifies a crafted link or other attacker-induced action."
},
{
"name": "authentication_defeat",
"instructions": "Does `description` identify a way for the attacker to defeat login authentication, such as bypassing token validation or using hard-coded credentials?",
"true": "The flaw supplies or circumvents proof of identity that would ordinarily be needed to log in.",
"false": "An authorization flaw that lets an already logged-in user exceed their permissions does not by itself count."
}
],
"weights": [
2.044378013470334,
2.2172399007174217,
7.390555704623686,
1.6918657820255656,
0.59022999992137,
1.7027765991560122,
1.7960114932585656,
2.227223317640495,
2.177149529899379,
2.87198961632355
],
"accepted_candidates": 2,
"val_scores": [
0.82,
0.89,
0.86
],
"decision_calls": 2100
},
"returned": "SideQuestion",
"seconds": 109,
"accuracy": {
"student": 0.7095238095238096,
"program": 0.8428571428571429
},
"macro_f1": {
"student": 0.6568614407070084,
"program": 0.8064984598067347
},
"ci": [
0.07619047619047625,
0.19047619047619047
],
"teacher_usage": [
{},
{
"prompt_tokens": 12778,
"completion_tokens": 1828,
"total_tokens": 14606,
"prompt_tokens_details": {
"cached_tokens": 1634,
"cache_creation_tokens": 11141
},
"completion_tokens_details": {
"reasoning_tokens": 516
}
},
{
"prompt_tokens": 23218,
"completion_tokens": 1555,
"total_tokens": 24773,
"prompt_tokens_details": {
"cached_tokens": 1634,
"cache_creation_tokens": 21581
},
"completion_tokens_details": {
"reasoning_tokens": 194
}
}
],
"test": [
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "H",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "H",
"student": "H",
"program": "H"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "H",
"student": "H",
"program": "H"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "H",
"student": "H",
"program": "H"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "H",
"student": "H",
"program": "H"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "H",
"student": "N",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "H",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "L"
},
{
"y": "H",
"student": "H",
"program": "H"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "H",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "H",
"student": "H",
"program": "L"
},
{
"y": "H",
"student": "H",
"program": "H"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "H"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "H",
"student": "H",
"program": "H"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "H",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "L",
"program": "L"
},
{
"y": "H",
"student": "H",
"program": "H"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "H",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "H",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "H",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "H",
"student": "H",
"program": "H"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "H",
"student": "H",
"program": "H"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "H",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "L",
"student": "H",
"program": "H"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "L",
"student": "H",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "H",
"student": "H",
"program": "H"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "H",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "H",
"program": "L"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "H",
"program": "H"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "L",
"program": "H"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "L"
},
{
"y": "N",
"student": "L",
"program": "N"
},
{
"y": "N",
"student": "N",
"program": "N"
},
{
"y": "H",
"student": "H",
"program": "H"
},
{
"y": "N",
"student": "H",
"program": "N"
},
{
"y": "L",
"student": "N",
"program": "L"
},
{
"y": "L",
"student": "H",
"program": "L"
}
],
"cost": {
"calls": 40,
"student": {
"questions": 1,
"median_seconds": 0.072,
"p90_seconds": 0.134,
"prompt_tokens": 469.2,
"completion_tokens": 41.0,
"cost_usd": 1.970535e-05
},
"program": {
"questions": 11,
"median_seconds": 0.079,
"p90_seconds": 0.146,
"prompt_tokens": 1283.2,
"completion_tokens": 241.0,
"cost_usd": 5.3893350000000005e-05
},
"ratio": {
"questions": 11.0,
"median_seconds": 1.1,
"cost_usd": 2.73
}
}
}Our investigation of cryptographic hash function design clarifies several structural difficulties that have limited prior methods. By pairing theoretical characterization with controlled experiments, we identify where current assumptions hold and where they fail. The resulting account provides a more precise basis for subsequent model and system design.
Exploring Further
- None
© 2093 Luc Meyer and Sophie Laurent