So last week, I downloaded something that turned out to be to be pretty nasty and chalk full of malware. I immediately opened up Malwarebytes and Hitman Pro and started cleaning the gunk out, and ran 5-6 followup scans to be extra safe and thorough. I cleaned it up pretty good and eventually the software stopped detecting items. But on the same day after everything was cleaned up, I noticed that 3-4 times every hour, a command prompt window would open up just for a tenth of a second and disappear. I couldn't figure out why the hell it was happening, and then it dawned on me the other day to check event viewer. I noticed that event viewer was logging events for powershell, which I'm pretty sure shouldn't be happening, and the logs were concurrent with the date that I clogged my system with all that malware.
The powershell logs are occurring in a 10-step pattern. I will list them in the order that they occur:
1. Provider "WSMan" is Started (I looked it up, and it's a cmdlet to connect to the WinRM service for a remote computer)
2. Provider "Alias" is Started
3. Provider "Environment" is Started
4. Provider "FileSystem" is Started
5. Provider "Function" is Started
6. Provider "Registry" is Started
7. Provider "Variable" is Started
8. Provider "Certificate" is Started
9. Engine state is changed from None to Available
10. Engine state is changed from Available to Stopped
And that's the pattern the logs are repeating in. Now I could be entirely wrong about these logs, I have no idea what any of those commands represent or do, but it definitely looks suspicious to me. Can anyone shed some light for me?
The powershell logs are occurring in a 10-step pattern. I will list them in the order that they occur:
1. Provider "WSMan" is Started (I looked it up, and it's a cmdlet to connect to the WinRM service for a remote computer)
2. Provider "Alias" is Started
3. Provider "Environment" is Started
4. Provider "FileSystem" is Started
5. Provider "Function" is Started
6. Provider "Registry" is Started
7. Provider "Variable" is Started
8. Provider "Certificate" is Started
9. Engine state is changed from None to Available
10. Engine state is changed from Available to Stopped
And that's the pattern the logs are repeating in. Now I could be entirely wrong about these logs, I have no idea what any of those commands represent or do, but it definitely looks suspicious to me. Can anyone shed some light for me?