IdeaCredIdeaCred

12xyzz/NeuroDiffTorch

55

The implementation of "NeuralCPA: A Deep Learning Perspective on Chosen-Plaintext Attacks".

What's novel

The implementation of "NeuralCPA: A Deep Learning Perspective on Chosen-Plaintext Attacks".

Code Analysis

14 files read · 4 rounds

A PyTorch framework that trains neural differential distinguishers (GohrNet/DBitNet) on block cipher output pairs to perform Chosen-Plaintext Attacks, supporting 14 ciphers from SPECK to AES.

Strengths

Genuine cryptographic implementations (AES, SPECK, etc.) with NIST test vectors, a well-structured plugin architecture for ciphers/models/losses, and a sophisticated CPA attack that properly filters training data leakage. The DBitNet wide-narrow dilated convolution architecture is a non-trivial design choice for capturing multi-scale differential patterns.

Weaknesses

No test suite exists despite the cryptographic correctness being critical; the CPA attack's data generation logic is complex with edge cases around bit vs word-based ciphers that could harbor subtle bugs; use of eval() for config parsing is a security anti-pattern even in a research context.

Score Breakdown

Innovation
6 (25%)
Craft
38 (35%)
Traction
5 (15%)
Scope
65 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+2

Craft

Ci-2
Tests-3
Polish+0
Releases+0
Has License+0
Code Quality+20
Readme Quality+15
Recent Activity+7
Structure Quality+4
Commit Consistency+4
Has Dependency Mgmt+0

Traction

Forks+0
Stars+6
Hn Points+0
Watchers+0
Early Traction+0
Devto Reactions+0
Community Contribs+0

Scope

Commits+3
Languages+3
Subsystems+13
Bloat Penalty+0
Completeness+5
Contributors+5
Authored Files+15
Readme Code Match+3
Architecture Depth+7
Implementation Depth+8

Evidence

Commits

6

Contributors

1

Files

138

Active weeks

6

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

2

Forks

0

License