ChatGPT 在密码学滥用检测中的潜力:与静态分析工具的比较分析

Ehsan Firouzi, Mohammad Ghafari, Mike Ebrahimi
{"title":"ChatGPT 在密码学滥用检测中的潜力:与静态分析工具的比较分析","authors":"Ehsan Firouzi, Mohammad Ghafari, Mike Ebrahimi","doi":"arxiv-2409.06561","DOIUrl":null,"url":null,"abstract":"The correct adoption of cryptography APIs is challenging for mainstream\ndevelopers, often resulting in widespread API misuse. Meanwhile, cryptography\nmisuse detectors have demonstrated inconsistent performance and remain largely\ninaccessible to most developers. We investigated the extent to which ChatGPT\ncan detect cryptography misuses and compared its performance with that of the\nstate-of-the-art static analysis tools. Our investigation, mainly based on the\nCryptoAPI-Bench benchmark, demonstrated that ChatGPT is effective in\nidentifying cryptography API misuses, and with the use of prompt engineering,\nit can even outperform leading static cryptography misuse detectors.","PeriodicalId":501332,"journal":{"name":"arXiv - CS - Cryptography and Security","volume":"15 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"ChatGPT's Potential in Cryptography Misuse Detection: A Comparative Analysis with Static Analysis Tools\",\"authors\":\"Ehsan Firouzi, Mohammad Ghafari, Mike Ebrahimi\",\"doi\":\"arxiv-2409.06561\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The correct adoption of cryptography APIs is challenging for mainstream\\ndevelopers, often resulting in widespread API misuse. Meanwhile, cryptography\\nmisuse detectors have demonstrated inconsistent performance and remain largely\\ninaccessible to most developers. We investigated the extent to which ChatGPT\\ncan detect cryptography misuses and compared its performance with that of the\\nstate-of-the-art static analysis tools. Our investigation, mainly based on the\\nCryptoAPI-Bench benchmark, demonstrated that ChatGPT is effective in\\nidentifying cryptography API misuses, and with the use of prompt engineering,\\nit can even outperform leading static cryptography misuse detectors.\",\"PeriodicalId\":501332,\"journal\":{\"name\":\"arXiv - CS - Cryptography and Security\",\"volume\":\"15 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-09-10\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Cryptography and Security\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2409.06561\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Cryptography and Security","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.06561","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

对于主流开发者来说,正确采用密码学 API 是一项挑战,往往会导致广泛的 API 滥用。与此同时,密码学滥用检测器的性能并不稳定,大多数开发人员仍然无法使用。我们研究了 ChatGPT 能在多大程度上检测到密码学滥用,并将其性能与最先进的静态分析工具进行了比较。我们的调查主要基于 CryptoAPI-Bench 基准,结果表明 ChatGPT 在识别密码学 API 滥用方面非常有效,如果使用提示工程,它的性能甚至可以超过领先的静态密码学滥用检测器。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
ChatGPT's Potential in Cryptography Misuse Detection: A Comparative Analysis with Static Analysis Tools
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.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信