Re: Thou shalt have no other gods before the ANSI C standard

From: David Wagner (daw_at_taverner.cs.berkeley.edu)
Date: 02/28/05


Date: Mon, 28 Feb 2005 00:44:27 +0000 (UTC)

Trevor L. Jackson, III wrote:
>I propose a run-time analysis rather than a static analysis.

One potential challenge with run-time analysis is ensuring sufficient
coverage. It might be very easy to miss bugs that are triggered only
on certain code paths. I don't rule out the possibility that one could
build a tool that is useful nonetheless, but it might take some work.

>There is no way I would aim to detect all bugs. But I would be happy to
>detect all possible writes to red memory.

A simplistic version of this is simply to run the program with bounds
checking enabled during testing, and if any bound is ever violated (during
the testing phase), then you've got a pretty good idea that the program
is likely to be buggy. Unfortunately, that is unlikely to be enough,
because for many buffer overruns, it is not at all easy to come up with
the test case that triggers the buffer overrun.

But, if you can build a tool that detects the presence of code which
could write to red memory on some input (potentially other than the
input currently being processed), that might address the coverage problem.

My favorite research work in this direction is the following paper:
  Eric Larson and Todd Austin, "High Coverage Detection of
  Input-related Security Faults", Usenix Security 2003.
  http://fac-staff.seattleu.edu/elarson/security.pdf
Personally, I thought this was one of the most exciting ideas in security
during the year of 2003. I suspect continued work on some direction
like this might well be worth the effort.



Relevant Pages

  • Coverage on Code Red worm
    ... Coverage on Code Red worm ... media is talking about a lot these days, ... Help Net Security - http://www.net-security.org ...
    (Bugtraq)
  • How important is Security certification?
    ... Is anyone who is reading this board certified with an MCSA: Security? ... What value does Microsoft's security certification have? ... How is the coverage of security topics that you encountered in your ...
    (microsoft.public.cert.exam.mcsa)