News for hackers. Stuff that matters.
Re:NetBSD Network Security Audit by tptacek on Monday May 28, 2018 @03:26PM (#17174286)
There are a bunch of different approaches.

The simplest and probably the most common is to simply read the code. With experience, patterns of vulnerabilities pop out at you; also, you get good at quickly eliminating code that isn't likely to be in the critical path of a vulnerability, allowing you to focus on the code that is.

Some people start from patterns and work backwards through code looking for reachability. 10 years ago, you might have done that by sweeping for memcpy's and working back to inputs. Nowadays you'd probably be looking for pointer/length math, or allocations and frees.

A primitive automation technique is get the target hooked up to a debugger and then run a blind fuzzer at it looking for faults. More advanced fuzzers will track basic block coverage and tune inputs to reach new paths.

If you're really committed to a particular project (like, someone's paying you to do it, and you have a fair bit of time), you might hoist the code out of its natural setting and build a test harness for it, so you can fuzz it "in the abstract" without having to deal with any of its surrounding code. I've done that for OS work before (you'd be surprised how much of a kernel you can "port" back to userland, if all you need to do is exercise logic).

Peers of mine have also instrumented virtual machines like QEMU to do this kind of testing.

Finally, the most modern way to do this kind of work is to generate models for the code and then use provers to verify things about them. SMT solvers were all the rage for this a few years ago; my sense is that code proving tools have gotten more interesting than that since then.

Re:NetBSD Network Security Audit by justincormack on Monday May 28, 2018 @05:09PM (#17174860)
You can already run NetBSD in userland (rump kernel).
Re:NetBSD Network Security Audit by tptacek on Monday May 28, 2018 @06:14PM (#17175190)
Right, I'm not being very precise; you don't necessarily want the whole kernel (because then you have to model inputs for all the interactions with all the kernel subsystems), but rather to isolate the one component under test.
Re:NetBSD Network Security Audit by severine on Tuesday May 29, 2018 @08:46AM (#17178602)
> OS work

What is OS in this context? Operative System? Open Source? Other Stuff?

Re:NetBSD Network Security Audit by exikyut on Wednesday May 30, 2018 @01:12AM (#17185231)
The word "kernel" is 10 words away to the right, so the first (and traditional) interpretation, "Operating System".