Phishing Sites Now Detect Virtual Machines To Bypass Detection

Phishing Sites Now Detect Virtual Machines To Bypass Detection

Phishing sites are now using JavaScript to evade detection by checking whether a visitor is browsing the site from a virtual machine or headless device.

 Cybersecurity firms commonly use headless devices or virtual machines to determine if a website is used for phishing.

To bypass detection, a phishing kit utilizes JavaScript to check whether a browser is running under a virtual machine or without an attached monitor. If it discovers any signs of analysis attempts, it shows a blank page instead of displaying the phishing page.

Discovered by MalwareHunterTeam, the script checks the visitor’s screen’s width and height and uses the WebGL API to query the rendering engine used by the browser.

Also Read: In Case You Didn’t Know, ISO 27001 Requires Penetration Testing

Using APIs to get renderer and screen info

When performing the checks, the script will first see if the browser uses a software renderer, such as SwiftShaderLLVMpipe, or VirtualBox. Software renderers commonly indicate that the browser is running within a virtual machine.

The script also checks if the visitor’s screen has a color depth of less than 24-bits or if the screen height and width are less than 100 pixels, as shown below.

Performing checks for virtual machines and headless devices

If it detects any of these conditions, the phishing page will display a message in the browser’s developer console and show an empty page to the visitor.

However, if the browser uses a regular hardware rendering engine and a standard screen size, the script will display the phishing landing page.

The code used by this threat actor appears to have been taken from a 2019 article describing how JavaScript can be used to detect virtual machines.

Fabian Wosar, CTO of cybersecurity firm Emsisoft, told BleepingComputer that security software utilize a variety of methods to scan for and detect phishing sites. These include signature matching and visual machine using machine learning.

“Code like the one above actually will work for some of these techniques. However, it is also trivial to prevent by just hooking a couple of JavaScript APIs and providing “fake” information,” Wosar explained.

As it’s common for researchers and security companies to harden their virtual machines to evade detection by malware, it appears they will now also have to harden them against phishing attacks.

Also Read: 4 Considerations In The PDPA Singapore Checklist: The Specifics

As a way to see what renderer and screen information is reported by your browser, BleepingComputer has created a test page that you can use.

Privacy Ninja

Recent Posts

Role of Enhanced Access Controls in Safeguarding Personal Data in Telecommunications

Role of Enhanced Access Controls in Safeguarding Personal Data in Telecommunications that every Organisation in…

2 weeks ago

Role of Effective Incident Response Procedures in Strengthening Data Security

Effective Incident Response Procedures in Strengthening Data Security that every Organisation in Singapore should know…

2 weeks ago

Strengthening Your Cyber Defenses: The Crucial Role of Regular Vulnerability Scanning

Crucial Role of Regular Vulnerability Scanning that every Organisation in Singapore should know. Strengthening Your…

2 weeks ago

Enhancing Data Security with Multi-Factor Authentication

Enhancing Data Security with Multi-Factor Authentication that every Organisation in Singapore should know. Enhancing Data…

3 weeks ago

A Strong Password Policy: Your Organization’s First Line of Defense Against Data Breaches

Strong Password Policy as a first line of defense against data breaches for Organisations in…

3 weeks ago

Enhancing Website Security: The Importance of Efficient Access Controls

Importance of Efficient Access Controls that every Organisation in Singapore should take note of. Enhancing…

4 weeks ago