On 16 January 2029, the day after the committee meeting at which Andrés Vidal asked whether Rutalia was complying with the law, Laura Méndez received an email from Alventa's purchasing department with a sentence that moved the problem somewhere else entirely: «We would remind you that the security annex to the contract provides for an annual right to audit with fifteen days' notice».

Until that moment, all the work in the module had consisted of building: the obligations map, the fourteen policies, the record of processing activities, the fleet impact assessment, the third-party inventory, the just-in-time access procedure. All of it asserts things. The quarterly access review is carried out. Geolocation data is deleted after ninety days. The policies are known. The suppliers have been assessed.

An audit is the moment when someone says: show me.

And that is where the distance this lesson sets out to measure and close appears: the distance between «we do it» and «I can prove we do it». It is not a formal or bureaucratic distance. It is the distance between a real security programme and one that exists only in the head of the person running it; between a file that protects you before a regulator and a folder that leaves you defenceless; between keeping 22 % of your turnover and losing it.

You are going to learn to assess yourself before others assess you, to build evidence without going mad, to carry out a gap analysis that turns into a plan, to prepare for and pass an audit, to handle the findings —the eight real ones from Rutalia's first internal audit—, to know when ISO 27001 certification is worth it and when it is not, to face a regulatory inspection, and to automate evidence collection so that compliance stops being an annual snapshot.

Important notice. This content is for training purposes and does not constitute legal advice. Audit procedures, certification requirements and, most especially, how to act in response to a formal request or an inspection by a supervisory authority have legal implications that depend on the specific case. Every compliance decision, and any response to an authority, must be validated with a legal professional or with your organisation's data protection officer. The reports, findings, references and amounts of Rutalia Logística are fictitious.

  1. Saying and proving: the distance an audit measures

There is one question worth asking yourself before any assessment, and it sums up the whole lesson:

If someone walked through the door tomorrow and asked you for the proof that the first-quarter access review was carried out, how long would it take you to show it to them?

The possible answers map out four levels of maturity:

Answer Level What it means
«Yes, we do it, ask Diego» 0 — Assertion There is nothing. Before a regulator, this is indistinguishable from not doing it
«It's in an email somewhere, let me look» 1 — Scattered trail It exists, but reconstructing it takes hours and the result is debatable
«Here is the file REG-RUT-05_2029T1.csv» 2 — Evidence Demonstrable. It is the minimum acceptable level
«Here it is, with the signed confirmation from the ten owners, the date, the two deviations detected and how they were closed» 3 — Evidence with traceability As well as proving it was done, it proves that it served a purpose

The jump from level 0 to level 2 is almost always free: it consists of keeping what is already produced. The jump from 2 to 3 is the one that turns compliance into improvement.

And it is worth being honest about why this matters, beyond passing an exam. Evidence is proof of diligence. When an incident happens —and it will—, the difference between «negligence» and «demonstrated diligence» is made by exactly these documents. In INC-2028-014, Rutalia was able to show the AEPD (the Spanish Data Protection Agency) that it had an approved response plan, verified backups and documented controls. That did not prevent the incident. It changed the conversation.


  1. Types of assessment compared

«Audit» is used for six different things that answer different questions. Confusing them leads to buying the wrong one.

Type What it answers Who carries it out Indicative cost (SME) Value to a customer Value to a regulator
Self-assessment «Where do we think we are?» The organisation itself Internal hours only (40-80 h the first time) Low: it is your word Low, but better than nothing: it shows you have asked yourself the question
Internal audit «Are we complying with what we have established?» In-house staff independent of the area audited, or an external party engaged as internal auditor €0 if internal; €1,800-3,500 if outsourced Medium Medium-high: it is an ISO 27001 requirement and evidence of oversight
Second-party audit «Are you complying with what you promised me in the contract?» Your customer, or someone on its behalf €0 directly; high cost in your own hours and in risk — (it is the customer) Medium
Certification audit (third party) «Does it meet the requirements of the standard?» Accredited, independent certification body €6,000-9,000 for the three-year cycle High: it answers half a dozen questions in any questionnaire High as evidence of diligence, although it does not replace legal compliance
Technical assessment / pentest «Is it really exploitable?» Specialist firm €3,500-8,000 per exercise High in the sectors that ask for it Medium: it demonstrates the verification required by Article 32(1)(d) GDPR
Regulatory compliance assessment «Do we comply with the GDPR, NIS2, the ENS (the Spanish National Security Framework, Royal Decree 311/2022)?» Legal advisers or DPO, often with technical support €3,000-6,000 Medium-high High: it is the only one that answers the legal question

Three practical warnings arising from this table.

First: a pentest is not a compliance audit, and a compliance audit is not a pentest. They are orthogonal. You can pass an ISO 27001 audit with an unpatched critical vulnerability, and you can come out of a pentest clean without a single policy. The detail of technical testing is in 04-05; here we are only interested in how it fits into the programme.

Second: the second-party audit —the customer's— is the one most SMEs fail and the one least prepared for. It arrives with fifteen days' notice, it is carried out by someone who does not know your context, and the outcome is not a certificate but whether or not the contract continues.

Third: self-assessment is undervalued. It is free, you can do it this month, and its output —the gap analysis in section 6— is the input for everything else. Starting by hiring an external audit without having assessed yourself is paying to be told what you already knew.


  1. What evidence is and what it is not

Evidence is verifiable information that demonstrates that a control exists and operates. To qualify, it needs four properties:

Property What it means Example that meets it Example that does not
Date When it was produced Report with a generation date and the period covered Screenshot with no visible date
Identifiable source Which system or person it comes from Signed export from the system, with the server name Text file that someone could have written by hand
Reproducibility or integrity It can be obtained again, or it is recorded that it has not changed Documented query that can be repeated; file with a recorded hash Editable document with no version control
Relationship to the control It demonstrates that control, not a similar one MFA coverage report to demonstrate the MFA control Invoice for the MFA product licence

The last column of the last example deserves a comment, because it is the most common mistake: buying a tool is not implementing a control. The EDR licence invoice does not show that the EDR is deployed on 140 computers; the EDR's own coverage report does.

Catalogue of evidence by type

Type of evidence Examples Strength Watch out for
System-generated logs Access logs, EDR reports, scanner output, backup logs Very high That they are exportable and show the period and the system
Exported configurations GPOs, nftables rules, MDM policies, retention settings High Export the real state, not the designed one
Minutes and decisions Committee minutes, approvals, risk acceptances High That they contain resolutions, not narrative
Signed records Policy acceptance, access review confirmation, destruction certificates High Coverage: 60 % signed does not demonstrate the control
Tickets Access requests, issues, changes High That the workflow reflects the written procedure
Third-party reports Certificates, SOC 2, pentest, MDR reports High Scope and validity
Screenshots Coverage dashboard, a product's configuration Medium Visible date, identifiable system, who took it
Attendance lists Training, briefing sessions, drills Medium Real signatures, date and content delivered
Internal declarations «I confirm that this is done» Low Only as a supplement, never as the main evidence
Photographs CCTV sign, red cupboard, server room Medium Identifiable date and location

The five pieces of evidence most often requested from an SME

If you could only prepare five, these would be the ones, because they appear in almost every questionnaire and almost every audit:

  1. MFA coverage: a report from the system showing the percentage of accounts with a second factor, by account type.
  2. Backup restore verification: a dated report of the most recent test, stating what was restored, how long it took and whether integrity was verified.
  3. Access review: signed confirmation from the owners, with the deviations detected and how they were closed.
  4. Patching status: a report with the percentage of computers up to date and those beyond the deadline, by severity.
  5. Policy acceptance: a named record with date and mechanism, including staff without a computer workstation.

  1. The evidence repository without going mad

The classic mistake is trying to keep everything. The result is a 40 GB folder in which nothing can be found and that nobody maintains.

The right criterion is the opposite: one piece of evidence per control, at the frequency that control requires. No more, no less.

/evidencias/
|-- 2029/
|   |-- T1/
|   |   |-- A5-15_control-accesos/
|   |   |   |-- REG-RUT-05_revision_accesos_2029T1.csv
|   |   |   |-- confirmaciones_propietarios/     (10 signed PDFs)
|   |   |   `-- desviaciones_y_cierre.md
|   |   |-- A8-05_mfa/
|   |   |   `-- cobertura_mfa_20290331.csv
|   |   |-- A8-13_copias/
|   |   |   |-- verificacion_restauracion_20290312.md
|   |   |   `-- salida_restic_check_20290312.txt
|   |   |-- A8-08_vulnerabilidades/
|   |   |   |-- greenbone_informe_20290315.pdf
|   |   |   `-- estado_parcheo_20290331.csv
|   |   |-- A5-19_proveedores/
|   |   |   `-- accesos_terceros_2029T1.csv
|   |   `-- gobierno/
|   |       `-- acta_CSI-2029-01.pdf
|   |-- T2/ ...
|   `-- anual/
|       |-- politicas/              (14 PDFs with control header)
|       |-- rat/                    (rat.csv + signed RoPA)
|       |-- eipd/                   (EIPD-2029-01)
|       |-- terceros/               (terceros.csv + questionnaires + contracts)
|       |-- formacion/              (attendance lists and coverage)
|       |-- auditoria_interna/      (AI-2029-01 + action plan)
|       `-- simulacros/             (annual drill report)
|-- indice_evidencias.csv
`-- README.md

And the file that makes it manageable, indice_evidencias.csv, which is the one shown before the evidence itself:

