← Back to section · Software & Developer Tools
Test Evidence and Compliance: Making Test Results Withstand Audit
After security testing is done, one task remains: turning the results into traceable, re-checkable evidence that satisfies certification and compliance requirements. This article surveys what frameworks such as cryptographic module validation and the Common Criteria expect from test evidence, what an evidence chain must contain, and how to make evidence production a natural by-product of the testing process rather than paperwork reconstructed afterwards.
The end point of security testing is often not finding problems, but proving they were taken seriously. When software enters a regulated market, faces a customer’s security assessment, or a cryptographic module seeks formal certification, auditors will not settle for “we did testing”: they want evidence — which version of the code, in what environment, by whom, tested for what and by which methods, with what results, and how nonconformities were handled and retested. Testing capability determines whether the software is secure; evidence capability determines whether that security can be confirmed by others. This article surveys what compliance frameworks generally expect of test evidence, how several typical frameworks in the cryptographic domain differ in emphasis, and how to embed evidence production into the testing process itself.
The Elements of an Evidence Chain: From Declaration to Traceability
Adequate test evidence must close at least five links. First, the object is identifiable: the tested artefact’s version, build identifier, and configuration baseline are pinned down reproducibly — a test conclusion detached from a version number is meaningless. Second, the method is re-checkable: the standards relied on and the provenance of test cases (official test vectors, in-house cases, tool rule versions) are recorded, so a third party can re-run the same inputs and reach the same conclusions. Third, the environment is describable: hardware, operating system, tool versions, and key parameters are archived, because many conclusions (especially performance and side-channel ones) hold only for a specific environment. Fourth, the results are complete: not only passes are reported, but failures, exemptions, and their justifications, with defects traceable from discovery through fix to retest. Fifth, responsibility is attributable: separation and sign-off among executor, reviewer, and approver show the evidence passed independent scrutiny. Missing any link demotes the chain from “auditable” to “for reference only”. Note that the purpose of evidence is to support independent re-checking, not to maximise document count — ten records that corroborate each other beat a hundred unrelated screenshots.
The Emphases of Typical Frameworks: Cryptographic Validation and the Common Criteria
Frameworks differ in what they ask of evidence. In the cryptographic-module direction, FIPS 140-3 and its validation programme (the CMVP) are the most representative: algorithm implementations first undergo algorithm validation (official test vectors confirming each algorithm is implemented correctly, through programmes such as the ACVP), and modules are then laboratory-tested against their security level, with evidence entering the certification process as laboratory reports; the emphasis is “the implementation conforms to the standard, clause by clause”. The Common Criteria (ISO/IEC 15408) takes a different route: a product’s security functionality is defined by a protection profile or security target, and evaluation laboratories perform functional testing and independent penetration testing against it, with evidence organised around “are the claimed security functions implemented, and do they withstand attacks of the stated strength”, at a depth set by the assurance level. Organisational and industry frameworks (various secure development lifecycle requirements, and regulatory regimes in finance and critical infrastructure) emphasise process evidence: whether testing covered what the plan required, whether gates were genuinely enforced, and whether exceptions were approved. Understanding a framework’s emphasis lets limited evidence-production effort be spent where auditors will actually look, rather than spread evenly.
Preserving Evidence: Format, Integrity, Retention
Once generated, evidence must also withstand time. Three points about preservation are easily overlooked. The first is format longevity: a proprietary tool’s report format may be unreadable in a few years, so key conclusions should also be archived in generic formats (plain text, PDF, standard structured data), with the tool’s raw output kept as an attachment. The second is integrity: archives should carry hashes or signatures and live in append-only storage, preventing untraceable later modification — an auditor’s question “is this report the one from back then?” can only be answered by technical means, not verbal assurance. The third is retrievability: evidence should be indexed by product version, test round, and framework clause, so that an audit sample can be produced within a reasonable time; evidence that cannot be found is, in an auditor’s eyes, evidence that does not exist. Retention periods follow the pursued framework and contractual requirements: take the longest of the certification’s validity, the product’s support lifetime, and the potential look-back period. Done as routine, audit season becomes export and questions, not an organisation-wide cram.
Making Evidence a By-Product of the Pipeline
The most common failure of evidence work is reconstructing material as certification approaches: versions no longer match, environments cannot be recalled, the failure records of the time are long lost — and the reconstructed documents neither withstand questioning nor satisfy frameworks’ expectation of contemporaneous records. The correct approach designs evidence production into the testing process: every pipeline run automatically archives the tested version and configuration snapshot, tool and rule versions, complete logs and structured results; the defect system links automatically to test results, so fix and retest records form a chain naturally; report templates are organised in advance according to the target framework’s structure, ready to export at audit time. Humans then do only two things: periodically spot-check the automatic records (confirming the archive is genuinely complete and usable — ideally by actually rehearsing a re-run of tests from the evidence), and write the narrative at the level of method and conclusions. One further point is often overlooked: evidence itself contains sensitive information (details of unpatched vulnerabilities, key material used in testing), so its storage and access must be managed as sensitive data, with retention periods following the requirements of the framework pursued. Organised this way, compliance stops being a burden outside testing and becomes the trail naturally left by testing done properly — the more seriously the testing is done, the less effort the evidence takes.
Tags: Test EvidenceComplianceCertification