Requirement 5 decides whether malicious code that reaches a payment environment is stopped, contained and recorded, and since 31 March 2025 it also expects automated defences against the phishing that so often delivers it. This guide covers PCI DSS v4.0.1 Requirement 5, "Protect All Systems and Networks from Malicious Software", section by section: where anti-malware must run and how to document systems not at risk (5.2), keeping it current, scanning, removable media, logging and tamper protection (5.3), and anti-phishing mechanisms (5.4.1). It is written for endpoint and server security engineers, SOC leads and PCI programme owners preparing evidence for a Qualified Security Assessor (QSA) or a self-assessment. Requirement text is paraphrased from the standard as reproduced by Microsoft Learn and other secondary sources; check every point against the current standard in the PCI SSC Document Library.
Source note: requirement wording is paraphrased from PCI DSS v4.0.1 as reproduced by secondary sources (the ComplianceAsCode PCI DSS v4 control file and Microsoft Learn) and from PCI SSC publications, because the standard itself is a PDF in the PCI SSC Document Library. Confirm against the official text before relying on it.
Key takeaways
- Anti-malware is the default everywhere: 5.2.1 requires a solution on all system components except those a periodic evaluation under 5.2.3 concludes are not at risk from malware, so the exemption must be earned and re-checked.
- "Not at risk" is a documented, recurring decision: 5.2.3 needs a list of such components, an evaluation of evolving threats to them and confirmation they still need no protection, at a frequency set by a targeted risk analysis (5.2.3.1).
- Behavioural detection is an accepted option: 5.3.2 is met by periodic plus real-time scans, or by continuous behavioural analysis of systems or processes, which is how most EDR tools operate.
- Users cannot switch it off: 5.3.5 forbids users disabling or altering anti-malware unless management authorises it case by case, in writing, for a limited time.
- Phishing protection must be automated: 5.4.1 requires processes and automated mechanisms to detect and protect personnel against phishing, so awareness training alone does not meet it.
How Requirement 5 is structured
Requirement 5 has four sections. Several sub-requirements were new in v4.0 and became mandatory on 31 March 2025, when the PCI SSC says the 51 future-dated requirements of v4.x took effect; v4.0.1 (June 2024) added or deleted no requirements, according to the PCI SSC. The wider standard is summarised in the PCI DSS 4.0 Guide.
| Sub-requirement | Subject | Typical evidence |
|---|---|---|
| 5.1.1, 5.1.2 | Policies, procedures, roles and responsibilities | Malware protection standard, RACI |
| 5.2.1 | Anti-malware deployed on all components except those evaluated as not at risk | Agent coverage report against the in-scope inventory |
| 5.2.2 | Detects all known types of malware and removes, blocks or contains them | Product capabilities, policy showing remediation actions enabled |
| 5.2.3 | Periodic evaluation of components not at risk | List of exempt components, threat evaluation records |
| 5.2.3.1 | Evaluation frequency set by targeted risk analysis | Targeted risk analysis per 12.3.1 |
| 5.3.1 | Kept current via automatic updates | Engine and signature version reports |
| 5.3.2 | Periodic and real-time scans, or continuous behavioural analysis | Policy settings, scan history |
| 5.3.2.1 | Periodic scan frequency set by targeted risk analysis | Targeted risk analysis per 12.3.1 |
| 5.3.3 | Removable media scanned on insertion or covered by behavioural analysis | Removable media policy settings |
| 5.3.4 | Anti-malware audit logs enabled and retained per 10.5.1 | Log forwarding and retention settings |
| 5.3.5 | Users cannot disable or alter it without time-limited management authorisation | Tamper protection settings, exception approvals |
| 5.4.1 | Automated mechanisms detect and protect personnel against phishing | Email security configuration, DMARC records, reports |
5.2: deployment, capability and systems not at risk
5.2.1 coverage: the starting point is the in-scope inventory under 12.5.1. Compare it with the anti-malware console's device list every month at least; the difference is your coverage gap. Include virtual desktops, jump hosts, payment application servers, file servers that receive uploads and cloud workloads.
5.2.2 capability: the solution must detect all known types of malware and remove, block or contain them. Detection-only modes (audit or passive) meet the first half but not the second, so check that remediation actions are switched on in policy, not just available in the product.
Allowlisting as an alternative: a PCI SSC FAQ says application allowlisting can be acceptable only if the implementation meets every Requirement 5 sub-requirement, including detecting, removing and protecting against malware, and notes that many allowlisting products cannot do the detection and removal parts on their own. Allowlisting is therefore usually a strong complement, not a replacement. See the Application Allowlisting Guide.
5.2.3 systems not at risk: as reproduced on Microsoft Learn, the periodic evaluation includes a documented list of all components not at risk for malware, identification and evaluation of evolving malware threats for those components, and confirmation whether they continue not to require protection. Common candidates are some network appliances, mainframes and hardened Linux or Unix systems with no user-facing services. The question to ask each time is whether malware now targets that platform, for example ransomware families built for hypervisors or Linux servers.
| Component type | Usual position | What changes the answer |
|---|---|---|
| Windows servers and workstations | At risk: anti-malware required | Nothing; treat as always in 5.2.1 |
| General-purpose Linux servers and container hosts | Often at risk; cryptominers and ransomware target them | Exposure to the internet, file uploads, interactive users |
| Hypervisors | Increasingly at risk | Ransomware targeting virtualisation platforms; management network exposure |
| Network appliances with vendor-controlled firmware | Often evaluated as not at risk | Vendor advisories of implants on the platform; CISA KEV entries |
| Mainframes and midrange systems | Often evaluated as not at risk | New connectivity, open-source tooling added to the platform |
| Containers built from minimal images | Covered at host level or by runtime security | Writable file systems, shells present in images |
5.2.3.1 requires the evaluation frequency to be defined in a targeted risk analysis performed according to all elements of 12.3.1. See the PCI DSS Customised Approach and Targeted Risk Analysis Guide.
5.3: keeping anti-malware active, maintained and monitored
- 5.3.1 automatic updates: signatures and engines update automatically. Alert on endpoints whose definitions are older than your threshold, because a failed update is silent otherwise.
- 5.3.2 scanning model: periodic scans plus active or real-time scans, or continuous behavioural analysis of systems or processes. If you rely on periodic scans, 5.3.2.1 requires their frequency to come from a targeted risk analysis.
- 5.3.3 removable media: the solution automatically scans removable electronic media when it is inserted, connected or logically mounted, or performs continuous behavioural analysis when that happens. Many organisations go further and block removable storage on CDE systems entirely, which removes most of the evidence burden. See the Removable Media and USB Control Guide.
- 5.3.4 audit logs: anti-malware logs are enabled and retained according to 10.5.1. Forward detections, policy changes, agent stops and update failures to the central log platform. See the PCI DSS Requirement 10 Guide.
- 5.3.5 tamper protection: users cannot disable or alter anti-malware unless specifically documented and authorised by management case by case for a limited period. Use the product's tamper protection, remove local administrator rights from users, and protect the management console as a privileged system.
Disabling security tools is a standard attacker step, tracked by MITRE ATT&CK as T1685 Disable or Modify Tools, often achieved with vulnerable drivers. Failure of anti-malware is one of the critical security control failures that 10.7.2 requires to be detected, alerted and addressed promptly. See the Bring Your Own Vulnerable Driver and EDR Killers Guide and the EDR Tuning and Exclusions Management Guide.
Where identity fits
The anti-malware management console holds a powerful non-human identity: it pushes code and policy to every endpoint, and its API keys and service accounts can disable protection estate-wide. Treat the console and its integration credentials (SIEM connectors, SOAR playbooks, MDM links) as privileged, with MFA for administrators, scoped API tokens and rotation. Exclusions are also an access decision: each one should have an owner and an expiry, because a broad path exclusion is the easiest place for malware to hide. See the EDR Platform Configuration Guide.
5.4.1: anti-phishing mechanisms
5.4.1 requires processes and automated mechanisms to be in place to detect and protect personnel against phishing attacks. It became effective on 31 March 2025 with the other future-dated requirements. Awareness training is covered separately under 12.6.3.1, so training on its own does not meet 5.4.1. A PCI SSC community meeting presentation on 5.4 best practice recommends combining anti-spoofing controls: SPF, DKIM and DMARC.
| Mechanism | What it does | Evidence |
|---|---|---|
| SPF | Publishes which servers may send mail for your domain | DNS TXT record, alignment with real senders |
| DKIM | Signs outgoing mail so receivers can verify it was not altered | Selector records, signing enabled on all sending services |
| DMARC | Tells receivers how to handle mail failing SPF or DKIM: p=none (monitor), p=quarantine or p=reject | Policy record, aggregate reports, progression plan to enforcement |
| Inbound filtering | Detects phishing, malicious attachments and spoofed senders | Gateway or cloud email security configuration |
| Link protection and sandboxing | Rewrites or checks URLs at click time, detonates attachments | Policy settings, detection logs |
| Phishing-resistant authentication | Makes stolen passwords and relayed sessions less useful | FIDO2 or certificate-based policies for CDE access |
| User reporting button | Feeds suspected phishing into triage quickly | Report volumes and handling times |
SPF, DKIM and DMARC protect others from mail that spoofs your domain; inbound filtering and link protection protect your own staff. Assessors increasingly expect both. Microsoft's mapping for Entra ID points to phishing-resistant credentials and Conditional Access authentication strength as the identity part of 5.4.1, and notes that broader phishing mitigation needs workload controls such as mail anti-phishing protection. DMARC was originally published as RFC 7489 (Informational, March 2015); the RFC Editor now lists it as obsoleted by RFCs 9989 to 9991. See the DMARC, SPF and DKIM Guide and the DMARCbis Changes Guide.
Social engineering against credentials remains a common first step in major incidents: the Uber breach combined a contractor's stolen password with MFA fatigue prompts, which is why phishing-resistant authentication belongs in the 5.4.1 evidence pack alongside email controls.
Decision guidance
- Traditional antivirus or EDR: signature-based antivirus with scheduled scans meets 5.3.2 with a targeted risk analysis for scan frequency; EDR with continuous behavioural analysis meets it without one and also supports 10.7.2 heartbeat monitoring. Most entities with a SOC choose EDR. See the EDR Guide.
- Exempting systems or protecting them: exempting a platform under 5.2.3 saves licences but creates a recurring evaluation and a risk of being wrong. Where a supported agent exists and performance is acceptable, deploying it is often cheaper than defending the exemption.
- Scan removable media or block it: blocking storage-class USB devices on CDE systems is simpler to evidence than scan-on-mount, but needs an exception path for legitimate uses such as firmware updates.
- Small merchants: a managed endpoint protection service plus the email provider's built-in anti-phishing and a DMARC record usually covers 5.2 to 5.4 for a small estate. Large entities need coverage reconciliation, central logging and policy-as-code.
How to implement Requirement 5
- Reconcile coverage: compare the in-scope inventory with the anti-malware console and list every component without an agent.
- Decide exemptions: for each uncovered component, deploy an agent or document a 5.2.3 evaluation; write the 5.2.3.1 targeted risk analysis for evaluation frequency.
- Pilot policy in audit mode: apply the target policy (real-time or behavioural protection, removable media control, tamper protection) to a pilot ring in detect-only mode, review false positives and performance, then switch to block. Keep the previous policy version so it can be restored quickly if a payment application breaks.
- Roll out by ring: extend from pilot to non-critical then critical CDE systems, with change records.
- Lock it down: enable tamper protection, remove local admin rights, and create a documented, time-limited exception process for 5.3.5.
- Connect the logs: forward detections, health and policy-change events to the SIEM, retain them per 10.5.1, and alert on agent silence and update failures.
- Deploy anti-phishing: publish SPF and DKIM for all sending services, start DMARC at p=none, read aggregate reports, then move to quarantine and reject; enable inbound filtering and link protection.
- Collect evidence continuously: monthly coverage reports, exemption reviews, exception approvals and DMARC reports.
Detection and measurement
| Metric | Target (our recommendation) | Sub-requirement |
|---|---|---|
| In-scope components with an active agent or a current 5.2.3 evaluation | 100% | 5.2.1, 5.2.3 |
| Agents with definitions older than 48 hours | Below 1% | 5.3.1 |
| Agents in detect-only mode on CDE systems | 0 outside approved exceptions | 5.2.2, 5.3.5 |
| Agents silent for more than 24 hours without a ticket | 0 | 5.3.4, 10.7.2 |
| Active tamper or disable exceptions past their end date | 0 | 5.3.5 |
| Sending domains at DMARC p=reject or p=quarantine | All active domains | 5.4.1 |
Framework mapping
| PCI DSS v4.0.1 | NIST SP 800-53 Rev. 5 | NIST CSF 2.0 | CIS Controls v8.1 | ATT&CK behaviour resisted |
|---|---|---|---|---|
| 5.2, 5.3.1, 5.3.2 anti-malware | SI-3 | DE.CM-09, PR.PS-05 | Control 10 | T1204 User Execution |
| 5.3.3 removable media | MP-7, SI-3 | DE.CM-09 | Control 10 | T1091 Replication Through Removable Media |
| 5.3.4 logs | AU-2, SI-4 | DE.CM-09 | Control 8 | Supports investigation |
| 5.3.5 tamper resistance | SI-3 | PR.PS-01 | Control 10 | T1685 Disable or Modify Tools |
| 5.4.1 anti-phishing | SI-8, AT-2(3) | PR.AT-01, DE.CM-09 | Control 9 | T1566 Phishing |
In ISO/IEC 27001:2022 Annex A, Requirement 5 aligns most closely with control 8.7 Protection against malware. NIST SP 800-83 Rev. 1 remains NIST's guide to malware incident prevention and handling for desktops and laptops. See also the CIS Control 10 Malware Defenses Guide.
Common failure patterns
- Linux left out by habit: "Linux does not get malware" exemptions copied from old assessments, with no 5.2.3 threat evaluation behind them.
- Detect-only in production: a policy set to audit during rollout and never switched to block, failing 5.2.2.
- Broad exclusions: whole application directories or file types excluded to fix a performance problem, never reviewed.
- Silent agents: agents uninstalled during troubleshooting or broken by upgrades, with no alert on missing heartbeats.
- Training counted as 5.4.1: a phishing simulation programme presented as the anti-phishing mechanism with no automated email controls.
- DMARC stuck at p=none: a record published years ago for monitoring, with nobody reading the reports.
Practitioner checklist
- Reconcile anti-malware coverage against the 12.5.1 inventory every month (5.2.1).
- Confirm remediation actions are enabled, not just detection (5.2.2).
- Keep a 5.2.3 list of exempt components with threat evaluations, at a frequency set by targeted risk analysis.
- Alert on stale definitions and silent agents (5.3.1, 5.3.4).
- Scan or block removable media on CDE systems (5.3.3).
- Enable tamper protection and run a time-limited, approved exception process (5.3.5).
- Retain anti-malware logs per 10.5.1 in the central log platform.
- Run SPF, DKIM and DMARC at enforcement with inbound filtering and link protection (5.4.1).
- Protect the anti-malware console and its API credentials as privileged.
Standards and references
- PCI SSC: Document Library (PCI DSS v4.0.1)
- PCI SSC FAQ: Can application whitelisting be used to meet Requirement 5?
- PCI SSC: Now is the time to adopt the future-dated requirements of PCI DSS v4.x
- PCI SSC: Best practices for anti-phishing mechanisms, PCI DSS v4.0 Requirement 5.4
- Microsoft Learn: Microsoft Entra ID and PCI DSS Requirement 5
- NIST: SP 800-83 Rev. 1 Guide to Malware Incident Prevention and Handling
- IETF: RFC 7489 DMARC
- MITRE ATT&CK: T1566 Phishing
Related NHI Mgmt Group resources: PCI DSS 4.0 Guide, PCI DSS Readiness Checklist, PCI DSS Requirement 2 Guide, EDR Guide, Phishing Simulation Programme Guide. This guide summarises PCI DSS v4.0.1 Requirement 5 and is not legal or assessment advice.