Testing and pentesting, a road to effectiveness

I have been involved in computer security and security testing for a while and I think it’s time to talk about some aspects of it that get ignored, mostly for the worse. Let me just get this out of the way: security testing (or pentesting, if you like) and testing are very closely related. The Testing Pyramid What’s really good about security testing being so close to testing is that you can apply the standard, well-know and widely used techniques from testing to the relatively new field of security testing. First of all, this chart:

May 27, 2017 · 6 min · msoos

On Testing and Security Engineering

I have been working in a large organization for quite a while now where I have seen a lot of testing going on. As an information security engineer, I naturally aligned more with testing and indeed, information security assurance does align well with testing: It’s done on a continuous basis, its results usually mean work for developers, operations people, system architects, etc. and not caring about it is equivalent to accepting unknown risks. Since I have been working in an environment where testing was paramount, I have been digging more and more into the testing literature.

November 11, 2015 · 5 min · msoos

Testing CryptoMiniSat using GoogleTest

Lately, I have been working quite hard on writing module tests for CryptoMinisat using GoogleTest. I’d like to share what I’ve learnt and what surprised me most about this exercise. An example First of all, let me show how a typical test looks like: TEST_F(intree, fail_1) { s->add_clause_outer(str_to_cl(" 1, 2")); s->add_clause_outer(str_to_cl("-2, 3")); s->add_clause_outer(str_to_cl("-2, -3")); inp->intree_probe(); check_zero_assigned_lits_contains(s, "-2"); } Here we are checking that intree probing finds that the set of three binary clauses cause a failure and it enqueues “-2” at top level. If one looks at it, it’s a fairly trivial test. It turns out that most are in fact, fairly trivial if the system is set up well. This test’s setup is the following test fixture: struct intree : public ::testing::Test { intree() { must_inter = false; s = new Solver(NULL, &must_inter); s->new_vars(30); inp = s->intree; } ~intree() { delete s; } Solver* s; InTree* inp; bool must_inter; };

November 1, 2015 · 3 min · msoos