Integrating Human Expertise into Machine Learning for Enhanced Cybersecurity Detection

Tuesday 29 July 2025

The eternal quest for better cybersecurity has led researchers down a rabbit hole of complexity, but a new approach seeks to simplify the process by integrating human knowledge into machine learning algorithms. The result is a framework that can detect diverse attack variants with unprecedented accuracy.

Cybersecurity is a game of cat and mouse, where hackers continually evolve their tactics to evade detection. Traditional machine learning-based intrusion detection systems (ML-NIDS) have been effective in detecting known attacks, but they struggle when confronted with novel or modified threats. This limitation stems from the fact that ML-NIDS rely on large datasets and complex algorithms to identify patterns in network traffic.

The new framework, dubbed KNOWML, seeks to bridge this gap by injecting human expertise into the machine learning process. By leveraging Large Language Models (LLMs) to analyze attack implementations, KNOWML constructs a unified Knowledge Graph (KG) of attack strategies. This KG serves as a foundation for symbolic reasoning, generating KG-Augmented Input that embeds domain knowledge directly into the design process.

The researchers evaluated KNOWML on 28 realistic attack variants, including 10 newly-collected examples specifically designed to test its effectiveness. In contrast to traditional ML-NIDS models, which often fail to detect novel attacks entirely, KNOWML achieved impressive results: up to 99% F1-score while maintaining a false positive rate below 0.1%.

The key to KNOWML’s success lies in its ability to incorporate human knowledge and adaptability. By leveraging LLMs to analyze attack implementations, the framework can recognize patterns that might elude traditional machine learning approaches. This adaptability allows KNOWML to detect attacks that were previously unknown or modified.

The implications of this research are significant. As cybersecurity threats continue to evolve, KNOWML offers a promising approach for staying ahead of the curve. By integrating human expertise into machine learning algorithms, KNOWML provides a powerful tool for detecting and mitigating complex cyber threats.

In practical terms, KNOWML could be used to enhance existing intrusion detection systems or develop new ones. Its potential applications extend beyond cybersecurity, as well, with possibilities in areas such as medical diagnosis or financial analysis.

While the road ahead is long, KNOWML represents an exciting step towards a more effective and adaptable approach to cybersecurity. By combining human knowledge with machine learning, researchers are poised to create innovative solutions that can stay one step ahead of the ever-evolving threat landscape.

Cite this article: “Integrating Human Expertise into Machine Learning for Enhanced Cybersecurity Detection”, The Science Archive, 2025.

Machine Learning, Cybersecurity, Intrusion Detection, Knowledge Graph, Large Language Models, Symbolic Reasoning, Attack Detection, Human Expertise, Adaptable Systems, Threat Landscape

Reference: Xin Fan Guo, Albert Merono Penuela, Sergio Maffeis, Fabio Pierazzi, “KnowML: Improving Generalization of ML-NIDS with Attack Knowledge Graphs” (2025).

Leave a Reply