Introduction
The Internet of Things (IoT) ecosystem is expanding rapidly, yet its security remains fragmented. Threat intelligence—ranging from CVE databases to industrial whitepapers—is often trapped in heterogeneous formats like PDFs, JSONs, and images, evolving too quickly for standard Large Language Model (LLM) training cycles. General-purpose LLMs face significant hurdles in this domain: temporal lags regarding new vulnerabilities, difficulty parsing structured or multi-modal data, and a lack of persona-specific tailoring for different user types.
To bridge these gaps, we present ChatIoT, a specialized security assistant utilizing Retrieval-Augmented Generation (RAG). ChatIoT transforms raw, scattered threat data into a conversational interface capable of providing up-to-date, actionable intelligence tailored to specific user roles.
System Architecture
The ChatIoT framework is built upon a two-pronged architecture: DataKit for sophisticated data ingestion and IoT-RG for adaptive retrieval and guided generation.
DataKit: The Processing Engine
Unlike standard RAG pipelines that rely on simple text chunking, DataKit is designed to handle the complexity of technical security documents. It employs LLMs to convert multi-modal elements, such as tables and figures, into descriptive text summaries. Furthermore, it utilizes the Ragas library to mathematically optimize chunking strategies—adjusting size and overlap—based on the specific document type (e.g., recursive character splitting for vulnerabilities vs. token-based splitting for threat reports).
IoT-RG: Adaptive Retrieval and Guided Generation
To prevent information overload and maintain high precision, ChatIoT incorporates an LLM-based Selector. This component triages user queries to determine which specific datasets (such as VARIoT or MITRE ATT&CK) are relevant before initiating a search.
The system further enhances precision through Self-Querying Retrievers, which generate structured queries to filter by metadata (e.g., product names or CVE IDs). Finally, the Guided Generation phase uses "background specifications" for five distinct roles—Consumer, Analyst, Technical Officer, Developer, and Trainer—ensuring the output matches the user's technical requirements and practical needs.
Datasets and Knowledge Base
ChatIoT is powered by a curated selection of IoT-specific sources:
- VARIoT: Extensive datasets covering IoT vulnerabilities and exploits.
- MITRE ATT&CK ICS: Tactics and techniques tailored for Industrial Control Systems.
- Threat Reports: Emerging threat data extracted from public security reports.
- Cybersecurity Labeling Schemes (CLS): International product compliance data from regions including Singapore, Finland, Germany, and the US.
Evaluation and Key Results
ChatIoT was evaluated against base models like LLaMA3 and GPT-4o across four dimensions: Reliability, Relevance, Technicality, and Friendliness.
- Quantitative Performance: Evaluation by LLaMA3:70B indicated that ChatIoT improved all metrics by over 10% on average. The most significant gains were observed in Relevance and Technicality, as the model successfully cited specific CVEs and technical mitigation steps absent from the base models' internal knowledge.
- Human Preference: In blind testing, human evaluators preferred ChatIoT’s responses 70-80% of the time for professional roles (Security Analysts and Developers), citing superior structured technical depth compared to generic LLM outputs.
Conclusion and Future Work
ChatIoT demonstrates the efficacy of combining specialized data processing with adaptive RAG for the fast-moving IoT security landscape. While the system currently automates much of the pipeline, future iterations will focus on integrating live, automated threat feeds to eliminate manual data gathering and improving performance for educational personas like the "Trainer," which requires more pedagogical context than raw technical data.
Summary updated