Tackling the challenges of detecting P2P botnets