// I need to

ModernizeUpgrade without breaking it RescueFix what someone else started Build NewTurn an idea into a product Reach More PeopleGet found, get used, include everyone

// Company

Case StudiesExpertiseAbout + CareersResourcesContact Book a call →
≡articleBuild New

Can We Detect PixelJihad Steganography?

A rudimentary way to detect PixelJihad steganography: a modified tool that flags pixels whose color channels differ from their neighbors.

Art+Logic Sep 24, 20122 min read

From the Art+Logic archive · written in 2012. The tools may have moved on; the thinking still holds.

In my last post, I created a visualization of where information is hidden in an image using a steganographic tool called PixelJihad.  In this post, I’ll talk about a rudimentary method of searching for the pixels that may be hiding information.  This is our first stop on the path to evaluating whether the image may contain hidden information.

PixelJihad takes the message, optionally encrypting it, and scatters the data throughout the image using a deterministic function based upon the password provided.  The expectation is that this will look like noise on the image and remain unnoticed.  As I noted in the last post, there are ways to analyze images to detect such patterns.  The difficulty lies in doing this efficiently.

I’ve modified the PixelJihad tool to read all the pixels of an image and provide a visual analysis that illustrates pixels whose channels do not substantially match the neighboring pixels.  In the red channel of a pixel does not have the same value as the majority of its neighboring pixels’ red channels, a red pixel is drawn on the image map.  To remove real noise from the image, any pixel where more than one channel is substantially different from that of the neighboring pixels has been ignored.

I’ve taken a scaled-down copy of this photograph of the Old North Church (by Teemu008) and embedded a stanza from “Paul Revere’s Ride” with the password “Henry Wadsworth Longfellow”.  (The phrase I used in the last post was too small to have a substantial impact on the data in the image.)

Here’s the scaled-down photograph:

Photo by Teemu008 on Flickr https://www.flickr.com/photos/43943756@N07/7397039792

Here’s the analysis of that photograph:

Software screen capture

Here’s the analysis of the photograph with the hidden message:

There isn’t much of a visible difference.  Unfortunately, this method (which works very nicely on images with areas of one color) does not work well on photographs.  As you can see, a photograph of a cloudy sky is a great place to hide information using the PixelJihad tool.  (Unfortunately, the PNG format does not handle such images efficiently.)

Can you think of a better way to detect hidden information in these images?  Take a look at my code and let me know in the comments.

keep going

More to explore in Build New.

All Build New resources →
let's talk

Got a problem like this one?

Tell us what's stuck. A real person replies within one business day.

Talk to our team →

Talk to people who know software, not a sales script.

Your first call is with Aja, our VP of Sales. He'll help make sure you're solving the right problem. Here's what you'll cover together:

  1. What you're trying to accomplish

    The business goal first, then the technology.

  2. Possible approaches

    And the tradeoffs of each, in plain language.

  3. Risks you may not have considered

    Technical and business, before they cost you.

  4. Whether AI changes the math

    What's practical, and what's just hype for your project.

  5. Sensible next steps

    Even if the right next step is not us.

book-a-call.ics

Loading the scheduler…

Open the booking page →

Some problems are easier to explain in writing. Send us a few lines about what you're working on, and we'll reply within one business day. Helpful to include:

  1. What the software does, or should do
  2. What's stuck, or what's worrying you
  3. Any deadline or budget you have in mind
note.md

Loading the form…