Giter VIP home page Giter VIP logo

malicious-process-detection's Introduction

Malicious process detection using process name similarity

Hackers are trying to find simple ways to bypass existing security controls. One of the simple way to fool an average user to keep the name of malicious process similar to essential windows process.e.g "svchost.exe" is replaced with "svhost.exe" Most of the common users will not notice the difference!

The aim of this python script is to find such similar names using various distance computing algorithms and raise alert for security admins to act on such threat(s) on priority basis.

Pseudo code:

  • Identify windows process list and make a master list
  • Loop through process list using psutil and extract names
  • Compare process names using string similarity algorithms in python
  • If the distance results are more than threshold, raise the alert. Ideally, the strings should match exactly.

Many thanks to David to explain nicely this concept in the article: http://detect-respond.blogspot.com/2016/11/hunting-for-malware-critical-process.html

Some essential windows processes

  • taskmgr.exe
  • explorer.exe
  • svchost.exe
  • spoolsv.exe
  • lsass.exe
  • services.exe
  • winlogon.exe
  • csrss.exe
  • smss.exe
  • System Idle Process

Explanations for various common Windows processes

  • ccEvtMrg.exe This process is part of with Symantec’s Internet Security Suite. Keep it and protect your PC.

  • ccSetMgr.exe This process is associated with Symantec’s Internet Security Suite. Keep it and protect your PC.

  • csrss.exe This is a system process that is the main executable for the Microsoft Client / Server Runtim Server Subsystem. It should not be shut down.

  • explorer.exe This process must always be running in the background. It’s a user interface process that runs the windows graphical shell for the desktop.

  • iexplore.exe This process starts running when you run Internet Explorer browser.

  • lsass.exe Local Security Authority Service is a Windows security-related system process for handling local security and login policies.

  • rundll32.exe A system process that executes DLLs and loads their libraries.

  • services.exe An essential process that manages the starting and stopping of services including the those in boot up and shut down.

  • smss.exe Session Manager SubSystem is a system process that is a central part of the Windows operating system.

  • spoolsv.exe This process manages Microsoft printer spooler service and handles local printer processes.

  • svchost.exe You may have more than one appearances of this process to handle processes executed from DLLs.

  • System This process generates a file that stores information related to local hardware settings in the registry under ‘HKEY_LOCAL_MACHINE’.

  • System Idele Process This calculates the amount of CPU currently in use by applications.

  • taskmgr.exe This process comes alive when you press Ctrl+Alt+Del.

  • wdfmgr.exe This process is associated with Windows Driver Foundation Manager and is part of Windows media player 10 and newer.

  • winlogon.exe This process handles the login and logout processes.

  • winword.exe This process runs Microsoft Windows Word application.

Interesting links:

malicious-process-detection's People

Contributors

psjoshi avatar

Watchers

James Cloos avatar Andre Gironda avatar  avatar

Forkers

blue-infosec

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.