[Paper Review] Hiding Malicious Content in PDF Documents
This paper demonstrates a proof-of-concept attack that exploits the WYSIWYS (What You See Is What You Sign) principle's failure in digital signatures by embedding malicious content—specifically a TIFF image—within a PDF document. The attacker crafts a polymorphic file that appears as a legitimate PDF during signing, but after signing, changing the file extension to .tiff reveals the hidden content, which remains validly signed due to no bit alterations, exposing a critical vulnerability in e-government and e-business systems.
This paper is a proof-of-concept demonstration for a specific digital signatures vulnerability that shows the ineffectiveness of the WYSIWYS (What You See Is What You Sign) concept. The algorithm is fairly simple: the attacker generates a polymorphic file that has two different types of content (text, as a PDF document for example, and image: TIFF - two of the most widely used file formats). When the victim signs the dual content file, he/ she only sees a PDF document and is unaware of the hidden content inside the file. After obtaining the legally signed document from the victim, the attacker simply has to change the extension to the other file format. This will not invalidate the digital signature, as no bits were altered. The destructive potential of the attack is considerable, as the Portable Document Format (PDF) is widely used in e-government and in e-business contexts.
Motivation & Objective
- To demonstrate a critical vulnerability in the WYSIWYS principle used in digital signatures.
- To show how malicious content can be hidden within a PDF document without altering the signed bits.
- To expose the risk of relying on file extension or visual rendering for trust in signed documents.
- To highlight the real-world impact of this flaw in e-government and e-business environments where PDFs are widely used.
- To illustrate that digital signatures do not guarantee content integrity when file formats are manipulated post-signature.
Proposed method
- The attacker generates a polymorphic file containing two distinct content types: a PDF document and a TIFF image.
- The file is presented to the signer as a standard PDF, ensuring the visual content appears legitimate and trustworthy.
- The digital signature is applied to the entire file, which includes both the PDF and the hidden TIFF content.
- After signing, the attacker changes the file extension from .pdf to .tiff, making the file appear as a TIFF image.
- The digital signature remains valid because no bits in the file were altered during the extension change.
- The attacker can now distribute the signed file as a TIFF, which executes or is processed as malicious content without detection.
Experimental results
Research questions
- RQ1Can malicious content be hidden within a PDF document such that it remains undetected during the signing process?
- RQ2To what extent does the WYSIWYS principle fail when file format interpretation is decoupled from content rendering?
- RQ3Does changing a file’s extension after digital signing invalidate the signature, and what are the implications for trust in signed documents?
- RQ4How can polymorphic file structures be exploited to bypass digital signature validation in widely used formats like PDF and TIFF?
- RQ5What are the real-world security implications of this attack in e-government and e-business systems relying on PDF signatures?
Key findings
- The attack successfully bypasses the WYSIWYS assumption, as the signer sees only the PDF content but signs a file containing hidden malicious data.
- Changing the file extension from .pdf to .tiff after signing does not invalidate the digital signature, as no bits in the file are modified.
- The malicious content (TIFF image) is fully executable or processable when opened as a TIFF, despite being signed as a PDF.
- The attack demonstrates a critical flaw in systems that rely on file extension or visual rendering to determine content integrity.
- The vulnerability is particularly dangerous in e-government and e-business contexts where PDFs are standard for official document exchange.
- The paper concludes that digital signatures alone cannot ensure content authenticity if file format interpretation is not strictly enforced.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.