Join our Newsletter — 33% off our NHI Course
Home› Guides› Point of Sale Security Guide: Stopping POS Malware…
Guide Regulations & Frameworks

Point of Sale Security Guide: Stopping POS Malware with P2PE and Hardening

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 27 October 2026 13 min read
On this page

Point of sale systems are attractive because, at some moment in every card-present transaction, card data is in clear text on a device the merchant has to secure, and in a retail estate there may be thousands of those devices. The large retail breaches of the last decade followed a repeating pattern: stolen remote access or vendor credentials, lateral movement into the store network, malware that scraped card data from POS memory, and slow, quiet exfiltration. Point-to-point encryption (P2PE) moves the encryption into the payment terminal so that the POS application never sees readable card data, which removes most of that pattern. This guide explains the POS attack chain from a defender's view, how P2PE and validated terminals change it, how to harden and monitor POS endpoints and their remote access, and how it maps to PCI DSS. It is written for retail and hospitality security teams, payment and store systems engineers and assessors. For the full PCI DSS picture see the PCI DSS 4.0 Guide; this page concentrates on the store and terminal layer.

Key takeaways

  • Encrypt at the terminal. A PCI-listed P2PE solution encrypts account data from the point of capture in the payment device to a secure decryption environment, so POS memory scraping yields only ciphertext and PCI DSS scope shrinks.
  • Remote access is the usual front door. Vendor and support remote access to stores, often with shared or weak credentials, is the most common way in. Require MFA, individual accounts and brokered, time-limited sessions.
  • POS terminals are fixed-function devices: lock them down. Application allow-listing (for example Windows App Control for Business), removal of unused services and blocking of outbound Internet access make malware hard to run and harder to exfiltrate from.
  • Protect the payment device physically. PCI DSS expects a list of payment terminals, periodic inspection for tampering and substitution, and staff trained to spot skimming overlays and swapped devices.
  • Store networks need segmentation and monitoring like any OT estate. Separate POS, payment, guest Wi-Fi and back-office systems, and alert on new processes, new outbound destinations and remote logins on POS hosts.

The POS attack chain, from a defender's view

StageWhat defenders typically seeATT&CK referencePrimary control
Initial accessLogins through remote desktop or remote support tools exposed for vendors; brute forcing of those services; phished or stolen third-party credentialsT1133 External Remote Services; T1110 Brute Force; T1078 Valid AccountsMFA, brokered vendor access, no Internet-exposed remote desktop
Lateral movement into storesUse of RDP or remote management tools from a back-office or head-office host to many POS terminalsT1021.001 Remote Desktop Protocol; T1219 Remote Access ToolsSegmentation, allow-listed management paths, local admin control
Credential theftDumping of credentials on store servers to obtain domain or local administrator rights shared across storesT1003 OS Credential DumpingUnique local admin passwords, tiered admin model
CollectionUnknown processes reading POS application memory; keyloggers on manual entry stationsT1005 Data from Local System; T1056.001 KeyloggingP2PE so memory holds no clear data; application allow-listing
Staging and exfiltrationCard data aggregated on an internal server, then sent out over common protocols at low volumeT1041 Exfiltration Over C2 ChannelEgress filtering, DNS and proxy monitoring, no direct Internet from POS
Supply chainCompromise of a POS software vendor or integrator update channelT1195.002 Compromise Software Supply ChainSigned updates, vendor assurance, change detection

The common thread is that the attacker needs clear-text card data in a place they can reach. Every control below either removes clear-text data from the POS host or stops the attacker reaching and leaving it.

Point-to-point encryption and validated devices

The PCI Security Standards Council's P2PE Standard sets security requirements and test procedures for P2PE solutions, components and applications. It covers the chain from the point account data is captured in the merchant's payment device to the point it is decrypted, so data is unreadable in transit and of little value if stolen from the store network. PCI SSC states that merchants using PCI-listed P2PE solutions have fewer applicable PCI DSS requirements, and P2PE assessors trained by PCI SSC validate listed solutions.

