Formal Language Theory for Practical Security - Extended Abstract -

被引:0
|
作者
Jakoby, Andreas [1 ]
Leuther, Jannis [1 ]
Lucks, Stefan [1 ]
机构
[1] Bauhaus Univ Weimar, Weimar, Germany
关键词
D O I
10.1109/SPW53761.2021.00023
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
When binary data are sent from one party to another one, the encoding of the data can be described as a "data serialisation" language (DaSeL). Many DaSeLs employ the "length-prefix" pattern for strings, containers and other data items of variable length. This consists of an encoding of the item's length, followed by an encoding of the item itself without closing brackets or "end" symbols. The receiver must determine the final byte from the length read before. Length-prefix languages are not context-free. Thus, the plethora of tools and methods to specify, analyse, and parse context-free languages appears to be useless for length-prefix languages. This seems to explain why improper specifications of length-prefix languages and buggy hand-written parsers are so often a root cause for security issues and exploits, as, e.g., in the case of the famous Heartbleed bug. One might even be tempted to consider the use of length-prefix languages a security hazard. But this consideration would be wrong. We present a transformation of words from "calc-context-free" languages (a superset of context-free and length-prefix languages) into words from proper context-free languages. The transformation actually allows to use tools from context-free languages to deal with length-prefix languages. Our transformation runs on a Turing machine with logarithmic space. This implies the theoretical result of calc-context-free languages being in the complexity class logCFL. Similarly, deterministic calc-context-free languages are in logDCFL. To run in linear time, one needs to enhance the Turing machine by a stack to store additional data.
引用
收藏
页码:101 / 110
页数:10
相关论文
共 50 条
  • [1] Security Applications of Formal Language Theory
    Sassaman, Len
    Patterson, Meredith L.
    Bratus, Sergey
    Locasto, Michael E.
    [J]. IEEE SYSTEMS JOURNAL, 2013, 7 (03): : 489 - 500
  • [2] FORMAL SEMANTICS AND ABSTRACT PROPERTIES OF STRING PATTERN OPERATIONS AND EXTENDED FORMAL LANGUAGE DESCRIPTION MECHANISMS
    FLECK, AC
    LIMAYE, RS
    [J]. SIAM JOURNAL ON COMPUTING, 1983, 12 (01) : 166 - 188
  • [3] ABSTRACT PRESCRIPTION OF FORMAL LANGUAGE SYNTAX
    MEITUS, VY
    [J]. DOKLADY AKADEMII NAUK SSSR, 1974, 216 (02): : 261 - 263
  • [4] A Testing Theory for a Higher-Order Cryptographic Language (Extended Abstract)
    Koutavas, Vasileios
    Hennessy, Matthew
    [J]. PROGRAMMING LANGUAGES AND SYSTEMS, 2011, 6602 : 358 - 377
  • [5] Towards formal specification of abstract security properties
    Mana, Antonio
    Pujol, Gimena
    [J]. ARES 2008: PROCEEDINGS OF THE THIRD INTERNATIONAL CONFERENCE ON AVAILABILITY, SECURITY AND RELIABILITY, 2008, : 80 - +
  • [6] On security notions for steganalysis (Extended abstract)
    Chang, K
    Deng, RH
    Feng, B
    Lee, S
    Kim, H
    Lim, J
    [J]. INFORMATION SECURITY AND CRYPTOLOGY - ICISC 2004, 2004, 3506 : 440 - 454
  • [7] A Survey of Practical Formal Methods for Security
    Kulik, Tomas
    Dongol, Brijesh
    Larsen, Peter Gorm
    Macedo, Hugo Daniel
    Schneider, Steve
    Tran-Jorgensen, Peter W., V
    Woodcock, James
    [J]. FORMAL ASPECTS OF COMPUTING, 2022, 34 (01)
  • [8] A Theory of Monitors (Extended Abstract)
    Francalanza, Adrian
    [J]. FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES (FOSSACS 2016), 2016, 9634 : 145 - 161
  • [9] Formal semantics for an abstract agent programming language
    Hindriks, KV
    de Boer, FS
    van der Hoek, W
    Meyer, JJC
    [J]. INTELLIGENT AGENTS IV: AGENT THEORIES, ARCHITECTURES, AND LANGUAGES, 1998, 1365 : 215 - 229
  • [10] Customer Language Processing Extended Abstract
    Metzmacher, Amelie I.
    Heinrichs, Verena
    Falk, Bjoern
    Schmitt, Robert H.
    [J]. 2017 12TH INTERNATIONAL WORKSHOP ON SEMANTIC AND SOCIAL MEDIA ADAPTATION AND PERSONALIZATION (SMAP 2017), 2017, : 32 - 33