Detecting API-Misuse Based on Pattern Mining via API Usage Graph with Parameters

被引:0
|
作者
Wu, Yulin [1 ]
Xu, Zhiwu [1 ]
Qin, Shengchao [2 ]
机构
[1] Shenzhen Univ, Coll Comp Sci & Software Engn, Shenzhen, Peoples R China
[2] Xidian Univ, Sch Comp Sci & Technol, Xian, Peoples R China
基金
中国国家自然科学基金;
关键词
API-Misuse Detection; API Pattern; Static Analysis;
D O I
10.1007/978-3-031-35257-7_21
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
API misuse is a common issue that can trigger software crashes, bugs, and vulnerabilities. To address this problem, researchers have proposed pattern-based violation detectors that automatically extract patterns from code. However, these detectors have demonstrated low precision in detecting API misuses. In this paper, we propose a novel API misuse detector. Our proposed detector initially extracts API usages from the code and represents them as API Usage Graphs with Parameters (AUGPs). Utilizing the association rule algorithm, it then mines the binary rules, which are subsequently employed to detect the possible violations. The experimental results show that, comparing against five state-of-the-art detectors on the public dataset MuBench, our detector achieves the highest precision (1x more precise than the second-best one) and the highest F1-score (50% higher than the second-best one).
引用
收藏
页码:344 / 363
页数:20
相关论文
共 50 条
  • [31] Mining Multi-level API Usage Patterns
    Saied, Mohamed Aymen
    Benomar, Omar
    Abdeen, Hani
    Sahraoui, Houari
    2015 22ND INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), 2015, : 23 - 32
  • [32] API Usage Recommendation Via Multi-View Heterogeneous Graph Representation Learning
    Chen, Yujia
    Gao, Cuiyun
    Ren, Xiaoxue
    Peng, Yun
    Xia, Xin
    Lyu, Michael R.
    IEEE Transactions on Software Engineering, 2023, 49 (05): : 3289 - 3304
  • [33] API usage templates via structural generalization
    Mahmoud, May
    Walker, Robert J.
    Denzinger, Joerg
    JOURNAL OF SYSTEMS AND SOFTWARE, 2024, 210
  • [34] API Misuse Detection via Probabilistic Graphical Model
    Ma, Yunlong
    Tian, Wentong
    Gao, Xiang
    Sun, Hailong
    Li, Li
    PROCEEDINGS OF THE 33RD ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2024, 2024, : 88 - 99
  • [35] A Hybrid Pattern Knowledge Graph-Based API Recommendation Approach
    Wang, Guan
    Wang, Weidong
    Li, Dian
    ARTIFICIAL INTELLIGENCE, CICAI 2022, PT III, 2022, 13606 : 465 - 476
  • [36] API Usage Recommendation Via Multi-View Heterogeneous Graph Representation Learning
    Chen, Yujia
    Gao, Cuiyun
    Ren, Xiaoxue
    Peng, Yun
    Xia, Xin
    Lyu, Michael R. R.
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2023, 49 (05) : 3289 - 3304
  • [37] An API Learning Service for Inexperienced Developers Based on API Knowledge Graph
    Yin, Hang
    Zheng, Yuanhao
    Sun, Yanchun
    Huang, Gang
    2021 IEEE INTERNATIONAL CONFERENCE ON WEB SERVICES, ICWS 2021, 2021, : 251 - 261
  • [38] API Misuse Detection Method Based on Transformer
    Yang, Jingbo
    Ren, Jian
    Wu, Wenjun
    2022 IEEE 22ND INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY, QRS, 2022, : 958 - 969
  • [39] Python']Python API Misuse Mining and Classification Based on Hybrid Analysis and Attention Mechanism
    He, Xincheng
    Liu, Xiaojin
    Xu, Lei
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2023, 33 (10) : 1567 - 1597
  • [40] Facebook Linked Data via the Graph API
    Weaver, Jesse
    Tarjan, Paul
    SEMANTIC WEB, 2013, 4 (03) : 245 - 250