InfoStealer Script Based on Curl and NSudo

Published: 2022-08-11
Last Updated: 2022-08-11 06:54:45 UTC
by Xavier Mertens (Version: 1)
0 comment(s)

If sudo[1] is a well known tool used daily by most UNIX system administrators, NSudo[2] remains less below the radar. This is a tool running on Microsoft Windows which allows you to execute processes with different access tokens and privileges like:

  • System
  • TrustedInstaller
  • CurrentUser

It can be used with a GUI:

Or command line:

C:\Users\REM\Downloads>nsudo.exe -U:T -P:E cmd.exe

Of course, when executed, the tool will trigger the UAC (“User Account Control”) of Windows depending on your current rights.

The script that I found makes use of this tool but first, it verifies if the user has enough rights otherwise, it will trigger the UAC:

A specific version of NSudo is downloaded from a third-party repository through the classic bitsadmin LOLbin. I still need to check if this binary has been weaponized but it seems no. It's just an old version. Then, NSudo is invoked multiple times to alter the victim’s computer settings:

This is a classic behaviour today, information is exfiltrated via a Discord channel. You can see that curl.exe (today, installed by default on all modern Windows instances) is used to post interesting data to the attacker's channel.

The following data are exfiltrated:

  • Screenshot
  • Full location (Country, City, ...)
  • Processes
  • Users, cmdkey, quser
  • IP settings
  • Browsers details (Chrome, Brava, Opera, Vivaldi)

Less common, the script also exfiltrates data about installed gaming applications:

  • OSU!
  • Steam
  • Minecraft
  • GrowTopia

NSudo is not common and should be added to the list of suspicious tools to track in your eventlogs!

[1] https://www.sudo.ws
[2] https://nsudo.m2team.org/en-us/

Xavier Mertens (@xme)
Xameco
Senior ISC Handler - Freelance Cyber Security Consultant
PGP Key

0 comment(s)
ISC Stormcast For Thursday, August 11th, 2022 https://isc.sans.edu/podcastdetail.html?id=8126

Comments

cwqwqwq
eweew<a href="https://www.seocheckin.com/edu-sites-list/">mashood</a>
WQwqwqwq[url=https://www.seocheckin.com/edu-sites-list/]mashood[/url]
dwqqqwqwq mashood
[https://isc.sans.edu/diary.html](https://isc.sans.edu/diary.html)
[https://isc.sans.edu/diary.html | https://isc.sans.edu/diary.html]
What's this all about ..?
password reveal .
<a hreaf="https://technolytical.com/">the social network</a> is described as follows because they respect your privacy and keep your data secure:

<a hreaf="https://technolytical.com/">the social network</a> is described as follows because they respect your privacy and keep your data secure. The social networks are not interested in collecting data about you. They don't care about what you're doing, or what you like. They don't want to know who you talk to, or where you go.

<a hreaf="https://technolytical.com/">the social network</a> is not interested in collecting data about you. They don't care about what you're doing, or what you like. They don't want to know who you talk to, or where you go. The social networks only collect the minimum amount of information required for the service that they provide. Your personal information is kept private, and is never shared with other companies without your permission
https://thehomestore.com.pk/

Diary Archives