dog

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

Monday, May 16, 2011

A quick follow up on my rant from March:

In The Web Application Hacker's Handbook, I managed to find a nice chapter on design flaws that the authors actually saw in practice. Very useful and made for an interesting class.

I had the 11 teams each look at a description of the system (paraphrased from the book) and figure out the vulnerability. Some were easy, so I encouraged teams to keep going if they finished the first one. Some were very hard.

We went through them in order, more or less at the end of class. It was very enlightening, I think, and it was the first time I had seen a good discussion of what some design flaws actually looked like. I will definitely do that again.

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.

Thursday, October 19, 2006

Is Distance Education a Good Idea?

For the past n years, where n < (now - 1993), people have been touting this idea of distance education. Wave of the future. Is this really such a good idea?

Let's take stock. Benefits include the ability to learn from whereever you are. If you're Harvard, that's great, because you use your big name to have N (N >> n) people take your expensive MBA programs. Far more than would fit into your classrooms (I choose Harvard as the Big Name -- they probably keep enrollments lower to ensure a high prestige for their big expensive name and possibly less cynical reasons).

Is it good for students? Yes and no. If students get to take classes that they couldn't before (Makaka from Zaire -- I'm going with George Allen in assuming that Makaka is a real name) can now take classes from Harvard in the comfort of his own hut (I'm in trouble now). Seriously, someone in rural Canada gets her MBA and starts a business that grows up to rival WalMart. Opportunities that wouldn't have been there otherwise -- that's the promise. To take it to the extreme, it's the total democratization of learning. You can choose your teachers. The best teachers get tons of students, while others get students that fit other learning styles.

It's a nice utopian vision, and may become more realistic in time, but there are some serious bumps in the road between here and there. I went to UMass, where distance education is a really big deal, at least for the administration. What this meant for me was the ability to, for some courses, check out video tapes of the lectures. I didn't have to do this very often to figure out that it just wasn't for me. Any teacher who's good enough to keep her audience, even though her audience is watching a taped version on a couch in PJ's, needs to quit the university and get an agent. We (switching to prof. mode here) aren't there to be entertaining -- we're there to make sure that the students learn something. It's very hard to do both (although it's also hard to keep the students' attention without being somewhat entertaining).

The main problem is that, if you mainly just talk at the students for 80 minutes, even if you're open to taking questions, you are a terrible teacher. Maybe a fine lecturer and speaker, which may be what the students have signed up for, but you're not teaching very much at all. Real learning happens when students can manufacture the main points for themselves. If you don't engage the students in the classroom, then they might as well be watching NOVA. They'll learn more and be more entertained.

So, in distance learning, how effectively can you engage? I have my students work in groups when I can. I haven't gotten down all the fine points, but it gets them talking and thinking about things with each other. Anytime-anywhere learning just doesn't work that way. Sure, if there's N people taking the course, you might be able to find one to work with you. But it works a lot better if you're in the same room.

Sunday, October 15, 2006

Bruce Schneier's Crypto-gram makes me feel a bit inadequate. Of course, my niche is a bit different. He talks about practical, real-world issues. I prefer to stay in the clouds in the ivory tower. I guess that will ensure that my privacy is kept intact! (^_^)

And that's all for now -- just had to point at the real thing, for those of you who were looking for serious analysis of security and privacy issues. I'm still working on it.

Saturday, October 14, 2006

Welcome back (chuckle ...)

I had an interesting discussion with a researcher from the corporate world the other night. He mentioned one of his group's projects which involved location privacy. The broad solution he mentioned was to take a zipf of the user's patterns to find the most common patterns and then block them. The idea being that the most common patterns are the key elements that need to be hidden. We both agreed that this had two significant problems. First (his point), by the time you've figured out what's important, so has the attacker. Oops. Second (my point), are the common things really the most sensitive? I mean, yeah, I go home and go to work a lot. Those are really not that sensitive. I'm pretty open about the things I typically do. It's the unusual things that are more sensitive. If I go to the hospital, for example, it is a pretty rare event (we hope). Or the once or twice a year I go to vote. To me, *that's* the sensitive stuff. In a more general formulation, only the user knows what's sensitive. The best privacy systems will probably a) have some common profile types built in that the user can choose from and b) have a very intuitive and intelligent interface for the user to customize the profile in an ad-hoc way. A completely "intelligent" solution will not be able to read the user's mind, but semi-intelligent solutions are definitely needed.

On an entirely different note, Nan, who's new here, gave a very nice talk for the group yesterday. I find the non-absolute formuations, with the game-theoretic analysis, very interesting and I look forward to working with him on some related ideas. Good stuff.

Thursday, October 12, 2006

This is largely an experiment to see if there is some value to me (not likely much to the world, but I'll not be so completely pessimistic) in writing in a public (if seldom viewed) way about my profession. I'm a fairly new assistant professor of computer science working in network security and privacy. I'll be talking about things very centric to my little world, meaning the research and teaching that I am involved with and interested in.

I'll start off by musing about online privacy. Like anyone else, I have my share of politics within my academic world. This mostly means I have a couple of dozen people that I would be best to not piss off (and more, but I know very little about most other people and I'm not so stupid as to be rude concerning a dean I haven't even met). I'm untenured, so this can really mean something about whether I get to do what I want and still eat. By exposing my thoughts, however carefully edited (which they certainly are not), then I am putting some of that at risk. Why bother? Well, by engaging in these issues in a first-hand way, I get to learn about what's *really* important to people when it comes to online privacy. I'm hoping it will help me learn how to do meaningful research that can impact a person's life and not totally theoretical stuff that won't. Of course, I'll still be happily engaged in the latter much of the time anyway. It's just more fun sometimes.

Anyway, don't expect my full unvarnished opinions about the world. I'll be holding my cards close to my vest when certain topics come up. Hopefully I can be pretty honest about the latest anonymous communications system, but I will try not to stretch too far outside of that.