This document proposes a software switching solution called Effective Intrusion Detection and reducing Security risks in Virtual Networks (EDSV) to address security risks in virtual networks, specifically distributed denial of service (DDoS) attacks. EDSV uses a novel alert correlation algorithm and attack graph model to detect DDoS attacks. It also incorporates software switching to isolate compromised virtual machines for investigation. This reduces infrastructure response time and CPU utilization compared to existing approaches.