Peer-to-peer architecture for collaborative intrusion and malware detection on a large scale