HR is handing AI agents the most sensitive data a company holds, salaries, health notes, disciplinary files and candidate records, and often the power to act on it. Recruiting agents screen CVs and message candidates, employee service agents answer policy and payroll questions, and platform agents in HR systems update records and run processes. Each one is a non-human identity reading personal data and, in many cases, influencing decisions that employment law treats as high risk. This guide covers the security and governance controls that are specific to HR agents: identity and access design in the HR system, untrusted candidate input, data leakage paths, the regulatory triggers for employment decisions, monitoring and rollout. It is written for HR technology owners, security architects, IAM teams and privacy leads. Platform hardening is covered in the platform guides linked below; this guide focuses on the agent layer.
Source note: legal and regulatory points on this page summarise the cited official texts and secondary analyses, with status checked on 11 November 2026. Confirm against the official text before relying on it.
Key takeaways
- Treat HR agents as privileged identities. An agent that can read compensation or medical absence data has more sensitive access than most administrators, so give it its own identity, a narrow role and an owner.
- CVs and candidate messages are untrusted input. OWASP lists a CV with hidden instructions that makes a screening model recommend an unqualified candidate as a prompt injection scenario; design for it.
- Employment decisions carry legal duties. The EU AI Act lists recruitment, promotion, termination, task allocation and performance monitoring as high-risk uses, and US state and city laws add notice, explanation and audit duties.
- Keep humans on consequential steps. Rejection, offer, pay change, termination and disciplinary actions need a named person who reviews the agent's output before it takes effect.
- Log for two audiences. Security needs to know what the agent touched; HR and legal need to show how a decision about a person was reached and challenged.
Where AI agents appear in HR
| Use case | Typical access | What can go wrong | Regulatory weight |
|---|---|---|---|
| Recruiting and screening agent | Applicant tracking system (ATS) records, CVs, assessments, email or messaging to candidates | Prompt injection through CVs, biased filtering, candidate data sent to the wrong person | High: recruitment and selection is high risk under the EU AI Act; NYC bias audit rules for automated tools |
| Interview scheduling and candidate chat | Calendars, contact details, application status | Exposure of other candidates' records, weak authentication of the chat back end | Medium: personal data, usually not a decision |
| Employee service agent (policy, benefits, payroll questions) | Policy documents, the employee's own record, case management | Oversharing another employee's data, wrong policy answers relied on | Medium: data protection, possible liability for wrong answers |
| Payroll and records agent in the HR system | Write access to worker records, pay elements, bank details | Unauthorised changes, payroll diversion, broken segregation of duties | High for fraud and accuracy; pay decisions may be consequential |
| Performance and workforce analytics agent | Reviews, objectives, productivity and activity data | Monitoring creep, inferences about protected characteristics | High: performance monitoring and task allocation are high risk under the EU AI Act |
HR platforms are building agent management into the system of record. Workday, for example, describes an Agent System of Record for onboarding its own and third-party agents, defining their roles and applying role-based access controls, with named agents including a Payroll Agent and a Policy Agent. Whatever the platform, the questions below stay the same. See the Workday Security Guide and SAP SuccessFactors Security.
Identity and access design for HR agents
The first design decision is whose authority the agent uses. An assistant that answers an employee's own questions should act with that employee's access and nothing more. An autonomous agent that processes many workers' records needs a dedicated non-human identity with a role you design.
- One identity per agent: never run an agent on an HR administrator's account or a shared integration user. In Workday terms, a dedicated integration system user (ISU) per integration is the established pattern; apply the same thinking to agents. See the Workday Integration System Users Guide.
- Constrain by population and field: limit the agent to the organisations, countries or worker types it serves, and exclude fields it does not need (medical, diversity, disciplinary, bank details).
- Split read from write: an agent that answers payroll questions should not be able to change pay elements. Put write actions behind a separate role, and where possible a separate agent, with human approval.
- Keep segregation of duties: the same agent should not both propose and approve a change, for example creating a new hire and setting their pay.
- Short-lived credentials: use the platform's OAuth or workload identity options rather than long-lived API keys in agent configuration; record every credential in the NHI inventory with an owner and expiry.
- Offboard agents too: when a pilot ends, disable the agent identity and revoke its tokens on the same day, as you would for a leaver. See the AI Agent Authorisation Guide.
Untrusted input: CVs, messages and documents
Recruiting is unusual because strangers supply most of the content the agent reads. OWASP's LLM01:2025 Prompt Injection entry describes two HR scenarios: a CV with hidden text (white on white) telling the screening system to recommend the candidate, and a CV with split instructions that combine to manipulate the evaluation. The same applies to cover letters, portfolio links, email replies and uploaded documents.
| Input | Risk | Control |
|---|---|---|
| CV and cover letter files | Hidden instructions, invisible text, instructions in metadata | Extract to plain text, strip hidden and zero-width content, flag documents whose extracted text differs sharply from rendered text |
| Candidate email and chat replies | Instructions to change status, reveal other candidates or send files | No tool that changes status or sends data may be triggered by candidate content alone; require recruiter confirmation |
| Links to portfolios and profiles | Fetched pages carrying instructions | Do not let screening agents browse candidate-supplied links, or isolate that step with no tool access |
| Employee questions to a service agent | Attempts to retrieve another employee's data | Enforce record-level access in the HR system, not in the prompt |
Treat the agent's output on a candidate as a recommendation that a recruiter reviews against the source documents, and test screening agents with seeded injection CVs before launch. See the Prompt Injection Guide.
Data leakage paths
- Over-broad retrieval: an employee service agent grounded on a shared HR drive will surface salary bands, investigation notes or redundancy plans if they sit in the indexed folders. Clean up permissions before indexing.
- Output to the wrong person: agents that draft candidate or employee emails can attach or quote another person's data. Restrict outbound recipients to the subject of the record and require review for attachments.
- Vendor data use and retention: the UK Information Commissioner's Office audit of AI recruitment tools (published 6 November 2024) made almost 300 recommendations, finding tools that inferred gender and ethnicity from names, allowed filtering by protected characteristics, and collected excessive data that some kept indefinitely. Put retention periods and training restrictions in the contract.
- Weak vendor security around the agent: the McHire default password flaw exposed records from an AI hiring platform through a default admin password and an insecure direct object reference, not through the AI. Assess the platform's administration and API security, not only the model.
- Logs as a data store: prompts and responses often contain the most sensitive fields; apply the same access control and retention to agent logs as to the HR record.
Payroll agents need extra care because changes to bank details are a known fraud route. See the Payroll Diversion Fraud Guide.
Regulatory triggers for employment decisions
Security teams do not own employment law, but they own controls that these laws assume exist: logs, human oversight, access restriction and notices. Status checked on 11 November 2026.
| Rule | What it says about HR agents | Status |
|---|---|---|
| EU AI Act, Annex III point 4 | High risk: AI for recruitment or selection (targeted job adverts, filtering applications, evaluating candidates) and for decisions on terms, promotion, termination, task allocation and monitoring or evaluating performance | Regulation (EU) 2026/1744 (Digital Omnibus on AI) entered into force on 27 July 2026 and moved Annex III obligations from 2 August 2026 to 2 December 2027 |
| EU AI Act, Article 26 | Deployers must follow instructions for use, assign human oversight to competent people, keep logs they control for at least six months, and inform workers' representatives and affected workers before using a high-risk system at work | Applies with the high-risk obligations |
| EU AI Act, Article 5(1)(f) | Prohibits AI that infers emotions of people in the workplace (with medical and safety exceptions) | Prohibitions apply from 2 February 2025 |
| GDPR and UK GDPR, Article 22 | Restricts solely automated decisions with legal or similarly significant effects; the ICO gives e-recruiting without human intervention as an example; safeguards include human intervention and the right to contest | In force; the UK rules are being amended by the Data (Use and Access) Act 2025, so check current ICO guidance |
| Colorado SB 26-189 | Replaces SB 24-205; covers automated decision-making technology that materially influences consequential decisions including employment: pre-use notice, explanation within 30 days of an adverse decision, human review on request, three-year records | Signed 14 May 2026; effective 1 January 2027; Attorney General enforcement |
| NYC Local Law 144 | Bias audit and candidate notice for automated employment decision tools used for NYC jobs | In force; see the NYC Automated Employment Decision Tools (AEDT) Law Guide |
The practical consequence: an agent that rejects candidates or changes pay without a human in the loop is the hardest design to defend in every jurisdiction above. See the EU AI Act High-Risk AI Systems Guide and EU AI Act Article 14 Guide.
Decision guidance: how much autonomy to allow
| Action | Recommended mode | Why |
|---|---|---|
| Answer policy questions from approved documents | Autonomous, with citations to the source policy | Low impact if the source set is controlled |
| Summarise a candidate or draft interview questions | Autonomous draft, recruiter uses it | No decision taken by the agent |
| Shortlist or reject candidates | Recommendation only; recruiter decides and records reason | High-risk use; Article 22 and state law triggers |
| Change pay, bank details or job data | Human approval per change, with segregation of duties | Fraud and accuracy risk |
| Performance ratings, warnings, termination | Not delegated; agent may only prepare information | Highest legal and human impact |
Small versus large organisations: a small employer using an ATS with built-in AI should focus on vendor due diligence, turning off features it cannot oversee, and keeping a human on every decision. A large employer building its own agents needs a dedicated agent identity model in the HR system, a review board covering HR, legal, privacy and security, and bias testing before and after launch.
How to implement
- Inventory: list every AI feature and agent touching HR data, including features switched on inside the ATS, HR system and service desk, with owner, identity, data and actions.
- Classify by decision impact: use the autonomy table above; anything touching recruitment outcomes, pay or performance goes to legal and privacy review and a data protection impact assessment.
- Design identities and roles: create dedicated agent identities, constrain by population and field, split read and write, and record credentials in the NHI inventory.
- Pilot in shadow mode: run the agent alongside the human process for one recruiting campaign or one country, compare outcomes, and test with seeded injection CVs and cross-employee data requests.
- Enable with approvals: turn on write actions only behind human approval, and publish candidate and worker notices where the rules require them.
- Roll back cleanly: keep the manual process documented and staffed; disabling the agent identity should return the workflow to humans without data loss.
- Review quarterly: access, bias test results, complaints and incidents.
Detection and measurement
Log each agent action with agent identity, acting user, worker or candidate record touched, fields read or changed, tool called and the human approver. Alert on:
- reads across many workers' records by an agent meant to serve one employee at a time;
- changes to bank details or pay elements by any agent identity;
- agent sessions requesting medical, diversity or disciplinary fields;
- candidate status changes with no recruiter action recorded;
- new AI features or agents appearing in the HR platform's integration or agent registry.
Metrics: percentage of HR agents with a dedicated identity and owner; percentage of consequential actions with a recorded human approver; number of agent reads of restricted fields per month; time to disable an agent identity; injection test pass rate before each release; number of candidate or employee challenges to agent-influenced decisions and their outcome.
Framework mapping
| Control area | NIST CSF 2.0 | NIST SP 800-53 Rev. 5 | Threat or standard reference |
|---|---|---|---|
| Agent identity and least privilege | PR.AA-01, PR.AA-05 | AC-3, AC-6 | OWASP ASI03 Identity and Privilege Abuse |
| Untrusted candidate input | PR.DS-10 | SI-10 | OWASP LLM01:2025; ATLAS AML.T0051.001 Indirect |
| Personal data processing | GV.OC-03, PR.DS-01 | PT-2, PT-3, RA-8 | GDPR Article 22; EU AI Act Article 26 |
| Data leakage | PR.DS-10 | AC-21 | ATLAS AML.T0057 LLM Data Leakage |
| Vendor platforms | GV.SC-07 | SA-9 | ICO AI recruitment audit recommendations |
| Logging and review | DE.CM-09 | AU-2, AU-6 | EU AI Act Article 26(6) log retention |
Common failure patterns
- Agent on an admin account: a pilot built on an HR administrator's credentials keeps that access when it moves to production.
- Prompt-based access control: telling the model "only discuss the user's own data" instead of enforcing it in the HR system.
- Rubber-stamp review: recruiters approve agent shortlists in bulk, so the human in the loop exists only on paper.
- Vendor features switched on by default: AI screening or ranking enabled in an ATS update with no impact assessment or notice.
- Insecure platform around the AI: default credentials and weak object-level authorisation, as in the McHire case, expose more data than any model attack.
- Forgotten pilots: agent identities and tokens left active after a trial ends.
Practitioner checklist
- Inventory every AI feature and agent with access to HR or candidate data.
- Give each agent a dedicated identity, owner and population- and field-limited role.
- Separate read and write; put pay, bank detail and status changes behind human approval.
- Sanitise CVs and documents and test screening agents with seeded injection samples.
- Enforce record-level access in the HR system, never in the prompt.
- Run a DPIA and legal review for any agent influencing hiring, pay or performance.
- Issue candidate and worker notices where EU, US state or city rules require them.
- Log agent actions with approver and keep logs at least six months where the EU AI Act applies.
- Write retention and training restrictions into AI vendor contracts.
- Disable agent identities and tokens the day a pilot ends.
Standards and references
- EUR-Lex: Regulation (EU) 2026/1744, Digital Omnibus on AI
- EU AI Act: Annex III, High-Risk AI Systems
- EU AI Act: Article 26, Obligations of Deployers
- ICO: Rights related to automated decision-making including profiling
- ICO: Intervention into AI recruitment tools
- OWASP: LLM01:2025 Prompt Injection
- Seyfarth Shaw: Colorado Enacts Artificial Intelligence Replacement Law
- Workday: The Agentic Wave, A New Era of Workforce Management
Related NHI Mgmt Group resources: Hiring Fraud and Candidate Identity Verification Guide · Employee Monitoring and Privacy Guide · Human-in-the-Loop for AI Agents Guide · Agentic AI Identity Guide · AI Agents in the IT Service Desk