Machine Learning pathway increased my salary by 40%
HR Data Governance, Privacy and Cybersecurity
HR holds the most sensitive data in the enterprise and has historically been its least defended. Automation increases both the value of that data and the number of places it flows.
This chapter builds the data foundation: classification and handling rules, a lawful basis per purpose, retention that executes itself, resident rights that are answerable within statutory time, and the security architecture specific to agentic systems — least privilege, scoped credentials, protected fields and the audit trail that proves the controls operated. It closes on third parties, because most HR data breaches arrive through a vendor.
What this covers
- Who this is for
- HR data owners, privacy officers, security architects, HRIS administrators and engineers connecting HR systems to models, tools and vendors.
- What it assumes
- Chapter 12 for platform controls, Chapter 27 for obligations, Chapter 6 for retrieval architecture and Chapter 24 for payroll sensitivity.
- What you will be able to do
- Classify HR data with handling rules, establish purpose-based lawful bases, automate retention and rights, design least-privilege agent access, and assess a vendor's data handling credibly.
- Reading time
- About 25 minutes, including the knowledge check and question bank.
Classification and handling rules
Four classes are enough. Public: job adverts, policies intended for publication. Internal: org charts, most process documentation. Confidential: salary, performance, contracts, bank details. Restricted: health, disability, family circumstance, investigations, biometrics, and anything from which a protected characteristic can be inferred.
Each class carries handling rules: who may read, whether it may enter a model, whether it may leave the region, how long it is kept and how it is deleted. The rules must be enforced technically, not documented. A classification without an enforcement point is a label nobody follows.
The specific question for agentic systems is which classes may be sent to which model providers. A defensible default is that restricted data does not enter a third-party model at all, confidential data enters only under a contract with no training on inputs and a defined region, and everything is logged by class. Exceptions require an approved decision, not an engineering shortcut.
- Four classes: public, internal, confidential, restricted.
- Rules cover read access, model eligibility, residency, retention and deletion.
- Enforce class rules technically; labels alone are not controls.
- Restricted data should not enter third-party models at all.
- Log which class of data reached which provider.
Lawful basis, purpose and minimisation
Every processing activity needs a lawful basis, and in employment the practical options are narrow: contract necessity, legal obligation, or legitimate interest with a documented balancing test. Consent is rarely valid in an employment relationship because of the power imbalance, which is why 'employees consented' is a weak defence.
Purpose limitation is the discipline that prevents drift. Data collected for payroll administration is not thereby available for an attrition model; a new purpose needs its own basis and, where required, an impact assessment. Record the purpose against the dataset and review it when a new use is proposed.
Minimisation then becomes practical rather than aspirational: does this agent need the whole record, or five fields? Can it read a projection rather than the table? Can the answer be computed without the model seeing the data at all? Every reduction in data reaching a model reduces both exposure and the volume that must be governed.
- Choose among contract, legal obligation or documented legitimate interest.
- Consent is a weak basis in employment.
- Record purpose per dataset; new use means new basis.
- Give agents projections and minimum fields, not whole records.
- Compute where possible without exposing data to a model.
Retention and the deletion that actually happens
Retention schedules are easy to write and rarely executed. Records persist because nobody owns the job and because deletion is frightening. The result is indefinite accumulation of sensitive data, which is both a legal exposure and a discovery liability in litigation.
Define a retention rule per record type with a trigger: from last payment, from end of employment, from decision date. Automate deletion with an exception path for legal hold, and report what was deleted. Deletion must also cover derived copies — embeddings, vector indexes, caches, backups within their cycle, and exports. Vector stores are the most commonly forgotten, and they frequently contain the most sensitive text.
Rights requests depend on the same machinery. An access, correction or erasure request must be answerable within the statutory window across every store where the person's data exists, including the ones nobody remembers. The test is not whether the policy exists but whether a request can be completed in the time allowed without manual archaeology.
- Retention per record type with an explicit trigger event.
- Automate deletion, honour legal hold, report what was deleted.
- Include embeddings, indexes, caches, exports and backups.
- Test a rights request end-to-end against the clock.
- Indefinite retention is both exposure and litigation liability.
Security architecture for agentic HR
Every agent is an identity and must be treated as one: named, owned, with a purpose, a permission set, an expiry and a review cadence. Shared service accounts that several agents use make incident investigation impossible and are the single most common weakness in agentic estates.
Access should be least-privilege and read-mostly, with write access granted per tool and per action rather than per system. Credentials are short-lived and scoped to the acting subject. Secrets never appear in prompts, logs or code. And protected fields — health, disability, family circumstance, union membership, investigation records — should be blocked at the tool layer so that no prompt can retrieve them.
The audit trail is the control that makes the rest verifiable: who or what acted, on whose behalf, against which system, with what result. It must be append-only and separate from the agent's own logs, because an agent that writes its own audit record can be induced to write an incomplete one.
- Every agent is a named, owned identity with expiry and review.
- Least privilege, read-mostly, writes granted per tool and per action.
- Short-lived scoped credentials; no secrets in prompts or logs.
- Block protected fields at the tool layer, not in the prompt.
- Append-only audit separate from agent logs.
The realistic threat model
The dominant HR incident is not a sophisticated model attack. It is an over-permissive integration, a leaked document from a misconfigured store, a vendor breach, or an insider with legitimate access. Model-specific threats matter but come after these basics.
The model-specific risks that do apply are prompt injection through documents and emails the agent processes, and data exfiltration through tool calls. Both are mitigated by the same discipline: treat all retrieved content as untrusted input, never let retrieved text alter tool permissions, restrict egress to allow-listed destinations, and require confirmation for actions with external effect.
Insider risk deserves explicit design because HR staff legitimately access sensitive records. Break-glass access with logging, anomaly alerting on unusual record access, and separation of duties on case data reduce the opportunity without obstructing the work.
- Most incidents come from misconfiguration, vendors and insiders.
- Treat retrieved documents and emails as untrusted input.
- Retrieved text must never modify tool permissions.
- Allow-list egress destinations; confirm externally effecting actions.
- Break-glass access with logging and anomaly alerting for HR staff.
Third parties, contracts and model providers
Most HR data now passes through vendors: payroll processors, assessment platforms, engagement survey tools and model providers. Each is a processing relationship requiring a contract that specifies purpose, security, sub-processors, breach notification, deletion and audit rights.
Three clauses are consistently underspecified. Whether inputs may be used to train models — insist on no. Where processing occurs and whether data can be transferred — specify regions and mechanisms. What happens at termination — deletion within a defined period, with certification. Without all three, the contract does not describe the actual data flow.
Assess vendors against the same standard you apply internally: do they classify data, do they log access, can they produce an audit trail, and can they demonstrate deletion? A vendor who cannot answer those four questions in writing is not a processing partner; they are an unmanaged exposure.
- Every vendor is a processor needing purpose, security, sub-processor, breach and deletion terms.
- Insist on no training on your inputs.
- Specify processing regions and transfer mechanisms.
- Require certified deletion at termination.
- Four tests: classification, access logs, audit trail, demonstrable deletion.
Key takeaways
Classify and enforce, establish a basis per purpose, minimise what reaches a model, make deletion and rights executable, treat agents as identities with least privilege and protected-field blocking, keep an independent audit trail, and hold vendors to the same standard as your own estate.
Next: multi-agent security specifically — identity, delegation and trust between agents, where the failure modes are newer and less familiar.
- Classification with technical enforcement.
- Basis and purpose per dataset; minimise model exposure.
- Executable retention including embeddings and indexes.
- Agents as owned identities; protected fields blocked at the tool layer.
- Independent audit trail; vendor clauses that match reality.
- Next: multi-agent security and trust architecture.
Rights requests as an operational process
Access, correction, erasure and portability requests arrive without warning and carry a statutory clock. The difference between an organisation that handles them comfortably and one that struggles is almost entirely preparation: knowing where a person's data lives before someone asks.
Maintain a data map per employee: which systems, which fields, which derived stores, which vendors, and which retention rule applies. This is the artefact that converts a request from an investigation into a query, and it is also what a data-protection impact assessment requires to be meaningful.
Automate assembly and redaction, not judgement. The agent can gather the records, apply the redaction rules — other people's data, legally privileged material, references given in confidence — and produce a draft response for a human to review. It should not decide what is exempt, because exemption decisions are legal judgments.
Record the request, the response, the exemptions applied and the time taken. A log of completed requests is the evidence that the process exists, and the median time taken is the number to manage, because the statutory window is a cliff rather than a gradient.
- The clock is statutory and the only defence is preparation.
- Maintain a per-employee data map across systems and vendors.
- Automate gathering and redaction; never exemption decisions.
- Record requests, responses, exemptions and elapsed time.
- Manage the median time, not the average.
Incident response for HR data
A report sent to the wrong distribution list, a misconfigured file share, a vendor breach, a laptop stolen from a car: HR incidents are common, contain sensitive data and carry notification obligations measured in days.
The first hour determines the outcome. Identify what left, whose data it was, how many people are affected and whether the destination has been secured. A distribution list error is often recoverable within minutes by recall and confirmation; a public object store requires immediate takedown.
Notification decisions are legal, not technical. Where the incident is likely to result in a risk to individuals, regulators generally require notification within seventy-two hours and individuals without undue delay. The threshold is risk, not certainty, which is why the decision belongs with privacy counsel and should not be automated.
Learn from the pattern. Incidents cluster into a small number of causes — misdirected email, over-broad sharing permissions, unmanaged exports, vendor access — and each has a preventive control that is cheaper than the next incident. An organisation that records cause codes can address the top two and reduce frequency substantially.
- Identify scope and secure the destination in the first hour.
- Recall and confirmation are effective for misdirected email.
- Risk, not certainty, triggers notification.
- Notification decisions are legal and never automated.
- Cause codes reveal the two controls worth fixing.
Backups, archives and the data you forgot
Backups are designed for recovery and have an inconvenient property: they preserve data that should have been deleted. A retention policy that deletes from live systems but not from backups is incomplete, and the gap is frequently discovered during an erasure request or an audit.
Set a backup retention period that matches the legal requirement rather than the engineering convenience. If backups are kept for a year for recovery reasons, then the effective retention of every record is at least a year, and that must be stated accurately in the privacy notice.
Handle erasure pragmatically: remove from live systems and from the searchable restore path, and document that the record will age out of immutable backups on a stated date. Promising immediate deletion from an immutable archive is a commitment that cannot be met, and stating the truth is both lawful and credible.
Test restoration. An untested backup is a belief, and the moment of discovery is the moment it is needed. A quarterly restore of a sample record class confirms both that recovery works and that the retention rules behave as described.
- Backups preserve data that should have been deleted.
- Align backup retention with the legal requirement.
- Be accurate in the privacy notice about effective retention.
- Document when immutably archived data will age out.
- Test restoration quarterly; an untested backup is a belief.
Residency, transfers and the model question
Data residency constrains architecture more than any other requirement in multinational HR. Employee records in some jurisdictions must remain in-region, and that obligation extends to the model endpoint, the retrieval index and the logs — not only to the primary database.
Map the full path for each population: which system holds the record, which index serves retrieval, which model processes the prompt, where logs are written and where backups are stored. A single cross-border hop invalidates a residency claim, and the hop is usually in observability or in a vendor's processing region.
Where transfer is necessary, use a recognised mechanism and document the assessment. Standard contractual clauses and adequacy decisions cover many cases; none of them constitute a reason to transfer data that could simply be processed in-region.
Design for configuration, not forks. The same codebase with regional storage, index, model endpoint and keys serves every jurisdiction, and testing must demonstrate that no code path can reach outside its boundary. A fork solves the immediate constraint and creates a permanent divergence in governance.
- Residency binds the index, the model endpoint and the logs.
- Map every hop for each population.
- Observability and vendor processing regions are the usual leaks.
- Prefer in-region processing over transfer mechanisms where possible.
- Configure regions; never fork the codebase.
Assessing a vendor properly
Vendor security questionnaires are answered by sales engineers, completed from templates and reviewed by nobody with authority to reject. The result is a file of assurances and a residual risk that nobody has actually assessed.
Replace the questionnaire review with four verifiable tests. Request the current independent attestation and check its scope and date rather than its existence. Ask for a demonstration of deletion, not a description of the retention policy. Request the audit log format and confirm it contains what you need to investigate an incident. And ask what happens to your data if the contract ends, in writing, with a date.
Weight the answers by the data class involved. A vendor processing only rosters and job titles warrants less scrutiny than one processing health data, and treating every vendor identically consumes review capacity on the low-risk cases that should be spent on the high-risk ones.
Reassess annually and on material change. A vendor acquired by another company, migrating infrastructure or changing sub-processors has become a different risk from the one that was assessed, and the change is notified in a footer that nobody reads.
- Questionnaires are answered from templates; test instead.
- Check attestation scope and date, and demonstrate deletion.
- Review the audit log format against your investigation needs.
- Weight scrutiny by data class.
- Reassess on acquisition, migration or sub-processor change.
Access reviews
Access accumulates. A person changes role three times and retains the permissions of each, a project ends and its shared folder lives on, an agency engagement closes and its account stays active. None of these is a breach, and together they are how a breach becomes possible.
Review on two triggers: quarterly for privileged and sensitive access, and on every role change rather than only on joiners and leavers. The role-change review is the one most organisations omit and the one that produces the largest reduction.
Make the review cheap so that it happens. Send each manager a list of their team's current access with the role each permission supports, asking only for exceptions. A review requiring managers to reconstruct entitlements from scratch will be signed without reading, which is worse than no review because it records an assurance that is not true.
Measure the outcome: permissions removed, accounts closed, and the proportion of reviews completed on time. A quarterly review that removes nothing across a year is either evidence of excellent hygiene or, far more likely, of a process that generates signatures.
- Access accumulates across role changes and closed projects.
- Review quarterly for privileged access and on every role change.
- Ask managers for exceptions, not for a reconstruction.
- Record what was removed and what was closed.
- Reviews that remove nothing are probably not reading.
Logging design and its retention
Logging is the control that everything else depends on, and it is frequently designed for debugging rather than for accountability. The difference is whether a log answers who acted, on whose behalf, against which system, with what authorisation and what result.
Five fields make a log evidentiary: the correlation identifier linking a case across services, the acting identity including both the agent and the human on whose behalf it acted, the tool and action attempted, the arguments in a form that permits reconstruction without exposing protected values, and the outcome including refusals. Add the policy and model version for consequential actions.
Retention is a balance between investigation needs and data minimisation. Security and dispute relevance justify twelve months for consequential records, longer under hold; high-volume routine steps can be sampled. The mistake in both directions is common: three-day retention that makes an incident unexplainable, and indefinite retention of prompts containing employee data that nobody has justified.
Keep logs out of the agent's control. An agent that can write or amend its own audit record is not providing evidence, and the ability to influence its own record is a security property worth designing out rather than trusting.
- Design logs for accountability, not only debugging.
- Record correlation, acting identity, action, arguments and outcome.
- Attach policy and model version to consequential actions.
- Balance retention: months for consequential, sampled for routine.
- Logs must be outside the agent's write control.
5 questions to test the model
Which data class should not enter a third-party model at all?
Why is consent a weak lawful basis in employment?
Which store most often escapes deletion?
How should retrieved documents be treated by an agent?
Why must the audit trail be separate from agent logs?
Questions this page answers
Can HR data be processed outside the region?
How long can we keep unsuccessful applicant data?
What is a data protection impact assessment and when do we need one?
Do we need a works-council agreement to deploy an agent?
How do we handle a subject access request across many systems?
What about biometric data such as fingerprint attendance?
Should we allow model providers to retain prompts for abuse monitoring?
How do we secure a chatbot from prompt injection?
What is the right retention for interview recordings?
How do we monitor HR staff access without surveilling them?
Can we use employee data to fine-tune a model?
What does Classification and handling rules explain about HR Data Governance, Privacy and Cybersecurity?
What does Lawful basis, purpose and minimisation explain about HR Data Governance, Privacy and Cybersecurity?
What does Retention and the deletion that actually happens explain about HR Data Governance, Privacy and Cybersecurity?
What does Security architecture for agentic HR explain about HR Data Governance, Privacy and Cybersecurity?
What does The realistic threat model explain about HR Data Governance, Privacy and Cybersecurity?
What does Third parties, contracts and model providers explain about HR Data Governance, Privacy and Cybersecurity?
What does Key takeaways explain about HR Data Governance, Privacy and Cybersecurity?
What does Rights requests as an operational process explain about HR Data Governance, Privacy and Cybersecurity?
What does Incident response for HR data explain about HR Data Governance, Privacy and Cybersecurity?
What does Backups, archives and the data you forgot explain about HR Data Governance, Privacy and Cybersecurity?
What does Residency, transfers and the model question explain about HR Data Governance, Privacy and Cybersecurity?
What does Assessing a vendor properly explain about HR Data Governance, Privacy and Cybersecurity?
What does Access reviews explain about HR Data Governance, Privacy and Cybersecurity?
What does Logging design and its retention explain about HR Data Governance, Privacy and Cybersecurity?
Which risks or limitations apply to Lawful basis, purpose and minimisation in HR Data Governance, Privacy and Cybersecurity?
Which risks or limitations apply to The realistic threat model in HR Data Governance, Privacy and Cybersecurity?
Which risks or limitations apply to Key takeaways in HR Data Governance, Privacy and Cybersecurity?
Which risks or limitations apply to Incident response for HR data in HR Data Governance, Privacy and Cybersecurity?
Which risks or limitations apply to Residency, transfers and the model question in HR Data Governance, Privacy and Cybersecurity?
Which risks or limitations apply to Assessing a vendor properly in HR Data Governance, Privacy and Cybersecurity?
How is performance assessed for Access reviews in HR Data Governance, Privacy and Cybersecurity?
Sources and standards
- GDPR — Regulation (EU) 2016/679
Basis, purpose limitation, minimisation, retention and data subject rights.
- ISO/IEC 27001:2022 — information security management
Control framework for access, supplier and retention management.
- ISO/IEC 27701:2019 — privacy information management
Extends the security management system to privacy controls.
- NIST SP 800-53 — security and privacy controls
Access control, audit and media protection control families.
- OWASP Top 10 for Large Language Model Applications
Prompt injection, sensitive information disclosure and excessive agency.
- EDPB — Guidelines on automated decision-making and profiling
Interpretation of Article 22 and profiling obligations.
Continue through the chapters
Next: multi-agent security — identity, delegation and trust between agents.
Continue this lesson with a subscription
Multi-Agentic AI HR Tech Automations is part of the paid catalogue. You have read the free preview. A subscription opens the rest of this lesson, the classroom slides and the assessment questions.
- The full lesson for this topic and every other catalogue topic
- Every classroom slide deck and worked example
- All assessments, with a verifiable certificate on completion
The Free-To-Learn library stays open to everyone and is not affected by this.
