The past few years have witnessed a great number of data breaches, leaks and hacks. Most of whom have gone undetected for weeks, months, and in some cases even years. Considering the fact that many of the companies hit use state-of-the-art security products (e.g. Firewall, AV, IDS/IPS, SIEM, etc.), one cannot help but wonder: how can malicious hackers stay undetected for so long and what kind of software do they use to keep a foothold in their victims’ networks? In this talk, we will try to answer both these questions by taking a look at two examples of persistent backdoors. One commonly used by penetration testers, the Meterpreter’s persistence.rb script, and another one discovered by Mandiant while analyzing the malicious tools of the Russian hacker group referred to as APT29.