Cargando…

Offset-FA: A Uniform Method to Handle Both Unbounded and Bounded Repetitions in Regular Expression Matching

With the exponential growth of cyber–physical systems (CPSs), security challenges have emerged; attacks on critical infrastructure could result in catastrophic consequences. Intrusion detection is the foundation for CPS security protection, and deep-packet inspection is the primary method for signat...

Descripción completa

Detalles Bibliográficos
Autores principales: Xu, Chengcheng, Yu, Kun, Xu, Xinghua, Bao, Xianqiang, Wu, Songbing, Zhao, Baokang
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9607373/
https://www.ncbi.nlm.nih.gov/pubmed/36298132
http://dx.doi.org/10.3390/s22207781
_version_ 1784818527329320960
author Xu, Chengcheng
Yu, Kun
Xu, Xinghua
Bao, Xianqiang
Wu, Songbing
Zhao, Baokang
author_facet Xu, Chengcheng
Yu, Kun
Xu, Xinghua
Bao, Xianqiang
Wu, Songbing
Zhao, Baokang
author_sort Xu, Chengcheng
collection PubMed
description With the exponential growth of cyber–physical systems (CPSs), security challenges have emerged; attacks on critical infrastructure could result in catastrophic consequences. Intrusion detection is the foundation for CPS security protection, and deep-packet inspection is the primary method for signature-matched mechanisms. This method usually employs regular expression matching (REM) to detect possible threats in the packet payload. State explosion is the critical challenge for REM applications, which originates primarily from features of large character sets with unbounded (closures) or bounded (counting) repetitions. In this work, we propose Offset-FA to handle these repetitions in a uniform mechanism. Offset-FA eliminates state explosion by extracting the repetitions from the nonexplosive string fragments. Then, these fragments are compiled into a fragment-DFA, while a fragment relation table and a reset table are constructed to preserve their connection and offset relationship. To our knowledge, Offset-FA is the first automaton to handle these two kinds of repetitions together with a uniform mechanism. Experiments demonstrate that Offset-FA outperforms state-of-the-art solutions in both space cost and matching speed on the premise of matching correctness, and achieves a comparable matching speed with that of DFA on practical rule sets.
format Online
Article
Text
id pubmed-9607373
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-96073732022-10-28 Offset-FA: A Uniform Method to Handle Both Unbounded and Bounded Repetitions in Regular Expression Matching Xu, Chengcheng Yu, Kun Xu, Xinghua Bao, Xianqiang Wu, Songbing Zhao, Baokang Sensors (Basel) Article With the exponential growth of cyber–physical systems (CPSs), security challenges have emerged; attacks on critical infrastructure could result in catastrophic consequences. Intrusion detection is the foundation for CPS security protection, and deep-packet inspection is the primary method for signature-matched mechanisms. This method usually employs regular expression matching (REM) to detect possible threats in the packet payload. State explosion is the critical challenge for REM applications, which originates primarily from features of large character sets with unbounded (closures) or bounded (counting) repetitions. In this work, we propose Offset-FA to handle these repetitions in a uniform mechanism. Offset-FA eliminates state explosion by extracting the repetitions from the nonexplosive string fragments. Then, these fragments are compiled into a fragment-DFA, while a fragment relation table and a reset table are constructed to preserve their connection and offset relationship. To our knowledge, Offset-FA is the first automaton to handle these two kinds of repetitions together with a uniform mechanism. Experiments demonstrate that Offset-FA outperforms state-of-the-art solutions in both space cost and matching speed on the premise of matching correctness, and achieves a comparable matching speed with that of DFA on practical rule sets. MDPI 2022-10-13 /pmc/articles/PMC9607373/ /pubmed/36298132 http://dx.doi.org/10.3390/s22207781 Text en © 2022 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Xu, Chengcheng
Yu, Kun
Xu, Xinghua
Bao, Xianqiang
Wu, Songbing
Zhao, Baokang
Offset-FA: A Uniform Method to Handle Both Unbounded and Bounded Repetitions in Regular Expression Matching
title Offset-FA: A Uniform Method to Handle Both Unbounded and Bounded Repetitions in Regular Expression Matching
title_full Offset-FA: A Uniform Method to Handle Both Unbounded and Bounded Repetitions in Regular Expression Matching
title_fullStr Offset-FA: A Uniform Method to Handle Both Unbounded and Bounded Repetitions in Regular Expression Matching
title_full_unstemmed Offset-FA: A Uniform Method to Handle Both Unbounded and Bounded Repetitions in Regular Expression Matching
title_short Offset-FA: A Uniform Method to Handle Both Unbounded and Bounded Repetitions in Regular Expression Matching
title_sort offset-fa: a uniform method to handle both unbounded and bounded repetitions in regular expression matching
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9607373/
https://www.ncbi.nlm.nih.gov/pubmed/36298132
http://dx.doi.org/10.3390/s22207781
work_keys_str_mv AT xuchengcheng offsetfaauniformmethodtohandlebothunboundedandboundedrepetitionsinregularexpressionmatching
AT yukun offsetfaauniformmethodtohandlebothunboundedandboundedrepetitionsinregularexpressionmatching
AT xuxinghua offsetfaauniformmethodtohandlebothunboundedandboundedrepetitionsinregularexpressionmatching
AT baoxianqiang offsetfaauniformmethodtohandlebothunboundedandboundedrepetitionsinregularexpressionmatching
AT wusongbing offsetfaauniformmethodtohandlebothunboundedandboundedrepetitionsinregularexpressionmatching
AT zhaobaokang offsetfaauniformmethodtohandlebothunboundedandboundedrepetitionsinregularexpressionmatching