Security Market Segment LS
Saturday, 01 August 2020 08:41

WastedLocker is customised crypto-ransomware, says Kaspersky researcher Featured

WastedLocker is customised crypto-ransomware, says Kaspersky researcher Image by Gerd Altmann from Pixabay

There has been a marked increase in use of the crypto-ransomware WastedLocker in the first six months of 2020, the Russian security firm Kaspersky claims, with the most recent use being against wearable technology specialist Garmin.

The company said each criminal gang that used WastedLocker appeared to be rebuilding the source to suit its own ends and thus a targeted build was used against Garmin.

In a detailed technical analysis of the relatively new malware, Kaspersky researcher Fedor Sinitsyn said WastedLocker had a command line interface that allowed it to accept different arguments that controlled the way it operated.

One was a "p" switch that indicated priority and was used to direct the malware to encrypt a specified directory first and then add its name to an exclusion list to prevent it being processed a second time.

After that, all remaining directories on attached drives would be encrypted.

The malware also had an "f" switch that could be used to specify encryption of a single directory.

A third argument, specified by the use of "u" told the package to encrypt files on a specified network using the authentication afforded by the credentials provided.

wastedlocker ransom note

A screenshot of the ransom note generated by WastedLocker. Courtesy Kaspersky

The use of the "r" switch would launch the following sequence of actions:

  • Delete ;
  • Copy to %WINDIR%\system32\<rand>.exe using a random substring from the list of subkeys of the registry key SYSTEM\CurrentControlSet\Control\;
  • Create a service with a name chosen similarly to the method described above. If a service with this name already exists, append the prefix “Ms” (e.g. if the service “Power” already exists, the malware will create a new one with the name “MsPower”). The command line for the new service will be set to “%WINDIR%\system32\<rand>.exe -s”;
  • Start this service and wait until it finishes working;
  • Delete the service.
  • FInally, the "s" switch would start a created service which would result in all files that were locatable being encrypted.

Sinitsyn said one more interesting feature of WastedLocker was the manner in which it bypassed the user account control feature in Windows; this allows someone who has ordinary user privileges to run code that requires admin privileges by clicking agree on a pop-up that the system generates when such an operation was attempted.

The malware noted the privileges it had when it was started and silently tried to elevate its privileges using a known bypass technique:

  • Create a new directory in %appdata%; the directory name is chosen at random from the substrings found in the list of subkeys of the registry key SYSTEM\CurrentControlSet\Control\;
  • Copy a random EXE or DLL file from the system directory to this new directory;
  • Write the trojan’s own body into the alternate NTFS stream “:bin” of this system file;
  • Create a new temporary directory and set its mount point to “C:\Windows ” (with a trailing whitespace) using the API function NtFsControlFile with the flag IO_REPARSE_TAG_MOUNT_POINT;
  • Create a new subdirectory named “system32” inside the temporary directory. As a result of the previous step, this new subdirectory can be equally successfully addressed as “%temp%\<directory_name>\system32” or “C:\Windows \system32” (note the whitespace);
  • Copy the legitimate winsat.exe and winmm.dll into this subdirectory;
  • Patch winmm.dll: replace the entry point code with a short fragment of malicious code whose only purpose is to launch the content of the alternate NTFS stream created on step 2; and
  • Launch winsat.exe, which will trigger the loading of the patched winmm.dll as a result of DLL hijacking.

Sinitsyn also found that the encryption scheme used by the malware was a combination of the AES and RSA algorithms. "The search mask to choose which files will be encrypted, as well as the list of the ignored paths are set in the configuration of the malware," he noted.

He said tor each processed file, WastedLocker generated a unique 256-bit key and a 128-bit IV which would be used to encrypt the file content using the AES-256 algorithm in CBC mode.

"The implementation of file operations is worthy of note, as it employs file mapping for data access. It must have been an attempt by the criminals to maximise the trojan’s performance and/or avoid detection by security solutions," he theorised. "Each encrypted file will get a new additional extension: .garminwasted."

Sinitsyn discovered that the trojan implemented a way of integrity control as part of its file encryption routine, calculating an MD5 hash of the original content of each processed file, and using this hash to ensure the correctness of the procedure.

Additionally, WastedLocker used a publicly available reference implementation of an RSA algorithm named “rsaref”.

Please join our community here and become a VIP.

Subscribe to ITWIRE UPDATE Newsletter here
JOIN our iTWireTV our YouTube Community here


It's all about Webinars.

Marketing budgets are now focused on Webinars combined with Lead Generation.

If you wish to promote a Webinar we recommend at least a 3 to 4 week campaign prior to your event.

The iTWire campaign will include extensive adverts on our News Site and prominent Newsletter promotion and Promotional News & Editorial. Plus a video interview of the key speaker on iTWire TV which will be used in Promotional Posts on the iTWire Home Page.

Now we are coming out of Lockdown iTWire will be focussed to assisting with your webinatrs and campaigns and assassistance via part payments and extended terms, a Webinar Business Booster Pack and other supportive programs. We can also create your adverts and written content plus coordinate your video interview.

We look forward to discussing your campaign goals with you. Please click the button below.



iTWire TV offers a unique value to the Tech Sector by providing a range of video interviews, news, views and reviews, and also provides the opportunity for vendors to promote your company and your marketing messages.

We work with you to develop the message and conduct the interview or product review in a safe and collaborative way. Unlike other Tech YouTube channels, we create a story around your message and post that on the homepage of ITWire, linking to your message.

In addition, your interview post message can be displayed in up to 7 different post displays on our the site to drive traffic and readers to your video content and downloads. This can be a significant Lead Generation opportunity for your business.

We also provide 3 videos in one recording/sitting if you require so that you have a series of videos to promote to your customers. Your sales team can add your emails to sales collateral and to the footer of their sales and marketing emails.

See the latest in Tech News, Views, Interviews, Reviews, Product Promos and Events. Plus funny videos from our readers and customers.


Sam Varghese

Sam Varghese has been writing for iTWire since 2006, a year after the site came into existence. For nearly a decade thereafter, he wrote mostly about free and open source software, based on his own use of this genre of software. Since May 2016, he has been writing across many areas of technology. He has been a journalist for nearly 40 years in India (Indian Express and Deccan Herald), the UAE (Khaleej Times) and Australia (Daily Commercial News (now defunct) and The Age). His personal blog is titled Irregular Expression.

Share News tips for the iTWire Journalists? Your tip will be anonymous