Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Steganography and PNGs

Brian de Heus
October 12, 2019
53

Steganography and PNGs

How to hide arbitrary data in PNGs and have image CDNs host it for you.

Brian de Heus

October 12, 2019
Tweet

Transcript

  1. signature 8 bytes chunk size 4 bytes chunk type 4

    bytes chunk data n bytes chunk crc 4 bytes chunk size 4 bytes chunk type 4 bytes chunk data n bytes chunk crc 4 bytes chunk size 4 bytes chunk type 4 bytes chunk data n bytes chunk crc 4 bytes
  2. Ancillary Chunks bKGD cHRM dSIG eXIf gAMA hIST iCCP iTXt

    pHYs sBIT sPLT sRGB sTER tEXt tIME tRNS zTXt
  3. +

  4. Chunk size: 13 Chunk type: IHDR CRC: 9a768270 Chunk size:

    218087 Chunk type: IDAT CRC: e11d26bc Chunk size: 0 Chunk type: IEND CRC: ae426082 Hiding 27 kB ( 28208 bytes) Injecting punk chunk Punk chunk injected Reached EOF
  5. Chunk size: 13 Chunk type: IHDR CRC: 9a768270 Chunk size:

    218087 Chunk type: IDAT CRC: e11d26bc Chunk size: 28208 Chunk type: puNk CRC: 8cccb594 Chunk size: 0 Chunk type: IEND Reached EOF