ApproachWhere data is encryptedEffect on POS host riskPCI DSS scope
No terminal encryption (legacy integrated POS)Not until it leaves the POS application, if at allFull: memory scraping and keylogging capture card dataPOS hosts, store network and connected systems fully in scope
PCI-listed P2PE solutionIn the PCI-approved payment terminal, at capturePOS host never handles clear account dataGreatly reduced; merchant follows the solution's instructions and protects devices
Non-listed end-to-end encryptionIn the terminal, under the provider's own designSimilar technical benefit if well designedScope reduction depends on assessor and acquirer acceptance, not automatic
Tokenisation after authorisationCard number replaced by a token for storageProtects stored data, not data in memory at captureReduces storage scope; combine with P2PE for capture
Mobile acceptance on COTS devices (PCI MPoC)On a smartphone or tablet using a listed MPoC solutionDepends on the solution's attestation and monitoringFollow the listed solution's requirements
  • Terminals: use payment devices approved under the PCI PIN Transaction Security (PTS) Point of Interaction programme and check the approval expiry on the Approved PTS Devices listing when planning refresh cycles.
  • Mobile acceptance: PCI MPoC builds on the earlier SPoC and CPoC standards and allows PIN and contactless data to be accepted on the same commercial device; choose from the MPoC Products and Solutions listing.
  • What P2PE does not fix: it does not stop ransomware taking down stores, fraud using the POS application's functions (refunds, gift cards), or theft of personal data in loyalty systems. Store security still matters.
  • Compliance decisions: PCI SSC notes that the payment brands, not the Council, decide which entities must validate and whether listed products are required. Confirm with your acquirer.

Hardening POS endpoints

POS terminals and store servers are fixed-function systems with a small, stable software set, which makes strict hardening practical.

  • Application allow-listing: Microsoft App Control for Business moves Windows from "all code runs unless antivirus flags it" to "code runs only if policy allows it", and also governs scripts, MSI packages and interactive PowerShell (which runs in Constrained Language Mode). Build the policy in audit mode on a pilot store, then enforce. See the Application Allowlisting Guide.
  • Anti-malware alongside allow-listing: Microsoft is explicit that App Control complements and does not replace antivirus.
  • Minimal services: remove browsers, email clients and unused services from POS images; disable USB mass storage where the hardware allows; block local administrator use by staff.
  • Golden images and integrity: deploy from a signed, versioned image and detect drift with file integrity monitoring on POS application folders and startup locations.
  • Patching: stage POS OS and application updates through a pilot ring of stores, with a tested rollback image, because a failed update can stop trading across a region.
  • Legacy operating systems: many estates still run embedded or out-of-support Windows versions. Where replacement is not yet possible, compensate with allow-listing, network isolation and P2PE, and record the exception.

Remote access and identity

Most POS compromises are identity compromises first. The store estate is full of shared and machine credentials.

IdentityRiskControl
POS vendor and integrator support accountsShared accounts on always-on remote tools, reused across many merchantsIndividual accounts, MFA for all remote network access, session approval, recording and expiry. See the Vendor Privileged Access Management (VPAM) Guide
Local administrator accounts on POS and store serversSame password on every terminal enables estate-wide movementUnique, rotated local admin passwords (for example Windows LAPS); no interactive use by staff
Service accounts for POS software, payment middleware and pollingDomain rights, passwords embedded in scripts or configuration filesLeast privilege, vaulted credentials, no hard-coded passwords. See the PCI DSS Requirements for Service Accounts and NHIs Guide (8.6)
Store staff loginsShared till PINs or generic manager accounts used for refunds and overridesIndividual credentials for privileged functions, review of override and refund patterns
Software distribution and management toolsThe tool that pushes updates to every POS can also push malwareTreat as Tier 0 for the store estate: MFA, restricted admins, signed packages, monitored changes

Store network segmentation

  • Separate zones: POS terminals and payment devices; store servers; back-office PCs; guest and staff Wi-Fi; IoT such as cameras, digital signage and HVAC controllers. Each zone gets explicit allowed flows only.
  • Outbound control: POS terminals should only reach the store server, the payment gateway or P2PE host and the management platform. Deny all other egress and log denials.
  • Head office to store: management flows from head office use defined jump hosts and protocols, not open RDP from the corporate network.
  • Scope evidence: document segmentation and test it, since it underpins the PCI DSS scope. See the PCI DSS Scoping and Network Segmentation Guide.

Implementation roadmap

  1. Inventory. Record every POS terminal, payment device (model, serial, PTS approval and expiry), store server, remote access path and vendor account, store by store.
  2. Close remote access gaps first. Remove Internet-exposed remote desktop and always-on vendor tools, introduce MFA and a broker, and rotate shared vendor credentials. This gives the fastest risk reduction.
  3. Choose the encryption path. Engage the acquirer on a PCI-listed P2PE solution, plan the terminal refresh and confirm the scope impact with your QSA before signing.
  4. Pilot hardening in audit mode. Build the allow-listing policy and egress rules in audit or log-only mode in a few pilot stores, covering every till workflow including end-of-day and offline mode.
  5. Enforce in rings. Move pilot stores to enforcement, then regions, with a rollback image and a store support runbook ready. Avoid peak trading periods.
  6. Train stores. Teach staff to inspect payment devices for tampering, check serials against the list and challenge anyone claiming to be a technician.
  7. Monitor and test. Centralise POS and store server logs, test segmentation, and run tabletop exercises for a suspected card data compromise, including forensic investigator engagement and acquirer notification.

