Certificate Bypass: Hiding and Executing Malware from a Digitally Signed Executable

Presented at Black Hat USA 2016, Aug. 3, 2016, 1:50 p.m. (25 minutes).

Malware developers are constantly looking for new ways to evade the detection and prevention capabilities of security solutions. In recent years, we have seen many different tools, such as packers and new encryption techniques, help malware reach this goal of hiding the malicious code. If the security solution cannot unpack the compressed or encrypted malicious content (or at least unpack it dynamically), then the security solution will not be able to identify that it is facing malware. To further complicate the matter, we present a new technique for hiding malware (encrypted and unencrypted) inside a digitally signed file (while still keeping the file with a valid certificate) and executing it from the memory, using a benign executable (which acts as a reflective EXE loader, written from scratch). Our research demonstrates our Certificate Bypass tool and the Reflective EXE Loader. During the presentation, we will focus on the research we conducted on the PE file structure. We will take a closer look at the certificate table and how we can inject data to the table without damaging the certificate itself (the file will still look and be treated as a valid digitally signed file). We will examine the tool we wrote to execute PE files from memory (without writing them to the disk). We will cover the relevant fields in the PE structure, as well as the steps required to run a PE file directly from the memory without requiring any files on disk. Last, we will conclude the demonstration with a live example and show how we bypass security solutions based on the way they look at the certificate table.


Presenters:

  • Tom Nipravsky - Deep Instinct
    Tom Nipravsky is a security researcher for Deep Instinct, specializing in malware development. Tom has over five years experience in an elite technological operational unit in the Intelligence department of the Israeli Defense Forces. He also has several years of experience in several leading international companies, where his main area of expertise was developing sophisticated malware to reveal flaws in the protection process of leading security vendors. In addition, Tom is also a pianist and a performing musician.

Links:

Similar Presentations: