Resampling and the Detection of LSB Matching in Colour Bitmaps - - PowerPoint PPT Presentation

resampling and the detection of lsb matching in colour
SMART_READER_LITE
LIVE PREVIEW

Resampling and the Detection of LSB Matching in Colour Bitmaps - - PowerPoint PPT Presentation

Resampling and the Detection of LSB Matching in Colour Bitmaps Andrew Ker adk@comlab.ox.ac.uk Royal Society University Research Fellow Oxford University Computing Laboratory SPIE EI05 17 January 2005 LSB Matching a.k.a. plus/minus


slide-1
SLIDE 1

Resampling and the Detection of LSB Matching in Colour Bitmaps

Andrew Ker

adk@comlab.ox.ac.uk

Royal Society University Research Fellow Oxford University Computing Laboratory

SPIE EI’05 17 January 2005

slide-2
SLIDE 2

LSB Matching

a.k.a. “plus/minus 1”

  • Consider cover in pseudorandom order
  • Increment or decrement cover samples at random so that the LSBs match

the hidden bit stream Differs from the standard LSB Replacement algorithm in that other bit planes may be changed.

2i-1 2i 2i+1

slide-3
SLIDE 3

LSB Matching

Why study a spatial-domain embedding method? Because it can be performed without steganography software

slide-4
SLIDE 4

LSB Matching

Why study a spatial-domain embedding method? Because it can be performed without steganography software

perl -n0777 <cover-image.ppm >stego-image.ppm

  • e'split/(\s+)/,<STDIN>,5;@z=map ord,split"",pop@_;srand key;

for(0..$#z){@p[$k,$_]=($_,$p[$k=int rand$_]);} map{$z[$q=shift@p]+=($z[$q]-ord()&1)*(rand 2<=>1)} split"",unpack"B*",$_;print@_,map chr,@z;' payload

slide-5
SLIDE 5

LSB Matching

Why study a spatial-domain embedding method? Because it can be performed without steganography software

perl -n0777 <cover-image.ppm >stego-image.ppm

  • e'split/(\s+)/,<STDIN>,5;@z=map ord,split"",pop@_;srand key;

for(0..$#z){@p[$k,$_]=($_,$p[$k=int rand$_]);} map{$z[$q=shift@p]+=($z[$q]-ord()&1)*(rand 2<=>1)} split"",unpack"B*",$_;print@_,map chr,@z;' payload

  • impossible to prevent use of this mini-program
  • if used carefully, probably undetectable
slide-6
SLIDE 6

Harmsen’s HCF COM Detector

“Steganalysis of Additive Noise Modelable Information Hiding” [SPIE EI’03]

Model steganography as additive noise and examine the effects on the image histogram.

slide-7
SLIDE 7

0.25 0.5 0.75 1

  • 1

+1

Histogram 256-pt DFT

(first 128 points)

“HCF”

cover image stego image

+ = * = =

×

stego “noise”

slide-8
SLIDE 8

cover image stego image stego “noise”

+ = * = =

×

3D “HCF COM” (77, 77, 77) (55, 54, 54)

  • 2
  • 1

+1 +2

3D Histogram 2563-pt 3D DFT

(first 1283 points)

“HCF”

slide-9
SLIDE 9

HCF COM Detector Slogan

Steganography reduces the COM

(& longer messages reduce the COM by more than shorter messages)

slide-10
SLIDE 10

cover image stego image stego “noise”

+ = * = =

×

3D “HCF COM” (77, 77, 77) (55, 54, 54)

  • 2
  • 1

+1 +2

3D Histogram 2563-pt 3D DFT

(first 1283 points)

“HCF”

slide-11
SLIDE 11

cover image stego image stego “noise”

+ = * = =

×

3D “HCF COM” (77, 77, 77) (55, 54, 54)

  • 2
  • 1

+1 +2

3D Histogram 2563-pt 3D DFT

(first 1283 points)

“HCF”

unknown to detector

slide-12
SLIDE 12

Potential Problems

1. The detector cannot see the cover image – the COM cannot be compared with the cover COM. 2. This detector is detecting (any type of) noise, not just steganography. 3. Methods which use only the histogram of the image are throwing away a lot

  • f data.
slide-13
SLIDE 13

Reliability

  • bserved for 10000 colour bitmaps previously subject to moderate JPEG compression.

0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1 Probability of false positive Probability of detection 100% capacity 50% capacity 20% capacity 10% capacity

slide-14
SLIDE 14

Calibration

slide-15
SLIDE 15

Calibration

slide-16
SLIDE 16

HCF COM = (77, 77, 77)

cover image

HCF COM = (76, 77, 77)

slide-17
SLIDE 17

cover image stego image

HCF COM = (55, 54, 54) HCF COM = (77, 77, 77) HCF COM = (76, 77, 77)

slide-18
SLIDE 18

HCF COM = (55, 54, 54) HCF COM = (64, 64, 64) HCF COM = (77, 77, 77) HCF COM = (76, 77, 77)

cover image stego image

slide-19
SLIDE 19

HCF COM = (55, 54, 54) HCF COM = (64, 64, 64)

stego image

unknown to detector

slide-20
SLIDE 20

Improved Detector

i) When a cover image is halved in size the HCF COM is largely unchanged. ii) Steganography reduces the full-size image HCF COM by more than the half- size image. (“Downsampling tends to reduce the effect of noise”). Given a suspect image, downsample it: If the HCF COM increases, suspect steganography.

