Pith. sign in

REVIEW 2 cited by

From Generalist to Specialist: Exploring CWE-Specific Vulnerability Detection

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2408.02329 v1 pith:VKGFSEWM submitted 2024-08-05 cs.CR cs.SE

classification cs.CRcs.SE
keywords vulnerabilitydetectionclassifiersvulnerabilitiesapproachbinarycodecwe-specific
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Vulnerability Detection (VD) using machine learning faces a significant challenge: the vast diversity of vulnerability types. Each Common Weakness Enumeration (CWE) represents a unique category of vulnerabilities with distinct characteristics, code semantics, and patterns. Treating all vulnerabilities as a single label with a binary classification approach may oversimplify the problem, as it fails to capture the nuances and context-specific to each CWE. As a result, a single binary classifier might merely rely on superficial text patterns rather than understanding the intricacies of each vulnerability type. Recent reports showed that even the state-of-the-art Large Language Model (LLM) with hundreds of billions of parameters struggles to generalize well to detect vulnerabilities. Our work investigates a different approach that leverages CWE-specific classifiers to address the heterogeneity of vulnerability types. We hypothesize that training separate classifiers for each CWE will enable the models to capture the unique characteristics and code semantics associated with each vulnerability category. To confirm this, we conduct an ablation study by training individual classifiers for each CWE and evaluating their performance independently. Our results demonstrate that CWE-specific classifiers outperform a single binary classifier trained on all vulnerabilities. Building upon this, we explore strategies to combine them into a unified vulnerability detection system using a multiclass approach. Even if the lack of large and high-quality datasets for vulnerability detection is still a major obstacle, our results show that multiclass detection can be a better path toward practical vulnerability detection in the future. All our models and code to produce our results are open-sourced.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. It Only Gets Worse: Revisiting DL-Based Vulnerability Detectors from a Practical Perspective

    cs.SE 2025-07 conditional novelty 5.0 of 10

    An evaluation of seven deep learning vulnerability detectors shows low consistency and poor generalization, and finds that code features beyond CWE labels strongly influence detection results.

  2. LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insights

    cs.CR 2025-02 conditional novelty 4.0 of 10

    A survey of LLM-based vulnerability detection covering 58 papers, with a taxonomy, dataset overview, and gap analysis, but limited by non-transparent selection and unsupported quantitative claims.

Pith tools