IDEAS home Printed from https://ideas.repec.org/a/gam/jftint/v17y2025i5p207-d1649266.html
   My bibliography  Save this article

Classification of Hacker’s Posts Based on Zero-Shot, Few-Shot, and Fine-Tuned LLMs in Environments with Constrained Resources

Author

Listed:
  • Theodoros Giannilias

    (Synelixis Solutions S.A., Farmakidou 10, 34100 Chalkida, Greece)

  • Andreas Papadakis

    (Synelixis Solutions S.A., Farmakidou 10, 34100 Chalkida, Greece)

  • Nikolaos Nikolaou

    (Synelixis Solutions S.A., Farmakidou 10, 34100 Chalkida, Greece)

  • Theodore Zahariadis

    (Synelixis Solutions S.A., Farmakidou 10, 34100 Chalkida, Greece)

Abstract

This paper investigates, applies, and evaluates state-of-the-art Large Language Models (LLMs) for the classification of posts from a dark web hackers’ forum into four cyber-security categories. The LLMs applied included Mistral-7B-Instruct-v0.2, Gemma-1.1-7B, Llama-3-8B-Instruct, and Llama-2-7B, with zero-shot learning, few-shot learning, and fine-tuning. The four cyber-security categories consisted of “Access Control and Management”, “Availability Protection and Security by Design Mechanisms”, “Software and Firmware Flaws”, and “not relevant”. The hackers’ posts were also classified and labelled by a human cyber-security expert, allowing a detailed evaluation of the classification accuracy per each LLM and customization/learning method. We verified LLM fine-tuning as the most effective mechanism to enhance the accuracy and reliability of the classifications. The results include the methodology applied and the labelled hackers’ posts dataset.

Suggested Citation

  • Theodoros Giannilias & Andreas Papadakis & Nikolaos Nikolaou & Theodore Zahariadis, 2025. "Classification of Hacker’s Posts Based on Zero-Shot, Few-Shot, and Fine-Tuned LLMs in Environments with Constrained Resources," Future Internet, MDPI, vol. 17(5), pages 1-22, May.
  • Handle: RePEc:gam:jftint:v:17:y:2025:i:5:p:207-:d:1649266
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1999-5903/17/5/207/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1999-5903/17/5/207/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jftint:v:17:y:2025:i:5:p:207-:d:1649266. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.