Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Steganography in PDF files [closed]

Can somebody tell me, where is possible to hide some data into PDF file? In other words, steganography in PDF files. Is there any algorithm to do this?

like image 355
user2144425 Avatar asked Apr 19 '13 18:04

user2144425


People also ask

Why are my PDF files disappearing?

PDF files don't just “disappear¨ from a computer. They are deleted either on purpose or accidentally. There is nothing in either Reader or Acrobat that makes PDF files “disappear” by deleting them.

Are PDF edits traceable?

There is no sure proof way to determine if a generic PDF file is modified. If you go to the document properties of a PDF file (control or command d), if the proper metadata is available, it will list the creation date and time and modified date and time.

What is steganography PDF?

Steganography is the art of hiding information and an effort to conceal the existence of the embedded information. It serves as a better way of securing message than cryptography which only conceals the content of the message not the existence of the message.


2 Answers

There are lots of ways to do this, including

  • Embed the info into an image using traditional image steganography tools then embed the image into the PDF
  • Set the text color to white and make sure you are not using a colored background
  • Superimpose a white rectangle over your text.
  • Using the appropriate low level tools, create the text objects of your secret text then mark those objects as deleted. As long as no one tries to compact your PDF (Pitstop is one such compression/cleaning tool), your data will exist.
  • If you're really feeling optimistic, start reading the PDF Specification (I'm not sure if this is the most recent one, it's been a few years). There is/was a cross-ref table that would list the parts of the file that were "currently in use". It would be easy enough to add a few holes to that.
like image 168
Dan Pichelman Avatar answered Oct 10 '22 07:10

Dan Pichelman


The easiest place to hide information is at the beginning of the file before %PDF. Acrobat will allow up to about 1024 bytes of arbitrary data (as long as it doesn't contain %PDF) and still render the file properly.

like image 38
Kevin Borders Avatar answered Oct 10 '22 06:10

Kevin Borders