dog

It used to be: "On the Internet, nobody knows you're a dog."
Welcome to the new reality.

Tuesday, March 08, 2011

So I'm trying to teach Secure Programming and I'm finding much of the information on design-level issues to be nearly useless.

For example, consider this article:

https://buildsecurityin.us-cert.gov/bsi/articles/best-practices/architecture/10-BSI.html

It's a nice article, actually. To summarize, it describes how to do risk analysis for a project in the context of a risk management framework.

But it is completely impossible to teach this or learn it in any meaningful way. There aren't examples to learn from and there aren't projects that students can use to do basic versions of this.

Lets take this example from the article, under the heading "Known Vulnerability Analysis":
When performing known vulnerability analysis, consider the architecture as it has been described in the artifacts that were reviewed for asset identification. Consider it against a body of known bad practices or known good principles for confidentiality, integrity, and availability. For example, the good principle of "least privilege" prescribes that all software operations should be performed with the least possible privilege required to meet the need. To consider architecture in light of this principle, find all the areas in the system that operate at an elevated privilege. Perhaps diagram the system's major modules, classes, or subsystems and circle areas of high privilege versus areas of low privilege. Consider the boundaries between these areas and the kinds of communications across those boundaries.
Very nice idea. Now I know exactly one example of how to do this type of analysis. I've never seen this body of known good and bad practices. I've seen a list of 10 security principles that includes "least privilege" -- but 10 does not a body of practices make. And I've never seen a mapping of activities like the diagram proposed in the quote to these practices. Does the article expect everyone to make up their own activities? They seem pretty general, i.e. widely applicable, as well as being hard to develop without a combination of experience in this area and creativity.

This also applies to Gary McGraw's book Software Security: Principles and Practice. It's a good high-level framework that may be useful to someone with years of experience in design-level security analysis. It helps that person to codify and systematize what she is already doing, plus throw in a few new ideas or options for how to do it. For someone just getting into the game, it is pretty useless. There aren't enough samples to work on to learn these skills.

Note that I disagree that it means that the only way to learn this is through experience. It's just that there aren't enough good materials to learn from.