jpgstego01.doc

上传人:无*** 文档编号:44284951 上传时间:2021-12-05 格式:DOC 页数:6 大小:126.50KB
收藏 版权申诉 举报 下载
jpgstego01.doc_第1页
第1页 / 共6页
jpgstego01.doc_第2页
第2页 / 共6页
jpgstego01.doc_第3页
第3页 / 共6页
资源描述:

《jpgstego01.doc》由会员分享,可在线阅读,更多相关《jpgstego01.doc(6页珍藏版)》请在装配图网上搜索。

1、Steganalysis Based on JPEG CompatibilityJessica Fridrich* Correspondence: Email: fridrichbinghamton.edu; WWW: http:/www.ssie.binghamton.edu/fridrich; Telephone: 607 777 2577; Fax: 607 777 2577a, Miroslav Goljanb, Rui DubaCenter for Intelligent Systems, bDepartment of Electrical Engineering, SUNY Bin

2、ghamton, Binghamton, NY 13902-6000ABSTRACTIn this paper, we introduce a new forensic tool that can reliably detect modifications in digital images, such as distortion due to steganography and watermarking, in images that were originally stored in the JPEG format. The JPEG compression leaves unique f

3、ingerprints and serves as a “fragile watermark” enabling us to detect changes as small as modifying the LSB of one randomly chosen pixel. The detection of changes is based on investigating the compatibility of 88 blocks of pixels with JPEG compression with a given quantization matrix. The proposed s

4、teganalytic method is applicable to virtually all steganographic and watermarking algorithms with the exception of those that embed message bits into the quantized JPEG DCT coefficients. The method can also be used to estimate the size of the secret message and identify the pixels that carry message

5、 bits. As a consequence of our steganalysis, we strongly recommend avoiding using images that have been originally stored in the JPEG format as cover-images for spatial-domain steganography.Keywords: Steganography, steganalysis, JPEG1. INTRODUCTIONSteganography is the art of secret communication. It

6、s purpose is to hide the very presence of communication as opposed to cryptography whose goal is to make communication unintelligible to those who do not posses the right keys1. Digital images, videos, sound files, and other computer files that contain perceptually irrelevant or redundant informatio

7、n can be used as “covers” or carriers to hide secret messages. After embedding a secret message into the cover-image, a so-called stego-image is obtained. It is important that the stego-image does not contain any easily detectable artifacts due to message embedding. A third party could use such arti

8、facts as an indication that a secret message is present. Once this message detection can be reliably achieved, the steganographic tool becomes useless.Obviously, the less information is embedded into the cover-image, the smaller the probability of introducing detectable artifacts by the embedding pr

9、ocess. Another important factor is the choice of the cover-image. The selection is at the discretion of the person who sends the message. The sender should avoid using cover-images that would be easy to analyze for presence of secret messages. For example, one should not use computer art, charts, im

10、ages with large areas of uniform color, images with only a few colors, and images with a unique semantic content, such as fonts. Although computer-generated fractal images may seem as good covers6 because of their complexity and irregularity, they are generated by strict deterministic rules that may

11、 be easily violated by message embedding3. Scans of photographs or images obtained with a digital camera contain a high number of colors and are usually recommended and considered safe for steganography. Some steganographic experts recommend grayscale images as the best cover-images2. There are esse

12、ntially three types of image formats: raw, uncompressed formats (BMP, PCX), palette formats (GIF), and lossy compressed formats (JPEG, Wavelet, JPEG2000). Only few current steganographic programs offer the capability to embed messages directly in the JPEG stream. It is a difficult problem to devise

13、a steganographic method that would hide messages in the JPEG stream in a secure manner while keeping the capacity practical. Far more programs use the BMP, PCX, or the GIF palette-based format. The GIF format is a difficult environment for secure steganography with reasonable capacity3,7. Also, most

14、 steganographic techniques for GIFs implemented in current software products prioritize capacity over security and are thus relatively easy to detect4,5. The raw formats, such as BMP, offer the highest capacity and best overall security. In this paper, we demonstrate that even 24-bit images or grays

15、cale 8-bit images may actually be extremely poor candidates for cover-images if they were initially acquired as JPEG images and later decompressed to a lossless format. In fact, it is quite reasonable to expect that most casual users of steganographic programs will use scanned images or images from

