Caradoc: A Pragmatic Approach to PDF Parsing and Validation

Guillaume Endignoux, O. Levillain, Jean-Yves Migeon
{"title":"Caradoc: A Pragmatic Approach to PDF Parsing and Validation","authors":"Guillaume Endignoux, O. Levillain, Jean-Yves Migeon","doi":"10.1109/SPW.2016.39","DOIUrl":null,"url":null,"abstract":"PDF has become a de facto standard for exchanging electronic documents, for visualization as well as for printing. However, it has also become a common delivery channel for malware, and previous work has highlighted features that lead to security issues. In our work, we focus on the structure of the format, independently from specific features. By methodically testing PDF readers against hand-crafted files, we show that the interpretation of PDF files at the structural level may cause some form of denial of service, or be ambiguous and lead to rendering inconsistencies among readers. We then propose a pragmatic solution by restricting the syntax to avoid common errors, and propose a formal grammar for it. We explain how data consistency can be validated at a finer-grained level using a dedicated type checker. Finally, we assess this approach on a set of real-world files and show that our proposals are realistic.","PeriodicalId":341207,"journal":{"name":"2016 IEEE Security and Privacy Workshops (SPW)","volume":"32 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-05-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"24","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 IEEE Security and Privacy Workshops (SPW)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SPW.2016.39","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 24

Abstract

PDF has become a de facto standard for exchanging electronic documents, for visualization as well as for printing. However, it has also become a common delivery channel for malware, and previous work has highlighted features that lead to security issues. In our work, we focus on the structure of the format, independently from specific features. By methodically testing PDF readers against hand-crafted files, we show that the interpretation of PDF files at the structural level may cause some form of denial of service, or be ambiguous and lead to rendering inconsistencies among readers. We then propose a pragmatic solution by restricting the syntax to avoid common errors, and propose a formal grammar for it. We explain how data consistency can be validated at a finer-grained level using a dedicated type checker. Finally, we assess this approach on a set of real-world files and show that our proposals are realistic.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Caradoc: PDF解析和验证的实用方法
PDF已经成为交换电子文档、可视化和打印的事实上的标准。然而,它也成为恶意软件的常见传播渠道,以前的工作已经强调了导致安全问题的特性。在我们的工作中,我们专注于格式的结构,而不是特定的功能。通过系统地测试PDF阅读器与手工制作的文件,我们表明,在结构级别上对PDF文件的解释可能会导致某种形式的拒绝服务,或者是模糊的,并导致阅读器之间的呈现不一致。然后,我们提出了一个实用的解决方案,通过限制语法来避免常见错误,并提出了一个正式的语法。我们将解释如何使用专用类型检查器在更细粒度的级别上验证数据一致性。最后,我们在一组真实世界的文件上评估这种方法,并证明我们的建议是现实的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
A Semi-Automated Methodology for Extracting Access Control Rules from the European Data Protection Directive A Critical Analysis of Privacy Design Strategies At Your Fingertips: Considering Finger Distinctness in Continuous Touch-Based Authentication for Mobile Devices Investigating Airplane Safety and Security Against Insider Threats Using Logical Modeling A Model-Based Approach to Predicting the Performance of Insider Threat Detection Systems
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1