control,framework,description,evidence,path,frequency,owner,last,next,automatable
A.5.15,"ISO 27001 / CIS 6","Access control","Quarterly review with owner confirmation","2029/T1/A5-15_control-accesos/",Quarterly,"D. Salas",2029-03-28,2029-06-28,partial
A.8.05,"ISO 27001 / CIS 6","Secure authentication","MFA coverage report","2029/T1/A8-05_mfa/",Quarterly,"D. Salas",2029-03-31,2029-06-30,YES
A.8.13,"ISO 27001 / CIS 11","Backups","Restore verification report","2029/T1/A8-13_copias/",Quarterly,"D. Salas",2029-03-12,2029-06-12,partial
A.8.08,"ISO 27001 / CIS 7","Management of technical vulnerabilities","Scan report + patching status","2029/T1/A8-08_vulnerabilidades/",Monthly,"D. Salas",2029-03-31,2029-04-30,YES
A.5.19,"ISO 27001 / CIS 15","Security in supplier relationships","Third-party access log + review","2029/T1/A5-19_proveedores/",Quarterly,"L. Mendez",2029-03-28,2029-06-28,YES
A.5.01,"ISO 27001","Security policies","Approved policies + minutes + acceptance record","2029/anual/politicas/",Annual,"L. Mendez",2029-03-06,2030-03-06,no
A.6.03,"ISO 27001 / CIS 14","Awareness and training","Attendance lists + coverage","2029/anual/formacion/",Annual,"HR",2029-05-20,2030-05-20,no
A.5.24,"ISO 27001 / CIS 17","Incident management","PRI-RUT-2028 + incident log + reports","2029/anual/","Continuous","L. Mendez",2029-03-31,"continuous",partial
A.5.30,"ISO 27001","ICT readiness for business continuity","Annual drill report","2029/anual/simulacros/",Annual,"L. Mendez",2028-10-20,2029-10-20,no
"GDPR art.30","GDPR","Record of processing activities","rat.csv + signed document","2029/anual/rat/",Annual,"L. Mendez / DPO",2029-03-06,2030-03-06,partial
"GDPR art.35","GDPR","Impact assessment","EIPD-2029-01","2029/anual/eipd/",Annual,"L. Mendez / DPO",2029-05-07,2030-05-07,no
"GDPR art.28","GDPR","Data processing agreements","Contracts signed per supplier","2029/anual/terceros/","On contracting","N. Campos",2029-04-02,"continuous",no

Four design decisions that make the repository sustainable:

  • The control column maps to a framework, not to a subject folder. That way the same evidence serves ISO 27001, CIS and the customer questionnaire, without duplicating anything.
  • The frequency column and the dates turn the index into a calendar: what is overdue can be seen at a glance, and the script from 06-01 can be adapted to give warning.
  • The automatable column marks the improvement path in section 17: five of the twelve controls can collect their evidence on their own.
  • One control, one folder, one owner. If a piece of evidence has no named owner, it does not get produced.

The one-minute rule. An evidence repository is well built if you can locate any specific piece of evidence in under a minute from the name of the control. If it takes longer, the problem is not that evidence is missing: it is that you will not find it on audit day, with the auditor watching.


  1. The trap of fabricating evidence after the event

This has to be discussed explicitly, because the temptation is universal and the damage is enormous.

The audit notice arrives. Someone discovers that the second-quarter access review was not done. And the idea appears: «let's do it now and date it June».

Do not do it. And not out of moralising, but for four very practical reasons:

  1. It is easily detected. An experienced auditor cross-checks sources: the file date, the metadata, the log of the system that generated it, the date of the email that distributed it, the minutes of the committee at which it was presented. A CSV dated June with October creation metadata is a much worse finding than the absence of the CSV.
  2. It turns a minor non-conformity into an integrity problem. «The second-quarter review was not carried out» is a minor non-conformity with a two-week action plan. «Falsified documentation was submitted» calls all the other evidence into question and, in a certification, can mean the certificate being withdrawn.
  3. Before a regulator, the risk changes in nature. Submitting falsified documentation in administrative proceedings is not a management failure.
  4. It destroys the purpose. If the control was not carried out, there is a real risk that nobody has looked at. Fabricating the paperwork hides the risk and guarantees that it will happen again.

What you do instead, and it is what an auditor expects of a mature organisation:

CONTROL: Quarterly access review (A.5.15)
PERIOD: 2029-Q2

STATUS: NOT CARRIED OUT ON TIME.

Analysis: the review for the second quarter was not carried out. The person
responsible (D. Salas) was on sick leave from 3 to 28 June and no deputy
had been designated for this task, which was not included in the department's
cover plan.

Immediate action (correction): review carried out on 14 July 2029, with
the results attached. 2 deviations were detected, both closed
on 18 July.

Corrective action (cause): the quarterly access review is added to the
cover plan, with a designated deputy (L. Mendez), and it is added
to the automatic evidence calendar with an alert 7 days before it falls due.
Verification: committee CSI-2029-04.

Documented in the non-conformity register NC-2029-011.

This is better than perfect, silent evidence, and an auditor will value it as such. It shows there is a system that detects its own failures, analyses them and corrects them. Which is, literally, what an audit is looking for.


  1. Gap analysis: the step-by-step method

A gap analysis compares what you should have with what you have, and produces a plan. It is the most cost-effective tool in the whole module: it costs internal hours and steers everything else.

flowchart TD
    A["<b>1. CHOOSE THE FRAMEWORK</b><br/>Just one. For an SME:<br/>CIS Controls v8 IG1 (56 safeguards)<br/>and/or ISO 27001 Annex A (93 controls)"] --> B["<b>2. DEFINE THE SCOPE</b><br/>Which systems, sites, processes and people.<br/>A badly defined scope invalidates the result"]
    B --> C["<b>3. GATHER THE CURRENT STATE</b><br/>Do not ask 'do we do it?'<br/>but 'what evidence is there?'<br/>Interviews + document review + technical checks"]
    C --> D["<b>4. SCORE EACH CONTROL</b><br/>0 non-existent - 1 informal - 2 defined<br/>3 implemented and evidenced - 4 measured and improved"]
    D --> E["<b>5. IDENTIFY THE GAP</b><br/>Difference between current state and target<br/>The target is NOT 4 across the board"]
    E --> F["<b>6. PRIORITISE</b><br/>Risk x effort x obligation<br/>Legal first, then whatever reduces risk most"]
    F --> G["<b>7. TURN IT INTO A PLAN</b><br/>Action - owner - deadline - cost - verification"]
    G --> H["<b>8. APPROVE IN COMMITTEE</b><br/>Without approval and budget,<br/>the analysis is just another document"]
    H -.->|"Repeat annually"| C

    style A fill:#1a237e,color:#fff
    style D fill:#3949ab,color:#fff
    style G fill:#1b5e20,color:#fff
    style H fill:#b71c1c,color:#fff

The three decisions that most influence the result:

The scoring scale. Using «yes/no» loses information and is demoralising. A five-level scale distinguishes between «we don't do it» and «we do it but I can't prove it», which are very different situations and require very different actions:

Level Name Meaning
0 Non-existent It is not done
1 Informal It is done, it depends on one person, it is not written down and there is no evidence
2 Defined It is written down and approved, but not carried out consistently
3 Implemented and evidenced It is carried out as written and there is evidence
4 Measured and improved In addition, its effectiveness is measured and it is adjusted

The target is not 4 across the board. That would be extremely expensive and unnecessary. For Rutalia, the reasonable 24-month target is 3 on the critical controls and 2 on the rest, with 4 only on the two or three where it is already close.

The right question in phase 3. You do not ask «do you do access reviews?», because the answer is always «yes». You ask «show me the last one». The difference between the two questions is the difference between a level 1 and a level 3.


  1. Rutalia's gap analysis

Carried out in March 2029 by Laura with Diego's support, against CIS Controls v8 IG1 and with the mapping to ISO 27001 Annex A so that it could be reused with Alventa. The 18 controls are shown grouped; the full document goes down to the 56 IG1 safeguards.

# Control Current state Level Existing evidence Gap Action Owner Deadline
1 Inventory of enterprise assets Inventory A001-A010 of information assets; no inventory of the 140 computers with periodic review 1 Out-of-date spreadsheet Unauthorised devices on the network are not detected Automated inventory from the EDR and the directory, checked monthly against network discovery D. Salas 2029-06-30
2 Inventory of software assets There is no list of authorised software 0 None «Do I have it?» cannot be answered when a critical vulnerability appears Authorised list by role + monthly report of installed software from the EDR D. Salas 2029-07-31
3 Data protection 4-level classification, encryption, backups, RoPA 3 POL-RUT-05, rat.csv, encryption reports No data leakage prevention on email Basic DLP rules in M365 for the 4 levels D. Salas 2029-09-30
4 Secure configuration CIS/CCN-STIC, GPO, LAPS, BitLocker 3 Exported GPOs, compliance report No periodic drift checks Automated quarterly check D. Salas 2029-09-30
5 Account management Identity lifecycle in place 3 PRO-RUT-03, joiner and leaver forms Service accounts with no documented owner Inventory of service accounts with a named owner D. Salas 2029-06-30
6 Access control management RBAC, MFA, quarterly review 3 REG-RUT-05, MFA coverage MFA at 94 % on MiRutalia Bring it up to 100 % M. Ruiz 2029-05-31
7 Continuous vulnerability management Greenbone, defined process, deadlines by severity 3 Monthly reports, exceptions register No coverage of the tablets or the sensors Extend the scope of scanning D. Salas 2029-08-31
8 Audit log management Centralisation in place since INC-2028-014 3 Configuration, logs, use in incidents 12-month retention not verified Automated quarterly verification D. Salas 2029-06-30
9 Email and web browser protections SPF/DKIM/DMARC, attachment filtering 2 DNS configuration, M365 policy No web filtering by category Implement web filtering at the perimeter D. Salas 2029-10-31
10 Malware defences EDR/MDR deployed 3 MDR coverage report 97 % coverage: 4 computers without the agent Identify and fix the 4; alert on any computer without the agent D. Salas 2029-05-31
11 Data recovery 3-2-1-1-0 with immutability and verification 4 Quarterly reports, drill of 20/10/2028 None significant Maintain D. Salas ongoing
12 Network infrastructure management VLANs, nftables, documentation 3 Diagrams, exported rules Legacy rules with no documented justification Review and clean up the rule set D. Salas 2029-09-30
13 Network monitoring and defence Suricata, canaries, MDR 3 Rules, alerts, INC-2028-014 No periodic review of rule effectiveness Six-monthly review of rules and false positives D. Salas 2029-12-31
14 Security awareness and skills training Isolated actions after the incident 1 Emails, one session No programme, no measured coverage, no systematic evidence Annual programme with records (see 08-03) HR + L. Méndez 2029-09-30
15 Service provider management Inventory just created; 6 non-compliant 1 terceros.csv Contracts, questionnaires and access not yet regularised Full programme from 06-04 L. Méndez + N. Campos 2029-06-30
16 Application software security OWASP applied to MiRutalia without a formal lifecycle 2 Documented fixes, pentest No security requirements or systematic review POL-RUT-11 and the lifecycle from 08-01 M. Ruiz 2029-10-31
17 Incident response management PRI-RUT-2028, playbooks, exercises, real incident 4 Plan, reports, metrics, approval minutes The regulatory clocks are missing from the playbook Add NIS2, GDPR and contractual deadlines L. Méndez 2029-05-31
18 Penetration testing Pentest of 11/2027, retainer with CiberTest 3 Report and status of findings Pentest more than 18 months old Annual pentest: contracted for 09/2029 L. Méndez 2029-09-30

