{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,11,21]],"date-time":"2025-11-21T11:32:59Z","timestamp":1763724779303,"version":"3.41.2"},"reference-count":34,"publisher":"Wiley","issue":"1","license":[{"start":{"date-parts":[[2024,11,19]],"date-time":"2024-11-19T00:00:00Z","timestamp":1731974400000},"content-version":"vor","delay-in-days":323,"URL":"http:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100018537","name":"National Science and Technology Major Project","doi-asserted-by":"publisher","award":["2023ZD0121501"],"award-info":[{"award-number":["2023ZD0121501"]}],"id":[{"id":"10.13039\/501100018537","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["62272385","U23A20302","62311540156"],"award-info":[{"award-number":["62272385","U23A20302","62311540156"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100015401","name":"Key Research and Development Projects of Shaanxi Province","doi-asserted-by":"publisher","award":["2024GX-ZDCYL-01-09"],"award-info":[{"award-number":["2024GX-ZDCYL-01-09"]}],"id":[{"id":"10.13039\/501100015401","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["onlinelibrary.wiley.com"],"crossmark-restriction":true},"short-container-title":["International Journal of Intelligent Systems"],"published-print":{"date-parts":[[2024,1]]},"abstract":"<jats:p>Application programming interface (API) misuse refers to misconceptions or carelessness in the anticipated usage of APIs, threatening the software system\u2019s security. Moreover, API misuses demonstrate significant concealment and are challenging to uncover. Recent advancements have explored enhanced LLMs in a variety of software engineering (SE) activities, such as code repair. Nonetheless, the security implications of using LLMs for these purposes remain underexplored, particularly concerning the issue of API misuse. In this paper, we present an empirical study to observe the bug\u2010fixing capabilities of LLMs in addressing API misuse related to monitoring resource management (MRM API misuse). Initially, we propose APImisRepair, a real\u2010world benchmark for repairing MRM API misuse, including buggy programs, corresponding fixed programs, and descriptions of API misuse. Subsequently, we assess the performance of several LLMs using the APImisRepair benchmark. Findings reveal the vulnerabilities of LLMs in repairing MRM API misuse and find several reasons, encompassing factors such as fault localization and a lack of awareness regarding API misuse. Additionally, we have insights on improving LLMs in terms of their ability to fix MRM API misuse and introduce a crafted approach, APImisAP. Experimental results demonstrate that APImisAP exhibits a certain degree of improvement in the security of LLMs.<\/jats:p>","DOI":"10.1155\/2024\/7135765","type":"journal-article","created":{"date-parts":[[2024,11,20]],"date-time":"2024-11-20T06:51:02Z","timestamp":1732085462000},"update-policy":"https:\/\/doi.org\/10.1002\/crossmark_policy","source":"Crossref","is-referenced-by-count":1,"title":["Security Analysis of Large Language Models on API Misuse Programming Repair"],"prefix":"10.1155","volume":"2024","author":[{"ORCID":"https:\/\/orcid.org\/0009-0001-7661-8072","authenticated-orcid":false,"given":"Rui","family":"Zhang","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9485-4861","authenticated-orcid":false,"given":"Ziyue","family":"Qiao","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0667-077X","authenticated-orcid":false,"given":"Yong","family":"Yu","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"311","published-online":{"date-parts":[[2024,11,19]]},"reference":[{"volume-title":"NeurIPS 2023 Workshop on Instruction Tuning and Instruction Following","year":"2023","author":"Shin S.","key":"e_1_2_9_1_2"},{"key":"e_1_2_9_2_2","first-page":"1","article-title":"Few-Shot Training LLMs for Project-Specific Code-Summarization","volume":"177","author":"Ahmed T.","year":"2022","journal-title":"37th IEEE\/ACM International Conference on Automated Software Engineering"},{"key":"e_1_2_9_3_2","first-page":"2339","volume-title":"44th IEEE Symposium on Security and Privacy","author":"Pearce H.","year":"2023"},{"key":"e_1_2_9_4_2","doi-asserted-by":"crossref","unstructured":"HeJ.andVechevM. T. Controlling Large Language Models to Generate Secure and Vulnerable Code 2023 https:\/\/doi.org\/10.1145\/3576915.3623175.","DOI":"10.1145\/3576915.3623175"},{"key":"e_1_2_9_5_2","first-page":"315","volume-title":"Fourteenth Symposium on Useable Privacy and Security","author":"Oliveira D. S.","year":"2018"},{"key":"e_1_2_9_6_2","doi-asserted-by":"publisher","DOI":"10.1145\/3571850"},{"key":"e_1_2_9_7_2","doi-asserted-by":"publisher","DOI":"10.1145\/3324884.3416551"},{"key":"e_1_2_9_8_2","doi-asserted-by":"publisher","DOI":"10.1109\/tse.2021.3067156"},{"key":"e_1_2_9_9_2","unstructured":"ZhangT. IrsanI. C. ThungF. LoD. SharmaA. andJiangL. Evaluating Pre-Trained Language Models for Repairing API Misuses 2023 https:\/\/doi.org\/10.48550\/arXiv.2310.16390."},{"key":"e_1_2_9_10_2","doi-asserted-by":"publisher","DOI":"10.1109\/icse48619.2023.00128"},{"key":"e_1_2_9_11_2","unstructured":"CaoJ. LiM. WenM. andCheungS. A Study on Prompt Design Advantages and Limitations of ChatGPT for Deep Learning Program Repair 2023 https:\/\/doi.org\/10.48550\/arXiv.2304.08191."},{"key":"e_1_2_9_12_2","unstructured":"GuoD. ZhuQ. YangD.et al. DeepSeek-Coder: When the Large Language Model Meets Programming\u2014the Rise of Code Intelligence 2024 https:\/\/doi.org\/10.48550\/arXiv.2401.14196."},{"key":"e_1_2_9_13_2","doi-asserted-by":"crossref","unstructured":"DouS. LiuY. JiaH.et al. StepCoder: Improve Code Generation With Reinforcement Learning From Compiler Feedback 2024 https:\/\/doi.org\/10.48550\/arXiv.2402.01391.","DOI":"10.18653\/v1\/2024.acl-long.251"},{"key":"e_1_2_9_14_2","unstructured":"LiR. AllalL. B. ZiY.et al. StarCoder: May the Source Be with You 2023 https:\/\/doi.org\/10.48550\/arXiv.2305.06161."},{"key":"e_1_2_9_15_2","unstructured":"Rozi\u00e8reB. GehringJ. GloeckleF.et al. Code Llama: Open Foundation Models for Code 2023."},{"key":"e_1_2_9_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/3533767.3534387"},{"key":"e_1_2_9_17_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2019.00071"},{"key":"e_1_2_9_18_2","doi-asserted-by":"publisher","DOI":"10.1109\/tse.2022.3150302"},{"volume-title":"The Eleventh International Conference on Learning Representations","year":"2023","author":"Nijkamp E.","key":"e_1_2_9_19_2"},{"key":"e_1_2_9_20_2","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2023.emnlp-main.68"},{"volume-title":"The Eleventh International Conference on Learning Representations","year":"2023","author":"Fried D.","key":"e_1_2_9_21_2"},{"key":"e_1_2_9_22_2","doi-asserted-by":"crossref","DOI":"10.18653\/v1\/2021.naacl-main.211","volume-title":"Unified Pre-Training for Program Understanding and Generation","author":"Ahmad W. U.","year":"2021"},{"key":"e_1_2_9_23_2","unstructured":"LuoZ. XuC. ZhaoP.et al. WizardCoder: Empowering Code Large Language Models With Evol-Instruct \/10.48550\/arXiv.2306.08568 2023."},{"key":"e_1_2_9_24_2","first-page":"5673","volume-title":"Proceedings of the 29th ACM Conference on Knowledge Discovery and Data Mining","author":"Zheng Q.","year":"2023"},{"key":"e_1_2_9_25_2","first-page":"11941","article-title":"Break-It-Fix-It: Unsupervised Learning for Program Repair","volume":"139","author":"Yasunaga M.","year":"2021","journal-title":"Proceedings of the 38th International Conference on Machine Learning"},{"key":"e_1_2_9_26_2","unstructured":"RichterC.andWehrheimH. Can We Learn From Developer Mistakes? Learning to Localize and Repair Real Bugs From Real Bug Fixes 2022 https:\/\/doi.org\/10.48550\/arXiv.2207.00301."},{"key":"e_1_2_9_27_2","doi-asserted-by":"crossref","first-page":"959","DOI":"10.1145\/3540250.3549101","volume-title":"Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering","author":"Xia C. S.","year":"2022"},{"key":"e_1_2_9_28_2","first-page":"1506","volume-title":"44th IEEE\/ACM 44th International Conference on Software Engineering","author":"Ye H.","year":"2022"},{"key":"e_1_2_9_29_2","first-page":"1251","volume-title":"45th IEEE\/ACM International Conference on Software Engineering","author":"Jiang N.","year":"2023"},{"key":"e_1_2_9_30_2","unstructured":"ZhangP. ZengG. WangT. andLuW. TinyLlama: An Open-Source Small Language Model 2024 https:\/\/doi.org\/10.48550\/arXiv.2401.02385."},{"key":"e_1_2_9_31_2","first-page":"311","volume-title":"Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics","author":"Papineni K.","year":"2002"},{"key":"e_1_2_9_32_2","unstructured":"RenS. GuoD. LuS.et al. CodeBLEU: A Method for Automatic Evaluation of Code Synthesis 2020."},{"key":"e_1_2_9_33_2","first-page":"1","article-title":"CrystalBLEU: Precisely and Efficiently Measuring the Similarity of Code","volume":"28","author":"Eghbali A.","year":"2022","journal-title":"37th IEEE\/ACM International Conference on Automated Software Engineering"},{"key":"e_1_2_9_34_2","doi-asserted-by":"crossref","first-page":"13921","DOI":"10.18653\/v1\/2023.emnlp-main.859","volume-title":"Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing","author":"Zhou S.","year":"2023"}],"container-title":["International Journal of Intelligent Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/onlinelibrary.wiley.com\/doi\/pdf\/10.1155\/2024\/7135765","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,11,20]],"date-time":"2024-11-20T06:51:12Z","timestamp":1732085472000},"score":1,"resource":{"primary":{"URL":"https:\/\/onlinelibrary.wiley.com\/doi\/10.1155\/2024\/7135765"}},"subtitle":[],"editor":[{"given":"Eugenio","family":"Vocaturo","sequence":"additional","affiliation":[],"role":[{"role":"editor","vocabulary":"crossref"}]}],"short-title":[],"issued":{"date-parts":[[2024,1]]},"references-count":34,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2024,1]]}},"alternative-id":["10.1155\/2024\/7135765"],"URL":"https:\/\/doi.org\/10.1155\/2024\/7135765","archive":["Portico"],"relation":{},"ISSN":["0884-8173","1098-111X"],"issn-type":[{"type":"print","value":"0884-8173"},{"type":"electronic","value":"1098-111X"}],"subject":[],"published":{"date-parts":[[2024,1]]},"assertion":[{"value":"2024-03-30","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-10-18","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2024-11-19","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}],"article-number":"7135765"}}