Docsity

Static Analysis Tools for Detecting Buffer Overflow Vulnerabilities | CS 6463, Study notes of Computer Science

Partial preview of the text

Download Static Analysis Tools for Detecting Buffer Overflow Vulnerabilities | CS 6463 and more Study notes Computer Science in PDF only on Docsity!

Static analysis tools for detecting

buffer overflow vulnerabilities

Sreedevi Jagavarapu

Introduction

  • Introduction
  • Splint
  • Uno
  • Orion
  • Conclusion

Static Analysis Tools

  • Static Analysis :
  • analyze programs without running them
    • Analysis is possible before a program is compliable
    • No test suite is necessary
    • May not find every memory error

Some Static Analysis Tools

C/C++ C/C++ FlexeLint Discover Klocwork PREfast ITS Coverity PolySpace Prexis Fortify DMS Flawfinder CodeAssure Java Java Klocwork Fortify Orion Orion C (only) C (only) Splint Blast Smatch Uno CQual CodeSurfer FindBugs MOPS

Splint

  • Annotations
    • Denoted using C comments identified by an @ character following the /* comment marker
  • Running Splint is an iterative process
  • Splint checks approximately 1,000 lines per second, so it is fairly easy to run Splint
  • The goal is to eliminate all the warnings by modifying code or adjusting annotations

UNO

  • It is a simple tool for source code analysis
  • It is designed to intercept primarily the three most common types of software defects - Use of uninitialized variables - Null-pointer references - Out-of-bounds array indexing

Orion’s Approach: 2-Phase

Analysis

Check feasibility of each path Find potential error paths Parsing (GNU gcc) Report errors and warnings

  1. Analysis with “light-weight” dataflow info
    1. Tunable tradeoff: speed vs. precision
    • fast, approximate internal solvers
    • slower, more precise external solvers

Pros and Cons of evaluated tools

  • Splint was a helpful static tool
    • Can be used during development and debugging
    • It produces more warnings leading to confusion
  • No guarantee that all messages indicate real bugs or all bugs will be found
  • Splint some times misses the significant errors
  • Splint hides error report in a list of explanations
  • Orion analyzes C and C++ source code

References

  • 1)http://www.splint.org
  • 2)http://www.cs.virginia.edu/~evans/pubs/ieeesoftware.pdf
  • 3)http://lclint.cs.virginia.edu/usenix01.pdf
  • 4)http://cosi.clarkson.edu/docs/staticanalysistools/UsingStaticAnal ysisTools.html#Annotations
  • 5)http://www.cs.virginia.edu/pipermail/splint-discuss
  • 6)http://testingfaqs.org/t-static.html
  • 7)http://samate.nist.gov/index.php/Source_Code_Analyzers
  • 8)http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analys is
  • 9)http://www.dse.nl/~thelosen/artikelen/static_analysis.pdf
  • 10)http://www.soft32.com/download_206036.html
  • 11)http://lclint.cs.virginia.edu/faq.html#quest
  • 12)http://www.die.net/linux/man/man/efence.3.html