Efficient, context-sensitive detection of real-world semantic attacks

Michael D. Bond, Varun Srivastava, Kathryn S. McKinley, Vitaly Shmatikov
2010 Proceedings of the 5th ACM SIGPLAN Workshop on Programming Languages and Analysis for Security - PLAS '10  
Software developers are increasingly choosing memory-safe languages. As a result, semantic vulnerabilities-omitted security checks, misconfigured security policies, and other software design errors-are supplanting memory-corruption exploits as the primary cause of security violations. Semantic attacks are difficult to detect because they violate program semantics, rather than language semantics. This paper presents PECAN, a new dynamic anomaly detector. PECAN identifies unusual program behavior
more » ... using history sensitivity and depth-limited context sensitivity. Prior work on context-sensitive anomaly detection relied on stack-walking, which incurs overheads of 50% to over 200%. By contrast, the average overhead of PECAN is 5%, which is low enough for practical deployment. We evaluate PECAN on four representative realworld attacks from security vulnerability reports. These attacks exploit subtle bugs in Java applications and libraries, using legal program executions that nevertheless violate programmers' expectations. Anomaly detection must balance precision and sensitivity: high sensitivity leads to many benign behaviors appearing anomalous (false positives), while low sensitivity may miss attacks. With application-specific tuning, PECAN efficiently tracks depth-limited context and history and reports few false positives.
doi:10.1145/1814217.1814218 dblp:conf/pldi/BondSMS10 fatcat:zytihjnfcfbddiaeejuajurb3a