Fidelis Researchers Demo Dangerous Covert Channel in Digital Certificates

Researchers at Fidelis have found a way to exploit a flaw in the X.509 certificate protocol to create a covert data exchange channel.

Larry Loeb, Blogger, Informationweek

February 7, 2018

3 Min Read

Researchers at Fidelis have found a covert channel that malware can import and export data through the Transport Layer Security (TLS) protocol. This new channel works from industry standard X.509 certificate protocols, and can sneak under network perimeter protections by seeming to be normative network traffic.

The channel occurs during the certificate exchange in a TLS handshake. It does not require that a TLS session ever be established, only that the handshake that is preliminary is to be the one being negotiated.

The data that is actually exchanged will show up in the extensions to the certificate. Fidelis Security Systems Inc. researchers found that they were able to store 60 kilobytes of data in each TLS X.509 exchange.

A proof-of-concept was published on Monday, February 5, along with a technical explanation.

(Source: JeongGuHyeok via Pixabay)

(Source: JeongGuHyeok via Pixabay)

While the idea of using a covert channel inside a protocol has been examined in the past, Fidelis researcher Jason Reaves published his take on using X.509 certificates in this manner in January.

In his summary, Reaves wanted to:

"Demonstrate that we can take some lessons from the other areas of cyber security research, namely exploitation, and look at potential use cases in how malware authors could utilize technologies outside of their intended purposes to not only accomplish their goals but also end up bypassing common security measures in the process."

Reaves seems to have succeeded in that task.

First, he gives code examples of how such data may be placed, as well as exfiltrated. Once he got that working, he tested out the scheme.

The fundamentals of network security are being redefined -- don't get left in the dark by a DDoS attack! Join us in Austin from May 14-16 at the fifth-annual Big Communications Event. There's still time to register and communications service providers get in free!

Reaves then found that only SSL negotiations, which could bypass common security mechanisms that are not looking for abnormal data being passed in x509 certificates, occurred.

The proof-of-concept used the case of a malicious binary -- the credential sniffer was Mimikatz -- being transferred in the clear via this method. What was done was to simulate a threat actor transferring Mimikatz to an already compromised system. It went through just fine.

One way to mitigate the proof-of-concept might be to check for executable files within binaries. Another could be blocking any self-signed certificates at the perimeter boundary.

The good news, if there is any, is that the Fidelis teams say that they have not found this attack being used in the wild. But, with the proof-of-concept now out, we cannot be so confident that some threat actor will not try it soon.

Related posts:

— Larry Loeb has written for many of the last century's major "dead tree" computer magazines, having been, among other things, a consulting

Read more about:

Security Now

About the Author

Larry Loeb

Blogger, Informationweek

Larry Loeb has written for many of the last century's major "dead tree" computer magazines, having been, among other things, a consulting editor for BYTE magazine and senior editor for the launch of WebWeek. He has written a book on the Secure Electronic Transaction Internet protocol. His latest book has the commercially obligatory title of Hack Proofing XML. He's been online since uucp "bang" addressing (where the world existed relative to !decvax), serving as editor of the Macintosh Exchange on BIX and the VARBusiness Exchange. His first Mac had 128 KB of memory, which was a big step up from his first 1130, which had 4 KB, as did his first 1401. You can e-mail him at [email protected].

Keep up with the latest cybersecurity threats, newly discovered vulnerabilities, data breach information, and emerging trends. Delivered daily or weekly right to your email inbox.

You May Also Like


More Insights