File size: 2,268 Bytes
ec47cae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Benchmark Audit Schema",
  "description": "Standardized schema for comparing agent-generated crypto analysis against ground truth.",
  "type": "object",
  "required": [
    "ciphers",
    "vuln",
    "key_exchange",
    "key_hex",
    "iv_hex"
  ],
  "properties": {
    "ciphers": {
      "type": "array",
      "description": "Ordered list of ciphers applied to the plaintext, innermost first. Most protocols use a single cipher; compound schemes (e.g. RC4 then AES-CBC) use multiple.",
      "items": {
        "type": "object",
        "required": ["cipher", "custom", "mode", "padding"],
        "properties": {
          "cipher": {
            "type": "string",
            "enum": ["AES", "DES", "3DES", "RC4", "XOR", "ChaCha20", "RSA"]
          },
          "custom": {
            "type": "boolean",
            "description": "Whether the cipher implementation is a custom (non-standard) variant."
          },
          "mode": {
            "type": "string",
            "enum": ["ECB", "CBC", "CTR", "GCM", "OAEP", "PKCS1v15", "stream", "custom", "other", "none"]
          },
          "padding": {
            "type": "string",
            "enum": ["pkcs7", "zero", "none"]
          }
        },
        "additionalProperties": false
      },
      "minItems": 1
    },
    "vuln": {
      "type": "boolean",
      "description": "Whether the protocol is vulnerable to decryption by a passive network observer."
    },
    "key_exchange": {
      "type": "string",
      "description": "Key exchange mechanism. 'none' means keys are static or deterministically derived without a handshake.",
      "enum": ["none", "rsa", "dh", "ecdh"]
    },
    "key_hex": {
      "type": ["string", "null"],
      "description": "The static encryption key as a hex string. For per-request keys, this is the static seed/master key used to derive or decrypt per-request keys. null only if the key is fully per-request with no static component."
    },
    "iv_hex": {
      "type": ["string", "null"],
      "description": "The IV as a hex string, or null if no IV is used (ECB, XOR, stream ciphers, or per-request IV with no static component)."
    }
  },
  "additionalProperties": false
}