ChatGPT 在密码学误用检测中的潜力:与静态分析工具的比较分析
ChatGPT's Potential in Cryptography Misuse Detection: A Comparative Analysis with Static Analysis Tools
AI总结:
本文基于 CryptoAPI-Bench 基准评估 ChatGPT 检测密码学 API 误用的能力,发现其借助提示工程可超越主流静态分析工具,为开发者提供了更易用的误用检测方案。
摘要:
对于主流开发者而言,正确采用密码学 API 具有挑战性,通常导致广泛的 API 误用。与此同时,密码学误用检测器表现不一致,并且大多数开发者难以使用。我们研究了 ChatGPT 能在多大程度上检测密码学误用,并将其性能与最先进的静态分析工具进行了比较。我们的研究主要基于 CryptoAPI-Bench 基准,结果表明 ChatGPT 在识别密码学 API 误用方面是有效的,并且通过使用提示工程,它甚至可以超越领先的静态密码学误用检测器。
英文摘要:
The correct adoption of cryptography APIs is challenging for mainstream developers, often resulting in widespread API misuse. Meanwhile, cryptography misuse detectors have demonstrated inconsistent performance and remain largely inaccessible to most developers. We investigated the extent to which ChatGPT can detect cryptography misuses and compared its performance with that of the state-of-the-art static analysis tools. Our investigation, mainly based on the CryptoAPI-Bench benchmark, demonstrated that ChatGPT is effective in identifying cryptography API misuses, and with the use of prompt engineering, it can even outperform leading static cryptography misuse detectors.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。