Researchers with Sucuri have uncovered a new method being used by attackers to infect users via malicious iframes that have taken an extra step to mask their payloads.
“In today’s attacks, especially when we’re talking about drive-by-downloads, leveraging the iFrame tag is often the preferred method,” blogged researcher Peter Gramantik. “It’s simple and easy, and with a few attribute modifications, the attacker is able to embed code from another site, often compromised, and load something via the client’s browser without them knowing (i.e., silently).”
But recently, Sucuri found an example of attackers doing something different.
“The uniqueness is not in the use of an iFrame tag to embed the content, but rather in how it distributes the malware,” he explained. “You see, the attacker obfuscated the payload inside a PNG file.”
The iFrame loaded what appeared to be a valid file that was totally benign, jquery.js.
“At first…we were stumped,” he blogged. “I mean the code is good, no major issues, right? Then we noticed this little function, loadFile(). The function itself wasn’t curious, but the fact that it was loading a PNG was – var strFile = ‘./dron.png. You’d be surprised how long of staring it takes to notice something like that. I know hindsight is a real kicker.”
After opening the file, the researchers noticed a decoding loop.
“It’s taking the normal behavior of an iFrame injection, embedding it within the meta of the PNG file and just like that we have a new distribution mechanism,” Gramantik wrote.
“This is unique because in the level of effort being taken to obfuscate the payload,” he continued. “Most scanners today will not decode the meta in the image, they would stop at the JavaScript that is being loaded, but they won’t follow the cookie trail. This also talks to the benefit, at least for attackers, it’s exceptionally difficult to detect.”
“Do make note however that while in this specific case we’re talking about PNG, the concepts do and can apply to other image file types as well,” he added. “This only puts more emphasis on the importance of being aware of the state of your web server, understanding what files are and aren’t being added and modified and ensuring that vulnerabilities are not being exploited.”
More from Brian Prince
- U.S. Healthcare Companies Hardest Hit by ‘Stegoloader’ Malware
- CryptoWall Ransomware Cost Victims More Than $18 Million Since April 2014: FBI
- New Adobe Flash Player Flaw Shares Similarities With Previous Vulnerability: Trend Micro
- Visibility Challenges Industrial Control System Security: Survey
- Adobe Flash Player Zero-Day Exploited in Attack Campaign
- Researchers Demonstrate Stealing Encryption Keys Via Radio
- Researchers Uncover Critical RubyGems Vulnerabilities
- NSA, GCHQ Linked to Efforts to Compromise Antivirus Vendors: Report
Latest News
- Insider Q&A: Artificial Intelligence and Cybersecurity In Military Tech
- In Other News: Government Use of Spyware, New Industrial Security Tools, Japan Router Hack
- OpenAI Unveils Million-Dollar Cybersecurity Grant Program
- Galvanick Banks $10 Million for Industrial XDR Technology
- Information of 2.5M People Stolen in Ransomware Attack at Massachusetts Health Insurer
- US, South Korea Detail North Korea’s Social Engineering Techniques
- High-Severity Vulnerabilities Patched in Splunk Enterprise
- Idaho Hospitals Working to Resume Full Operations After Cyberattack
