DoubleGuard is an intrusion detection system that models the network behavior of user sessions across both the front-end web server and back-end database to detect attacks that independent IDS's would miss, by monitoring both web requests and subsequent database queries; it was implemented using Apache, MySQL, and virtualization, and evaluated on real-world traffic over 15 days with 100% accuracy on static web apps and 0.6% false positives on dynamic apps.