Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Malware & Threats

Ursnif Banking Trojan Gets Mouse-Based Anti-Sandboxing

Recently discovered variants of the Ursnif banking Trojan include anti-sandboxing features based on a combination of mouse position and file timestamps, while also attempting to steal data from the Thunderbird email client, Forcepoint security researchers reveal.

Recently discovered variants of the Ursnif banking Trojan include anti-sandboxing features based on a combination of mouse position and file timestamps, while also attempting to steal data from the Thunderbird email client, Forcepoint security researchers reveal.

The Ursnif malware family has been around since at least 2013, mainly focused on stealing sensitive information from infected users, including passwords. Recent variants were observed testing various sandbox evasion techniques.

A newly observed Ursnif variant is being delivered through malicious emails that contain an encrypted Word document as attachment, with the plaintext password included in the email body. The malicious document contains several obfuscated VBS files designed to load malicious DLLs through Windows Management Instrumentation (WMI).

As soon as the attached document is decrypted, it shows three OLE document icons with the extension “docx” and lures users into double clicking them directly. These are, in fact, three identical VBS scripts that pack highly obfuscated code padded with a great deal of garbage scripts to cover up normal logic, the security researchers explain.

During the infection process, a DLL is dropped that was designed to self-check on integrity and then perform anti-sandboxing and anti-VM checks, implement persistence through an autorun registry key, and inject itself into the ‘explorer.exe’ process.

The anti-sandboxing algorithm in the new malware variant “uses the difference between the current and previous recorded mouse coordinates to detect mouse movement,” because mouse isn’t moved in sandbox environments. The generated value is then used to ‘brute force’ its own decryption key, Forcepoint explained.

Advertisement. Scroll to continue reading.

The decryption key is a global constant used to decode APIs, a hidden PE file, synchronous objects, Registry data, URLs, and more, the security researchers explain. An additional embedded PE file (a 3rd DLL file) is extracted from the data section of the second DLL file, released to a temporary buffer, and injected into the ‘explorer.exe’ process.

The decoding operations are implemented at run time, meaning that memory analyzers won’t be able to dump the whole plaintext string stream of malware memory.

Related: Ursnif Banking Trojan’s Distribution Networks Exposed

Related: Ursnif Banking Trojan Uses New Sandbox Evasion Techniques

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert insights.

Click to comment

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Today’s attackers are no longer breaking in — they’re logging in. Join this live webinar as we break down the modern identity attack chain and examine how recent breaches exploited weaknesses in authentication, identity verification, and access management processes.

Register

AI has accelerated both sides of the fight. Adversaries are weaponizing vulnerabilities faster, while defenders are racing to ship detections and configurations. Join this live webinar as we explore how to prove your controls actually hold against new threats, map your security maturity, and unite breach simulation with automated pentesting into a single, coordinated program.

Register

People on the Move

Jonathan Trull has joined Oracle as Global Head of Cyber Defense.

Plaid has appointed Sean Cassidy as Chief Information Security Officer.

Ann Barron-DiCamillo has been named Executive Vice President and Global Chief Information Security Officer at U.S. Bank.

More People On The Move

Expert Insights

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity news, threats, and expert insights. Unsubscribe at any time.