Small versus large merchants: a small merchant with a few standalone terminals gets most of the benefit by using a PCI-listed P2PE solution from its acquirer, keeping terminals off the general network and never allowing vendor remote access without MFA. A large retailer needs all of the above at scale, with central allow-listing, LAPS-style local admin management, a vendor access broker and a store SOC capability.

Detection and measurement

Alert on new or unsigned processes on POS hosts, App Control audit or block events, new services or scheduled tasks, remote logins to POS terminals outside maintenance windows, use of remote access tools not on the approved list, large or unusual outbound connections from store networks, and payment terminal serial changes or tamper alerts.

MetricTarget
Card-present transactions captured through a P2PE solutionRising to 100%
POS hosts with application allow-listing in enforce modeAll, legacy exceptions listed
Vendor remote sessions with MFA and an individual account100%
Stores with unique local administrator passwords100%
Payment devices inspected on schedule and matched to the device list100% per inspection cycle
POS hosts with direct Internet egressZero

Responding to a suspected card data compromise

  • Contain without destroying evidence: isolate affected store segments and block identified exfiltration destinations, but do not reimage POS terminals until memory and disk evidence has been captured.
  • Bring in the right parties early: the acquirer and payment brands set notification and forensic investigation requirements for card data compromises, which may include a PCI Forensic Investigator. Agree contacts in advance.
  • Rotate what the attacker touched: vendor accounts, local administrator passwords, service accounts and any management tool credentials used during the intrusion, not only the passwords of affected staff.
  • Find the common point: breaches that hit many stores usually share a single entry point such as a vendor account or software distribution tool. Fix that before declaring recovery.

Framework mapping

Control areaPCI DSS v4.0.1NIST and other references
Payment device tampering and substitutionRequirement 9.5.1 and sub-requirements: list of POI devices, periodic inspection, staff trainingNIST SP 800-53 SR-9 Tamper Resistance and Detection, PE-3
Anti-malware and allow-listingRequirement 5 (protect systems against malicious software)SP 800-53 SI-3, CM-7; NIST CSF 2.0 PR.PS-05
Remote access MFARequirement 8.4 (MFA, including for remote network access)SP 800-53 AC-17, IA-2
System and application accountsRequirement 8.6SP 800-53 IA-5
Encryption of account data in transitRequirement 4; P2PE Standard for terminal encryptionSP 800-53 SC-8; CSF 2.0 PR.DS-02
Segmentation and scopeScoping guidance and Requirement 1 network security controlsSP 800-53 SC-7
Logging and change detectionRequirements 10 and 11.5SP 800-53 AU-6, SI-7

Requirement numbers above are given for orientation; read the current PCI DSS text in the PCI SSC document library for exact wording and testing procedures.

Common failure patterns

  • Vendor remote access with shared passwords. A POS integrator uses one account and password across many customers, and remote desktop is open to the Internet. One stolen credential reaches every store.
  • Same local admin password on every till. One compromised terminal gives the attacker the whole estate.
  • Encryption that starts too late. Card data is encrypted only after the POS application has handled it, leaving memory scraping effective.
  • Flat store networks. Guest Wi-Fi, cameras, HVAC controllers and POS share a network, so any weak device becomes a path to payment systems.
  • Allow-listing left in audit mode. The policy is deployed but never enforced, so it records malware instead of stopping it.
  • No device inspection. Terminals are never checked against a serial list, so overlays and swapped devices go unnoticed for weeks.

Practitioner checklist

  • Maintain a store-by-store inventory of POS hosts, payment devices (with PTS approval expiry) and remote access paths.
  • Adopt a PCI-listed P2PE solution and confirm the scope impact with your acquirer and QSA.
  • Remove Internet-exposed remote desktop and require MFA and individual accounts for all vendor access.
  • Give every POS host and store server a unique, rotated local administrator password.
  • Vault service account credentials used by POS software and middleware.
  • Enforce application allow-listing on POS images after an audit-mode pilot.
  • Restrict POS egress to the payment gateway, store server and management platform only.
  • Segment POS, payment, back-office, guest and IoT networks and test the segmentation.
  • Inspect payment devices on a set schedule and train staff to spot tampering.
  • Alert on new processes, remote logins and unusual outbound traffic from store networks.

Standards and references

Related NHI Mgmt Group resources: PCI DSS 4.0 Guide · PCI DSS Scoping and Network Segmentation Guide · PCI DSS Requirements for Service Accounts and NHIs Guide (8.6) · Cybersecurity for Retail and Ecommerce Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 27 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.