• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

WAV audio files are now being used to hide malicious code

Joined
Jan 5, 2006
Messages
17,691 (2.66/day)
System Name AlderLake / Laptop
Processor Intel i7 12700K P-Cores @ 5Ghz / Intel i3 7100U
Motherboard Gigabyte Z690 Aorus Master / HP 83A3 (U3E1)
Cooling Noctua NH-U12A 2 fans + Thermal Grizzly Kryonaut Extreme + 5 case fans / Fan
Memory 32GB DDR5 Corsair Dominator Platinum RGB 6000MHz CL36 / 8GB DDR4 HyperX CL13
Video Card(s) MSI RTX 2070 Super Gaming X Trio / Intel HD620
Storage Samsung 980 Pro 1TB + 970 Evo 500GB + 850 Pro 512GB + 860 Evo 1TB x2 / Samsung 256GB M.2 SSD
Display(s) 23.8" Dell S2417DG 165Hz G-Sync 1440p / 14" 1080p IPS Glossy
Case Be quiet! Silent Base 600 - Window / HP Pavilion
Audio Device(s) Panasonic SA-PMX94 / Realtek onboard + B&O speaker system / Harman Kardon Go + Play / Logitech G533
Power Supply Seasonic Focus Plus Gold 750W / Powerbrick
Mouse Logitech MX Anywhere 2 Laser wireless / Logitech M330 wireless
Keyboard RAPOO E9270P Black 5GHz wireless / HP backlit
Software Windows 11 / Windows 10
Benchmark Scores Cinebench R23 (Single Core) 1936 @ stock Cinebench R23 (Multi Core) 23006 @ stock
Steganography malware trend moving from PNG and JPG to WAV files.

Capture.PNG


Two reports published in the last few months show that malware operators are experimenting with using WAV audio files to hide malicious code.

The technique is known as steganography -- the art of hiding information in plain sight, in another data medium.

In the software field, steganography -- also referred to as stego -- is used to describe the process of hiding files or text in another file, of a different format. For example, hiding plain text inside an image's binary format.

Using steganography has been popular with malware operators for more than a decade. Malware authors don't use steganography to breach or infect systems, but rather as a transfer method. Steganography allows files hiding malicious code to bypass security software that whitelists non-executable file formats (such as multimedia files).

All previous instances where malware used steganography revolved around using image file formats, such as PNG or JEPG.

The novelty in the two recently-published reports is the use of WAV audio files, not seen abused in malware operations until this year.

THE TWO REPORTS
The first of these two new malware campaigns abusing WAV files was reported back in June. Symantec security researchers said they spotted a Russian cyber-espionage group known as Waterbug (or Turla) using WAV files to hide and transfer malicious code from their server to already-infected victims.


The second malware campaign was spotted this month by BlackBerry Cylance. In a report published today and shared with ZDNet last week, Cylance said it saw something similar to what Symantec saw a few months before.

But while the Symantec report described a nation-state cyber-espionage operation, Cylance said they saw the WAV steganography technique being abused in a run-of-the-mill crypto-mining malware operation.

Cylance said this particular threat actor was hiding DLLs inside WAV audio files. Malware already-present on the infected host would download and read the WAV file, extract the DLL bit by bit, and then run it, installing a cryptocurrency miner application named XMRrig.

Josh Lemos, VP of Research and Intelligence at BlackBerry Cylance, told ZDNet in an email yesterday that this malware strain using WAV steganography was spotted on both Windows desktop and server instances.

THE COMMODITIZATION OF STEGANOGRAPHY
Furthermore, Lemos also told us that this also appears to be the first time a crypto-mining malware strain was seen using abused steganography, regardless if it was a PNG, JPEG, or WAV file.

This shows that your mundane crypto-mining malware authors are growing in sophistication, as they learn from other operations.

"The use of stego techniques requires an in-depth understanding of the target file format," Lemos told ZDNet. "It is generally used by sophisticated threat actors that want to remain undetected for a long period of time.

"Developing a stego technique takes time, and several blogs have detailed how threat actors such as OceanLotus or Turla implemented payload hiding," Lemos added.

"These publications make it possible for other threat actors to grasp the technique and use it as they see fit."

In other words, the act of documenting and studying steganography comes with a snowball effect that also commoditizes the technique for lower-skilled malware operations.

But while Symantec and Cylance's work on documenting WAV-based steganography might help other malware operators, WAV, PNG, and JPG files aren't the only file formats that can be abused.

