f0wl / ezuri_unpack

Simple unpacking script for Ezuri ELF Crypter

Home Page:https://dissectingmalwa.re

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Report Card

ezuri_unpack

A simple unpacking script for the Ezuri ELF Crypter. Based on the analysis done by Ofer Caspi and Fernando Martinez of AT&T Alien Labs: https://cybersecurity.att.com/blogs/labs-research/malware-using-new-ezuri-memory-loader

ezuri_unpack.go screenshot

How does it work?

The payload is encrypted with AES CFB and will be decrypted and run via memfd_create by the stub. Key and IV are stored in the binary.

Hex Editor, POC executable

Testing the script

  1. Build the test payload gcc test.c -o test
  2. Build and run guitmz/ezuri
  3. To unpack it again: go run ezuri_unpack.go packed.bin

I also tested it with the packed Linux.Cephei sample mentioned in the report. Link to Virustotal

About

Simple unpacking script for Ezuri ELF Crypter

https://dissectingmalwa.re

License:MIT License


Languages

Language:Go 92.3%Language:C 7.7%