Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Security
Malware Analysis
IDAPython script to decode NightHawk strings
Message
<blockquote data-quote="struppigel" data-source="post: 1012604" data-attributes="member: 86910"><p>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.</p><p></p><p>In IDA it looks like this:</p><p>[spoiler]</p><p>[ATTACH=full]270959[/ATTACH]</p><p></p><p>[ATTACH=full]270960[/ATTACH]</p><p>[/spoiler]</p><p></p><p>Tested on IDA 8.1 with the following NightHawk samples:</p><p>[URL unfurl="true"]https://bazaar.abuse.ch/sample/0551ca07f05c2a8278229c1dc651a2b1273a39914857231b075733753cb2b988[/URL]</p><p>[URL unfurl="true"]https://bazaar.abuse.ch/sample/9a57919cc5c194e28acd62719487c563a8f0ef1205b65adbe535386e34e418b8[/URL]</p><p></p><p>This article was of great help for NightHawk analysis: <a href="https://www.proofpoint.com/us/blog/threat-insight/nighthawk-and-coming-pentest-tool-likely-gain-threat-actor-notice" target="_blank">Nighthawk: An Up-and-Coming Pentest Tool Likely to Gain Threat Actor Notice | Proofpoint US</a></p><p></p><p>The IDAPython script is in my repo: <a href="https://github.com/struppigel/hedgehog-tools/blob/main/nighthawk_str_decoder.py" target="_blank">hedgehog-tools/nighthawk_str_decoder.py at main · struppigel/hedgehog-tools</a></p></blockquote><p></p>
[QUOTE="struppigel, post: 1012604, member: 86910"] 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: [spoiler] [ATTACH type="full" alt="nh.png"]270959[/ATTACH] [ATTACH type="full" alt="nh2.png"]270960[/ATTACH] [/spoiler] Tested on IDA 8.1 with the following NightHawk samples: [URL unfurl="true"]https://bazaar.abuse.ch/sample/0551ca07f05c2a8278229c1dc651a2b1273a39914857231b075733753cb2b988[/URL] [URL unfurl="true"]https://bazaar.abuse.ch/sample/9a57919cc5c194e28acd62719487c563a8f0ef1205b65adbe535386e34e418b8[/URL] This article was of great help for NightHawk analysis: [URL='https://www.proofpoint.com/us/blog/threat-insight/nighthawk-and-coming-pentest-tool-likely-gain-threat-actor-notice']Nighthawk: An Up-and-Coming Pentest Tool Likely to Gain Threat Actor Notice | Proofpoint US[/URL] The IDAPython script is in my repo: [URL='https://github.com/struppigel/hedgehog-tools/blob/main/nighthawk_str_decoder.py']hedgehog-tools/nighthawk_str_decoder.py at main · struppigel/hedgehog-tools[/URL] [/QUOTE]
Insert quotes…
Verification
Post reply
Top