File size: 3,518 Bytes
07c0e8e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: apache-2.0
library_name: transformers
pipeline_tag: text-generation
tags:
- quantumindssi
- sovereign-ai
- edge-computing
- post-quantum-cryptography
- quantum-cryptanalysis
- nist-pqc
- vulnerability-detection
- ml-kem
- ml-dsa
- slh-dsa
- 01_quantum_resistant_crypto_analyzer
- finetuned
- lora
inference: true
---

# Quantum-Resistant Cryptographic Protocol Analyzer

A fine-tuned Small Language Model (SLM) that analyzes cryptographic protocol implementations and identifies quantum-vulnerable patterns, attack vectors, and NIST-aligned mitigations.

## Model Details

| Attribute | Value |
|-----------|-------|
| **Developer** | QuantumIndSSI Ltd |
| **Base Model** | ./base_model |
| **Architecture** | Transformer decoder (causal LM) |
| **Fine-tuning Method** | LoRA (Low-Rank Adaptation) |
| **LoRA Rank** | 16 |
| **LoRA Alpha** | 32 |
| **License** | apache-2.0 |

## Intended Use

- Automated quantum vulnerability scanning of protocol implementations (TLS, SSH, VPN, etc.)
- Security audit assistance for classical-to-PQC migration planning
- Developer education on quantum cryptanalysis risks
- Edge deployment on Victron and other constrained hardware

## Training Data

- 10,500+ synthetic cryptographic protocol analyses
- Protocols: TLS/SSL, SSH, IPsec, WireGuard, WPA, S/MIME, OpenPGP, DNSSEC, Kerberos, Bitcoin, Ethereum, gRPC, MQTT, Bluetooth
- Vulnerability types: Shor-vulnerable, Grover-amplified, HNDL, downgrade attacks, weak randomness, deprecated protocols, transition gaps
- Attack vectors: Shor factoring, Shor DLP, Grover search, quantum collision finding, HNDL passive collection, quantum MITM

## Evaluation Results

| Metric | Target | Score |
|--------|--------|-------|
| Perplexity | < 10.0 | TBD |
| Vulnerability Detection Rate | > 85% | TBD |
| Attack Vector Recognition | > 80% | TBD |
| Edge Latency (CPU) | < 1000ms | TBD |
| Memory Footprint | < 4GB | TBD |

## Usage

```python
model_id = "quantumindssi/01_quantum_resistant_crypto_analyzer"
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(model_id)
tokenizer = AutoTokenizer.from_pretrained(model_id)

prompt = """Analyze the following TLS 1.2 implementation for quantum-vulnerable patterns:
```python
context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
context.set_ciphers('RSA-AES256-GCM-SHA384')
```
Identify the vulnerability type, quantum attack vector, and recommend mitigations."""

inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```

## Limitations

- Not a substitute for certified security consultants or formal verification
- Synthetic training data may not capture all real-world edge cases
- English only
- Analysis is heuristic; false positives/negatives are possible

## Hardware Requirements

| Target | RAM | Notes |
|--------|-----|-------|
| Cloud GPU | 4GB | FP16 inference |
| Workstation | 3GB | INT8 quantized |
| Victron Edge | 2-3GB | INT8/INT4 quantized, CPU |

## Citation

```bibtex
@misc{01_quantum_resistant_crypto_analyzer,
  title={Quantum-Resistant Cryptographic Protocol Analyzer},
  author={QuantumIndSSI Ltd},
  year={2026},
  publisher={Hugging Face},
  howpublished={\url{https://huggingface.co/quantumindssi/01_quantum_resistant_crypto_analyzer}}
}
```

## Contact

- GitHub: https://github.com/QuantumindSSI
- HuggingFace: https://huggingface.co/quantumindssi
- Email: contact@quantumindssi.com