arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1405.7058cs.PLcs.LO
收藏

基于子结构逻辑(扩展)的正则表达式指数分布的静态分析

Static Analysis for Regular Expression Exponential Runtime via Substructural Logics (Extended)

Asiri Rathnayake, Hayo Thielecke

摘要:

使用回溯的正则表达式匹配可能具有指数运行时间,导致系统安全文献中称为REDoS的算法复杂性攻击。在本文中,我们建立在最近发表的静态分析,检测是否一个给定的正则表达式可以有指数运行时的一些输入。我们系统地构建了一个更准确的分析,形成权力和产品的过渡关系,从而减少了REDoS问题的可达性。分析的正确性证明了使用子结构演算的搜索树,其中的分支树导致指数爆破的特点是作为一种形式的非线性。

英文摘要:

Regular expression matching using backtracking can have exponential runtime, leading to an algorithmic complexity attack known as REDoS in the systems security literature. In this paper, we build on a recently published static analysis that detects whether a given regular expression can have exponential runtime for some inputs. We systematically construct a more accurate analysis by forming powers and products of transition relations and thereby reducing the REDoS problem to reachability. The correctness of the analysis is proved using a substructural calculus of search trees, where the branching of the tree causing exponential blowup is characterized as a form of non-linearity.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