(use multidimensional classifier on 3D vector: COM divided by downsampled image COM)

slide-21
SLIDE 21

Improved Detector

i) When a cover image is halved in size the HCF COM is largely unchanged. ii) Steganography reduces the full-size image HCF COM by more than the half- size image. (“Downsampling tends to reduce the effect of noise”). Given a suspect image, downsample it: If the HCF COM increases, suspect steganography.

(use multidimensional classifier on 3D vector: COM divided by downsampled image COM)

Experimental Results

Generally an improvement over the standard HCF COM detector, but occasional major failures

slide-22
SLIDE 22

HCF COM=(69, 69, 69)

stego image (50% embedding) cover image

HCF COM=(69, 69, 69) HCF COM=(58, 57, 57) HCF COM=(54, 54, 53)

slide-23
SLIDE 23

Why Did This Happen?

If proportion p of the maximal message is embedded, the stego noise is The downsampling procedure is

      + + + 4 ) ( d c b a

a b c d

  • 1

+1

2 1 p − 4 p 4 p

slide-24
SLIDE 24

Lemma

Assuming that the sums of groups of 4 original pixels are uniformly distributed mod 4, the effect on the downsampled image is to add noise with histogram where q < p i.e. downsampling reduces stego noise (so increases the HCF COM when steganography is present)

  • 1

+1

2 1 q − 4 q 4 q

slide-25
SLIDE 25

Lemma

Assuming that the sums of groups of 4 original pixels are uniformly distributed mod 4, the effect on the downsampled image is to add noise with histogram where q < p i.e. downsampling reduces stego noise (so increases the HCF COM when steganography is present)

  • 1

+1

2 1 q − 4 q 4 q

slide-26
SLIDE 26

Better Calibration

Don’t round down.

b a +

a b

slide-27
SLIDE 27

Better Calibration

Don’t round down. In the “smeared” image, pixel values have twice the range, 0..511 NB: must still use only the lowest 128 frequencies in the COM calculation When an image is smeared and the HCF COM observed to increase, suspect steganography.

b a +

a b

slide-28
SLIDE 28

Further Improvements

HCF COM calibrated by smearing requires a DFT on 5123 points Don’t treat RGB values as a 3D vector – add up the components r+g+b. The sum has “three times as much noise” due to steganography. DFT on 768 points Form a 2D “adjacency histogram” (co-occurrence matrix) and calibrate using the “smeared” image DFT on 15362 points Faster and more reliable

slide-29
SLIDE 29

Reliability

  • bserved for 10000 colour bitmaps previously subject to moderate JPEG compression.

30% capacity 10% capacity 5% capacity

0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1 Probability of false positive Probability of detection

slide-30
SLIDE 30

“HCF COM”

[Harmsen, SPIE EI’03]

Close Colour Pairs

[Westfeld, IHW’02]

JPEG Compatability

[Fridrich, SPIE ITCom’01]

Detectors for LSB Matching

slide-31
SLIDE 31

“HCF COM”

[Harmsen, SPIE EI’03]

Close Colour Pairs

[Westfeld, IHW’02]

JPEG Compatability

[Fridrich, SPIE ITCom’01]

Uncompressed Covers Resampled JPEG Covers JPEG Covers

Detectors for LSB Matching

Different types of cover image can give very different results

slide-32
SLIDE 32

100% capacity >50-75% capacity >50% capacity

“HCF COM”

[Harmsen, SPIE EI’03]

  • >1% capacity

Close Colour Pairs

[Westfeld, IHW’02]

  • ?

JPEG Compatability

[Fridrich, SPIE ITCom’01]

Uncompressed Covers Resampled JPEG Covers JPEG Covers

Detectors for LSB Matching

slide-33
SLIDE 33

>50% capacity >5-10% capacity >5% capacity

Calibrated Detectors

100% capacity >50-75% capacity >50% capacity

“HCF COM”

[Harmsen, SPIE EI’03]

  • >1% capacity

Close Colour Pairs

[Westfeld, IHW’02]

  • ?

JPEG Compatability

[Fridrich, SPIE ITCom’01]

Uncompressed Covers Resampled JPEG Covers JPEG Covers

Detectors for LSB Matching

slide-34
SLIDE 34

Conclusions

  • LSB Matching is almost as simple as LSB Replacement, but much harder

to detect.

  • Harmsen’s standard “HCF COM” detector is usable for colour bitmaps of all

types, but not very sensitive.

  • We have suggested ways to improve the sensitivity by comparing the HCF COM
  • f an image with that of a downsampled/smeared image.
  • More performance is gained by totalling up the RGB components of a colour

image. LSB Matching is still very difficult to detect in cover images which have never been JPEG compressed (or in grayscale images) unless the hidden payload is very large.

slide-35
SLIDE 35

End

adk@comlab.ox.ac.uk