Community Detection and Associativity to Detect Network Threats