Potential implementation and verification issues in several cryptanalysis artifacts
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- cryptography, testing
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TeX
- Star
- 108
- Fork
- 10
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue tương tự
-
[Page] Deterministic symmetric ciphers are not CPA secure: n ≥ 1, the advantage, and zero expansionĐang mởbug math graph
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
facebookresearch/atlas-lean#15573 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PKI key_type api incompatiblity with vaultCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
openbao/openbao#4622 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
margelo/react-native-quick-crypto#1118 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ProvableHQ/snarkOS#4817 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100