Potential implementation and verification issues in several cryptanalysis artifacts
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Bereich
- cryptography, testing
Rechercherichtung
Start with Cryptography/LOCKER-ROLLO/artifacts/ciphertext_attacks/sparse_krylov/tsm_bw.cpp and verify_s16.sh to check how polynomial degrees above 63 are represented. Then inspect the two ARADI attack scripts and Cryptography/COLM/artifacts/splice_forgery/run.sh alongside splice.c; the issue describes the fallback and boundary-test concerns. Done means the configurations and experiments report outcomes that reflect the behavior actually exercised.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Hello,
I was reviewing the implementations in your repository and noticed a few potential issues that may affect correctness or experimental reproducibility.
- LOCKER-ROLLO: Undefined behavior in polynomial construction
File: Cryptography/LOCKER-ROLLO/artifacts/ciphertext_attacks/sparse_krylov/tsm_bw.cpp (lines 18–20)
for (int j = 0; j < m; ++j)
g[j] = (gbits >> j) & 1ULL;
Since gbits is a uint64_t, shifting it by 64 or more bits causes undefined behavior in C++.
However, verify_s16.sh includes configurations with m = 67, 71, and 107.
This may introduce incorrect coefficients into the modulus polynomial, potentially affecting the constructed quotient ring and subsequent MaxMinors matrix.
It would be worth using a representation that supports arbitrary polynomial degrees. - ARADI: Known-key fallback is reported as successful recovery
Files:
attack_5r_lowdata.py (lines 935–954)
attack_6r_48cp.py (lines 281–293)
When pycryptosat is unavailable, the fallback paths use the actual round keys as witnesses rather than independently recovering them.
For example:
rec_true = {
rk_idx: _pack128(rks_witness[rk_idx])
for rk_idx in order
}
return [rec_true]
The experiments can still report successful master-key recovery.
I noticed that the README already documents this fallback, so the behavior itself is not hidden. However, it would be clearer to distinguish witness verification from independent key recovery, especially in automated experiment summaries. - COLM: Boundary tests may report false positives
File: Cryptography/COLM/artifacts/splice_forgery/run.sh (lines 94–107)
The check_sweep() function defaults to REJECTED unless the output contains a positive acceptance count.
However, the command's exit status is captured but never checked.
Consequently, a crashed or failed experiment may still be classified as a successful rejection test.
Additionally, the test labeled "query 1 complete, query 2 15-byte last block" sets PARTIAL2=15, but splice.c uses MLEN instead of MLEN2 when diff_len is false. Therefore, the intended incomplete-block condition does not appear to be exercised.
I would suggest checking the exit status explicitly and verifying the actual message lengths used by each test.
These observations do not necessarily invalidate the underlying cryptanalytic results, but they seem worth addressing to improve implementation correctness and the reliability of the experimental evidence.
Could you please take a look and confirm whether these behaviors are intentional?
Thanks for making the research and implementations publicly available.
- Vorherrschende Sprache
- TeX
- Sterne
- 108
- Forks
- 10
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Ähnliche Issues
-
[Page] Deterministic symmetric ciphers are not CPA secure: n ≥ 1, the advantage, and zero expansionOffenbug math graph
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
facebookresearch/atlas-lean#15573 ·
Maintainer antworten meist innerhalb von 1 Tag
-
help wanted
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
EgorKhaklin/polaris-id#669 ·
Maintainer antworten meist innerhalb von 1 Tag
-
PKI key_type api incompatiblity with vaultEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
openbao/openbao#4622 · 6 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
margelo/react-native-quick-crypto#1118 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ProvableHQ/snarkOS#4817 ·