What Has To Be True Before You Run A Security Test
Part one of a series on running a security audit across five platforms and four conversational channels. The work that decides whether the audit is real happens before the first test executes.
- #security
- #audit
- #process
- #appsec
What Has To Be True Before You Run A Security Test
I was asked to run a security audit across five core platforms and four conversational channels at a financial services organisation. Web applications, a payment flow, a pension administration system, plus a mobile app, a WhatsApp channel, an IVR line and a chatbot.
The first deliverable was not a scanner run or a findings report. It was a tracker.
That sounds like bureaucracy, and it is, in the way that a seatbelt is bureaucracy right up until the moment it is not. What I learned building it is that a security audit is decided before the first test executes, by a handful of things nobody enjoys arranging.
I am writing this while the audit is still running, so this part covers only what has already been settled: the preconditions. What the tests find will be a separate piece, when there are findings worth reporting and authorisation to report them.

The request is not the authorisation
"Can your team commence the audit" is a sentence from a manager. It is not a signed scope document, and the two have different consequences.
Every test case in the workbook has a row in a separate tab recording the rules of engagement: which system, which test window, who signed it off, which contact to call if something goes wrong, and what is explicitly out of scope.
If that tab is blank, the test cases underneath it are not a plan. They are a list of things that could get you fired.
This is the part people skip, because the request sounded like approval and asking again feels like doubting your own boss. I would still delay a week than run an active test on a production payment platform with an empty authorisation tab, because when a test trips a fraud rule at 2am the difference between the two is the difference between a phone call and an incident review.
Better safe than sorry afterall
In practice the tab does more than protect you. It forces the conversation about scope boundaries, which is where you find out that the channel owner thinks you are testing something else entirely.
A concrete example from this engagement: the tracker was built for the five platforms and four channels named in the request, and the fifth platform (a business process module) overlaps with a system I had already done functional QA on. Is it the same system? Nobody had said. It is a single row in a spreadsheet, and it decides whether months of prior test-case work is reusable context or an unrelated product. That question does not get asked during testing. It gets asked at the start, or it gets discovered later as a wrong assumption in a report.

The test account pool is test design, not logistics
Here is the one that changed how I plan engagements.
Authentication testing means, among other things, verifying that a platform actually locks accounts after repeated failed logins. On a normal web app that is a Tuesday. On a financial platform it is a live event: it triggers lockout counters, fraud alerting, and possibly a call to a real customer.
So before the test, three things have to exist:
- an agreed lockout threshold, in writing, so you know what "correct behaviour" even is
- a dedicated set of test identities, so you are not locking a real user out
- the name of the person who owns account recovery, looped in before you start rather than after
None of those are tooling problems. All three are prerequisites, and two of them are other people's work.
I have seen the alternative recommended more than once: point the tool at the production login, run it, deal with the fallout. That is not a test, it is an outage with a methodology.
The same logic applies to access-control testing. Cross-account requests need accounts provisioned for the purpose and known records to reference. If the tester has to borrow a colleague's real account to prove the bug, the evidence is contaminated and the finding is harder to defend in front of the people who have to fix it.

Scope has to name the things you cannot test
Two categories are always awkward, and both are worth settling up front.
Production data. Some tests cannot be run safely against live records: anything that deletes, transfers, or triggers a workflow with a financial effect. Either you have a staging environment that behaves like production, or those tests are marked as not performed with a reason. "Not performed, no safe environment" is a legitimate line in a report. Silently skipping them is not.
Third-party dependencies. Payment processors, messaging providers, identity providers. You can test your integration with them, not their platform. Being clear about that boundary before the report exists saves an argument after it.
Both of these belong in the authorisation tab too, as exclusions. A scope document that only says what is in scope is half a document.
What this part is actually arguing
A security audit is a record before it is a set of tests. The record has to answer, later, three questions that are unpleasant to answer from memory:
- Who authorised this, for which systems, in which window?
- What did we test, and what did we decide not to?
- Who would we have called if it had gone wrong?
Get those three settled and the testing is the easy part, because testing is the thing you are trained for. Everything above is the thing nobody trains you for.
Part two is the other half of the preparation: how the test matrix gets designed once the preconditions are in place, why the tracker and the findings register have to stay separate, and where the real risk sits on a pension platform.
Series: part 1 of 2, with a third reserved for findings once the audit closes.