Bit old POC in ransomeware with JS Script and Windows Registry

收藏待读

Bit old POC in ransomeware with JS Script and Windows Registry

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:UsersVictimDocuments

Registry entry creation

Encryption Module => HKCUSOFTWAREMicrosoftWindowsCurrentVersione

FileReader Module => HKCUSOFTWAREMicrosoftWindowsCurrentVersionf

Decoder Module => HKCUSOFTWAREMicrosoftWindowsCurrentVersiond

Public Key => HKCUSOFTWAREMicrosoftWindowsCurrentVersionpk

Triggering point => HKCUSoftwareMicrosoftWindowsCurrentVersionRunfileLessRw

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.

原文 : Github

相關閱讀

免责声明:本文内容来源于Github,已注明原文出处和链接,文章观点不代表立场,如若侵犯到您的权益,或涉不实谣言,敬请向我们提出检举。