An ERP compromise is a security incident and a financial controls failure at the same time: the attacker can read your ledgers and personal data, and can also change supplier bank details, release payments and alter records that feed your financial statements. The compromise may begin with a stolen user or administrator login, an integration or interface account whose password sits in a middleware configuration, an unpatched internet-facing component, abuse of an emergency (firefighter) privileged session, or a partner connection. This playbook is vendor-neutral and covers on-premises, hosted and cloud ERP suites, including the finance, procurement, payroll and supply chain modules that run on them. It is for incident responders, ERP technical and security teams, finance controls and internal audit. Platform-specific steps for one major suite are in the SAP and ERP Compromise Response Playbook, and hardening is covered in Securing the enterprise resource planning (ERP) platform itself; neither is repeated here.
Key takeaways
- Stop the money before you chase the attacker. Hold outgoing payment runs and bank file transmission until master data changes in the window are verified, then ask banks to recall anything suspicious.
- Run two investigations in parallel. A technical one (how they got in, which identities they used) and a business one (what they changed in master data, postings and authorisations). Recovery needs both signed off.
- Integration accounts are the widest door. Interface, batch and connector identities often have broad rights, no MFA and passwords stored on other systems; rotate them at source and fix every consumer.
- Emergency access is a target, not a safeguard. Review every firefighter session in the window against its ticket and log, and suspend self-service emergency access during the incident.
- Reconcile, then restore. Fraudulent changes are usually reversed by controlled accounting entries with an audit trail; restoring a database backup loses legitimate transactions and is a last resort.
What an ERP compromise exposes
| Asset | What an attacker gains | First containment action |
|---|---|---|
| Supplier, customer and employee master data | Change bank accounts and payee details so legitimate payments go to the attacker (ATT&CK T1657 Financial Theft) | Freeze master data changes; list all changes in the window |
| Payment runs, bank file interfaces and payroll | Release or redirect payments, insert payees, alter bank files after approval | Hold payment runs and outbound bank files |
| Ledgers, postings and reports | Alter or hide records that feed financial reporting (T1565.001 Stored Data Manipulation) | Snapshot journal and change logs for the window |
| Administrator and security roles | Create users, assign powerful roles, change audit settings | Lock, do not delete, users changed in the window |
| Emergency (firefighter) privileged access | Time-boxed superuser rights that bypass normal approvals | Suspend self-service checkout; require incident lead approval |
| Integration, interface and batch accounts | Reach into connected systems (HR, banking, procurement portals, data warehouse) and back (T1199 Trusted Relationship) | Inventory every integration identity and where its secret is stored |
| Bulk data: personal, payroll, pricing, contracts | Exfiltration of regulated and commercially sensitive data (T1213 Data from Information Repositories) | Check report, export and download logs |
| Change and transport pipeline, custom code | Plant code that runs in production or changes calculations | Freeze the production change route except for incident fixes |
See the ERP platform integration security guide for how integration identities should be designed and scoped.
How the compromise shows up
| Signal | Where you see it | What it can mean |
|---|---|---|
| Supplier or employee bank details changed and paid in the same or next run | Master data change reports, payment proposal review | Payment redirection (T1657) |
| Interactive logon by an integration, batch or system account | ERP security audit log, identity provider logs | Stolen machine credential reused by a person (T1078 Valid Accounts) |
| New users or powerful role assignments outside the request process | User and authorisation change logs, IGA reconciliation | Persistence (T1098 Account Manipulation) |
| Emergency access sessions with no ticket, unusual length or unusual transactions | Emergency access logs and session reviews | Abuse of privileged break-glass rights |
| Large report runs, table exports or downloads by unusual users | Report and export logs, data loss prevention | Bulk data theft (T1213) |
| Audit logging switched off, log retention shortened, log files deleted | ERP system parameters, missing SIEM volume | Defence impairment (T1685 Disable or Modify Tools) |
| Unscheduled changes or code moved into production | Change pipeline logs, change calendar | Planted logic or tampered calculations (T1565 Data Manipulation) |
| Suppliers asking why payments have not arrived | Accounts payable inbox and call logs | Late discovery of redirection, often the first sign |
MITRE ATT&CK's detection guidance for stored data manipulation focuses on unauthorised changes to business-critical data and on processes that change data outside expected workflows. In an ERP that means comparing changes against approved requests, not just watching for errors.
Triage: the first hour
- When is the next payment run or payroll? If it is within 48 hours, the payment hold decision comes before anything else.
- What is the entry point? A credential (user, admin, integration account), an exploited component, a partner connection or emergency access.
- Which identities acted in the window? Human users, integration and batch accounts, emergency access IDs and administrator accounts.
- What changed in business data? Bank details, payees, credit limits, payment terms, journals, payroll data, prices.
- Where do this system's stored credentials lead? Connections to banking, HR, procurement portals and data platforms may extend the incident.
- Is this one tenant or company code, or the whole landscape? Shared integration accounts and shared administrators usually mean the whole landscape.
Roles and decision points
| Role | Owns | Key decision |
|---|---|---|
| Incident lead | Overall response, link to the main incident plan | Whether the ERP keeps running under monitoring or is taken offline |
| ERP technical lead | System isolation, logs, patching, change freeze | Which interfaces to shut and in what order |
| ERP security lead | Users, roles, integration accounts, emergency access | Rotation order that does not stop critical batch processing |
| Finance controls lead | Payment holds, master data verification, bank liaison, reconciliation | When to release payments, company by company |
| Internal audit and external auditor liaison | Control impact, evidence for audit | Whether the incident is a control deficiency to report |
| Legal and privacy | Regulator, employee and customer notification | Whether personal or payroll data exposure is notifiable |
Taking a finance system offline is a business decision the incident lead records with the risk owner. Leaving a known attacker path open while it runs is not an acceptable option.
Containment by priority
- Hold the money: stop outgoing payment runs and bank file transmission for affected entities, verify every bank detail change in the window with the supplier or employee through a contact already on file, and ask banks to recall suspicious transfers. The FBI IC3 advises contacting your financial institution immediately to request a recall and filing a complaint, whatever the amount; IC3 may help freeze funds.
- Cut the entry point: remove internet exposure of the vulnerable component, block the partner connection or disable the compromised account.
- Lock, do not delete: lock users created or changed in the window and compromised user accounts, preserving their history.
- Restrict emergency access: suspend self-service emergency access checkout and require approval from the incident lead for each session, with live review.
- Close trust paths: disable or restrict integration connections with stored credentials from the affected system, starting with banking and payroll interfaces.
- Freeze change: lock the route into production and set production to non-modifiable except for approved incident fixes.
- Protect the logs: copy audit, change and security logs off the system before size or retention limits overwrite them.
Credential rotation
| Order | Credential | Notes |
|---|---|---|
| 1 | ERP administrator and security administrator accounts | Named accounts only, phishing-resistant MFA, new values in the privileged access vault |
| 2 | Emergency access identities | Rotate and reissue; confirm session logging works before reuse. See the Break Glass Access Procedure Template |
| 3 | Banking and payroll interface accounts, keys and certificates | Coordinate with banks for certificate or key replacement; test with a small file first |
| 4 | Other integration, interface and batch accounts | Rotate at source, update every consumer (middleware, scripts, schedulers) and record each breakage |
| 5 | Database, operating system and application server service accounts | Treat as exposed if the host was reachable |
| 6 | Single sign-on and identity federation trust | Reissue signing certificates if the trust configuration could have been changed |
| 7 | End users active in the window | Force reset and MFA re-registration for those whose sessions appear in the attacker timeline |
Integration accounts are non-human identities and the step most often skipped because rotation breaks overnight batches. Plan the change with the batch schedule rather than deferring it. The guide to detecting interactive logons by service accounts shows how to monitor their reuse afterwards.
Eradication and rebuild
- Preserve evidence first, then patch or remove the exploited component and retest the path.
- Remove attacker artefacts: unauthorised users, roles and role assignments; scheduled background jobs; changed system parameters; files in web-accessible paths on application servers.
- Reverse unauthorised code and configuration through the normal change route with code review, so the fix itself is audited.
- Rebuild application servers from trusted images where operating system level access is confirmed, rather than cleaning them.
- Re-certify access: run an out-of-cycle review of administrator, security, emergency access and payment-related roles, with segregation of duties conflicts reported to finance.
Financial data recovery
- Master data: finance confirms each bank detail and payee change in the window with the counterparty and reverts unverified changes, with the reason recorded.
- Payments: list payments made since the earliest attacker activity, mark those to suspect payees, and track recall status per bank.
- Postings: review manual journals and postings by unusual users; reverse fraudulent entries through standard accounting procedures so the trail stays complete.
- Restore only as a last resort: restore from backup only where integrity cannot be re-established by reconciliation, and agree the recovery point with finance, because later legitimate transactions must be re-entered. NIST CSF 2.0 RC.RP-03 requires backups to be verified before use.
- Release payments gradually: entity by entity, after four-eyes review of each payment proposal.
Evidence to preserve and notification
- System evidence: security audit log, user and authorisation change logs, system and application server logs, interface and batch logs, change pipeline history.
- Business evidence: master data change reports, payment proposals and runs, bank files sent, journal listings for the window, emergency access session logs and tickets.
- Handling: store copies outside the ERP landscape with hashes, restricted access and a chain-of-custody record.
- Data protection: under UK GDPR the ICO guidance requires notifiable personal data breaches to be reported without undue delay and not later than 72 hours after becoming aware, with high-risk breaches also communicated to individuals; payroll and HR data often meet that bar. Record every breach even when not reported.
- Financial reporting and law enforcement: involve auditors where reported figures may be affected, and report payment fraud to the police or national fraud reporting service as well as the banks.
Decision guidance
| Situation | Choose | Trade-off |
|---|---|---|
| Payment redirection only, single compromised user | Payment hold for affected entities, verify master data, reset the user, keep the system running | Limited disruption; depends on audit logs showing no admin activity |
| Administrator or integration account used by the attacker | Landscape-wide rotation and access re-certification, change freeze | Batch disruption during rotation, but shared accounts cross every boundary |
| Operating system access or exploited component on an application server | Rebuild servers, rotate host and database accounts, full evidence capture | Planned outage; cleaning in place leaves implants |
| Cloud ERP tenant | Use the provider's incident and log export routes; you own users, roles, integrations and data | Less host evidence available; contract and shared responsibility terms set what the provider supplies |
| Small organisation without separate finance controls staff | Bring in the external accountant or auditor early to verify payments and reconcile | Cost, but self-review of fraudulent changes is weak evidence |
Detection and measurement
- Time to payment hold: hours from declaration to confirmed hold on all affected entities.
- Master data changes verified: percentage of bank and payee changes in the window confirmed with the counterparty, target 100% before release.
- Funds recovered: value recalled as a share of value redirected, reported per bank.
- Integration accounts rotated with a named owner and minimum role: target 100% before interfaces reconnect.
- Emergency access sessions reviewed within 24 hours: target 100% during heightened monitoring.
- Detection coverage: alerts for interactive logon by technical accounts, bank detail changes, audit setting changes and unscheduled production changes, each tested quarterly.
Framework mapping
| Activity | NIST CSF 2.0 | NIST SP 800-53 Rev. 5 | ATT&CK v20 |
|---|---|---|---|
| Incident handling and coordination | RS.MA-01 | IR-4 Incident Handling | T1078 Valid Accounts |
| Segregation of duties and least privilege | PR.AA-05 | AC-5 Separation of Duties, AC-6 Least Privilege | T1098 Account Manipulation |
| Integration credential rotation | PR.AA-05 | IA-5 Authenticator Management | T1199 Trusted Relationship, T1552 Unsecured Credentials |
| Change control | PR.PS-01 | CM-3 Configuration Change Control | T1565 Data Manipulation |
| Monitoring and log protection | DE.CM-09 | AU-9 Protection of Audit Information | T1685 Disable or Modify Tools |
| Financial and data recovery | RC.RP-01, RC.RP-03 | CP-10 System Recovery and Reconstitution | T1657 Financial Theft, T1565.001 Stored Data Manipulation |
Common failure patterns
- Releasing the payment run on schedule: the technical team contains the account while redirected payments still leave that night.
- Verifying bank changes by replying to the requesting email: the attacker confirms their own details. Use a contact already on file.
- Skipping integration accounts because rotation breaks batches: the attacker keeps a working credential stored in middleware.
- Deleting suspicious users: their change history, needed for the business investigation, goes with them.
- Restoring the database to undo fraud: legitimate transactions are lost and the audit trail of what the attacker did is overwritten.
- Treating emergency access logs as self-evidently clean: sessions without tickets go unreviewed because the access was "approved".
Practitioner checklist
- Hold payment runs and bank files for affected entities and contact banks to recall suspect transfers.
- Verify every bank and payee change in the window through contacts already on file.
- Copy audit, change, interface and emergency access logs off the system before any fix.
- Lock users changed in the window, suspend self-service emergency access and freeze production change.
- Disable integration connections with stored credentials, banking and payroll first.
- Rotate in order: admins, emergency IDs, banking and payroll interfaces, other integrations, service accounts, federation trust, end users.
- Reverse fraudulent postings through controlled entries and restore only where reconciliation cannot work.
- Run an out-of-cycle access re-certification with segregation of duties conflicts reported to finance.
- Assess personal and payroll data exposure against the 72-hour reporting rule and brief auditors.
Standards and references
- NIST: SP 800-61 Rev. 3 Incident Response Recommendations and Considerations
- NIST: Cybersecurity Framework 2.0
- NIST: SP 800-53 Rev. 5
- MITRE ATT&CK: Stored Data Manipulation
- MITRE ATT&CK: Financial Theft
- FBI IC3: Business Email Compromise public service announcement (2024)
- ICO: Personal data breaches, a guide
Related NHI Mgmt Group resources: SAP and ERP Compromise Response Playbook · Securing the enterprise resource planning (ERP) platform itself · ERP platform health check · ERP platform integration security guide