Posts STF [Voices in the head]
Post
Cancel

STF [Voices in the head]

40 SOLVES

Description

We found a voice recording in one of the forensic images but we have no clue what’s the voice recording about. Are you able to help?

Document provided

forensics-challenge-2.wav

Tools used

Sonic Visualizer, Xiao Steganography

Evaluating current resources

Before we start, lets check out the relevant information for this challenge file.

upload-image

Running binwalk on the file, nothing suspicious.

upload-image

Playing the file sounds like someone wiping the window for 5 seconds, but from here, we can make some educated guesses.

Guessing what can be hidden

Usually, when given a .wav or any sound extension files, we can find hidden stuffs in these two areas:

Sound

The sound it plays usually gives off what it was encoded with (eg. DTMF, Morse Code etc.). However, in this file, the sound it plays does not sound like any encoding methods that I know of.

Spectrogram

A spectrogram is a visual way of representing the signal strength, or “loudness” of signal over time at various frequencies present in a particular waveform. It can be viewed with tools like Audacity, Sonic Visualizer or even online tools.

CTF challenges LOVE to write stuff on spectrogram.

This is a snip of the spectrogram from the challenge file using Sonic Visualizer.

upload-image

Diving into spectrogram

It looks like there are words written onto the spectrogram, but before that let us fix the view by pressing F to zoom to fit (no memes intented), so we can see the words clearly.

upload-image

aHR0cHM6Ly9wYXN0ZWJpbi5jb20vakVUajJ1VWI=

We get a string of text that looks like a base64 encoded string.

After decoding, it leads us to a pastebin url.

upload-image

The contents in the pastebin were texts in Brainfuck language.

++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>>++++++++++++++++.------------.+.++++++++++.----------.++++++++++.-----.+.+++++..------------.---.+.++++++.-----------.++++++.

Using a online decoder, the decrypted text happens to be thisisnottheflag.

upload-image

Dead end?

After getting thisisnottheflag, I thought I went down a rabbit hole set by the creators and was lost. In the end, I opened a ticket to ask if this was intended.

upload-image

However it seems like this was a part of the challenge, but I had no clue on whats the next step, and so is everyone else in this CTF.

Till Day 2 (one day before the end of the CTF), no one solved the challenge and people are starting to go mad.

upload-image

bbbb’s Saving Grace

upload-image

On Day 3 morning, an addendum was added to the challenge description, which basically gave everyone a free fint and help them go through the tough times of having voices in their head.

The hint reads Xiao wants to help. Will you let him help you?

upload-imageme?

This immediately got me searching for steganography resources related to Xiao, and I ended up with a tool called Xiao Steganography.

Solving

upload-image upload-image

After installing Xiao Steganography and loading the challenge file in, we get a prompt suggesting a zip file embedded inside the challenge file and requires a password to be extracted out from the challenge file.

Linking back, we got a somewhat password looking string back when decoding Brainfuck, and thisisnottheflag unlockes the file!

upload-image

The extracted zip file contains a document file, but requires a password for it to be extracted. Using thisisnottheflag does not unlock the file.

upload-image

Since it is document file, I pulled the zip file back into my Kali Linux and ran strings on the zip file, which yields me the flag!

upload-image

Flag: govtech-csg{Th1sisn0ty3tthefl@g}

But wait… Theres a catch. The flag did not submit!

I then tried to use the fake flag above as the password for the zip file, and it successfully extracted.

upload-image

upload-image

The final (not fake) flag is govtech-csg{3uph0n1ou5_@ud10_ch@ll3ng3}

Thoughts

It was a very fustrating challenge when I was stuck after decoding thisisnottheflag. Tried everything like changing file headers, binwalk, steghide, but none of them seems to work. Everything went smooth sailing only after the free hint was given out on Day 3.

Apparently Xiao Steganography was hinted in the challenge title, Xiao being the Singlish equivalent of being crazy, which hence suggesting having Voices in the Head.

This post is licensed under CC BY 4.0 by the author.