Ghidra Automation Decrypts Obfuscated Strings in Amadey Malware
Attack Tradecraft · 3 sources · Updated 4mo ago · First seen Aug 24, 2023

A reverse-engineering walkthrough showed how Ghidra can be scripted to automatically recover obfuscated strings from Amadey 1.09, replacing repetitive manual analysis with automated annotation inside the disassembler and decompiler. The script targets the malware's __Z8aDecryptPc routine, reproduces its repeating-key subtraction logic in Java, identifies references to the function through Ghidra's decompiler and P-code APIs, and then writes recovered plaintext back into the project as comments and bookmarks.
The published results indicate the workflow decrypted 47 strings, reused 11 cached values, added 210 comments, and created 47 bookmarks in about 16 seconds, illustrating how scripting can accelerate malware triage. The approach aligns with earlier Amadey string-decryption tooling built for IDA Pro/Hex-Rays, including a Python script that extracts encrypted operands, derives a key, decrypts strings, and annotates disassembly, showing that analysts are increasingly codifying Amadey deobfuscation across multiple reverse-engineering platforms.
Why it matters
Impact assessment
This story is primarily relevant to malware analysts, threat hunters, SOC teams, and IR teams tracking Amadey activity rather than to end users directly. The immediate impact is improved defender visibility into Amadey 1.09 internals, enabling faster extraction of malware configuration and behavior clues from samples.
The scope is targeted to organizations that analyze commodity malware or receive Amadey-related payloads, not a new broad product exposure. The story does not describe a new vulnerability or confirmed in-the-wild exploitation event tied to this publication, but it does document analysis tradecraft that can materially accelerate investigations of known Amadey samples.
Supporting facts
- Malware family: Amadey 1.09.
- Primary audience affected: reverse engineers, malware analysts, threat intel teams, SOC/IR teams.
- Operational impact: reduced manual reverse-engineering effort and faster triage of obfuscated malware strings.
- Reported efficiency gains: 47 strings decrypted, 11 cached values reused, 210 comments added, 47 bookmarks created in about 16 seconds.
- The walkthrough concerns analyst automation in Ghidra and references similar prior automation for IDA Pro/Hex-Rays.
- No new CVE, vendor product flaw, or victim-sector targeting data is provided.
- No explicit new incident or exploitation campaign is reported in the story itself.


