On-device derivation of IoT usage control policies: Automating U-XACML policy generation from natural language with LLMs in smart homes environments
In this paper, we present a framework that integrates AI-based derivation of Access and Usage Control policies for IoT devices, using Large Language Models (LLMs) to automate the generation of policies from unstructured natural language commands. The framework employs a hybrid approach, combining LLMs with dedicated libraries to ensure efficient on-device execution. Our approach is based on a two-step process: first, a fine-tuned LLM converts user commands into structured JSON policy representations; then, a transformation module translates the JSON policies into fully compliant U-XACML policies. To ensure generality across different domains, we introduce a taxonomy-driven dataset creation, which enables policy creation for different environments such as smart homes, smart offices, and healthcare settings. Our evaluation demonstrates that the system achieves 93 % accuracy in policy generation and 91 % accuracy when handling ambiguous or noisy inputs. It also reaches 98 % agreement with expert-defined policies in real-world scenarios. Finally, on-device performance evaluations confirm the feasibility of running the model in practical settings, demonstrating reliable inference under constrained hardware conditions.
Authors
- Marco Rasori
- Loay Alajramy
- Andrea Saracino (ORCID: https://orcid.org/0000-0001-8149-9322)
- Paolo Mori (ORCID: https://orcid.org/0000-0002-6618-0388)
- Marco Simoni (ORCID: https://orcid.org/0009-0000-4170-503X)
Institutions
- Scuola Superiore Sant'Anna (IT)
- Institute of Informatics and Telematics (IT)
- Sapienza University of Rome (IT)
Publication Details
- Journal
- Future Generation Computer Systems
- Published
- 2025-08-09
- DOI
- https://doi.org/10.1016/j.future.2025.108067
- Citations
- 2
- Primary Topic
- Access Control and Trust
- Type
- article
- Field-Weighted Citation Impact
- 8.40
Funders
- European Commission
- Ministero dell’Istruzione, dell’Università e della Ricerca
- Ministero dell'Università e della Ricerca
- HORIZON EUROPE Framework Programme