Malware Analysis IDAPython script to decode NightHawk strings


Thread author
Staff Member
Apr 9, 2020
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:


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/ 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.