Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

PowerShell Virus


  • This topic is locked This topic is locked
2 replies to this topic

#1 looselyrigorous

looselyrigorous

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:04:07 AM

Posted 12 August 2016 - 03:57 AM

Reposting from the "Am I infected" section after being directed here.

 

Hello,

 
About 3 4 months ago we had an infection in our office. I wasn't there when it happened but from what I can tell someone plugged their usb stick in more than one(!!!) of the computers, and opened a bunch of files maybe. I could take a somewhat educated guess and say it was some MSOffice file with a macro in it but I could be wrong. The machines at that time had Windows 7 installed in them. I used MBAM/RogueKiller/HitmanPro to detect for viruses, came up with a bunch and cleaned them up. I sadly don't have any logs from that point of time since it seemed that everything was clean, after repeated scans with aforementioned utilities. Edit: I found a log from MBAM, which I am attaching here. I also did not install any other Antivirus solution, but upgraded to Windows 10 which came bundled with MSE.
 
Now 6 days ago I decided to install Avast on the most severely affected computer and did a scan which checked out clean. After some time generally using the computer (to see how avast impacted perf.) avast pushed a notification window saying it prevented some kind of malicious runtime. It was classified as "BV:AndroDrp [Drp]" or something along those lines. I can't say for certain because avast (in it's infinite wisdom) decided this wasn't worth logging. At all. The referenced executable (as you might imagine) was PowerShell.
 
So I kinda panicked there seeing as I had to look for a ghost. Then today comes and I managed to shed some light in the problem (or so it seems). An initial search didn't yield anything as far as PowerShell logs are concerned but then I came across this, which prompted me to doodle around in the Event Viewer Application Logs. Navigating to "Application and Services Logs > Microsoft > Windows > Powershell", I found a bunch of event's under ID 4104: "Execute a remote command". The events detailed the "ScriptBlocks" that were being ran. I took and reconstructed them. Mostly obfuscated variables and use of addition/concatenation to create another script and run it. Said script is some version of "Invoke-ReflectivePEInjection.ps1" from PowerSploit. It pulled the entire Script and the arguments it passed to it from Registry.
 
So far it doesn't seem like the "Virus" propagates through a local network. One of the Computers where the usb wasn't plugged in hasn't logged any PowerShell activity.
 
And that's the extent of what I've figured out so far. I don't know what it does after that but if someone wants to have a look you can ask. I'm more concerned with what is injected and what damage it may have caused, than cleaning it.  My trust in the current installations was somewhat shaken to begin with but now I'm probably going to reinstall Windows in one of them, try to clean the other one (the logs you're getting are from the installation I will try to clean).
 
Any and all help is greatly appreciated. Thank you!

Attached Files



BC AdBot (Login to Remove)

 


#2 HelpBot

HelpBot

    Bleepin' Binary Bot


  • Bots
  • 12,665 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:07 PM

Posted 17 August 2016 - 04:00 AM

Hello and welcome to Bleeping Computer!

I am HelpBot: an automated program designed to help the Bleeping Computer Staff better assist you! This message contains very important information, so please read through all of it before doing anything.

We apologize for the delay in responding to your request for help. Here at Bleeping Computer we get overwhelmed at times, and we are trying our best to keep up. Please note that your topic was not intentionally overlooked. Our mission is to help everyone in need, but sometimes it takes just a little longer to get to every request for help. No one is ignored here.

To help Bleeping Computer better assist you please perform the following steps:

***************************************************

step1.gif In order to continue receiving help at BleepingComputer.com, YOU MUST tell me if you still need help or if your issue has already been resolved on your own or through another resource! To tell me this, please click on the following link and follow the instructions there.

CLICK THIS LINK >>> http://www.bleepingcomputer.com/logreply/623167 <<< CLICK THIS LINK



If you no longer need help, then all you needed to do was the previous instructions of telling me so. You can skip the rest of this post. If you do need help please continue with Step 2 below.

***************************************************

step2.gifIf you still need help, I would like you to post a Reply to this topic (click the "Add Reply" button in the lower right hand of this page). In that reply, please include the following information:

  • If you have not done so already, include a clear description of the problems you're having, along with any steps you may have performed so far.
  • A new FRST log. For your convenience, you will find the instructions for generating these logs repeated at the bottom of this post.
    • Please do this even if you have previously posted logs for us.
    • If you were unable to produce the logs originally please try once more.
    • If you are unable to create a log please provide detailed information about your installed Windows Operating System including the Version, Edition and if it is a 32bit or a 64bit system.
    • If you are unsure about any of these characteristics just post what you can and we will guide you.
  • Please tell us if you have your original Windows CD/DVD available.
  • Upon completing the above steps and posting a reply, another staff member will review your topic and do their best to resolve your issues.

Thank you for your patience, and again sorry for the delay.

***************************************************

We need to see some information about what is happening in your machine. Please perform the following scan again:

  • Download FRST by Farbar from the following link if you no longer have it available and save it to your destop.

    FRST Download Link

  • When you go to the above page, there will be 32-bit and 64-bit downloads available. Please click on the appropriate one for your version of Windows. If you are unsure as to whether your Windows is 32-bit or 64-bit, please see this tutorial.
  • Double click on the FRST icon and allow it to run.
  • Agree to the usage agreement and FRST will open. Do not make any changes and click on the Scan button.
  • Notepad will open with the results.
  • Post the new logs as explained in the prep guide.
  • Close the program window, and delete the program from your desktop.


As I am just a silly little program running on the BleepingComputer.com servers, please do not send me private messages as I do not know how to read and reply to them! Thanks!

#3 HelpBot

HelpBot

    Bleepin' Binary Bot


  • Bots
  • 12,665 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:07 PM

Posted 22 August 2016 - 04:05 AM

Hello again!

I haven't heard from you in 5 days. Therefore, I am going to assume that you no longer need our help, and close this topic.

If you do still need help, please send a Private Message to any Moderator within the next five days. Be sure to include a link to your topic in your Private Message.

Thank you for using Bleeping Computer, and have a great day!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users