logo

Blog

Welcome to my blog domain where I share personal stories about things I've learned, projects I'm hacking on and just general findings. I also write for other publications.

    Explore All

    how ransomware encrypts your files so fast (and where the design breaks)

    how ransomware encrypts your files so fast (and where the design breaks)

    ransomware encrypts tens of thousands of files in minutes. that raises an obvious question: encryption is supposed to be slow and heavy, so how is a random payload on your machine chewing through a whole drive faster than your antivirus can react? the answer is that it never actually encrypts your files with the big key. it uses the classic hybrid scheme, and once you see the structure, you also see where it's fragile.

    5 min
    dga domains: how malware finds its c2 without hardcoding an ip

    dga domains: how malware finds its c2 without hardcoding an ip

    imagine you write malware and hardcode your command and control server as an IP. one day someone blocks it, or it gets taken down, and every infected machine you ever compromised goes dark forever. that's a terrible business model for a criminal. so modern malware solved it with one of the sneakiest tricks in the book: instead of storing where the server is, it computes it. hundreds or thousands of candidate domains per day, and the attacker only needs to register one

    3 min