Skip to main content
Mallory
← Back to News
offensive-tooling-releaseadversary-emulation-tradecraftdefense-evasion-method

Ghidra Automation Decrypts Obfuscated Strings in Amadey Malware

Attack Tradecraft · 3 sources · Updated 4mo ago · First seen Aug 24, 2023

Ghidra Automation Decrypts Obfuscated Strings in Amadey Malware

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.
Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

5 events · Feb 2019 – Aug 24, 2023
  1. Reported Jan 1, 202611mo ago

    Max Kersten publishes Ghidra script for Amadey 1.09 strings

    Max Kersten published a technical walkthrough showing how to build a Ghidra Java script to automatically decrypt and annotate encrypted strings in an Amadey 1.09 sample. The completed script reportedly decrypted 47 strings, reused 11 cached results, placed 210 comments, and created 47 bookmarks.

    Ghidra script to decrypt strings in Amadey 1.09 - Max Kersten
  2. Aug 24, 20233y ago

    GitHub commit updates Amadey IDA string decryptor script

    A public GitHub repository shows the file "Amadey/amadey_string_decryptor.py" with the latest commit labeled "update." The repository view dates that commit to Aug. 24, 2023.

    Python/Amadey/amadey_string_decryptor.py at bdc7a711d5a775f8ae47b591f20fdd2e1360b77b · muha2xmad/Python · GitHub
  3. Dec 21, 20206y ago

    Ghidra build from December 21, 2020 used in analysis

    The article notes the walkthrough used a Ghidra build from December 21, 2020, described as slightly ahead of Ghidra 9.2.1.

    Ghidra script to decrypt strings in Amadey 1.09 - Max Kersten
  4. Mar 21, 20198y ago

    NSA releases Ghidra as open-source reverse engineering tool

    The analyzed article states that the U.S. National Security Agency released Ghidra as a free and open-source reverse engineering tool on March 21, 2019.

    Ghidra script to decrypt strings in Amadey 1.09 - Max Kersten
  5. Feb 2019

    Amadey unpacked stage referenced in KrabsOnSecurity blog

    The Max Kersten article says the Amadey sample it analyzes was the unpacked stage originally referenced from a KrabsOnSecurity blog post in February 2019.

    Ghidra script to decrypt strings in Amadey 1.09 - Max Kersten
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Malware

1 linked

Affected products

1 linked
Ghidra

Observables

9 linked

Indicator values are masked on this page. View all 9 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.