ChatGPT's Potential in Cryptography Misuse Detection: A Comparative Analysis with Static Analysis Tools

Ehsan Firouzi, Mohammad Ghafari, Mike Ebrahimi
9/10/2024
cs.CRcs.AI

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{firouzi2024chatgpts,
  title  = {ChatGPT's Potential in Cryptography Misuse Detection: A Comparative Analysis with Static Analysis Tools},
  author = {Ehsan Firouzi and Mohammad Ghafari and Mike Ebrahimi},
  year   = {2024},
  eprint = {2409.06561},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.06561v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.06561.svg)](https://codeofpaper.com/paper/2409.06561)

Discussion