Intelligence

Vault7 – Wikileaks published documentation for AfterMidnight and Assassin malware

WikiLeaks Reveals two distinct malware platforms codenamed AfterMidnight and Assassin used by the CIA operators to target Windows systems.

While critical infrastructure worldwide and private organizations were ridiculed by the WannaCry attack, WikiLeaks released a new batch of CIA documents from the Vault 7 leaks.

The new dump included the documentation related to two CIA frameworks used to create custom malware for Microsoft Windows platform.

The two frameworks are codenamed AfterMidnight and Assassin, both malware implements classic backdoor features that allowed the CIA to take control over the targeted systems.

Since March, WikiLeaks obtained thousands of files allegedly originating from a network of the U.S. Central Intelligence Agency (CIA). In a post I have published on the Infosec Institute I have summarized what has happened in the last weeks and what has been disclosed by the organization.

Below the list of previous batches published by Wikileaks:

  • The Year Zero that revealed CIA hacking exploits for hardware and software.
  • The Dark Matter dump is containing iPhone and Mac hacking exploits.
  • The Marble batch focused on a framework used by the CIA to make hard the attribution of cyber attacks.
  • The Grasshopper batch that reveals a framework to customize malware for breaking into Microsoft’s Windows and bypassing antivirus protection.
  • The Scribbles Project for document tracking.
  • The Archimedes tool to target computers inside a Local Area Network (LAN).

According to WikiLeaks, the AfterMidnight malware framework allows CIA operators to dynamically load and execute malicious payload on a target system.

The principal payload is disguised as a self-persisting Windows Dynamic-Link Library (DLL) file and executes small payloads dubbed “Gremlins” that are able to subvert the functionality of targeted software, gather target’s information, or providing services for other gremlins.

“‘Gremlin’ is the term for an AM payload that is meant to run hidden on target and either:

  • Subvert the functionality of targeted software.
  • Provided basic survey/exfil.
  • Provide internal services for other gremlins” states the documentation.

AfterMidnight leverages an HTTPS-based Listening Post (LP) system called “Octopus” to check for any scheduled events, every time a new one is created the malware framework downloads and stores all required components before loading all new gremlins in the memory.

The documents include the AfterMidnight user guide, below the description provided by the manual for the malware platform:

“AfterMidnight is a DLL that self-persists as a Windows Service DLL and provides secure execution of “Gremlins” via a HTTPS based LP. Once installed on a target machine AM will call back to a configured LP on a configurable schedule, checking to see if there is a new plan for it to execute.” reads the user guide.”If there is, it downloads and stores all needed components before loading all new gremlins in memory. All local storage is encrypted with an “LP” key that is not stored on the client. If AM is unable to contact the LP it will be unable to execute any payload.”

The local storage used by the AfterMidnight is encrypted with a key which is not stored on the target machine.

CIA operators can schedule a custom task using a custom script language included in a special module “AlphaGremlin.”

The second Malware Framework, so-called Assassin, is described with the following statement by Wikipedia.

“”Assassin” is a similar kind of malware; it is an automated implant that provides a simple collection platform on remote computers running the Microsoft Windows operating system. Once the tool is installed on the target, the implant is run within a Windows service process. “Assassin” (just like “AfterMidnight”) will then periodically beacon to its configured listening post(s) to request tasking and deliver results.states WikiLeaks. “Communication occurs over one or more transport protocols as configured before or during deployment. The “Assassin” C2 (Command and Control) and LP (Listening Post) subsystems are referred to collectively as” The Gibson” and allow operators to perform specific tasks on an infected target.”

Once infected a target machine, Assassin runs the implant within a Windows service process to allow CIA operators to perform malicious tasks.

According to the user guide, the four components of the Assassin malware framework are:

  • The ‘Implant’ provides the core logic and functionality of this tool on a target Windows machine, including communications and task execution.
  • The ‘Builder’ configures the Implant component.
  • The ‘Command and Control’ subsystem acts as an interface between the operator and the Listening Post (LP).
  • The Listening Post (LP) allows the Assassin Implant to communicate with the command and control subsystem through a web server.

Stay Tuned…

[adrotate banner=”9″]

Pierluigi Paganini

(Security Affairs – AfterMidnight malware platform, hacking)

[adrotate banner=”13″]

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

Fintech firm Figure disclosed data breach after employee phishing attack

Fintech firm Figure confirmed a data breach after hackers used social engineering to trick an…

12 hours ago

U.S. CISA adds a flaw in BeyondTrust RS and PRA to its Known Exploited Vulnerabilities catalog

The U.S. Cybersecurity and Infrastructure Security Agency (CISA) adds a flaw in BeyondTrust RS and…

14 hours ago

Suspected Russian hackers deploy CANFAIL malware against Ukraine

A new alleged Russia-linked APT group targeted Ukrainian defense, government, and energy groups, with CANFAIL…

18 hours ago

New threat actor UAT-9921 deploys VoidLink against enterprise sectors

A new threat actor, UAT-9921, uses the modular VoidLink framework to target technology and financial…

1 day ago

Attackers exploit BeyondTrust CVE-2026-1731 within hours of PoC release

Attackers quickly targeted BeyondTrust flaw CVE-2026-1731 after a PoC was released, enabling unauthenticated remote code…

2 days ago

Google: state-backed hackers exploit Gemini AI for cyber recon and attacks

Google says nation-state actors used Gemini AI for reconnaissance and attack support in cyber operations.…

2 days ago

This website uses cookies.