Visible to the public Tag-Protector: An Effective and Dynamic Detection of Out-of-bound Memory Accesses

TitleTag-Protector: An Effective and Dynamic Detection of Out-of-bound Memory Accesses
Publication TypeConference Paper
Year of Publication2016
AuthorsSaeed, Ahmed, Ahmadinia, Ali, Just, Mike
Conference NameProceedings of the Third Workshop on Cryptography and Security in Computing Systems
PublisherACM
Conference LocationNew York, NY, USA
ISBN Number978-1-4503-4065-6
KeywordsBuffer overflows, Compile-time code instrumentation, illegal memory accesses, Metrics, pubcrawl, Resiliency, scalabilty, Securing Compilers
Abstract

Programming languages permitting immediate memory accesses through pointers often result in applications having memory-related errors, which may lead to unpredictable failures and security vulnerabilities. A light-weight solution is presented in this paper to tackle such illegal memory accesses dynamically in C/C++ based applications. We propose a new and effective method of instrumenting an application's source code at compile time in order to detect out-of-bound memory accesses. It is based on creating tags, to be coupled with each memory allocation and then placing additional tag checking instructions for each access made to the memory. The proposed solution is evaluated by instrumenting applications from the BugBench benchmark suite and publicly available benchmark software, Runtime Intrusion Prevention Evaluator (RIPE), detecting all the bugs successfully. The performance and memory overhead is further analysed by instrumenting and executing real world applications.

URLhttp://doi.acm.org/10.1145/2858930.2858936
DOI10.1145/2858930.2858936
Citation Keysaeed_tag-protector:_2016