"Stego can be used with any file format as long as the attacker adheres to the structure and constraints of the format so that any modifications performed on the targeted file do not break its integrity," Lemos told.

In other words, defending against steganography by blocking vulnerable file formats is not the correct solution, as companies would end up blocking the downloading of many popular formats, like JPEG, PNG, BMP, WAV, GIF, WebP, TIFF, and loads more; wreaking havoc in internal networks and making it impossible to navigate the modern internet.

A proper way of dealing with steganography is... not dealing with it at all. Since stego is only used as a data transfer method, companies should be focusing on detecting the point of entry/infection of the malware that abuses stegonagraphy, or the execution of the unauthorized code spawned by the stego-laced files.


 

Aquinus

Resident Wat-man
Joined
Jan 28, 2012
Messages
13,147 (2.96/day)
Location
Concord, NH, USA
System Name Apollo
Processor Intel Core i9 9880H
Motherboard Some proprietary Apple thing.
Memory 64GB DDR4-2667
Video Card(s) AMD Radeon Pro 5600M, 8GB HBM2
Storage 1TB Apple NVMe, 4TB External
Display(s) Laptop @ 3072x1920 + 2x LG 5k Ultrafine TB3 displays
Case MacBook Pro (16", 2019)
Audio Device(s) AirPods Pro, Sennheiser HD 380s w/ FIIO Alpen 2, or Logitech 2.1 Speakers
Power Supply 96w Power Adapter
Mouse Logitech MX Master 3
Keyboard Logitech G915, GL Clicky
Software MacOS 12.1
You still need an application that knows how to decode this stuff in these files which means the malware has to end up on the box as a binary and not as some weird bit of embedded data in a file. Embedding code into a WAV doesn't make it executable like @W1zzard said, so you still need another piece of software that will take that "malicious code" and execute it which still leaves you in the same position you were in without encoding data into another non-executable format; getting a binary or arbitrary code to run on the target machine.
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
26,956 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
Could be a lost in translation thing though, in German "code" [encryption] == "encoded data / encoding"
 
Joined
Jul 25, 2006
Messages
12,011 (1.86/day)
Location
Nebraska, USA
System Name Brightworks Systems BWS-6 E-IV
Processor Intel Core i5-6600 @ 3.9GHz
Motherboard Gigabyte GA-Z170-HD3 Rev 1.0
Cooling Quality case, 2 x Fractal Design 140mm fans, stock CPU HSF
Memory 32GB (4 x 8GB) DDR4 3000 Corsair Vengeance
Video Card(s) EVGA GEForce GTX 1050Ti 4Gb GDDR5
Storage Samsung 850 Pro 256GB SSD, Samsung 860 Evo 500GB SSD
Display(s) Samsung S24E650BW LED x 2
Case Fractal Design Define R4
Power Supply EVGA Supernova 550W G2 Gold
Mouse Logitech M190
Keyboard Microsoft Wireless Comfort 5050
Software W10 Pro 64-bit
Is this really a "new" threat?
 
Joined
Aug 20, 2007
Messages
20,709 (3.41/day)
System Name Pioneer
Processor Ryzen R9 7950X
Motherboard GIGABYTE Aorus Elite X670 AX
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory 64GB (4x 16GB) G.Skill Flare X5 @ DDR5-6000 CL30
Video Card(s) XFX RX 7900 XTX Speedster Merc 310
Storage 2x Crucial P5 Plus 2TB PCIe 4.0 NVMe SSDs
Display(s) 55" LG 55" B9 OLED 4K Display
Case Thermaltake Core X31
Audio Device(s) TOSLINK->Schiit Modi MB->Asgard 2 DAC Amp->AKG Pro K712 Headphones or HDMI->B9 OLED
Power Supply FSP Hydro Ti Pro 850W
Mouse Logitech G305 Lightspeed Wireless
Keyboard WASD Code v3 with Cherry Green keyswitches
Software Windows 11 Enterprise (legit), Gentoo Linux x64
Is this really a "new" threat?

Sort of? It's just a new way to hide managing viral code from researchers and hosts.

Didn't work for long though obviously. My immediate question with something like this is "how long did they do it unnoticed?"
 
Joined
Jul 25, 2006
Messages
12,011 (1.86/day)
Location
Nebraska, USA
System Name Brightworks Systems BWS-6 E-IV
Processor Intel Core i5-6600 @ 3.9GHz
Motherboard Gigabyte GA-Z170-HD3 Rev 1.0
Cooling Quality case, 2 x Fractal Design 140mm fans, stock CPU HSF
Memory 32GB (4 x 8GB) DDR4 3000 Corsair Vengeance
Video Card(s) EVGA GEForce GTX 1050Ti 4Gb GDDR5
Storage Samsung 850 Pro 256GB SSD, Samsung 860 Evo 500GB SSD
Display(s) Samsung S24E650BW LED x 2
Case Fractal Design Define R4
Power Supply EVGA Supernova 550W G2 Gold
Mouse Logitech M190
Keyboard Microsoft Wireless Comfort 5050
Software W10 Pro 64-bit
My immediate question with something like this is "how long did they do it unnoticed?"
I just remember hearing about steganography being used to hide and distribute malware several years ago in image files. It just seems odd to me that using .wav files would be something "new".

But yeah, I agree. "How long did they do it unnoticed?" is a concern.

But to me, the greater question is, "How long have researchers known about it before they decided to report it?" I note what irritates me almost more than hackers stealing our personal information is it may be months after the company discovered the hack before they let their customers know their information was stolen. :mad: :mad: :banghead:

No as far as i remember there was a Spate of WMF files containing malicious code years ago (favorite type of file was porn and they hijacked your Browser).
Yeah, that sound familiar too.
 
Joined
Aug 20, 2007
Messages
20,709 (3.41/day)
System Name Pioneer
Processor Ryzen R9 7950X
Motherboard GIGABYTE Aorus Elite X670 AX
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory 64GB (4x 16GB) G.Skill Flare X5 @ DDR5-6000 CL30
Video Card(s) XFX RX 7900 XTX Speedster Merc 310
Storage 2x Crucial P5 Plus 2TB PCIe 4.0 NVMe SSDs
Display(s) 55" LG 55" B9 OLED 4K Display
Case Thermaltake Core X31
Audio Device(s) TOSLINK->Schiit Modi MB->Asgard 2 DAC Amp->AKG Pro K712 Headphones or HDMI->B9 OLED
Power Supply FSP Hydro Ti Pro 850W
Mouse Logitech G305 Lightspeed Wireless
Keyboard WASD Code v3 with Cherry Green keyswitches
Software Windows 11 Enterprise (legit), Gentoo Linux x64
Yeah, that sound familiar too.

Different than this though. This is control code hosted online in innocent looking files. You don't just get infected by opening a .wav in this case. If you didn't have recieving malware looking for whatever on your end, it'd play as an innocent .wav and nothing would happen.

Most likely, I'd guess they hid it by doing some clever bit modulation/demodulation in the sound file as... sound. You could basically be a pretend analog modem bitstream playing back in a wave file and download a virus to a quite literally "listening" program... it'd be bizzare but it'd work. It'd even be faster than 56K by virtue of fidelty. It'd sound like the old dial up days to anyone who played it.

Heck, now that I've described it, I kinda wanna try this now. It's really clever. Useless for anything but hiding stuff, and of course being used completely unethically here, but clever all the same.

It reminds me of a program I wrote for DVHS VCR's many moons ago, that backed up data to VHS tapes via firewire. Stored around 20GBs per 120 minute tape in straight video MPEG-bit->Video modulation (and yes, it took 120mins, so a little less than 3MB/s bitrate) . Useless now, but pretty cool then. The tape also had to be SVHS or better though (expensive), so probably was always useless really.

I just wish clever things weren't thought up by bad guys. That always irritates me. Why couldn't *I* have thought of this, first?

I totally want to make this just so when the FBI finally gets around to investigating me for frog-related treason, they find my secret encrypted audio files, "cooerce" the key out me, study the suspicious modem static under intense science, only to discover my modulation scheme and decode a picture of an innocent giraffe doing fun innocent giraffe things.

At that point, they'd realize how useless I really am, and probably let me go before they found the frogbomb.

Rejoice, all ye faithful.

EDIT: Ok, maybe I got a bit carried away there. Humor me I've had a bad day. There is no frogbomb... or not yet, anyways. Pray it never comes to that.
 
Last edited:
D

Deleted member 185158

Guest
Hmm. updated Malwarebytes. All good now, no worries.... lol.
 
Joined
Jul 25, 2006
Messages
12,011 (1.86/day)
Location
Nebraska, USA
System Name Brightworks Systems BWS-6 E-IV
Processor Intel Core i5-6600 @ 3.9GHz
Motherboard Gigabyte GA-Z170-HD3 Rev 1.0
Cooling Quality case, 2 x Fractal Design 140mm fans, stock CPU HSF
Memory 32GB (4 x 8GB) DDR4 3000 Corsair Vengeance
Video Card(s) EVGA GEForce GTX 1050Ti 4Gb GDDR5
Storage Samsung 850 Pro 256GB SSD, Samsung 860 Evo 500GB SSD
Display(s) Samsung S24E650BW LED x 2
Case Fractal Design Define R4
Power Supply EVGA Supernova 550W G2 Gold
Mouse Logitech M190
Keyboard Microsoft Wireless Comfort 5050
Software W10 Pro 64-bit
That's good but me? I wasn't worried before this news.
 

Easy Rhino

Linux Advocate
Staff member
Joined
Nov 13, 2006
Messages
15,436 (2.43/day)
Location
Mid-Atlantic
System Name Desktop
Processor i5 13600KF
Motherboard AsRock B760M Steel Legend Wifi
Cooling Noctua NH-U9S
Memory 4x 16 Gb Gskill S5 DDR5 @6000
Video Card(s) Gigabyte Gaming OC 6750 XT 12GB
Storage WD_BLACK 4TB SN850x
Display(s) Gigabye M32U
Case Corsair Carbide 400C
Audio Device(s) On Board
Power Supply EVGA Supernova 650 P2
Mouse MX Master 3s
Keyboard Logitech G915 Wireless Clicky
Software The Matrix
I knew that Dave Mathews CD was spying on me!
 
Joined
Aug 20, 2007
Messages
20,709 (3.41/day)
System Name Pioneer
Processor Ryzen R9 7950X
Motherboard GIGABYTE Aorus Elite X670 AX
Cooling Noctua NH-D15 + A whole lotta Sunon and Corsair Maglev blower fans...
Memory 64GB (4x 16GB) G.Skill Flare X5 @ DDR5-6000 CL30
Video Card(s) XFX RX 7900 XTX Speedster Merc 310
Storage 2x Crucial P5 Plus 2TB PCIe 4.0 NVMe SSDs
Display(s) 55" LG 55" B9 OLED 4K Display
Case Thermaltake Core X31
Audio Device(s) TOSLINK->Schiit Modi MB->Asgard 2 DAC Amp->AKG Pro K712 Headphones or HDMI->B9 OLED
Power Supply FSP Hydro Ti Pro 850W
Mouse Logitech G305 Lightspeed Wireless
Keyboard WASD Code v3 with Cherry Green keyswitches
Software Windows 11 Enterprise (legit), Gentoo Linux x64
good thing I only use .flac

You wouldn't be the one opening the wav. It's for remote command execution. You'd have to already have malware on your machine to have it even look up a innocent looking (to hosts) wav file to ask for botnet commands.

yep i have a lifetime license for malwarebytes. its good stuff.

Still, if you got this, I think you got a handle on it.
 

Space Lynx

Astronaut
Joined
Oct 17, 2014
Messages
15,800 (4.58/day)
Location
Kepler-186f
You wouldn't be the one opening the wav. It's for remote command execution. You'd have to already have malware on your machine to have it even look up a innocent looking (to hosts) wav file to ask for botnet commands.
Still, if you got this, I think you got a handle on it.

ah ok. yeah and I have also TinyWall as my firewall set to max mode, so anything trying to connect to the internet requires permission. so even if malwarebytes fails, it will have a hard time getting around that I think.
 
Joined
Oct 5, 2017
Messages
595 (0.25/day)
I knew that Dave Mathews CD was spying on me!
It actually is... or was, if you bought it in 2004/5 -

Sony also uses SunnComm MediaMax DRM software on some of its releases, including the Foo Fighters and the Dave Matthews Band. MediaMax does not conceal itself with a rootkit, but one researcher has concluded “it does behave in several ways that are characteristic of spyware” by: installing software without meaningful consent or notification; including either no means of uninstalling the software or an uninstaller that claims to remove the entire program but does not; and transmitting information about user activities to SunnComm despite statements to the contrary in the end user license agreement (EULA) and on SunnComm’s web site. The researcher noted that when a MediaMax-protected CD is inserted into a computer running Windows, the program displays an EULA, but that before the EULA appears MediaMax installs around a dozen files of over 12 MB in size. Finally, researchers have warned that the web-based XCP uninstaller offered by Sony represents a “far greater security risk than even the original Sony rootkit.”
 
Top