安全应用程序编程接口(API)对于确保软件安全至关重要。然而,对其的误用会引入漏洞,可能导致严重的数据泄露和巨大的经济损失。复杂的 API 设计、不充分的文档以及不足的安全培训,往往会导致开发者在无意中发生误用。软件安全社区已经设计并评估了若干检测安全 API 误用的方法,以帮助开发者和组织。本研究严格综述了关于检测安全 API 误用的文献,以全面理解这一关键领域。我们的目标是识别并分析安全 API 误用、已开发的检测方法、所采用的评估方法论,以及开放的研究途径,从而推进该领域的最先进水平。采用系统性文献综述(SLR)方法,我们分析了 69 篇研究论文。本综述得出:(a)识别出 6 种安全 API 类型;(b)归纳出 30 种不同的误用;(c)将检测技术分类为基于启发式的方法和基于 ML 的方法;以及(d)识别出 10 项性能度量和 9 个评估基准。综述揭示,检测方法在若干领域缺乏覆盖。我们建议未来的工作应聚焦于使安全 API 开发与开发者需求保持一致,并推进检测技术的标准化评估方法。
英文摘要:
Security Application Programming Interfaces (APIs) are crucial for ensuring software security. However, their misuse introduces vulnerabilities, potentially leading to severe data breaches and substantial financial loss. Complex API design, inadequate documentation, and insufficient security training often lead to unintentional misuse by developers. The software security community has devised and evaluated several approaches to detecting security API misuse to help developers and organizations. This study rigorously reviews the literature on detecting misuse of security APIs to gain a comprehensive understanding of this critical domain. Our goal is to identify and analyze security API misuses, the detection approaches developed, and the evaluation methodologies employed along with the open research avenues to advance the state-of-the-art in this area. Employing the systematic literature review (SLR) methodology, we analyzed 69 research papers. Our review has yielded (a) identification of 6 security API types; (b) classification of 30 distinct misuses; (c) categorization of detection techniques into heuristic-based and ML-based approaches; and (d) identification of 10 performance measures and 9 evaluation benchmarks. The review reveals a lack of coverage of detection approaches in several areas. We recommend that future efforts focus on aligning security API development with developers' needs and advancing standardized evaluation methods for detection technologies.
An Investigation into Misuse of Java Security APIs by Large Language Models
University of Adelaide(阿德莱德大学);CREST(CREST机构);Cybersecurity CRC(网络安全合作研究中心);CSIRO’s Data61(澳大利亚联邦科学与工业研究组织数据61部门);Queensland University of Technology(昆士兰科技大学)
Detecting and Preventing Credential Misuse in OTP-Based Two and Half Factor Authentication Toward Centralized Services Utilizing Blockchain-Based Identity Management
Mark Your LLM: Detecting the Misuse of Open-Source Large Language Models via Watermarking
The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Tsinghua University(清华大学);The Hong Kong University of Science and Technology(香港科技大学)
Mutation-based Evaluation of Cryptographic API Misuse Detectors
Bellini College of AI, Cybersecurity, and Computing, University of South Florida(南佛罗里达大学贝利尼人工智能、网络安全与计算学院);Computer Science Department, William & Mary(威廉玛丽大学计算机科学系);Department of Computer Science, University of Central Florida(中佛罗里达大学计算机科学系)
Mini-Programs, Mega-Problems: Unveiling OAuth-based Authentication Misuses in Mini-Programs via Dynamic Analysis
Simon Fraser University(西蒙菲莎大学);QI-ANXIN Research Institute(奇安信研究院);Shandong University(山东大学);The Chinese University of Hong Kong(香港中文大学);QI-ANXIN Technology Research Institute(奇安信技术研究院);School of Computer Science, Shanghai Jiao Tong University(上海交通大学计算机科学技术学院);Tsinghua University(清华大学);Tsinghua University-QI-ANXIN Group JCNS(清华大学-奇安信集团联合网络安全研究中心);School of Cyber Science and Technology, Shandong University(山东大学网络空间安全学院)
研究通过动态分析揭示小程序中基于 OAuth 的认证滥用问题,设计 MINIAUTH 框架,对大量微信和百度小程序进行分析,发现多种滥用案例及百度 API 加密缺陷,强调加强开发者指导与平台保护的必要性。