EUVIMEDOpdag EUVIMED
Open access · CC BY 4.0

CyberDualNER: A Dual-Stage Approach for Few-Shot Named Entity Recognition in Cybersecurity

Conghui Zheng, Cheng Lu, Changqing Li, Zeyang Zheng, Li Pan

Electronics · 2025-04-28 · 14 (9) · 1791

DOI: 10.3390/electronics14091791 ↗

At a glance

Journal article in Electronics, published online on 2025-04-28. Written by Conghui Zheng and 4 co-authors. Cited 6 times so far (Crossref); 61 references. The full text is freely available (open access, CC BY 4.0). Funded by: National Key Research and Development Plan in China.

AbstractBibliografiske oplysningerCiteRelated studies

Abstract (original language)

As the frequency of cyberattacks rises, extracting actionable cyber threat intelligence (CTI) from diverse online sources has become critical for proactive threat detection and defense. Named entity recognition (NER) serves as a foundational task in CTI extraction, supporting downstream applications such as cybersecurity knowledge graph construction and attack attribution. However, existing NER methods face significant challenges in the cybersecurity domain, including the need to identify highly specialized entity types and adapt to rapidly evolving threats. These challenges are further exacerbated in few-shot scenarios with limited annotated data. In this work, we focus on few-shot NER for CTI extraction in general cyber environments. Our goal is to develop robust and adaptable methods that are not restricted to specific infrastructures (e.g., traditional IT systems), but instead can generalize across diverse cybersecurity contexts. Specifically, to address these issues, we propose CyberDualNER, a novel dual-stage framework for few-shot NER, which includes span detection and entity classification. In the first stage, we proposed a span detector that can utilize data from large-scale general domains to detect possible entity spans. Based on the detected spans, in the second stage, we propose a prompt-enhanced metric-based classifier. We use category descriptions to build prompt templates, extract category anchor representations, and classify entities based on similarity to span representations. By incorporating prior knowledge, we improve performance while reducing data dependency, which ensures generalizability in the face of emerging entities. Extensive experiments on real-world CTI datasets demonstrate the effectiveness of CyberDualNER, with significant performance improvements over baseline methods. Notably, the framework achieves robust results in scenarios with minimal annotated samples, highlighting its potential for practical applications in cybersecurity intelligence extraction.

Funding

  • National Key Research and Development Plan in China

Cite

APA

Zheng, C., Lu, C., Li, C., Zheng, Z., & Pan, L. (2025). CyberDualNER: A Dual-Stage Approach for Few-Shot Named Entity Recognition in Cybersecurity. Electronics, 14(9), 1791. https://doi.org/10.3390/electronics14091791

Vancouver

Zheng C, Lu C, Li C, Zheng Z, Pan L. CyberDualNER: A Dual-Stage Approach for Few-Shot Named Entity Recognition in Cybersecurity. Electronics. 2025;14(9):1791. doi:10.3390/electronics14091791

BibTeX
@article{Zheng2025,
  author = {Zheng, Conghui and Lu, Cheng and Li, Changqing and Zheng, Zeyang and Pan, Li},
  title = {CyberDualNER: A Dual-Stage Approach for Few-Shot Named Entity Recognition in Cybersecurity},
  journal = {Electronics},
  year = {2025},
  volume = {14},
  number = {9},
  pages = {1791},
  doi = {10.3390/electronics14091791}
}
Start for free →