PUMiner: Mining Security Posts from Developer Question and Answer Websites with PU Learning
Not on the map. Why?
Abstract (arXiv)
Security is an increasing concern in software development. Developer Question and Answer (Q&A) websites provide a large amount of security discussion. Existing studies have used human-defined rules to mine security discussions, but these works still miss many posts, which may lead to an incomplete analysis of the security practices reported on Q&A websites. Traditional supervised Machine Learning methods can automate the mining process; however, the required negative (non-security) class is too expensive to obtain. We propose a novel learning framework, PUMiner, to automatically mine security posts from Q&A websites. PUMiner builds a context-aware embedding model to extract features of the posts, and then develops a two-stage PU model to identify security content using the labelled Positive and Unlabelled posts. We evaluate PUMiner on more than 17.2 million posts on Stack Overflow and 52,611 posts on Security StackExchange. We show that PUMiner is effective with the validation performance of at least 0.85 across all model configurations. Moreover, Matthews Correlation Coefficient (MCC) of PUMiner is 0.906, 0.534 and 0.084 points higher than one-class SVM, positive-similarity filtering, and one-stage PU models on unseen testing posts, respectively. PUMiner also performs well with an MCC of 0.745 for scenarios where string matching totally fails. Even when the ratio of the labelled positive posts to the unlabelled ones is only 1:100, PUMiner still achieves a strong MCC of 0.65, which is 160% better than fully-supervised learning. Using PUMiner, we provide the largest and up-to-date security content on Q&A websites for practitioners and researchers.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 Mar 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 1; 2023: 0; 2024: 5; 2025: 1.
10 papers.
- 2021A Survey on Data-driven Software Vulnerability Assessment and Prioritizationcited by 18
- 2021DeepCVA: Automated Commit-level Vulnerability Assessment with Deep Multi-task Learningcited by 11
- 2024Are Latent Vulnerabilities Hidden Gems for Software Vulnerability Prediction? An Empirical Studycited by 9
- 2024Software Vulnerability Prediction in Low-Resource Languages: An Empirical Study of CodeBERT and ChatGPTcited by 8
- 2021Automated Security Assessment for the Internet of Thingscited by 6
- 2024Mitigating Data Imbalance for Software Vulnerability Assessment: Does Data Augmentation Help?cited by 6
- 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++cited by 6
- 2024Automatic Data Labeling for Software Vulnerability Prediction Models: How Far Are We?cited by 6
- 2022On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Modelscited by 5
- 2025Securing the AI Supply Chain: What Can We Learn From Developer-Reported Security Issues and Solutions of AI Projects?cited by 1
- 2025Securing the AI Supply Chain: What Can We Learn From Developer-Reported Security Issues and Solutions of AI Projects?29 Dec 2025
- 2024Automatic Data Labeling for Software Vulnerability Prediction Models: How Far Are We?25 Jul 2024
- 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++24 Jul 2024
- 2024Mitigating Data Imbalance for Software Vulnerability Assessment: Does Data Augmentation Help?15 Jul 2024
- 2024Software Vulnerability Prediction in Low-Resource Languages: An Empirical Study of CodeBERT and ChatGPT26 Apr 2024
- 2024Are Latent Vulnerabilities Hidden Gems for Software Vulnerability Prediction? An Empirical Study20 Jan 2024
- 2022On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Models16 Mar 2022
- 2021Automated Security Assessment for the Internet of Things9 Sep 2021
- 2021DeepCVA: Automated Commit-level Vulnerability Assessment with Deep Multi-task Learning18 Aug 2021
- 2021A Survey on Data-driven Software Vulnerability Assessment and Prioritization18 Jul 2021