Malware Analysis IDAPython script to decode NightHawk strings

struppigel

Moderator
Thread author
Verified
Staff Member
Well-known
Apr 9, 2020
650
This script will search in NightHawk samples for the decode function and the substitution alphabets, then decode strings referenced by the decoder function, then add the plaintext strings as comments to IDA.

In IDA it looks like this:
nh.png


nh2.png

Tested on IDA 8.1 with the following NightHawk samples:

This article was of great help for NightHawk analysis: Nighthawk: An Up-and-Coming Pentest Tool Likely to Gain Threat Actor Notice | Proofpoint US

The IDAPython script is in my repo: hedgehog-tools/nighthawk_str_decoder.py at main · struppigel/hedgehog-tools
 

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top