Pentest evidence for ISO 27001 (control 5.28) and ENS

Updated November 12, 2026. Author: Manuel, founder and security engineer.

Control 5.28 of ISO/IEC 27001:2022, “Collection of evidence”, requires procedures to identify, collect, acquire and preserve evidence related to information security. Applied to a pentest, it means the evidence in the report must be kept with integrity and traceability, not as a loose PDF. An auditor wants to see that each piece of evidence can be tied to its source, its time and its scope, and that it has not been altered. Verifiable evidence (a content hash, a signature and a timestamp) meets that requirement almost directly. Spain's National Security Framework (ENS), the framework for the Spanish public sector, points in the same direction with logging and traceability of activity.

This guide is for heads of pentest consultancies, auditors and clients who receive the report and need to fit it into a certification. Written by Manuel, founder of NODO. It assumes you already understand chain of custody and verification, the two base guides for this topic.

What does ISO 27001 control 5.28 require?

In ISO/IEC 27001:2022, control 5.28 of Annex A is titled “Collection of evidence”. In short, the organization must establish and apply procedures for the identification, collection, acquisition and preservation of evidence related to information security events. The underlying idea is that when evidence may matter (an incident, an investigation, a pentest), it is not enough to have it: you must be able to demonstrate that it is authentic and that it arrives intact.

There are four verbs and each should be read separately: identify (know what counts as evidence and mark it), collect (gather it), acquire (obtain it in a way that can be defended) and preserve (keep it without alteration). The control does not tell you which technology to use; it asks for the procedure and the result: traceable, intact evidence.

How does it apply to a pentest report?

In a pentest, the evidence is the proof of each finding: the request and response that trigger a vulnerability, the screenshot, the output of a command, the result of an exploit. To fit 5.28, that evidence cannot be a loose image pasted into a document. It must be collected so that it can be identified (which finding it belongs to), tied to a point in time and to an authorized scope, and kept so that no one can change it afterwards without it being noticed. In other words, 5.28 pushes directly toward what the chain of custody describes.

What does an auditor look at?

An auditor does not expect magic; they expect to be able to verify. In practice they look at three things:

  • Traceability: that each piece of evidence can be followed back to its source, its time and the scope in which it was collected.
  • Integrity: that there is a way to demonstrate the evidence has not been modified since it was collected.
  • Procedure: that this is not an exception for one particular job, but a documented procedure applied every time.

If you can show a report whose evidence carries its hash, its signature and its timestamp, plus a written procedure describing how they are generated, you have answered all three before they ask. A PDF without any of that forces the auditor to take it on trust, which is exactly what the control is meant to prevent.

How verifiable evidence meets the requirement

Verifiable evidence maps almost one-to-one onto what 5.28 asks for:

  • The content hash covers integrity: recomputing it shows whether the evidence is unchanged.
  • The signature (for example Ed25519) covers attribution: it ties the evidence to whoever collected it.
  • The RFC 3161 timestamp covers when, using a source independent of the operator.
  • The chained log covers traceability and order: nothing can be reordered or deleted without breaking the chain.

Nothing needs reinventing and no home-made cryptography is required: these are standard building blocks. What adds value for the audit is that they come built into the report, out of the box, rather than as a manual effort that depends on someone remembering to do it that day.

And the ENS?

If you work with the Spanish public sector, the ENS points in the same direction: it focuses on logging activity and on traceability, so that what happened can be reconstructed and demonstrated. A pentest report with verifiable integrity and traceability fits naturally with that approach. The specific detail depends on the system's category and the scope of the engagement, but the principle is the same as 5.28: the evidence has to hold up to scrutiny.

Frequently asked questions

Does a signed PDF meet control 5.28?

It helps, but it falls short. Signing the final document proves who issued it and that it was not changed after signing, but it does not demonstrate the integrity of each piece of evidence separately, nor when it was collected, nor its order. 5.28 is about preserving evidence with traceability, and that is covered by a verifiable chain, not just by a PDF signature.

Do I need a specific tool to comply?

Not by obligation, but doing it by hand is fragile and hard to sustain as a procedure. A tool that computes the hash, signs and timestamps each piece of evidence in series makes compliance repeatable and auditable, instead of an effort that depends on each job. The control asks for a procedure, and an automated process is easier to demonstrate than a manual one.

Is control 5.28 mandatory?

It is a control in Annex A; its applicability is decided in your Statement of Applicability based on your risks. That said, when there are incidents or pentests whose evidence may need to be defended, it is hard to justify leaving it out. The reasonable approach is to treat it as applicable and have the procedure ready.

Does this also apply to the ENS?

Yes, the principle is the same: traceability and activity logging so you can reconstruct and demonstrate what happened. Verifiable pentest evidence fits the ENS just as it fits 5.28; the framework changes, not the idea that the evidence must be verifiable and intact.

If you want your reports to reach the audit with signed, verifiable evidence, without building the procedure by hand, see how TRACEZ signs each piece of evidence with Ed25519 and an RFC 3161 timestamp, and verify a report yourself at verify.no-do.dev.