iConPAL: LLM-guided Policy Authoring Assistant for Configuring IoT Defenses
Safety and security concerns surrounding Internet-of-Things (IoT) platforms for smart homes have spurred the development of defense mechanisms to safeguard against unexpected behaviors in accordance with safety and security policies. However, the need to manually craft policies in tool-specific languages increases the burden on humans. Previous attempts to address this issue have fallen short, either lacking portability or requiring human intervention in other forms. Therefore, in this paper, we propose iConPAL, an automated policy authoring assistant for IoT environments. iConPAL accepts a policy description in natural language (English) and translates it into a specific formal policy language. iConPAL leverages the capabilities of modern large language models (LLMs), employs prompt engineering to automatically generate few-shot learning prompts for the LLM, and post-processes the LLM’s response to ensure the validity of the translated policy. We implemented a prototype of iConPAL and evaluated it on our curated dataset of 290 policies. We observed that iConPAL successfully translated 93.61% policies, of which 93.57% were semantically correct. iConPAL’s high accuracy makes it suitable for assisting ordinary users in drafting policies for smart homes.
Authors
- Eric F. Rodríguez Rodríguez (ORCID: https://orcid.org/0000-0003-0671-1535)
- Md. Mahbub Alam (ORCID: https://orcid.org/0000-0002-5917-8546)
- Endadul Hoque (ORCID: https://orcid.org/0000-0002-6682-9618)
- Akib Jawad Nafis
- Siwei Zhang (ORCID: https://orcid.org/0000-0002-7878-9940)
Institutions
- Syracuse University (US)
Publication Details
- Published
- 2024-10-07
- DOI
- https://doi.org/10.1109/secdev61143.2024.00014
- Primary Topic
- Network Security and Intrusion Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00