音頻隱寫

出自gamedev
於 2023年7月3日 (一) 11:49 由 127.0.0.1留言 所做的修訂 (创建页面,内容为“{{Ctf_Wiki}} = 音频隐写 = 与音频相关的 CTF 题目主要使用了隐写的策略,主要分为 MP3 隐写,LSB 隐写,波形隐写,频谱隐写等等。 == 常见手段 == 通过 <code>binwalk</code> 以及 <code>strings</code> 可以发现的信息不再详述。 <span id="mp3-隐写"></span> == MP3 隐写 == === 原理 === MP3隐写主要是使用 [http://www.petitcolas.net/steganography/mp3stego/ Mp3Stego] 工具进行隐写,其基本…”)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
跳至導覽 跳至搜尋

{{#tree:

}}

音頻隱寫[編輯]

與音頻相關的 CTF 題目主要使用了隱寫的策略,主要分為 MP3 隱寫,LSB 隱寫,波形隱寫,頻譜隱寫等等。

常見手段[編輯]

通過 binwalk 以及 strings 可以發現的信息不再詳述。

MP3 隱寫[編輯]

原理[編輯]

MP3隱寫主要是使用 Mp3Stego 工具進行隱寫,其基本介紹及使用方法如下

MP3Stego will hide information in MP3 files during the compression process. The data is first compressed, encrypted and then hidden in the MP3 bit stream.

encode -E hidden_text.txt -P pass svega.wav svega_stego.mp3
decode -X -P pass svega_stego.mp3

例題[編輯]

ISCC-2016: Music Never Sleep

初步觀察後,由 strings 無發現,聽音頻無異常猜測使用隱寫軟件隱藏數據。

[[File:./figure/1.jpg]]

得到密碼後使用 Mp3Stego 解密。

decode.exe -X ISCC2016.mp3 -P bfsiscc2016

得到文件 iscc2016.mp3.txt:

Flag is SkYzWEk0M1JOWlNHWTJTRktKUkdJTVpXRzVSV0U2REdHTVpHT1pZPQ== ???

Base64 && Base32 後得到 flag。

波形[編輯]

原理[編輯]

通常來說,波形方向的題,在觀察到異常後,使用相關軟件(Audacity, Adobe Audition 等)觀察波形規律,將波形進一步轉化為 01 字符串等,從而提取轉化出最終的 flag。

例題[編輯]

ISCC-2017: Misc-04

其實這題隱藏的信息在最開始的一段音頻內,不細心聽可能會誤認為是隱寫軟件。

[[File:./figure/3.png]]

以高為 1 低為 0,轉換得到 01 字符串。

110011011011001100001110011111110111010111011000010101110101010110011011101011101110110111011110011111101

轉為 ASCII,摩斯密碼解密,得到 flag。

!!! note 一些較複雜的可能會先對音頻進行一系列的處理,如濾波等。例如 JarvisOJ - 上帝之音 Writeup

頻譜[編輯]

原理[編輯]

音頻中的頻譜隱寫是將字符串隱藏在頻譜中,此類音頻通常會有一個較明顯的特徵,聽起來是一段雜音或者比較刺耳。

例題[編輯]

Su-ctf-quals-2014:hear_with_your_eyes

[[File:./figure/4.png]]

LSB音頻隱寫[編輯]

原理[編輯]

類似於圖片隱寫中的 LSB 隱寫,音頻中也有對應的 LSB 隱寫。主要可以使用 Silenteye 工具,其介紹如下:

SilentEye is a cross-platform application design for an easy use of steganography, in this case hiding messages into pictures or sounds. It provides a pretty nice interface and an easy integration of new steganography algorithm and cryptography process by using a plug-ins system.

例題[編輯]

2015 廣東省強網杯 - Little Apple

直接使用 silenteye 即可。

[[File:./figure/2.jpg]]

延伸[編輯]