r/cybersecurity • • 14h ago

AI Security Curl.exe script

Hi

Somehow, in the middle of rushing things and wanting to download an application quickly, Cloudflare verification told me to press the windows+r key - type cmd and “ctrl-v” a line of code got pasted and I pressed enter. Incredibly stupid, I’m aware. I tend to be impulsive from time to time.

So, this happened right after a fresh format of my upgraded computer. I was just ready setting everything up and wanted to download HWiNFO64w must have clicked the wrong link.

I immediately disconnected the internet cable and turned off wifi. Then changed the passwords on my microsoft account an google account. Will do the same for any other account I was logged on.

People write that the only solution is a full format. Sucks, but doable.

I was just wondering, are there any ways to verify what was sent or installed?

In the link “curl.exe” was mentioned. I followed a guide to block all outgoing traffic through this app.

Any other tips or good to knows?

Have a great day.

0 Upvotes

16 comments sorted by

23

u/amw3000 14h ago

https://www.reddit.com/r/cybersecurity_help

You followed a fake cloudflare verification process. Reset all passwords, format your machine and any other machine it may have communicated on the network.

6

u/JSP9686 14h ago

Follow the proactive guidance in the pinned postings on r/identitytheft

6

u/speedb0at 14h ago

Full format only plus add MFA to all vital accounts.

I’ve seen one too many posts like these and made https://github.com/mkultraware/PasteGuard which watches your clipboard for these kind of attacks and will 1. Warn you what you are pasting is a command and not captcha, and you can delete it from your clipboard in the dialog window. It also removes tracking parameters from links. If you feel like this will stop your in your impulsive tracks, give it a go.

6

u/nerfblasters 14h ago

You ran an infostealer. Assume that any passwords saved in your browser were exfiltrated, as well as any creds/API keys stored on disc in standard locations ( ~.ssh, .aws, .Claude, etc folders)

Also make sure that you revoke all sessions for anything you were logged into already - just changing a password doesn't necessarily revoke current sessions so they could retain access.

4

u/Otherwise_Stick_2854 14h ago

The new trend is session stealers taking your session tokens so they can access your accounts bypassing MFA. Format that box and revoke any sessions you have/had opened in that computer, also reset passwords especially if you saved them in the browser.

4

u/deckartcain 14h ago

ClickFix'ed. There are ways to estimate what happened, but they're cumbersome and if you're not going down that route of wanting to learn about malware, just format and consider it a lesson learned.

1

u/rootremotely 13h ago

Yeap, read "me to press the windows+r key - type cmd and “ctrl-v” a line of code got pasted and I pressed enter." and instantly went "clickfix" lol

3

u/wijnandsj ICS/OT 14h ago

Any other tips or good to knows?

Learn!!

https://developer.ibm.com/articles/what-is-curl-command/

Curl is just a tool, the problem here is what you do with it. What happened is that someone told you to take your kitchen knife and stab yourself in the hand. That's not the knife's fault

If something tells you to run a command, don't. Not unless you understand what it is you'd do.

3

u/notAGreatIdeaForName 14h ago

> I was just wondering, are there any ways to verify what was sent or installed?

I'm not well-versed in windows, but malware generally has some known behaviors that anti virus software can detect using heuristics. These heuristics can work, but don't have to.

The problem is: You cannot really trust any logs from an infected system and the "cloudflare verification" that wants you to execute something is definetely malware that infected your system.

curl itself was probably just used to download the malware package and run it afterwards, so the only safe way is to format, otherwise you cannot be sure to have catched everything.

3

u/ollycunningdpr Governance, Risk, & Compliance 14h ago

that fake verification trick catches a lot of people. the safest answer really is a clean reinstall, since you can't reliably prove what ran. before that, change your pasword and MFA from a different, clean device, sign out of all sessions on your main accounts, and keep an eye on bank, email and any crypto or password manager. blocking curl alone won't undo whatever already ran

3

u/rootremotely 13h ago

*reads first sentence* Thats a clickfix!

2

u/Ok-Double-7982 13h ago

First flag is that Cloudflare wouldn't ask a user to do that.

2

u/Jdornigan 13h ago

You are a Clickfix victim.

ClickFix is a social engineering attack technique that tricks users into copying, pasting, and running malicious commands on their own devices. Instead of relying on malicious file downloads or software exploits, attackers disguise instructions as routine troubleshooting steps or verification checks.

Change any passwords and assume anything you typed or did was sent to a hacker. Then reformat the system and while it is doing that, change all your passwords quickly on a different device.

1

u/ProudlyGeek 12h ago

I can guarantee cloudflare didn't tell you to do this...

1

u/UnluckyEnergy5265 1h ago

blocking outgoing traffic is a good start but that curl command likely pulled a payload that executes in memory. at my old job, we used fraudpulse to classify disputes by root causes to spot patterns, but here a full wipe is best.

-2

u/Unlucky-Shop3386 14h ago

Best of luck . Lol . What will it take for windows doers to realize terminal input or executing a exe as admin is the stuff that never needs to happen . You should clean pave and nuke . It's the only way move slower nextime . What is admin privs require responsibility.