16、a digital camera that were originally stored in the JPEG format due to its efficiency in data storage.All steganographic methods strive to achieve the minimal amount of distortion in order to minimize the likelihood of introducing any visible artifacts. Consequently, if the cover-image, was initiall

17、y stored in the JPEG format, the act of message embedding will not erase the characteristic structure created by the JPEG compression and one can still easily determine whether or not a given image has been stored as JPEG in the past. Actually, unless the image is too small, one can reliably recover

18、 even the values of the JPEG quantization table by carefully analyzing the values of DCT coefficients in all 88 blocks. After message embedding, however, the cover-image will become (with a high probability) incompatible with the JPEG format in the sense that it may be possible to prove that a parti

19、cular 88 block of pixels could not have been produced by JPEG decompression of any block of quantized coefficients. This finding provides strong evidence that the block has been modified. It is highly suspicious to find an image stored in a lossless format that bears a strong fingerprint of JPEG com

20、pression, yet is not fully compatible with any JPEG compressed image. This can be interpreted as evidence for steganography.By checking the JPEG compatibility of every block, we can potentially detect messages as short as one bit. And the steganalytic method will work for virtually any steganographi

21、c or watermarking method, not just the LSB embedding! Indeed, in our experiments, we have found out that even one randomly selected pixel whose gray level has been modified by one can be detected with very high probability. For longer messages, one can even attempt to estimate the message length and

22、 its position in the image by determining which 88 blocks are incompatible with JPEG compression. It is even possible to analyze the image and estimate the likely candidate for the cover-image or its blocks (the closest JPEG compatible image/block). This way, we may be able to identify individual pi

23、xels that have been modified. All this indicates that an extremely serious information leakage from the steganographic method can occur and thus completely compromise the steganographic channel.In this paper, we elaborate on the idea presented in the previous paragraph. In Section 2, we describe an

24、algorithm that can decide if a given 88 block of pixels is compatible with JPEG compression with a given quantization matrix. Appendix A contains details on how the quantization matrix can be estimated from the image. Throughout the paper, we point out some limitations of the proposed steganalytic t

25、echnique and finally, in Section 3, we conclude the paper and outline future research directions. As a consequence of this research, we strongly urge users of steganographic programs to avoid images previously stored in the JPEG format as cover-images.2. STEGANALYSIS BASED ON JPEG COMPATIBILITYAltho

26、ugh in this paper we explain the technique on grayscale images, it can be extended to color images in a straightforward manner. We start with a short description of the JPEG compression algorithm. In JPEG compression, the image is first divided into disjoint blocks of 88 pixels. For each block Borig

27、 (with integer pixel values in the range 0-255), the discrete cosine transform (DCT) is calculated, producing 64 DCT coefficients. Let us denote the i-th DCT coefficient of the k-th block as dk(i), 0 i 64, k = 1, , T, where T is the total number of blocks in the image. In each block, all 64 coeffici

28、ents are further quantized to integers Dk(i) using the JPEG quantization matrix Q.The quantized coefficients Dk(i) are arranged in a zig-zag manner and compressed using the Huffman coder. The resulting compressed stream together with a header forms the final JPEG file.The decompression works in the

29、opposite order. The JPEG bit-stream is decompressed using the Huffman coder and the quantized DCT coefficients Dk(i) are multiplied by Q(i) to obtain DCT coefficients QDk, QDk(i) = Q(i)Dk(i) for all k and i. Then, the inverse DCT is applied to QDk and the result is rounded to integers in the range 0

30、-255,(1)and x=integer_round(x) for 0 x 255, x=0 for x 255. In the last expression, we dropped the block index k to simplify the notation. We note that because the JPEG compression is lossy, in general Borig may not be equal to B. If the block B has no pixels saturated at 0 or 255, we can write in th

31、e L2 norm|Braw-B|2 16,(2)because |Braw(i)-B(i)|1/2 for all i = 1, , 64 due to rounding.Suppose that we know the quantization matrix Q (see Appendix A). Our steganalytic technique is based on the following question: Given an arbitrary 88 block of pixel values B, could this block have arisen through t

32、he process of JPEG decompression with the quantization matrix Q? Denoting QD=DCT(B), we can write using the Parservals equality.On the other hand, we can find a lower estimate for the expression |QD-QD|2 by substituting for QD(i) the closest integer multiple of Q(i): . (3)The quantity S can be calcu

