Giter Club home page Giter Club logo

wannaminecleaner's Introduction

WannaMine Cleaner

Remove all WMI instances and class of WannaMine malware.

In my environment, this malware uses the following malicious name:

  • Win32_Services, this malicious class was found in root\default namespace
  • DSM Event Log Consumer, this malicious instance was found in root\subscription namespace
  • DSM Event Log Filter, this malicious instance was found in root\subscription namespace

Before using this script, identify the name of malicious Class and instance. You can use the following command to find the name of malicious Class and instances.

wmic/namespace:\\root\subscription PATH __EventConsumer get/format:list

wmic/namespace:\\root\subscription PATH __EventFilter get/format:list

wmic/namespace:\\root\subscription PATH __FilterToConsumerBinding get/format:list

wmic/namespace:\\root\subscription PATH __TimerInstruction get/format:list

If you already have the script file used by malware, you can review the source code manually to find the name of malicious class.

To decode the script you can use online service like https://www.base64decode.org/

Here are some examples found in my environment:

EventConsumer

Payload EventConsumer

Bottom part of EventConsumer content Payload EventConsumer2

To easily copy the encoded payload, you can save the output directly to a file using this command:

wmic/namespace:\\root\subscription PATH __EventConsumer get/format:list > payload.txt

EventFilter

Payload EventFilter

FilterToConsumerBinding

Payload FilterToConsumerBinding

References

wannaminecleaner's People

Contributors

christofersimbar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

wannaminecleaner's Issues

Change 'Win32_Services' to match your environment

Hi,

One of my PC got infected by WannaMine. I downloaded the WannaMineCleaner and noticed on the script, it mentioned "change 'Win32_Services' to match your environment".

May I know if Win32_Services is the default environment or not? If not, how can I know the exact environment?

I have the decode base64 if you needed.

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.