Reading the result

Level No. of controls Interpretation
0 1 Software inventory: the only total gap
1 3 Computer inventory, training, suppliers
2 3 Email/browser, secure development, and partly classification
3 9 The majority: implemented and evidenced
4 2 Backups and incidents: the two best, and not by chance

Average score: 2.6 out of 4. And here is the conclusion that matters most, and that surprises almost every SME that does this exercise:

  • The two controls at level 4 are the two that were worked on after real pain: backups, after the ransomware risk analysis, and incident response, after INC-2028-014. Organisations improve where it has hurt.
  • The three controls at level 1 are not technical: training, suppliers and inventory. They are management controls. A good technical team solves the technical problems and leaves the management ones unsolved, because they are not its natural territory and because nobody asks for them until an audit comes along.
  • Control 2, at level 0, is the one that accumulates the most silent risk. Without a software inventory, on the day a critical vulnerability appears in a ubiquitous library, Rutalia will take weeks to find out whether it is affected. It is exactly pattern 5 from 06-04.

  1. From the gap to the plan

A gap analysis that is not turned into a plan is a depressing document. The conversion follows three rules.

Rule 1: prioritise using three factors, not one.

Factor Weight Question
Obligation Always first Is it required by a law or by a contract with a date?
Risk reduction Second How much does it reduce the likelihood or impact of hypotheses H1-H5?
Effort Tie-breaker How many hours and how many euros?

Applied to Rutalia, the order that emerges is not the one that pure technical judgement would produce: the supplier programme (control 15) goes first, even though it is technically less attractive than web filtering, because Alventa's contract requires it with a February date, it closes hypothesis H5, which is still open, and it is a requirement of Article 21(2)(d) of NIS2.

Rule 2: every action comes with a verification, not just a deadline. «Implement web filtering, D. Salas, 31/10/2029» is incomplete. «…verification: report of blocked categories for the first month, presented at the November committee» is complete. Without verification, an action gets closed because someone says it is done.

Rule 3: the plan is approved and budgeted in committee. This is step 8 of the diagram and the one most plans skip. A plan without approval has no priority over day-to-day operations, and will always lose.

The output of this exercise —prioritised, budgeted and with quarterly milestones— is the raw material for the security master plan you will build in 08-05. Here all that matters is that you know that the master plan is not invented: it comes out of a gap analysis and a risk analysis.


  1. Preparing for an audit

Three weeks before Alventa's visit, Laura got Rutalia ready. This is what she did, and it can be reused for any audit.

9.1 Confirm the scope in writing

The first question to the auditor, always: what exactly are you going to audit? Systems, sites, processes, period covered and reference framework. An audit without a written scope expands of its own accord during the visit.

For a second-party audit, the scope is set by the contract: only what relates to the service provided to that customer. It is perfectly legitimate —and advisable— to answer: «That is outside the agreed scope; if you want to include it, let's discuss it and agree it in writing».

9.2 The statement of applicability

If the framework is ISO 27001, the statement of applicability (SoA) is the central document: the 93 Annex A controls with their applicability, justification, status and reference to the evidence. It is the first thing a certification auditor asks for and what structures the whole visit.

control,title,applicable,justification,status,evidence,notes
A.5.1,"Policies for information security",Yes,"Basic ISMS requirement",Implemented,"2029/anual/politicas/","14 policies approved 2029-03-06"
A.5.7,"Threat intelligence",Yes,"Needed for the H1-H5 threat model",Partial,"2029/T1/","INCIBE-CERT and CCN-CERT advisories; no formal process"
A.5.15,"Access control",Yes,"High risk identified",Implemented,"2029/T1/A5-15_control-accesos/","Quarterly review with confirmation"
A.5.19,"Information security in supplier relationships",Yes,"Risk H5",Partial,"2029/anual/terceros/","Programme being implemented, closure 2029-06-30"
A.7.4,"Physical security monitoring",Yes,"Three warehouses holding goods",Implemented,"2029/anual/","CCTV with T-04 regularised"
A.8.23,"Web filtering",Yes,"Common entry vector",Not implemented,"-","Action planned 2029-10-31"
A.8.28,"Secure coding",Yes,"In-house development of MiRutalia",Partial,"2029/anual/","POL-RUT-11 under review"
A.7.11,"Supporting utilities",Yes,"Cold stores and server room",Implemented,"2029/anual/","UPS and contracted maintenance"
A.8.34,"Protection of information systems during audit testing",Yes,"Agreed technical tests",Implemented,"2029/anual/","Coordination procedure with CiberTest"

Two warnings about the SoA. A control cannot be excluded «because there isn't time»: an exclusion must be justified by genuine inapplicability or by the outcome of the risk analysis. And declaring a control implemented when it is half done is worse than declaring it partial: the auditor will check it and find a non-conformity, instead of an action already planned.

9.3 Prepare the logistics and the people

Task Detail
Schedule An hour-by-hour agenda agreed with the auditor: who, where, what subject
Room A space with connectivity, free from noise and with no third-party information in view
Single escort One person accompanies the auditor all the time. It is not surveillance: it is so that questions are answered properly and what is requested is recorded
Log of requests A notebook recording what was requested, when, who provided it and when. It avoids «you never gave me that»
Availability The people who are going to be interviewed, informed and with their diaries clear
Auditor access If system access is needed, a temporary named account via PRO-RUT-11, read-only and logged

9.4 Who speaks, who does not, and how to answer

This section is uncomfortable and essential.

Who speaks: the people who operate the control. If the auditor asks about backups, Diego answers. If they ask about the body of policies, Laura answers. If they ask about approval of the policies, Andrés Vidal answers.

Who does not speak: nobody else. Not in order to hide anything, but because someone answering about something they have not mastered generates false findings that then take weeks to dismantle, and because contradictory answers from two people are, in themselves, a finding.

The five rules for answering, which are worth rehearsing with the team:

  1. Answer what you are asked. No more, no less. If they ask «do you back up fs01?», the answer is «yes, daily, with 30-day retention, and here is the latest verification report». It is not «yes, although with the ERP we had a problem in March that…». Every extra topic opened is a new line of enquiry.
  2. If you don't know, say so. «I don't know; Diego will check and we'll confirm before the closing meeting» is an excellent answer. Making things up is the worst possible mistake: the auditor will check.
  3. Do not argue with the auditor. If you think a finding is wrong, provide the evidence that disproves it, calmly, and if the disagreement persists, have it recorded in the report. Arguing does not change the finding and does change the tone of the audit.
  4. Do not speculate about intentions or about other areas. «Purchasing handles that and I don't think they've signed it» is handing over a finding without checking it.
  5. Be honest about what is not done, and accompany it with the planned action. «That control is not implemented; it is in the plan approved by the committee with a date of 31 October and an allocated budget» turns a hole into a programme.

9.5 The rehearsal

The week before, someone on the team acts as auditor for two hours: they ask for five random pieces of evidence from the index, interview two people and check one configuration. In Rutalia's rehearsal three problems came to light that would not have been detected any other way: a backup verification report that did not include the period covered, an asset owner who did not know they were one, and the complete absence of evidence that warehouse staff had received the policies.

That rehearsal costs two hours and is the action with the best cost/benefit ratio in the whole preparation.


  1. During the audit: what happens and in what order

Phase What happens What Rutalia does
Opening meeting (30-45 min) The auditor presents the scope, method, schedule and criteria for classifying findings. Contacts and logistics are confirmed Confirm the scope in writing. Introduce the people. Hand over the evidence index
Document review Body of policies, SoA, RoPA, minutes, procedures Provide only what is requested. Log each item provided
Sampling The auditor chooses a sample: «show me the joiner process for these three employees», «this quarter's access review», «the last three incidents» Locate it in under a minute. If something does not exist, say so and explain why
Interviews Checks that people know what the policies say. Will ask a driver and someone in the warehouse, not only IT The people interviewed, prepared and informed. Not coached: that shows and is counterproductive
Observation Physical walk-round: server room, red cupboard, workstations, CCTV signs, desks Apply POL-RUT-13 genuinely every day, not on the day of the visit
Technical testing Checking configurations: GPOs, retention, MFA coverage, firewall rules Read-only access, accompanied and logged
Closing meeting Presents the preliminary findings, their classification and the response deadlines Listen, take notes, ask questions to understand. A finding is only disputed if there is specific evidence that disproves it, and it is provided there and then
Report Arrives within days or weeks, with classified findings Review it, respond on time and open the corrective action plan

