













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














Presented by Presented by Kyle Forkner Kyle Forkner Paul Wierzbowski Paul Wierzbowski Heena Macwan Heena Macwan CS4235A Fall 2004 CS4235A Fall 2004 College of Computing College of Computing Georgia Institute of Technology Georgia Institute of Technology
(^) Introduction (^) Static Code Analysis (^) Definition (^) Design Goals (^) Three Example Research Projects (^) Other Forms of Software Security Analysis (^) Static Binary Analysis through Disassemblers (^) Dynamic Binary Analysis through Debuggers (^) Dynamic Binary Analysis through Simulators and Emulators (^) Security in Development Process (^) Conclusion (^) References (^) Questions
(^) Static Code Analyzers – Programs that review source code to discover potential security flaws and either: (^) Prevent and correct (^) Alert the programmer (common approach) (^) Many research projects and products in this field (^) No real consensus on types of analysis approaches
(^) All static code analyzers have certain goals in mind: (^) Coverage of Security Flaws (^) Compatibility of Environments and Languages (^) Minimal Execution Overhead (If Corrective Action is Taken) (^) Minimal Manual Effort (^) Reality: No project can completely fulfill these goals (^) Compromises and tradeoffs must be made
(^) Focus: Improper C pointer dereferencing is a source of many security flaws, specially buffer overflows (^) Analysis Method: (^) Tracks pointer dereferences and memory locations in programs (^) Checks are inserted into the program (^) If unsafe dereference occurs, violation is reported, and program halts
(^) Tradeoffs and Limits in Design: (^) Coverage: Prevents flaws like buffer overflows (^) Compatibility: Limited to C and does not automatically cover library functions (^) Overhead: Little execution overhead since only checks and stops program (^) Manual Effort: Depends on support with library functions
(^) Focus: Identifying safe programming rules and checking for violations in program (^) Analysis Method: (^) Security Properties defined in a database (^) Create an automata model representing the program (^) Check the program’s model with Security Properties (^) Alert the programmer of possible violations
(^) Tradeoffs and Limits in Design: (^) Coverage: Theoretically, could eventually check all types of security flaws (^) Compatibility: Security Properties heavily dependent on OS environment (^) Manual Effort: Programmer must look over program with analysis results
(^) Tradeoffs and Limits in Design: (^) Coverage: Only focuses on strings but still covers a respectable amount of flaws (^) Compatibility: Only supports C language (^) Manual Effort: Programmer has to make manual corrections
(^) Source code not always available (^) Virus or Worm Programs (^) Microsoft (^) Binary analysis provides static executable and dynamic program execution tests
(^) Context information available (^) Catch interrupts to stop execution (^) Users control execution of each instruction (^) Example: GDB
(^) Develop Software Environment to Mimic System Features (^) Sandbox type area (^) Execution Speed Often a Problem (^) SimOS (^) ISS Gateway Box that Creates a Virtual Environment
(^) Throughout the software development process, creators must keep software security in mind (^) Security Audits – Security must be given as much importance as product features or overall quality (^) Static and Dynamic Analysis techniques can help build more secure code efficiently
(^) Chen, H. and D. Wagner. “MOPS: an Infrastructure for Examining Security Properties of Software.” Proceedings of the 9th ACM Conference on Computer and Communications Security, November 18-22, 2002, Washington, D.C., USA. New York, NY: ACM Press, 2002. 235-244. (^) Chen, Hao, and David Wagner. MOPS. University of California at Berkeley. 1 Nov. 2004 . (^) Dor, N., Rodeh, M., and M. Sagiv. “CSSV: Towards a Realistic Tool for Statically Detecting All Buffer Overflows in C.” Proceedings of the ACM SIGPLAN 2003 Conference on Programming Language Design and Implementation, June 9-11, 2003, San Diego, California, USA. New York, NY: ACM Press, 2003. 155-167. (^) Horwitz, S. and S.H. Yong. “Protecting C Programs from Attacks via Invalid Pointer Dereferences.” Proceedings of the 9th European Software Engineering Conference Held Jointly with 10th ACM SIGSOFT International Symposium on Foundations of Software Engineering, September 1-5, 2003, Helsinki, Finland. New York, NY: ACM Press, 2003. 307-316. (^) Li, Shengying. A Survey of Tools for Binary Code Analysis. Stoney Brook University. 24 August, 2004. . (^) McGraw, Gary. “46.1 Exploiting Embedded Software.” Session 46 of the 41st Annual Design Automation Conference. June 7, 2004. . (^) Pietrek, Matt. “Peering Inside the PE: A Tour of the Win32 Portable Executable File Format”. MSDN. March,