33、lated from the block B provided the quantization matrix Q is known. If S is larger than 16, we can conclude that the image block B is not compatible with JPEG compression with the quantization matrix Q. We reiterate that this is true only for blocks that do not have pixels that are saturated at 0 or

34、 255. Indeed, the estimate (2) may not hold for blocks that have saturated pixels because the rounding at 0 and 255 can be much larger than 1/2.If, for a given block B with unsaturated pixels, S is smaller than 16, the block B may or may not be JPEG compatible. Let qp(i), p=1, , be integer multiples

35、 of Q(i) that are closest to QD(i) ordered by their distance from QD(i) (the closest multiple is q1(i). In order to decide whether or not a given block B is compatible with JPEG compression with quantization table Q, we need to inspect all 64-tuples of indices p(1), , p(64) for which(4)and check if

36、B=DCT-1(QD), where QD(i)= qp(i)(i). (5)If, for at least one set of indices p(1), , p(64), the expression (5) is satisfied, the block B is JPEG compatible, otherwise it is not.The number of 64-tuples p(1), , p(64) satisfying expression (4) is always finite but it rapidly increases with increasing JPE

37、G quality factor. For quality factors higher than 95, a large number of quantization factors Q(i) become 1 or 2, and the total number of combinations of all 64 indices becomes too large to handle. We performed our experiments in Matlab on a Pentium II computer with 128MB memory. Once the quality fac

38、tor exceeded 95, the running time became too long because Matlab ran out of memory and had to access the hard disk. We acknowledge this complexity increase as a limitation of our approach. In the future, we would like to develop a better and faster algorithm for testing JPEG compatibility for high q

39、uality compression factors.Description of the algorithm:1. Divide the image into a grid of 88 blocks, skipping the last few rows or columns if the image dimensions are not multiples of 8. 2. Arrange the blocks in a list and remove all saturated blocks from the list (a block is saturated if it has at

40、 least one pixel with a gray value 0 or 255). Denote the total number of blocks as T.3. Extract the quantization matrix Q from all T blocks as described in Appendix A. If all the elements of Q are ones, the image was not previously stored as JPEG and our steganalytic method does not apply (exit this

41、 algorithm). If more than one plausible candidate exists for Q, the steps 4-6 need to be carried out for all candidates and the results that give the highest number of JPEG compatible blocks will be accepted as the result of this algorithm.4. For each block B calculate the quantity S (see equation (

42、3).5. If S16, the block B is not compatible with JPEG compression with quantization matrix Q. If S16, for each DCT coefficient QDi calculate the closest multiples of Q(i), order them by their distance from QDi, and denote them qp(i), p=1, . For those combinations, for which the inequality (4) is sat

43、isfied, check if expression (5) holds. If, for at least one set of indices p(1), , p(64) the expression (5) is satisfied, the block B is JPEG compatible, otherwise it is not.6. After going through all T blocks, if no incompatible JPEG blocks are found, the conclusion is that our steganalytic method

44、did not find any evidence for presence of secret messages. If, on the other hand, there are some JPEG incompatible blocks, we can attempt to estimate the size of the secret message, locate the message-bearing pixels, and even attempt to obtain the original cover image before secret message embedding

45、 started.7. If all blocks are identified as JPEG incompatible or if the image does not appear to be previously stored as JPEG, we should repeat the algorithm for different 88 divisions of the image (shifted by 0 to 7 pixels in the x and y directions). This step may be necessary if the cover image ha

46、s been cropped prior to message embedding. 3. CONCLUSIONS AND FUTURE EFFORTIn this paper, we describe a new steganographic technique that can reliably detect modifications in digital images, such as those due to steganography and watermarking, as long as the original image (the cover-image) has been

47、 previously stored in the JPEG format. The steganalytic technique starts with extracting the JPEG quantization matrix by carefully inspecting the clusters of DCT coefficients in all 88 blocks. Then, each block is analyzed if its pixel values are truncated values of an inverse DCT transform of a set

48、of coefficients quantized with the extracted quantization matrix. A simple necessary condition is derived that makes the analysis computationally feasible. If the corresponding quantized DCT coefficients are found, the block is termed compatible, otherwise it is not. The steganalytic technique will

49、work for all steganographic methods, except the methods that embed information directly into the compressed JPEG stream. It has a potential to detect changes as small as one pixel. By inspecting the closest compatible JPEG block, we can even attempt to locate the pixels that have been modified. As a

50、 consequence of this research, we strongly urge the users of steganographic programs to avoid using images that have been previously stored in the JPEG format as cover-images for steganography. The JPEG compression imprints a unique fingerprint on the image and this fingerprint can be carefully util

51、ized for steganalysis as shown in this paper. If no other images are available, try to rescale or resample the image to slightly smaller dimensions to wipe out the JPEG fingerprint. Applying filters, adjusting contrast, or slightly rotating the image may also help in reducing the JPEG fingerprint.Th

52、e proposed steganalytic method has some limitations that we would like to address in the future. First, the necessary condition derived for unsaturated blocks (3) does not hold for blocks that have some black or white pixels. The study of JPEG compatibility of blocks that have some saturated pixels

53、appears to be a difficult challenge that will be pursued in the future. Another limitation of our technique is the rapidly increasing computational complexity with increasing JPEG quality factor. The running time became unacceptably large for quality factors larger than 95. This is due to the large

54、number of candidate JPEG blocks that need to be inspected for compatibility. We believe that this complexity problem could be resolved by deriving a set of other necessary conditions similar to (3) to decrease the number of possible candidates that need to be inspected for compatibility in Step 5. A

55、PPENDIX AIn this appendix, we show how one can extract the quantization matrix Q from a (BMP) image. Keeping the same notation as in the previous section, we first calculate the DCT coefficients dk(i), 0 i 64, k = 1, , T from all unsaturated 88 blocks. For each coefficient i, we plot the quantity Ei

56、(q) as a function of q = 1, 2, .Figure 1 The error E48(q) for the 48-th DCT coefficient (8,6) plotted as a function of the quantization step q. Notice the local minima at 30 and all its divisors 15, 10, 6, 5, 3, and 2. The last minimum is 30, which corresponds to the correct quantization step for JP

57、EG quality factor 85.The quantity Ei(q) measures the compatibility of all i-th DCT coefficients in the image with the quantization step q. If the image under inspection was indeed previously stored as JPEG, we will observe a drop (local minimum) at the correct quantization value q and at all integer

58、 divisors of q. It is intuitively clear that the correct value of the quantization step should be the largest value q at which a local minimum of E occurs. As discussed below, this may not, however, be true in all cases.First of all, it is possible that some ghost local minima can occur for values o

59、f q larger than the correct value. Those minima, however, are significantly larger than the other “correct” minima. By setting a threshold on the largest possible value of a local minimum, we can successfully “filter out” the false minima. In our experiments, we make the thresholod dependent on the

60、DCT coefficient (on index i) and calculate its value as mi+3si, where mi and si are the mean and the standard deviation of all local minima of the vector Ei(q), q=1, . If the vector Ei(q) does not have any local minima except for q=1 (we note that Ei(1) Ei(q) for all q1), we inspect the difference b

61、etween Ei(1) and Ei(2) to decide if the quantization step is 1 or 2. For this case, we developed an empirical rule that gives very good results. Based on our experiments, if Ei(1) 0.6 Ei(2), we conclude that the quantization step is 1, otherwise it is 2.This process of finding the quantization steps

62、 for each coefficient is still not completely foolproof. For small images, it can happen that, for the quantization step q, all values of the DCT coefficients dk(i) will be multiples of 2q. In this case, we have no means to tell if the correct step is 2q or q. The probability of this happening decre

63、ases with the image size. To address this problem, we inspect the extracted quantization matrix Q for outliers by dividing it by the standard JPEG quantization table. Here, we use the logic that even customized tables (e.g., tables used in JPEG compression in digital cameras) will not significantly

64、deviate from the standard quantization table. Finally, it is always possible to identify candidates for suspicious quantization steps and run the steganalysis for all possible combinations. ACKNOWLEDGEMENTSThe work on this paper was supported by Air Force Research Laboratory, Air Force Material Comm

65、and, USAF, under a research grant number F30602-00-1-0521. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright notation there on. The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies, either expressed or implied, of Air Force Research Laboratory, or the U. S. Gover

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!