Sampling is where almost everything is decided. The auditor does not review all 180 employee joiner files: they choose three. And if one of the three does not have the signed form, they extrapolate: the control is not reliable. That is why coverage matters as much as existence; a control that is complied with in 80 % of cases usually fails sampling.


  1. Findings: non-conformities, observations and opportunities

Type What it is Example Consequence in a certification
MAJOR non-conformity Total absence of a requirement, a systemic failure, or a set of minor non-conformities that shows a failure of the system. Also a non-compliance that puts at risk the ISMS's ability to achieve its objective There is no risk analysis; the internal audit has not been carried out; there is no management review Prevents certification until its closure has been verified. At a surveillance audit, it can lead to suspension of the certificate
MINOR non-conformity A one-off failure to meet a requirement, without putting the system at risk One quarter's access review was not carried out; two joiners without a signed form Requires a corrective action plan, usually within 30-60 days. Does not prevent certification
Observation A situation that could lead to a non-conformity if not addressed The exceptions register has an exception that expired two weeks ago No formal response is required, but it is recorded and will be reviewed
Opportunity for improvement A recommendation that goes beyond the requirement Automating evidence collection would reduce effort and the risk of something being forgotten Voluntary

A nuance that causes confusion: several minor non-conformities in the same control can be raised to major. If three out of five sampled joiners lack a form, it is not a one-off failure: it means the procedure is not applied. The classification does not depend on the number, but on what that number shows about the system.


  1. How to respond to a finding

The response has four components and almost everyone leaves out two. The distinction between correction and corrective action is the heart of the matter:

Component Question Example
1. Correction How do I fix the specific case? The two outstanding forms are signed
2. Cause analysis Why did it happen? The procedure requires HR's signature, but the account is created when an email arrives, without checking the form
3. Corrective action How do I stop it happening again? The ticketing system does not allow a joiner ticket to be closed without the signed form attached
4. Verification How will I check that it worked? Sampling of 5 joiners at the September committee; target: 5 out of 5

Without point 3, the finding will come back next year. It is the difference between putting out the fire and fixing the electrical wiring, and it is exactly the same reasoning as the root cause analysis in 05-04: «the user did not sign» is not a cause, just as «the user clicked» was not.

FINDING RESPONSE TEMPLATE

Finding: NC-2029-003 - MINOR non-conformity
Requirement: ISO/IEC 27001:2022, A.5.15 / procedure PRO-RUT-03
Auditor's description: "Of a sample of 5 user accounts created in the period,
  2 do not have form REG-RUT-11 signed by Human Resources."

1. ACCEPTANCE: the finding is accepted. [Or: we disagree, for these reasons
   and with this evidence.]

2. CORRECTION (specific case): regularisation of the 2 files by means of
   a retrospective signature documented as such, expressly stating the actual
   date of signature. Deadline: 2029-02-15. Owner: HR.
   [Note: it is documented as a regularisation; it is NOT backdated.]

3. CAUSE ANALYSIS:
   Why are the forms missing? Because the accounts were created without them.
   Why were they created without them? Because the request came by email directly
     from the area manager and was dealt with as an operational emergency.
   Why was it dealt with without the form? Because the procedure has no
     control that prevents it: it depends on the discipline of whoever carries it out.
   Why does it depend on discipline? Because the joiner workflow is not
     built into any tool: it is an email and a manual action.
   ROOT CAUSE: control over user account creation is a written procedure
   with no enforcement mechanism.

4. CORRECTIVE ACTION: build the joiner process into the ticketing system, with
   a mandatory field for attaching the signed form. Without the attachment, the
   ticket cannot move to execution. A documented exception route for emergencies,
   with regularisation within 48 h.
   Deadline: 2029-03-31. Owner: D. Salas. Cost: EUR 0 (existing tool).

5. VERIFICATION: sampling of 5 accounts created after 31 March, at committee
   CSI-2029-03. Effectiveness criterion: 5 out of 5 with the form attached.
   Person verifying: L. Mendez (different from whoever carries it out).

6. STATUS: Open / In progress / Closed pending verification / Closed.

Notice two details, in points 2 and 5. In point 2, the regularisation is documented as a regularisation, with the actual date: that is section 5 of this lesson applied. And in point 5, whoever verifies is not whoever carries it out: without that separation, verification is a self-declaration.


  1. The eight findings of AI-2029-01

Rutalia's first internal audit was carried out from 22 to 24 January 2029, before anything else, with a deliberate objective: to know what Alventa was going to find before Alventa found it. It was carried out by CiberTest under the retainer, acting as a contracted internal auditor, which solved the independence problem described in section 15.

