PCMag editors select and review products independently. If you buy through affiliate links, we may earn commissions, which help support our testing.

How Do You Find Malware? Microsoft and Intel Try Converting It Into 2D Images

The approach allows AI-powered antivirus programs to visually identify a malware’s characteristics.

 & Michael Kan Principal Reporter

Our team tests, rates, and reviews more than 1,500 products each year to help you make better buying decisions and get more from technology.

Our Expert
LOOK INSIDE PC LABS HOW WE TEST
65 EXPERTS
43 YEARS
41,500+ REVIEWS

Microsoft and Intel may have found a new way to detect computer viruses: training an antivirus program to “see” signs of malicious behavior in the computer code. 

The approach works by first converting a malware’s programming into 2D images, which can reveal visual patterns in the computer code. An AI-powered program can then inspect the images for traits indicating malicious behavior. 

“If malware binaries are plotted as grayscale images, the textural and structural patterns can be used to effectively classify binaries as either benign or malicious, as well as cluster malicious binaries into respective threat families,” Microsoft wrote in a blog post


An image depicting the STAMINA approach Credit: Microsoft-Intel

To pull this off, the companies converted the malware’s programing into a one-dimensional stream of digital pixels. As their study explains, each byte in the malware’s code can be imaged to correspond to a different level pixel intensity.  

The researchers then expanded the pixel streams into 2D images by using the malware’s file size after the conversion to determine the width and height. This allowed the Microsoft-Intel antivirus program to see the malware’s characteristics and train itself to discern them. 

The approach, dubbed STAMINA, is showing some promising results. In a test using real-world malware samples, the antivirus program achieved 99.07 percent accuracy with a false-positive rate of 2.87 percent. 

The companies developed STAMINA to address drawbacks in today’s antivirus scanning technology. The detection approaches can also involve disassembling a piece of malware into metadata to find trace signs of dangerous behavior. However, hackers are routinely coming up with ways to mask the malicious processes, making computer virus detection akin to a cat-and-mouse game.  

STAMINA could potentially add a new tool to ferret out malware. "This joint research is a good starting ground for more collaborative work," Microsoft said. "For example, the researchers plan to collaborate further on platform acceleration optimizations that can allow deep learning models to be deployed on client machines with minimal performance impact. Stay tuned."

However, the company notes the approach does have a key limitation: it has trouble dealing with large file sizes. Converting them into a 2D image would require billions of pixels, making the detection method less practical if the malware comes bundled in a big program.

Further Reading

Security Reviews

Security Best Picks

About Our Expert

Michael Kan

Michael Kan

Principal Reporter

My Experience

I've been a journalist for over 15 years. I got my start as a schools and cities reporter in Kansas City and joined PCMag in 2017, where I cover satellite internet services, cybersecurity, PC hardware, and more. I'm currently based in San Francisco, but previously spent over five years in China, covering the country's technology sector.

Since 2020, I've covered the launch and explosive growth of SpaceX's Starlink satellite internet service, writing 600+ stories on availability and feature launches, but also the regulatory battles over the expansion of satellite constellations, fights with rival providers like AST SpaceMobile and Amazon, and the effort to expand into satellite-based mobile service. I've combed through FCC filings for the latest news and driven to remote corners of California to test Starlink's cellular service.

I also cover cyber threats, from ransomware gangs to the emergence of AI-based malware. In 2024 and 2025, the FTC forced Avast to pay consumers $16.5 million for secretly harvesting and selling their personal information to third-party clients, as revealed in my joint investigation with Motherboard.

I also cover the PC graphics card market. Pandemic-era shortages led me to camp out in front of a Best Buy to get an RTX 3000. I'm now following how the AI-driven memory shortage is impacting the entire consumer electronics market. I'm always eager to learn more, so please jump in the comments with feedback and send me tips.

The Best Tech I've Had:

  • My first video game console: a Nintendo Famicom
  • I loved my Sega Saturn despite PlayStation's popularity.
  • The iPod Video I received as a gift in college
  • Xbox 360 FTW
  • The Galaxy Nexus was the first smartphone I was proud to own.
  • The PC desktop I built in 2013, which still works to this day.

Read full bio