| 摘 要: 针对现有内存取证工具及研究多聚焦于现代加密算法的密钥提取,对传统 DES密钥缺乏针对性搜索能力,导致处理 DES加密数据时取证效率与完整性受限等问题,提出了一种面向内存取证的 DES密钥搜索算法。首先,基于 OpenSSL库中 DES密钥的反混淆机制,解析其初次字节调换与二次位运算的混淆逻辑,通过逆向循环移位、字节置换及滑动窗口定位,将字节混淆序列还原为标准子密钥;其次,通过汉明距离结构验证方法,利用 DES轮密钥循环群关系,通过PC-2逆置换、循环右移及汉明距离计算验证候选密钥合法性,结合位填充补全置换丢失位;最后,通过熵阈值过滤策略,基于 DES子密钥高熵特性,选定熵阈值最优值。实验结果表明,该算法的搜索性能良好,在多次实验中误检率均为0,漏检率在选取最优熵阈值的情况下仅有7%。 |
| 关键词: 密钥搜索 内存取证 DES密钥 |
|
中图分类号:
文献标识码:
|
|
| A DES Key Search Algorithm for Memory Forensics |
|
HUANG Jinghao, WU Lifa
|
(School of Computer Science, School of Software, School of Cyberspace, Nanjing University of Posts and Telecommunications, Nanjing 210023, China)
1843976722@qq.com; wulifa@njupt.edu.cn
|
| Abstract: Existing memory forensics tools and studies mainly focus on key extraction of modern encryption algorithms, yet they lack targeted search capability for traditional DES keys. This restricts the efficiency and completeness of forensic analysis when processing DES-encrypted data. To address this issue, a DES key search algorithm for memory forensics is proposed. First, based on the deobfuscation mechanism of DES keys in the OpenSSL library, the obfuscation logic of the initial byte swapping and secondary bitwise operations is analyzed. The byte-
obfuscated sequence is restored to standard subkeys through reverse circular shifting, byte permutation, and sliding window positioning. Then, a Hamming distance structural verification method is introduced. By exploiting the cyclic group relationship of DES round keys, the validity of candidate keys is verified through inverse PC-2 permutation,circular right shifts, and Hamming distance calculation, combined with bit padding to recover the bits lost during permutation. Finally, an entropy threshold filtering strategy is employed, where the optimal entropy threshold is selected based on the high-entropy characteristic of DES subkeys. Experimental results demonstrate that the algorithm achieves excellent search performance: the false positive rate remains 0 across multiple experiments, and the false negative rate is only 7% when the optimal entropy threshold is applied. |
| Keywords: key search memory forensics DES key |