Docsity

Enhancing Software Security: Comprehensive Review of Static & Dynamic Analysis Tools, Study notes of Computer Science

Toggle sidebar
bg1
Static and Dynamic Analysis Tools
Static and Dynamic Analysis Tools
for
for
Improving Software Security
Improving Software Security
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
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Partial preview of the text

Download Enhancing Software Security: Comprehensive Review of Static & Dynamic Analysis Tools and more Study notes Computer Science in PDF only on Docsity!

Static and Dynamic Analysis ToolsStatic and Dynamic Analysis Tools

for for

Improving Software Security Improving Software Security

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

Overview

 (^) 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 Analysis

 (^) 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

Static Code Analyzer Design Goals

 (^) 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

Detecting Invalid Pointer Dereferences in C

 (^) 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

Detecting Invalid Pointer Dereferences in C

(cont.)

 (^) 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

MOPS: an Infrastructure for Examining Security

Properties of Software (cont.)

 (^) 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

MOPS: an Infrastructure for Examining Security

Properties of Software (cont.)

 (^) 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

CSSV: A Tool to Uncover String Manipulation

Errors (cont.)

 (^) 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

Other Forms of Software Security Analysis

 (^) Source code not always available  (^) Virus or Worm Programs  (^) Microsoft  (^) Binary analysis provides static executable and dynamic program execution tests

Dynamic Binary Analysis through Debuggers

 (^) Context information available  (^) Catch interrupts to stop execution  (^) Users control execution of each instruction  (^) Example: GDB

Dynamic Binary Analysis through Simulators

and Emulators

 (^) Develop Software Environment to Mimic System Features  (^) Sandbox type area  (^) Execution Speed Often a Problem  (^) SimOS  (^) ISS Gateway Box that Creates a Virtual Environment

Conclusion

 (^) 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

References

 (^) 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,

  1. November 1, 2004. .