Reminds me of Evan Ratliff's The Mastermind [0] about Paul Le Roux building an illegal online pharmacy and how eventually he was caught.
[0] https://www.goodreads.com/book/show/41181600-the-mastermind
[0] https://www.goodreads.com/book/show/41181600-the-mastermind
[1]https://www.theguardian.com/world/2015/nov/03/german-teen-so...
Talk about horrible OPSEC.
I didn't know there was a book, but there was a series of articles a while ago by the same author : https://magazine.atavist.com/the-mastermind/