Optimizing Cybersecurity: A Dual Phase Ml Architecture for Detection and Classification of Network Attacks | Synapse