Git Product home page Git Product logo

file-less-ransomware-demo's Introduction

This is only for Educational purpose.

The purpose of the particular development is to demonstrate on my review paper about file-less malware approach using JavaScript.

Link to the paper: https://www.linkedin.com/pulse/survey-file-less-malware-approach-using-javascript-ruwan-geeganage

3rd party libraries used.sdf

  1. RSA encryption library
  2. Base 64 decoding library
  3. Command line execution mechanism of the Poweliks.

This uses RSA 1024 bit public key to encryption.

This is a POC for a file-less malware approach with JavaScript.

This a Ransom ware.

This ransome ware will encrypt the first 23400 characters in PDF, TXT, DOC, DOCX, XLS inside the Document folder.
eg: C:\Users\Victim\Documents\

Registry entry creation

Encryption Module => HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\e

FileReader Module => HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\f

Decoder Module => HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\d

Public Key => HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\pk

Triggering point => HKCU\Software\Microsoft\Windows\CurrentVersion\Run\fileLessRw

Encryption nd File Reader module is stored in Base 64 Encoded format.

Exection module

  1. Commands in the triggering point entry will read the decoder module and execute it.
  2. Decoder reads the File Reader module and decode it then executes it.
  3. File reader module will read encryption module and execute against all the files statisfy the selection criteria.sd
  4. Encrption module reads Public key and use its for encryption.
  5. Encrytion module adds a header to each file to identify any file which already encrypted to avoid encrytion again.

PAYLOAD.JS contains all the code. Other than that, there are no any files involved or created by the malware.

file-less-ransomware-demo's People

Contributors

rpgeeganage avatar

Watchers

 avatar  avatar

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.