arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1610.07198cs.FLcs.PL
收藏

网络协议的安全理论观点

A Language-theoretic View on Network Protocols

Pierre Ganty, Boris Köpf, Pedro Valero

摘要:

输入验证是防止格式错误或恶意输入的第一道防线。因此,验证器(通常是解析器的一部分)没有错误是至关重要的。为了构建可靠的输入验证器,我们建议使用上下文无关语言的解析器生成器。在网络协议的上下文中,各种工作都指出上下文无关语言无法精确或简洁地指定协议中的常见习惯用法。我们回顾了这些评估,并对几种常见的协议习惯用法进行了严格的语言理论分析。然后,我们证明了我们的研究结果的实用价值,开发一个模块化的,强大的,高效的HTTP输入验证依赖于上下文无关文法和正则表达式。

英文摘要:

Input validation is the first line of defense against malformed or malicious inputs. It is therefore critical that the validator (which is often part of the parser) is free of bugs. To build dependable input validators, we propose using parser generators for context-free languages. In the context of network protocols, various works have pointed at context-free languages as falling short to specify precisely or concisely common idioms found in protocols. We review those assessments and perform a rigorous, language-theoretic analysis of several common protocol idioms. We then demonstrate the practical value of our findings by developing a modular, robust, and efficient input validator for HTTP relying on context-free grammars and regular expressions.

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

↑