Id Finding Type Requirement Correction Corrective action Owner Deadline Status at 30/06
NC-01 There is no body of policies approved by senior management. Only PRI-RUT-2028. Decisions on classification, access and exceptions lack the standing of rules MAJOR ISO 5.2 / NIS2 Art. 21(2)(a) / ENS org.1 — Drafting and approval of 14 policies; communication and acceptance record L. Méndez 2029-03-31 Closed: 13 of 14 approved on 6/3; POL-RUT-14 on 7/5
NC-02 There is no record of processing activities, mandatory under Art. 30 GDPR MAJOR GDPR Art. 30 — RoPA of 11 processing activities, validated by the DPO and approved L. Méndez + DPO 2029-03-31 Closed on 6/3
NC-03 The ERP supplier's access is standing, with a shared account and no MFA, with no data processing agreement or security annex. Hypothesis H5 untreated MAJOR ISO A.5.19-A.5.22 / GDPR Art. 28 / NIS2 Art. 21(2)(d) Suspension of the permanent VPN and manual opening while the procedure is implemented PRO-RUT-11 just-in-time access; named accounts; security annex and Art. 28 contract signed L. Méndez + D. Salas 2029-06-30 Closed on 12/6. Exception EXC-2027-014 extended for the last time
NC-04 There is no evidence of security training. After INC-2028-014 one-off actions were taken with no attendance record or measured coverage MINOR ISO 7.2-7.3 / NIS2 Art. 21(2)(g) / A.6.3 Retrospective record of the sessions for which there is proof, documented as such Annual training programme with a named record and minimum coverage of 95 % HR 2029-09-30 In progress: 71 %
NC-05 The CCTV information sign is missing in Valencia and Seville, and one camera partly covers a rest area MINOR GDPR Art. 13 / LOPDGDD (Spain's Organic Law 3/2018 on data protection) Arts. 22 and 89 Signs put up (photographed and dated) and the camera repositioned with masking Check added to the quarterly walk-round of the three sites, with a signed checklist L. Méndez 2029-02-28 Closed on 26/2
NC-06 The whistleblowing channel does not comply with Act 2/2023: it is an email inbox managed by HR, with no designated owner, no anonymity, no acknowledgement within 7 days and no entry in the RoPA MINOR Act 2/2023 — Formal designation of a system owner; channel with an anonymity option; procedure with deadlines; registered as processing activity T-10 HR + legal advisers 2029-06-30 Closed on 27/6
NC-07 The incident response plan does not include the regulatory notification deadlines. INC-2028-014 was handled without the 72-hour clock being in any procedure MINOR GDPR Art. 33 / NIS2 Art. 23 / A.5.24 — Table of clocks (AEPD 72 h, CSIRT 24 h/72 h/1 month, customer 24 h, insurer) added to the playbook, with a named owner; rehearsed in the May tabletop exercise L. Méndez 2029-05-31 Closed on 21/5
NC-08 There is no inventory of authorised or installed software. Faced with a critical vulnerability in a third-party component, the organisation cannot determine whether it is affected MINOR CIS 2 / A.8.8 / A.5.9 — List of authorised software by role; monthly report of installed software from the EDR; approval procedure for additions D. Salas 2029-07-31 In progress
OBS-01 Exception EXC-2028-003 (A006 sensors) has no interim review date despite having been in force for a year Observation A.5.36 — Mandatory six-monthly review of every exception older than 12 months L. Méndez 2029-05-07 Closed
OM-01 Evidence collection is manual and depends on two people; automating it would reduce effort and the risk of omission Opportunity — — Evidence verification and sealing script (section 17) D. Salas 2029-12-31 In progress

What this report teaches

The three major non-conformities are not technical. The body of policies, the record of processing activities and supplier management. Rutalia had EDR, segmentation, verified immutable backups and a response plan tested in a real incident, and even so it would have failed a certification audit on three governance and documentation failings. It is the dominant pattern in technical SMEs.

NC-07 is the most instructive finding in the report. Rutalia handled a serious incident impeccably from a technical point of view and notified the AEPD with fourteen hours to spare, not because the procedure provided for it, but because somebody remembered. The finding does not say «you notified late»: it says «you had no mechanism, and next time you might not remember». That is the difference between auditing results and auditing systems.

Six of the ten findings were closed by 30 June. That, documented, is the best possible evidence for Alventa and for any later audit: it does not show that Rutalia was perfect in January, it shows that it has a system that detects its failures and closes them against a deadline. That is literally what a certification attests.


  1. The ISO 27001 certification cycle and when it is not worth it

If the decision does get taken —Rutalia postponed it to January 2030—, it is worth knowing exactly what it involves.

Phase When What is checked Typical duration in an SME Outcome
Pre-audit (optional) Before stage 1 A dress rehearsal, with no effects 1 day Indicative report
Certification audit — STAGE 1 After implementation and after the internal audit and the management review Documentary: scope, policy, risk analysis, SoA, procedures, and whether the system is mature enough for stage 2 1-2 days Report with observations that must be closed
Certification audit — STAGE 2 4-8 weeks after stage 1 Real implementation: evidence, sampling, interviews, observation, testing 2-4 days Certificate if there are no major non-conformities
Surveillance year 1 12 months later A sample of controls, previous non-conformities, changes 1-2 days Maintenance
Surveillance year 2 24 months Idem, with a different sample 1-2 days Maintenance
Recertification 36 months Full review of the system 2-3 days New 3-year cycle

Two requirements that sink entire projects and deserve underlining: before stage 2, the internal audit and the management review must have been done, both with their records. They are clauses of the standard itself (9.2 and 9.3), not of Annex A, and their absence is an automatic major non-conformity.

Real costs, with Rutalia's figures

Item Year 1 Year 2 Year 3
Implementation consultancy €14,000 €2,500 €2,500
Certification audit (stages 1 and 2) €7,200 — —
Surveillance audit — €2,900 €2,900
ISMS management tool €1,200 €1,200 €1,200
External outlay €22,400 €6,600 €6,600
Internal hours ~450 h (≈€20,250) ~150 h ~150 h
Real total cost ≈€42,650 ≈€13,350 ≈€13,350

Cost of the full three-year cycle: around €69,000 for an SME of 180 people, of which around 40 % is the team's own time, which is the budget line offers never include and the one that sinks projects.

When it IS worth it

  • A customer representing a significant share of turnover requires it as a knock-out requirement, without accepting an adaptation plan.
  • You bid for public tenders or private competitions where it scores decisively.
  • It opens up an identifiable, quantifiable market or segment.
  • The organisation is already at level 3 on most controls, and the additional cost of certifying falls by half.

When it is NOT worth it

  • «For the image». €69,000 on image is a marketing decision, not a security decision.
  • When the management system does not exist yet. Certifying means auditing an ISMS: if you do not have one, you are paying to build it in a rush and badly.
  • When the customer accepts alternatives. Alventa accepted a «documented adaptation plan with milestones and dates»: that alternative costs the work of writing it.
  • When the necessary scope would be the whole company and not a bounded service. The cost grows with the scope.
  • When there is nobody who can sustain the system afterwards. A certificate without maintenance is lost at the first surveillance audit, and losing it communicates something worse than never having had it.

The honest alternative. For most SMEs, the right path is: a gap analysis against Annex A + an approved plan with milestones + real evidence + an annual internal audit. That answers 80 % of customer questionnaires, costs a fraction and, if the decision to certify is ever taken, 70 % of the work is already done.


  1. Internal audit with your own resources: the independence problem

Internal audit is an ISO 27001 requirement (clause 9.2), good practice in any programme and the only assessment an SME can afford every year. Its problem is obvious: who audits Diego in a ten-person department where Diego is the one who does everything?

Four solutions, from lowest to highest cost:

Solution How it works Independence Cost When to use it
Internal cross-audit Laura audits the controls Diego operates and vice versa. Each audits what they do not do Partial: better than nothing, insufficient for certification in areas where both are involved €0 Continuous self-assessment
Auditor from another area Someone from administration or operations, trained in auditing, audits IT Medium-high Internal hours + training Medium-sized companies
Outsourced internal auditor A third party is engaged as internal auditor, not as certifier High €1,800-3,500 Rutalia's option. It is what CiberTest did in AI-2029-01
Certification audit Accredited body Total €7,200 for the cycle When the decision to certify is taken

The third option solves the SME's problem and is accepted without difficulty in a certification: the standard requires the auditor to be objective and impartial, not to be an employee.

An important nuance: if the same firm implements your system and audits it, independence is broken. At Rutalia, CiberTest audits but does not implement; the implementation work is done by the in-house team. Had CiberTest written the policies, it could not audit them.

The annual audit programme

Not everything is audited every year: auditing is done by risk and by rotation, so that the whole scope has been covered in three years.

year,period,area,type,auditor,criteria,reason
2029,January,"Whole scope - baseline","Outsourced internal","CiberTest S.L.","ISO 27001 Annex A + GDPR","First audit: establish a baseline before the customer's audit"
2029,March,"Second-party audit","Customer","Alventa","Contract security annex","Contractual right"
2029,September,"Technical: MiRutalia and perimeter","External pentest","CiberTest S.L.","OWASP + grey box","Annual, agreed in the retainer"
2030,January,"Access control, suppliers and incident management","Outsourced internal","CiberTest S.L.","ISO 27001 Annex A","Highest-risk areas and with previous non-conformities"
2030,June,"Data protection: RoPA, DPIA, rights, breaches","Regulatory compliance","Datalex Compliance S.L.","GDPR + LOPDGDD","Annual DPO review"
2031,January,"Continuity, backups, physical security and training","Outsourced internal","To be determined","ISO 27001 Annex A","Rotation: areas not audited in 2030"

Two criteria govern this calendar: areas with previous non-conformities are audited again sooner (which is why access and suppliers come round again in 2030), and the whole scope is covered in three years, which is the natural cycle of a certification.


  1. Regulatory supervision: inspection and formal request

An action by a supervisory authority is not an audit: it is administrative proceedings, and it behaves differently.

How it starts

Origin Frequency What happens
Complaint from a data subject The most common route with the AEPD The complaint is passed on and a deadline is set for submissions. Many are resolved at this stage
Following a breach notification Common for breaches of some significance A formal request for further information about what was notified and about the measures
Investigation on the authority's own initiative Less common A formal request or an inspection
On-site inspection Rare for SMEs Inspectors with credentials, inspection record

What is almost always requested

A formal request from the AEPD after a breach usually asks, within a few days, for:

  1. The record of processing activities (Art. 30).
  2. The risk analysis for the processing affected and, where applicable, the DPIA.
  3. A description of the Article 32 technical and organisational measures and the justification of their appropriateness to the risk.
  4. Data processing agreements with the suppliers involved.
  5. Privacy notices and proof that data subjects were informed.
  6. Documentation of the incident: timeline, scope, measures, and the Article 33(5) internal breach register.
  7. The Article 34 communication to those affected and its content.
  8. Contact details and designation of the DPO, where applicable.
  9. The retention policy and proof that it is applied.

Read it again. The nine points are exactly what you have built in this module. A formal request does not ask for anything exotic: it asks for the ordinary documents of a data protection programme. The difference between a company that answers in five days with an orderly dossier and another that improvises for three weeks lies entirely in the prior work.

The seven rules of conduct

  1. Alert your legal advisers and your DPO immediately. You do not answer a formal request without them. Not a single line.
  2. Meet the deadlines. The deadline for a formal request is an administrative deadline. If you cannot meet it, request an extension before it expires, giving reasons.
  3. Answer exactly what is asked. No less —that is a failure to cooperate— and no more —that opens new lines of enquiry—.
  4. Do not modify or generate documentation after the event. Apply section 5, with far more serious consequences.
  5. Preserve the evidence. From the moment there is an investigation, nothing is deleted, not even under the retention policy: it is blocked.
  6. Designate a single point of contact and log all communication.
  7. Cooperate actively and demonstrably. Cooperation is an express criterion for determining the fine (Art. 83(2)(f)) and it is the one most quickly won or lost.

Why the INC-2028-014 file protects Rutalia

If the AEPD opened an investigation arising from that breach tomorrow, Rutalia could provide, within twenty-four hours:

Document What it proves
Notification NOT-AEPD-2028-00417 with a justified time of awareness Compliance with Art. 33 on time
Technical timeline with timestamps and chain of custody Rigour of the analysis and reliability of what was notified
Communication to employees and to the three customer segments Compliance with Art. 34
Post-incident report with root cause and metrics Diligence and capacity to learn
Plan A-01…A-12 with owner, deadline, cost and verification of closure That the corrective measures were genuinely carried out
Backup verification reports and the drill of 20/10/2028 Compliance with Art. 32(1)(c)
Report to the police and the decision not to pay the ransom Diligent and consistent conduct
Minutes of the committee that approved the plan and the budget Senior management involvement

None of those documents can be fabricated afterwards. And together they change the question in the case file: from «was this company negligent?» to «what more could it reasonably have done?». That is, in practical terms, the function of compliance.


  1. Automation: from the annual snapshot to continuous compliance

The structural problem with everything above is that it produces snapshots: an audit in January says how you were in January. Between snapshots, the real state degrades without anyone seeing it: a computer loses its EDR agent, a firewall rule is left open, a backup stops being verified, a supplier's access stays live.

Continuous compliance consists of checking controls as often as they can fail, not as often as the auditor visits.

Annual snapshot Continuous compliance
Frequency Once a year Daily or weekly
Effort per measurement High (hours) Almost nil after the initial investment
Detection of degradation Up to 12 months later Hours
Evidence Built by hand for the occasion Generated automatically and dated
Effect on the team A peak of work and stress An invisible routine

The verification and sealing script

This is the result of opportunity for improvement OM-01. It verifies five controls, produces a dated report and seals it with a hash, so that the evidence can be verified later.

#!/usr/bin/env python3
"""
verifica_controles.py - Continuous checking of five controls and generation
of sealed evidence.

Usage:
    python3 verifica_controles.py --output /evidencias/2029/T3/automatico/

Runs weekly from bastion01. Produces:
  - informe_YYYYMMDD.json   structured result
  - informe_YYYYMMDD.md     human-readable report
  - informe_YYYYMMDD.sha256 integrity seal for both

The seal is not cryptography for decoration: it turns an editable file into
evidence whose subsequent alteration can be detected (see 02-05).
"""
import json
import hashlib
import argparse
import subprocess
from datetime import date, datetime, timezone
from pathlib import Path

THRESHOLDS = {
    "min_mfa_coverage": 100.0,              # % of privileged accounts with MFA
    "max_days_without_backup_check": 100,   # policy: quarterly verification
    "max_days_critical_patch": 7,           # POL-RUT-10
    "video_retention_days": 30,             # LOPDGDD art. 22.3
    "standing_third_party_access": 0,       # POL-RUT-03 sec. 6.1
}


def run(cmd):
    """Runs a check and returns (success, output). Does not raise: an error
    in the check is itself a piece of data for the report."""
    try:
        r = subprocess.run(cmd, shell=True, capture_output=True,
                           text=True, timeout=120)
        return r.returncode == 0, r.stdout.strip() or r.stderr.strip()
    except subprocess.TimeoutExpired:
        return False, "TIMED OUT"


# --- Control 1: MFA coverage on privileged accounts --------------------------
def check_mfa():
    ok, output = run(
        "/usr/local/bin/consulta_mfa.sh --solo-privilegiadas --formato json")
    if not ok:
        return {"status": "CHECK_ERROR", "detail": output}
    data = json.loads(output)
    total, with_mfa = data["total"], data["con_mfa"]
    coverage = round(100.0 * with_mfa / total, 2) if total else 0.0
    return {
        "status": "COMPLIANT" if coverage >= THRESHOLDS["min_mfa_coverage"]
                  else "NON_COMPLIANT",
        "measured": coverage,
        "threshold": THRESHOLDS["min_mfa_coverage"],
        "detail": f"{with_mfa} of {total} privileged accounts with MFA",
        "without_mfa": data.get("cuentas_sin_mfa", []),
    }


# --- Control 2: age of the last restore verification -------------------------
def check_backups():
    record = Path("/var/log/restic/ultima_verificacion_restauracion.json")
    if not record.exists():
        return {"status": "NON_COMPLIANT",
                "detail": "There is no restore verification record"}
    data = json.loads(record.read_text())
    checked_on = datetime.fromisoformat(data["fecha"]).date()
    days = (date.today() - checked_on).days
    return {
        "status": "COMPLIANT" if days <= THRESHOLDS["max_days_without_backup_check"]
                  else "NON_COMPLIANT",
        "measured": days,
        "threshold": THRESHOLDS["max_days_without_backup_check"],
        "detail": (f"Last verification: {checked_on.isoformat()} ({days} days). "
                   f"Asset: {data.get('activo')}. "
                   f"Result: {data.get('resultado')}"),
    }


# --- Control 3: critical patches overdue --------------------------------------
def check_patching():
    ok, output = run(
        "/usr/local/bin/consulta_edr.sh --parches-criticos-pendientes --json")
    if not ok:
        return {"status": "CHECK_ERROR", "detail": output}
    computers = json.loads(output)
    overdue = [c for c in computers
               if c["dias_pendiente"] > THRESHOLDS["max_days_critical_patch"]]
    return {
        "status": "COMPLIANT" if not overdue else "NON_COMPLIANT",
        "measured": len(overdue),
        "threshold": 0,
        "detail": f"{len(overdue)} computers with a critical patch pending "
                  f"for more than {THRESHOLDS['max_days_critical_patch']} days",
        "computers": [c["nombre"] for c in overdue][:20],
    }


# --- Control 4: CCTV retention -------------------------------------------------
def check_video():
    ok, output = run(
        "/usr/local/bin/consulta_nvr.sh --grabacion-mas-antigua --dias")
    if not ok:
        return {"status": "CHECK_ERROR", "detail": output}
    days = int(output)
    return {
        "status": "COMPLIANT" if days <= THRESHOLDS["video_retention_days"]
                  else "NON_COMPLIANT",
        "measured": days,
        "threshold": THRESHOLDS["video_retention_days"],
        "detail": f"Oldest recording: {days} days. "
                  f"Legal limit: {THRESHOLDS['video_retention_days']} days "
                  f"(LOPDGDD art. 22.3)",
    }


# --- Control 5: standing third-party access -----------------------------------
def check_third_parties():
    ok, output = run(
        "/usr/local/bin/lista_cuentas_ext.sh --habilitadas --sin-caducidad")
    if not ok:
        return {"status": "CHECK_ERROR", "detail": output}
    accounts = [a for a in output.splitlines() if a.strip()]
    return {
        "status": "COMPLIANT" if not accounts else "NON_COMPLIANT",
        "measured": len(accounts),
        "threshold": THRESHOLDS["standing_third_party_access"],
        "detail": "Third-party accounts enabled with no expiry date",
        "accounts": accounts,
    }


CONTROLS = [
    ("A.8.05 / CIS 6", "MFA on privileged accounts", check_mfa),
    ("A.8.13 / CIS 11", "Backup restore verification", check_backups),
    ("A.8.08 / CIS 7", "Patching of critical vulnerabilities", check_patching),
    ("GDPR art.5.1.e", "CCTV retention", check_video),
    ("A.5.19 / CIS 15", "Third-party access with no expiry", check_third_parties),
]


def main():
    p = argparse.ArgumentParser()
    p.add_argument("--output", required=True)
    args = p.parse_args()

    target = Path(args.output)
    target.mkdir(parents=True, exist_ok=True)
    stamp = date.today().strftime("%Y%m%d")

    moment = datetime.now(timezone.utc).isoformat()
    results = []
    for reference, name, function in CONTROLS:
        r = function()
        r.update({"control": reference, "name": name})
        results.append(r)

    report = {
        "organisation": "Rutalia Logistica, S.L.",
        "generated": moment,
        "generated_by": "verifica_controles.py v1.2",
        "system": subprocess.getoutput("hostname -f"),
        "results": results,
        "summary": {
            "total": len(results),
            "compliant": sum(1 for r in results if r["status"] == "COMPLIANT"),
            "non_compliant": sum(1 for r in results if r["status"] == "NON_COMPLIANT"),
            "errors": sum(1 for r in results if r["status"] == "CHECK_ERROR"),
        },
    }

    json_path = target / f"informe_{stamp}.json"
    md_path = target / f"informe_{stamp}.md"
    json_path.write_text(json.dumps(report, indent=2, ensure_ascii=False))

    # Human-readable report: what is shown to the auditor.
    lines = [
        "# Automatic control verification",
        "",
        f"**Organisation:** {report['organisation']}  ",
        f"**Generated:** {moment}  ",
        f"**System:** {report['system']}  ",
        f"**Tool:** {report['generated_by']}",
        "",
        "| Control | Description | Status | Measured | Threshold |",
        "|---|---|---|---|---|",
    ]
    for r in results:
        label = {"COMPLIANT": "OK", "NON_COMPLIANT": "**NON-COMPLIANT**",
                 "CHECK_ERROR": "ERROR"}[r["status"]]
        lines.append(f"| {r['control']} | {r['name']} | {label} | "
                     f"{r.get('measured', '-')} | {r.get('threshold', '-')} |")
    lines += ["", "## Detail", ""]
    for r in results:
        lines += [f"### {r['control']} - {r['name']}", "",
                  f"- Status: **{r['status']}**",
                  f"- {r.get('detail', '')}", ""]
        for key in ("without_mfa", "computers", "accounts"):
            if r.get(key):
                lines.append(f"- {key}: {', '.join(map(str, r[key]))}")
                lines.append("")
    md_path.write_text("\n".join(lines))

    # Sealing: a hash of both files. It turns the report into verifiable
    # evidence. The seal file is kept separately and, in a more mature
    # environment, is signed or sent to an external logging system.
    seals = []
    for path in (json_path, md_path):
        h = hashlib.sha256(path.read_bytes()).hexdigest()
        seals.append(f"{h}  {path.name}")
    (target / f"informe_{stamp}.sha256").write_text("\n".join(seals) + "\n")

    print("\n".join(lines[:12]))
    print(f"\nEvidence generated in {target}")
    print(f"Seal: {target / f'informe_{stamp}.sha256'}")

    # Non-zero exit code if anything is non-compliant: that way monitoring
    # treats a degraded control the same way it treats a full disk.
    raise SystemExit(1 if report["summary"]["non_compliant"] else 0)


if __name__ == "__main__":
    main()

The four decisions that make this script useful, and that can be transferred to any other:

  1. CHECK_ERROR is a different status from NON_COMPLIANT. If the query fails, you cannot say whether the control is right or wrong: you say it could not be checked. Confusing the two produces false positives that destroy the credibility of the report within three weeks.
  2. Each control declares its threshold and its regulatory source. Video retention is not set at 30 days for no reason: it is because of Article 22.3 of the LOPDGDD, and the report says so. That turns technical output into evidence of compliance.
  3. It is sealed with a hash. An editable report is not evidence; a report whose hash has been recorded is, because any later alteration is detected. It is the direct application of 02-05 to the field of compliance.
  4. It returns a non-zero exit code. A degraded control comes in through the same channel as any operational alert. It is the only way for someone to find out on the same day and not eleven months later.

And one consequence worth seeing: with this script running every week, the auditor's question —«show me the MFA coverage for the second quarter»— is answered with thirteen dated, sealed reports, not with a screenshot taken that morning. That is no longer level 2 evidence: it is level 3.

The next step —turning these checks into indicators with trends, integrating them into a dashboard and using them to steer the programme— is the subject of 08-04. Here the idea is enough: compliance stops being an annual event and becomes an observable state.


Common Mistakes and Tips

Mistake 1: confusing «we do it» with «I can prove it». It is the mistake that structures the whole lesson. Tip: go through your list of controls and, for each one, write down the name of the specific file that proves it. The ones left blank are your work for next quarter.

Mistake 2: fabricating evidence after the event. It turns a minor non-conformity into an integrity problem, and before a regulator into something much worse. Tip: document the failure, the correction, the cause and the corrective action. A system that detects its own failures is worth more to an auditor than flawless evidence.

Mistake 3: hiring an external audit without having assessed yourself. It is paying €3,000 for a list of things you already knew. Tip: do the internal gap analysis first; then hire someone to validate it and for the areas where you have no expertise of your own.

Mistake 4: declaring controls in the SoA as «implemented» when they are half done. The auditor will check and turn it into a finding. Tip: declare «partial» with the planned action and the date. It is a much stronger position.

Mistake 5: letting everyone talk to the auditor. It generates contradictions and false findings. Tip: designated contacts by subject, a single escort and a rehearsal beforehand.

Mistake 6: closing findings with the correction and no corrective action. The finding comes back the following year, and then it is worse: it is a repeat failure. Tip: require a cause analysis for all of them, even if it is only three lines long.

Mistake 7: having the closure of a finding verified by the same person who carried it out. That is not verification, it is self-declaration. Tip: have someone else verify it, and record it in the committee minutes.

Mistake 8: pursuing certification without a management system. You pay to build in a rush something that is abandoned eighteen months later. Tip: apply the criteria in section 14 and check whether the customer accepts an adaptation plan.

Mistake 9: not preparing the evidence repository until the notice arrives. Fifteen days are not enough to reconstruct a year. Tip: the folder per quarter, the index with owners and dates, and the rule of saving each report at the moment it is produced, not afterwards.

Tip 10: audit yourself before the customer audits you. AI-2029-01 was carried out in January precisely for that reason, and that is why Alventa's visit in March found three major non-conformities already being closed rather than three surprises.

Tip 11: automate five controls, not fifty. Five weekly checks that are sustained are worth more than a total automation project that is never finished. And choose the five that degrade fastest.


Exercises

Exercise 1 — Classifying findings and proposing how to handle them

A certification auditor presents these six findings at the closing meeting of a company similar to Rutalia. For each one: (a) classify it as a major or minor non-conformity, an observation or an opportunity for improvement, giving your reasons; (b) propose the correction; (c) propose the corrective action on the cause; (d) state how you would verify its effectiveness.

  1. «The organisation has not carried out the management review required by clause 9.3 in the last fourteen months.»
  2. «Of a sample of 8 laptops, 1 does not have disk encryption enabled.»
  3. «The exceptions register contains 3 exceptions whose expiry date passed more than 6 months ago and which are still marked as in force.»
  4. «The statement of applicability excludes control A.8.23 (web filtering) with the justification "not applicable owing to the size of the organisation".»
  5. «The incident management procedure has not been tested since its approval 18 months ago, even though the procedure itself sets six-monthly tests.»
  6. «Backups are carried out correctly and verified quarterly; it is suggested that automatic integrity verification be added by comparison with a hash manifest.»

Solution

# Classification Justification Correction Corrective action Verification
1 MAJOR It is a mandatory requirement of the standard (9.3), not an Annex A control, and its total absence means senior management is not overseeing the system. Systemic failure Convene and hold the management review with all the required inputs, and take minutes Add the review to the annual governance calendar, as a fixed item at the last committee meeting of the year, with the clause 9.3 inputs as a pre-set agenda Minutes of the next review, on time, with all inputs covered
2 MINOR One-off failure: 1 out of 8. It does not show a failure of the system, unless a wider review revealed more cases Encrypt the laptop; check the rest of the estate Automatic alert when a computer appears unencrypted in the EDR report; block enrolment of any computer without verified encryption Estate report at the next committee: target, 100 %
3 MINOR, at risk of being raised Three exceptions that have expired and are marked as in force mean the exception review process is not carried out. If the auditor finds there is no documented review at all, it may be raised to major Review all three: close, extend formally or accept the risk in writing Automatic alert 30 days before each exception expires; a fixed item with the list at the quarterly committee Next committee: zero expired exceptions left untreated
4 MAJOR The justification is invalid: a control is not excluded because of the size of the organisation, but because of genuine inapplicability or the outcome of the risk analysis. An SoA with unjustified exclusions invalidates the foundation of the system Rewrite the justification: either the control is applicable (and therefore not implemented, with a plan) or its inapplicability is justified by the risk analysis Review all exclusions in the SoA on the same basis; link each one to the risk report Full review of the SoA by the committee, with minutes
5 MINOR (close to major) A failure to comply with what the organisation itself established. It is particularly serious because it affects response capability, but it is a failure of execution, not of design Run a tabletop exercise and document it Schedule the exercises in the annual calendar with an owner and a date; include completion in the committee's follow-up dashboard Exercise report and scheduling of the next two
6 Opportunity for improvement The control works and is evidenced; the recommendation goes beyond the requirement — Voluntary: implement comparison with a hash manifest —

Exercise 2 — Designing the evidence for three controls

For each of these three Rutalia controls, define: (a) what specific evidence would prove it; (b) how often it is generated; (c) who is responsible; (d) whether it can be automated and how; (e) what an auditor would ask in trying to dismantle it.

  1. «Fleet tablets are encrypted and lock after three failed attempts.» (POL-RUT-06)
  2. «No supplier has standing access to the systems.» (POL-RUT-03, sec. 6.1)
  3. «All staff have accepted the body of policies, including staff without a computer workstation.» (POL-RUT-02)

Solution

1. Tablet encryption and locking

  • (a) Evidence: an export of the MDM compliance report for the 60 tablets, showing for each device the encryption status, the policy applied (MDM-FLOTA-v4) and the configured number of attempts. Plus an export of the policy itself.
  • (b) Frequency: monthly.
  • (c) Owner: D. Salas.
  • (d) Automatable: yes, completely. A query to the MDM's application programming interface, and a dated, sealed report.
  • (e) How an auditor would try to dismantle it: «This report says 60 devices. How many tablets does the fleet actually have?» If the inventory says 62 because there were two recent additions, the control has a 3 % gap. Coverage evidence is always checked against the inventory, and that is where the level 1 in Rutalia's gap analysis falls down.

2. No supplier with standing access

  • (a) Evidence: three mutually reinforcing sources. (i) A list of ext-* accounts with their status and expiry date; (ii) an export of the nftables rule set showing there are no permanent rules from external sources; (iii) the quarterly log of third-party access with tickets, duration and recorded sessions.
  • (b) Frequency: the technical check, weekly (it is in the section 17 script); the review with minutes, quarterly.
  • (c) Owner: D. Salas for the technical part; L. Méndez for the review.
  • (d) Automatable: yes, it is control 5 in the script.
  • (e) How an auditor would try to dismantle it: «Show me the complete firewall rules, not just the ones affecting ext-* accounts. Is there any active site-to-site VPN? Any remote access tool installed on a server?» A disabled account does not prevent a tunnel opened by some other route. That is why the evidence needs all three sources and not just one.

3. Acceptance of the body of policies by all staff

  • (a) Evidence: REG-RUT-03 with one row per person and document: name, username, document, version, mechanism and a reference to the proof (the platform identifier or the scan of the signed paper). Plus the coverage calculation against the actual workforce.
  • (b) Frequency: continuous for joiners; annual for re-acceptance.
  • (c) Owner: HR.
  • (d) Automatable: partly. The platform part, yes; the paper part for the 105 employees without a computer workstation requires scanning and indexing. The coverage calculation can be fully automated, and it is what has the most value.
  • (e) How an auditor would try to dismantle it: they will not look at the spreadsheet. They will ask a driver in the warehouse: «do you know whether you can use your personal mobile to send photos of delivery notes?». If the driver does not know, the documentary evidence is contradicted by reality. And that is exactly why POL-RUT-06 had to incorporate the case of the messaging group: a policy that 60 % of the workforce does not know about is not implemented, however many signatures there are.

Exercise 3 — Responding to a formal request

On 12 September 2029, Rutalia receives a formal request for information from the AEPD arising from a complaint by a former employee, msoria, who alleges that: (a) her geolocation data was processed without prior information; (b) she requested access to her data in June 2029 and received no reply; and (c) her data is still held in the company's systems two years after she left.

The internal reality is this: the Article 90 information was hand-delivered on 25 April 2029, against signature, but msoria left in 2027 and therefore never received it; the access request came in through the website's general inbox on 14 June and nobody passed it on to the DPO; and employment data is retained for the limitation periods, with tax documentation kept for ten years.

(a) List the first six internal actions, in order. (b) For each of the three allegations, state whether it is well founded and what documentation you would provide. (c) Point out the two internal findings this formal request brings to light, with their corrective action. (d) Which criterion in Article 83(2) GDPR can Rutalia still influence at this stage, and how?


Solution

(a) The first six actions

# Action Justification
1 Alert the legal advisers and the DPO the same day, and designate Laura as the single point of contact No response to an authority goes out without legal validation
2 Record the date of receipt and calculate the response deadline It is an administrative deadline; letting it run out through carelessness is the worst possible mistake
3 Block the erasure of any data or record relating to msoria, including the application of the retention policy Once there is an investigation, nothing is deleted
4 Reconstruct the file: leaving date, processing activities she appeared in, information provided at the time, the trail of the June request, applicable retention periods It is what is going to be provided
5 Locate the 14 June request in the website's general inbox and establish what happened to it It is the hardest allegation to rebut and you need to know it in detail
6 Deal with the access request immediately, even though it is late, and communicate this Remedying the non-compliance before replying is a mitigating measure that counts in your favour

(b) The three allegations

Allegation Well founded? Documentation to provide
(a) Geolocation without prior information Probably well founded. The Article 90 information was provided on 25/4/2029, but msoria left in 2027: she never received it. The decisive question is what information existed while she worked there, and everything suggests there was none. Rutalia cannot rely on information given after the employment relationship ended Provide, honestly: the 2029 information documentation, stating expressly that it post-dates her departure; EIPD-2029-01; and the finding that there is no record of documented information before that. Trying to pass off the 2029 information as prior information would be the worst thing Rutalia could do
(b) Access request not dealt with Well founded. It came in on 14/6 through a company channel and the one-month deadline expired on 14/7 without a reply. The fact that the channel was the general inbox is irrelevant: the deadline runs from receipt through any channel Provide: PRO-RUT-08, the trail of the request, acknowledgement of the failure, the reply already issued and the corrective action implemented
(c) Retention of data two years after leaving Not well founded, provided it is documented. Retaining employment data for the limitation periods is lawful, and for documentation relevant to tax and social security contributions the period is longer. The GDPR does not require the erasure of what another law requires to be retained Provide: rat.csv with the T-01 periods and their legal basis; the retention policy; and proof that the data is blocked in accordance with Article 32 of the LOPDGDD, that is, set aside and not subject to ordinary processing

(c) The two internal findings

Finding Corrective action
The channel through which requests come in is not connected to the rights procedure. A request can come in through the website, the Seville warehouse or a letter, and not reach the DPO Instruction to all staff and for the generic inboxes: any communication that mentions personal data, rights or privacy is forwarded the same day to [email protected]. An automatic forwarding rule on the website's general inbox. Dated entry log in REG-RUT-14. Verification: quarterly test sending a simulated request through each channel and measuring the time until it is logged
There is no evidence of information on geolocation prior to 2029. The processing had been running for years without documented information Already corrected for current staff (information of 25/4/2029 with signature). Additional action: check whether other processing activities are running without documented information —there is at least one, CCTV—, and document the real start date of each processing activity in the RoPA. Verification: review of the RoPA by the DPO

(d) The criterion Rutalia can still influence

The degree of cooperation with the authority (Art. 83(2)(f)) and, to a lesser extent, the action taken to mitigate the damage (Art. 83(2)(c)).

What happened in 2027 can no longer be changed. What is entirely in Rutalia's hands from 12 September 2029 onwards is: replying on time and in full; clearly acknowledging what is well founded instead of defending the indefensible; dealing with the access request immediately even though it is late; providing the corrective actions already implemented with their dates; and showing that there is a programme —RoPA, DPIA, policies, rights procedure, internal audit with its findings— that has not been improvised for this case.

That is, in a sentence, the practical conclusion of the lesson: the work of the previous nine months is what turns a formal request into a manageable procedure rather than a crisis.


Conclusion

You have closed the circle. And the circle closes on a two-word request that sums up the whole module: show me.

You know how to measure the distance between saying and proving, with its four levels, and you know that the jump from level 0 to level 2 —from assertion to evidence— is almost always free, because it consists of keeping what is already produced. And you know why it matters beyond passing an exam: evidence is proof of diligence, and when something goes wrong, it is what separates «negligence» from «demonstrated diligence».

You can tell apart the six assessments and what each one answers: the free and undervalued self-assessment, the internal audit that is both a requirement and a discipline, the customer's audit that arrives with fifteen days' notice and decides a contract, third-party certification, the pentest that is not a compliance audit, and the regulatory assessment, which is the only one that answers the legal question.

You know what evidence is —date, source, integrity and relationship to the control— and what it is not, starting with the licence invoice, which proves a purchase and not a control. You have the repository organised by control and not by subject, with its index that doubles as a calendar, and the one-minute rule to know whether it is well built. And you have the five pieces of evidence that are always requested: MFA coverage, restore verification, access review, patching status and policy acceptance.

You also know what is never done: fabricating evidence after the event. It is detected by cross-checking sources, it turns a minor non-conformity into an integrity problem, it changes in nature before a regulator, and above all it hides a risk nobody has looked at. And you know what is done instead, which is better than perfect evidence: documenting the failure, the correction, the cause and the corrective action, because that shows there is a system that detects its own failures.

You have carried out a complete gap analysis, with its five-level scale that distinguishes «we don't do it» from «we do it but I can't prove it», and with the question that changes everything: not «do you do access reviews?» but «show me the last one». Rutalia's result —2.6 out of 4— teaches three things that recur in almost every technical SME: the two controls at level 4 are the two where it had already hurt; the three controls at level 1 are not technical but management controls; and the only level 0, the software inventory, is the one that accumulates the most silent risk, because it makes it impossible to answer «do I have it?» on the day the next ubiquitous vulnerability appears.

You know how to turn that analysis into a plan: priority by obligation, then by risk reduction and only then by effort —which is why the supplier programme comes before web filtering—, verification as well as a deadline for every action, and approval in committee, without which the plan always loses out to day-to-day operations. That plan is the raw material for the master plan in 08-05.

You know how to prepare for an audit: scope in writing, an honest statement of applicability in which «partial with a date» is stronger than a half-done «implemented», logistics, a single escort, a log of what is requested, and the five rules for answering —answer what you are asked, say you do not know if you do not know, do not argue, do not speculate about other areas, and accompany each shortcoming with its planned action—. And you have the two-hour rehearsal that, at Rutalia, uncovered three problems that would not have come to light any other way.

You know what happens during the audit and why sampling decides everything: nobody reviews all 180 joiners, they review three, and if one fails they extrapolate. You can distinguish a major non-conformity from a minor one, an observation and an opportunity for improvement, and you know that several minor ones in the same control are raised to major because they stop being a one-off failure and become a symptom. And you respond to a finding with its four components, without leaving out the two everyone leaves out: cause analysis and corrective action, because without them the finding comes back next year as a repeat; with verification carried out by someone other than whoever did the work.

You have the ten findings of AI-2029-01, and their central lesson: Rutalia's three major non-conformities were not technical. The body of policies, the record of processing activities and supplier management. A company with EDR, segmentation, verified immutable backups and a response plan tested in a real incident would have failed a certification on three governance failings. And NC-07 as the most instructive of all: notifying the AEPD with fourteen hours to spare because somebody remembered is not a control; the finding does not say the notification was late, it says there was no mechanism. Auditing systems rather than results is precisely that difference. Six of the ten closed by 30 June: that, documented, is the best evidence Rutalia can show anyone.

You know the complete certification cycle, with its two requirements that sink projects —internal audit and management review before stage 2—, and its real costs: around €69,000 over three years for an SME of 180 people, of which 40 % is the team's own time that no offer includes. And you have the four cases in which it is worth it and the five in which it is not, with the honest alternative that answers 80 % of questionnaires at a fraction of the cost. You know how to solve the independence problem with an outsourced internal auditor —who can audit, but not if they implemented— and you know how to build an annual programme that covers the whole scope in three years and returns sooner to what failed.

You know what happens when a regulator acts, and you have seen the list of what is requested in a formal request after a breach: the nine points are exactly what you have built in this module. With its seven rules of conduct, headed by two that admit no nuance: alert your legal advisers and your DPO before writing a single line, and do not generate or modify documentation after the event. And you know why the INC-2028-014 file protects Rutalia: eight documents that cannot be fabricated afterwards and that, together, change the question in the case from «was it negligent?» to «what more could it reasonably have done?».

And you have taken the last step, the one that makes everything above sustainable: from the annual snapshot to an observable state. Five controls verified every week, with their threshold and regulatory source declared, with CHECK_ERROR distinct from NON_COMPLIANT, sealed with a cryptographic hash that turns them into verifiable evidence, and returning a non-zero exit code so that a degraded control comes in through the same channel as a full disk. Thirteen dated reports instead of a screenshot taken on the morning of the visit.


And with this, Module 6 comes to a close, and with it the part of the course that looks inwards and backwards.

You arrived here knowing how to defend, test, respond and recover. You leave knowing how to prove it: with a map of seventeen obligations that says what the law requires of you, who is accountable and by when (06-01); with fourteen approved policies, a committee that decides and minutes that prove it, and with the strict limits on monitoring those who work for you (06-02); with a record of eleven processing activities, an impact assessment for 60 trucks, a rights procedure that starts at any door in the company and a breach notification that made it by fourteen hours (06-03); with an inventory of seventeen third parties, six of them non-compliant, and the ERP supplier's standing access turned into four-hour windows with recorded, sealed sessions, which finally closes hypothesis H5 (06-04); and, here, with the evidence that turns everything above into something that can be shown.

Rutalia entered January 2029 as a secure company that was not compliant. It leaves the module with three major non-conformities closed, the Alventa contract renewed, the ENS declaration of conformity under way for the CPAA, a programme that audits itself and a managing director who chairs the committee that approved all of this. It is still not certified, and that decision —taken with the figures on the table and with written conditions for revisiting it— is as much a part of the programme as everything else.

But notice where everything you have just built is looking. The obligations map records rules that already exist. The policies govern technologies you already use. The record of processing activities describes data you already process. The audit checks controls you have already implemented. Compliance looks at the present and the past: it certifies that what has been done has been done properly.

And meanwhile, the ground is shifting. Generative artificial intelligence is already inside Rutalia —POL-RUT-14 exists precisely because someone was going to paste the customer portfolio into a public tool— and it is also on the other side, writing impersonation emails indistinguishable from legitimate ones and cloning Andrés Vidal's voice to ask Nuria Campos for a bank transfer. The fourteen A006 sensors are only the first generation of connected devices that are going to multiply across three warehouses and sixty trucks. And the encryption that protects the immutable backups, communications with customers and the keys held on paper rests on mathematical problems that a sufficiently large quantum computer would solve, with the uncomfortable consequence that data exfiltrated today can be decrypted tomorrow.

That is what comes in Module 7. You will start with Artificial Intelligence and Cybersecurity, where AI appears in its three simultaneous roles: as a defensive tool, as the attacker's weapon and as a new attack surface that has to be protected. Then Blockchain and Security, the Internet of Things —where the A006 sensors will stop being a documented exception and become a risk category in their own right— and Quantum Computing and Post-Quantum Cryptography, which is the only threat in this course that requires decisions to be taken today about something that will happen years from now.

You now know how to build the defence, test it, respond when it fails, recover when it falls completely and prove to whoever asks that all of it is real. Time to look ahead, because the ground you have just secured is shifting beneath your feet.

© Copyright 2026. All rights reserved