Learning fault models of cyber physical systems

Cyber Physical Systems (CPSs) comprise sensors and actuators which interact with the physical environment over a computer network to achieve some control objective. Bugs in CPSs can have severe consequences as CPSs are increasingly deployed in safety-critical applications. Debugging CPSs is therefor...

Full description

Saved in:
Bibliographic Details
Main Authors: KHOO, Teck Ping, SUN, Jun, CHATTOPADHYAY, Sudipta
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2020
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/6030
https://ink.library.smu.edu.sg/context/sis_research/article/7033/viewcontent/LearningFaultModelsOfCyberPhys_2020_av_1_.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-7033
record_format dspace
spelling sg-smu-ink.sis_research-70332021-07-09T03:19:16Z Learning fault models of cyber physical systems KHOO, Teck Ping SUN, Jun CHATTOPADHYAY, Sudipta Cyber Physical Systems (CPSs) comprise sensors and actuators which interact with the physical environment over a computer network to achieve some control objective. Bugs in CPSs can have severe consequences as CPSs are increasingly deployed in safety-critical applications. Debugging CPSs is therefore an important real world problem. Traces from a CPS can be lengthy and are usually linked to different parts of the system, making debugging CPSs a complex and time-consuming undertaking. It is challenging to isolate a component without running the whole CPS. In this work, we propose a model-based approach to debugging a CPS. For each CPS property, active automata learning is applied to learn a fault model, which is a Deterministic Finite Automata (DFA) of the violation of the property. The L* algorithm (L*) will find a minimum DFA given the queries and counterexamples. Short test cases can then be easily extracted from the DFA and executed on the actual CPS for bug rectification. This is a black-box approach which does not require access to the PLC source code, making it easy to apply in practice. Where source code is available, the bug can be rectified. We demonstrate the ease and effectiveness of this approach by applying it to a commercially supplied miniature lift controlled by a Programmable Logic Controller (PLC). Two bugs were discovered in the supplier code. Both of them were patched with relative ease using the models generated. We then created 20 mutated versions of the patched code and applied our approach to these mutants. Our prototype implementation successfully built at least one model for each mutant corresponding to the property violated, demonstrating its effectiveness. 2020-03-01T08:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/6030 info:doi/10.1007/978-3-030-63406-3_9 https://ink.library.smu.edu.sg/context/sis_research/article/7033/viewcontent/LearningFaultModelsOfCyberPhys_2020_av_1_.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Active automata learning Debugging L* algorithm Programmable logic controllers Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic Active automata learning
Debugging
L* algorithm
Programmable logic controllers
Software Engineering
spellingShingle Active automata learning
Debugging
L* algorithm
Programmable logic controllers
Software Engineering
KHOO, Teck Ping
SUN, Jun
CHATTOPADHYAY, Sudipta
Learning fault models of cyber physical systems
description Cyber Physical Systems (CPSs) comprise sensors and actuators which interact with the physical environment over a computer network to achieve some control objective. Bugs in CPSs can have severe consequences as CPSs are increasingly deployed in safety-critical applications. Debugging CPSs is therefore an important real world problem. Traces from a CPS can be lengthy and are usually linked to different parts of the system, making debugging CPSs a complex and time-consuming undertaking. It is challenging to isolate a component without running the whole CPS. In this work, we propose a model-based approach to debugging a CPS. For each CPS property, active automata learning is applied to learn a fault model, which is a Deterministic Finite Automata (DFA) of the violation of the property. The L* algorithm (L*) will find a minimum DFA given the queries and counterexamples. Short test cases can then be easily extracted from the DFA and executed on the actual CPS for bug rectification. This is a black-box approach which does not require access to the PLC source code, making it easy to apply in practice. Where source code is available, the bug can be rectified. We demonstrate the ease and effectiveness of this approach by applying it to a commercially supplied miniature lift controlled by a Programmable Logic Controller (PLC). Two bugs were discovered in the supplier code. Both of them were patched with relative ease using the models generated. We then created 20 mutated versions of the patched code and applied our approach to these mutants. Our prototype implementation successfully built at least one model for each mutant corresponding to the property violated, demonstrating its effectiveness.
format text
author KHOO, Teck Ping
SUN, Jun
CHATTOPADHYAY, Sudipta
author_facet KHOO, Teck Ping
SUN, Jun
CHATTOPADHYAY, Sudipta
author_sort KHOO, Teck Ping
title Learning fault models of cyber physical systems
title_short Learning fault models of cyber physical systems
title_full Learning fault models of cyber physical systems
title_fullStr Learning fault models of cyber physical systems
title_full_unstemmed Learning fault models of cyber physical systems
title_sort learning fault models of cyber physical systems
publisher Institutional Knowledge at Singapore Management University
publishDate 2020
url https://ink.library.smu.edu.sg/sis_research/6030
https://ink.library.smu.edu.sg/context/sis_research/article/7033/viewcontent/LearningFaultModelsOfCyberPhys_2020_av_1_.pdf
_version_ 1770575742887788544