Join our Newsletter — 33% off our NHI Course
Home› Guides› Cybersecurity for Retail and Ecommerce Guide: Threats, Regulation…
Guide Risk Management

Cybersecurity for Retail and Ecommerce Guide: Threats, Regulation and Priority Controls

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

Retailers combine card payments, millions of customer accounts, thousands of stores and an online checkout that changes every week, and attackers have learned to hit each of them: the help desk, the checkout page, the cloud data warehouse and the store network. In 2025 social engineering attacks stopped online ordering at Marks and Spencer for weeks and exposed every Co-op member's data, and in 2026 an AI agent driven campaign took more than 600,000 cards from online stores. This guide covers the retail and ecommerce threat picture, the regulation that shapes controls (PCI DSS v4.0.1, data protection and payment rules), and the priority controls for checkout pages, bots, store systems, suppliers and recovery. It is written for retail CISOs, ecommerce engineering leads and security architects. Workforce, customer and machine identity are covered in depth in the Retail and E-Commerce Identity Security Guide, which this page links rather than repeats.

Key takeaways

  • Revenue stops before data leaks. The costliest retail incidents of 2025 were operational: M&S estimated a £300 million hit to profit before recoveries, largely from halting online orders.
  • The checkout page is an attack surface. PCI DSS requirements 6.4.3 and 11.6.1, effective since 31 March 2025, require payment page scripts to be authorised, integrity-checked and monitored for tampering.
  • Bots are a business problem. Credential stuffing, carding, scalping and denial of inventory are automated attacks on business logic, catalogued by OWASP as OAT-008, OAT-001, OAT-005 and OAT-021.
  • Cloud keys reach card data. The 2026 card theft campaign used secrets from a cloud secrets manager and a write-enabled storage key to decrypt stored cards and plant skimmers.
  • Compliance is a floor. Target was certified PCI DSS compliant in September 2013, weeks before the breach of about 40 million cards through a supplier's credentials.

The retail and ecommerce threat picture

Retail is attacked for three things: payment data, customer accounts that hold stored value, and the operational dependence of stores and fulfilment on IT. Each has its own attacker economy and its own controls.

ThreatWhere it hitsTypical entryRecent example
Ransomware and extortionStores, distribution centres, online orderingHelp desk social engineering, supplier accounts, exposed remote accessM&S and Co-op, 2025
E-skimming (digital card skimming)Checkout and payment pagesCompromised admin panel, third-party script, CDN or storage write accessAI agent card theft campaign, 2026
Point-of-sale memory scrapingIn-store card terminals and POS serversSupplier credentials, lateral movement from corporate networkTarget, 2013
Credential stuffing and account takeoverCustomer accounts, loyalty points, gift cards, stored cardsReused passwords from other breachesOngoing across the sector
Data platform theftCloud data warehouses with customer and order dataInfostealer credentials without MFASnowflake customers including Ticketmaster and Advance Auto Parts, 2024
Inventory and pricing abuseLimited-edition stock, promotions, price dataBots and scrapersScalping and denial of inventory during product launches
Leaked developer and API secretsSource code, fulfilment and inventory systemsTokens published in code or logsHome Depot token exposure, 2025

Seasonality matters. Peak trading periods compress change windows, raise transaction volumes that hide fraud, and increase the business pressure to keep a compromised system running. Plan monitoring and change freezes around them, not just capacity.

Regulation and standards that apply

Retail is lightly regulated for cyber security as a sector, so obligations come from payments and data protection. Status checked October 2026.

InstrumentApplies toStatusKey security obligations
PCI DSS v4.0.1Any entity that stores, processes or transmits cardholder data, and service providers that can affect itv3.2.1 retired 31 March 2024; the 51 future-dated requirements became effective 31 March 2025Payment page script control (6.4.3), change and tamper detection on payment pages (11.6.1), MFA into the cardholder data environment, scope confirmation (12.5.2). See the PCI DSS 4.0 Guide.
PCI DSS SAQ A (January 2025 revision)Merchants that fully outsource payment pages, often by iframe or redirectEffective 31 March 20256.4.3, 11.6.1 and 12.3.1 removed from SAQ A, replaced by an eligibility criterion that the merchant confirms its site is not susceptible to attacks from scripts that could affect its ecommerce systems; ASV external scans (11.3.2) now apply to SAQ A merchants
GDPR and UK GDPRPersonal data of customers, loyalty members and staffIn forceSecurity of processing (Article 32), 72-hour regulator notification (Article 33), data minimisation. See the GDPR Compliance Guide for Security Teams.
US state privacy and breach notification lawsUS customer dataIn force, varies by stateReasonable security duties and breach notice timelines. See the US State Privacy Laws Guide.
EU PSD2 strong customer authentication (Delegated Regulation (EU) 2018/389)Card and online payments in the European Economic Area, applied by payment service providersIn forceTwo-factor authentication for most online card payments, with exemptions managed by the issuer and acquirer; shapes checkout design and 3-D Secure use. See the Payment Fraud Guide.
EU NIS2 DirectiveOnline marketplaces of medium or large size, among other digital providers; most physical retail is out of scopeTransposition deadline 17 October 2024Risk management measures and incident reporting for in-scope marketplaces. See the NIS2 Directive Guide.

Securing the ecommerce platform and checkout

The checkout is where card data is entered, so any script that runs on it can read it. The PCI Security Standards Council describes the intent of requirements 6.4.3 and 11.6.1 as making sure payment page scripts are properly authorised, checked for integrity and monitored for tampering, and it has published separate guidance, Payment Page Security and Preventing E-Skimming. These requirements stay in PCI DSS even where SAQ A no longer lists them, so a merchant using an embedded iframe still needs confirmation from its payment provider, or its own controls, that the page cannot be altered by scripts.

  • Script inventory and authorisation: list every script on payment pages with its business justification and owner. Remove tag manager access to checkout templates, since a marketing tag change should never be able to add code to the payment page. See the Client-Side Security Guide.
  • Integrity: use Subresource Integrity hashes for static third-party scripts and a strict Content Security Policy with nonces or hashes; use CSP reporting to detect new script sources.
  • Change and tamper detection: monitor the rendered payment page and its security headers as the customer's browser receives them, not only the source repository. The 2026 campaign served skimmers from the victim's own CDN bucket and used a cron job to re-inject them after each deployment, so repository scans alone would have missed it.
  • Admin panel hardening: put platform admin interfaces behind SSO or VPN with phishing-resistant MFA, hash one-time passcodes, and alert on new admin users and on changes to payment, theme and extension settings.
  • Extensions and plugins: treat each ecommerce extension as a supplier with code execution on your store; patch on a defined cycle and remove unused ones. App tokens on hosted platforms need the same scrutiny, see the Shopify App Tokens Security Guide.
  • Do not store what you do not need: tokenise cards with the payment provider rather than storing PANs; where encryption keys must exist, hold them in a key management service with separate access, never in the same database or configuration as the data.

Bots, fraud and customer accounts

Retail bot traffic is a mix of attacks on accounts, on payments and on stock. Naming them with the OWASP Automated Threats taxonomy helps fraud, security and ecommerce teams agree on what they are measuring.

OWASP automated threatRetail impactPrimary controls
OAT-008 Credential Stuffing, OAT-007 Credential CrackingAccount takeover, loyalty and gift card theftBreached password screening, passkeys, rate limits per account and per network, risk-based step-up
OAT-001 Carding, OAT-010 Card CrackingChargebacks, card scheme penalties, authorisation feesVelocity limits on payment attempts, 3-D Secure, block repeated low-value authorisations
OAT-005 Scalping, OAT-013 SnipingLimited stock bought by resellers, customer angerQueueing, purchase limits per verified customer, bot detection at add-to-basket
OAT-021 Denial of InventoryStock held in baskets and never boughtBasket hold timeouts, limits on reservations without payment
OAT-011 ScrapingPrice and catalogue harvesting, load on originRate limiting, bot management, API quotas
OAT-019 Account Creation, OAT-012 Cashing OutPromotion abuse, money laundering through gift cardsSign-up risk scoring, promotion limits, gift card activation controls

See the Bot Management Guide, the Account Takeover Prevention Guide and the Fraud Prevention Guide for Digital Businesses. Expect automated shopping agents acting for real customers as well; separating them from abusive bots is covered in the Bot vs AI Agent Traffic Management Guide.

Stores, point of sale and the corporate network

The Target breach remains the reference case for store risk. The US Senate Commerce Committee's kill chain analysis describes attackers stealing credentials from an HVAC contractor with remote access, reaching the internal network, installing memory-scraping malware on point-of-sale terminals and exfiltrating about 11 GB of data, while alerts from installed security tools were not acted on.

  • Segment the cardholder data environment: POS terminals and payment servers in their own zones, with no route from supplier portals, building systems or guest Wi-Fi. Validate segmentation as PCI DSS requires.
  • Point-to-point encryption: a validated P2PE solution encrypts card data in the terminal so POS software never sees clear card numbers, which removes the target that memory scrapers look for and reduces PCI scope.
  • Store devices as managed endpoints: tills, handhelds, kiosks and back-office PCs need application allowlisting, EDR where supported, and central patching. Shared device sign-in for frontline staff is covered in the identity guide.
  • Building and facilities systems: HVAC, refrigeration monitoring, CCTV and digital signage are frequently vendor managed; keep them off store payment and corporate networks. See the Building Management System Security Guide.
  • Act on alerts: Target had tools that flagged the malware; the failure was response. Route payment zone alerts to a team with authority to isolate.

Suppliers, outsourcing and help desks

Retailers outsource IT service desks, store systems integration, logistics, marketing technology and payments. In 2025 the UK NCSC responded to the retail attacks by asking organisations to review how help desk staff verify a person before resetting passwords, especially for privileged accounts, to scrutinise Domain Admin, Enterprise Admin and Cloud Admin access, and to detect logins from atypical sources such as VPN services using residential IP ranges. The joint FBI and CISA advisory on Scattered Spider describes the same pattern: impersonating staff to the help desk (T1566.004 Spearphishing Voice), MFA fatigue (T1621), registering attacker MFA devices (T1098.005), installing legitimate remote access tools (T1219) and abusing trusted third parties (T1199). See the Scattered Spider Threat Actor Profile.

  • Contract for verification: outsourced service desks must follow your identity verification procedure for resets, with call recording and a second approver for privileged accounts. See the Account Recovery and Help Desk Security Guide.
  • Tier suppliers by access: a supplier with admin rights to your identity provider or store estate gets the highest assurance, not the same questionnaire as a stationery vendor. See the Third-Party Risk Management Guide and the Third-Party Access Guide.
  • Data platforms: the Snowflake campaign succeeded against accounts without MFA or network allow lists using passwords stolen by infostealers years earlier. Require MFA or key-based authentication and network restrictions on every analytics and data platform account, including service accounts.
  • Marketing and martech: customer data platforms, email service providers and analytics tags all hold or touch customer data; include them in supplier reviews and remove their scripts from payment pages.

Where identity fits

Almost every incident on this page began with an identity: a reset password at Co-op, an impersonated contractor at M&S, an HVAC supplier at Target, infostealer passwords at Snowflake customers, a leaked GitHub token at Home Depot, cloud keys and admin passwords in the 2026 card theft campaign. Machine identities deserve particular attention in ecommerce, where platforms, payment providers, search, fulfilment and marketing services are wired together with API keys. Inventory them, scope them, rotate them and alert on bulk reads from secrets stores. See the Retail and E-Commerce Identity Security Guide and the Secrets Management Guide.

Resilience and recovery

M&S paused online and app orders from 25 April 2025 and disruption continued into July; Co-op chose to shut down parts of its IT and told staff to stop using VPNs, which helped evict the attackers before ransomware deployment but emptied some shelves. The lesson is to decide in advance what you will switch off and how stores and fulfilment keep trading when you do.

  1. Map revenue to systems: online ordering, store tills, stock replenishment, distribution and customer service, each with an owner and a maximum tolerable outage.
  2. Define degraded modes: offline till operation and store-and-forward payments within card scheme rules, manual replenishment orders, a static "orders paused" storefront, and customer service scripts.
  3. Prepare containment choices: pre-approved actions to disable VPN, suspend supplier access, reset privileged credentials and isolate the identity provider, with the business impact of each written down.
  4. Protect backups and identity recovery: immutable backups, and a tested way to rebuild Active Directory or the cloud identity tenant, since attackers targeted the Co-op Active Directory database.
  5. Exercise before peak: run a ransomware tabletop with trading, logistics and communications leads before the main trading season.

See the Ransomware Response and Recovery Guide and the Cyber Resilience Guide.

How to implement: priorities by phase

  1. First 90 days: harden help desk reset procedures (in-house and outsourced), enforce phishing-resistant MFA on administrators and remote access, put MFA and network restrictions on data platforms, and inventory every script on payment pages.
  2. 3 to 6 months: deploy payment page change and tamper detection in alert mode, tune it across one release cycle, then make alerts block releases; add CSP in report-only mode, fix violations, then enforce with a documented rollback to the previous policy.
  3. 6 to 12 months: bot management in monitor mode on login, checkout and launch pages, then enforce per endpoint; supplier tiering and contract updates; immutable backups and identity recovery tests.
  4. Ongoing: P2PE and tokenisation to shrink PCI scope, quarterly segmentation tests, pre-peak exercises and change freezes.

Decision guidance

  • Hosted payment page or iframe versus direct post or own checkout: outsourcing the payment form reduces PCI scope and skimming exposure on your own servers, but you still need assurance that the parent page cannot be manipulated. Own checkout gives design freedom at the cost of the full 6.4.3 and 11.6.1 burden.
  • Hosted ecommerce platform versus self-hosted: a hosted platform removes server patching but moves risk into app permissions and admin accounts; self-hosted platforms such as Magento-based stores need the full stack of patching, secrets and file integrity monitoring.
  • Small merchant versus large retailer: a small merchant should outsource payments, use platform security features and focus on admin MFA, extensions and backups; a large retailer needs its own client-side monitoring, bot management, a fraud and security fusion function and a supplier assurance team.

Detection and measurement

  • Payment pages: new or changed scripts and headers, CSP violation reports, changes to objects in storage buckets behind the CDN.
  • Identity: help desk resets for privileged users, new MFA registrations, logins from residential proxy and hosting ranges, Entra ID risky sign-ins.
  • Cloud and secrets: bulk reads from secrets managers, new access keys, data warehouse queries or exports of unusual size.
  • Customer channels: login failure ratios, payment authorisation failure spikes, gift card balance checks per source.
MetricTarget
Payment page scripts with documented authorisation and integrity control100%
Time from unauthorised payment page change to alertMinutes, not the weekly minimum
Privileged help desk resets with second-person verification100%
Data platform and admin accounts with MFA or key-based authentication100%, including service accounts
Account takeover rate per million loginsFalling quarter on quarter
Top revenue systems with a tested degraded mode in the last 12 months100%

Framework mapping

Control areaPCI DSS v4.0.1NIST CSF 2.0NIST SP 800-53 Rev. 5ATT&CK techniques addressed
Payment page script control6.4.3, 11.6.1DE.CM-09SI-7T1659 Content Injection
Customer and workforce authenticationRequirement 8PR.AA-03IA-2, IA-5T1110.004 Credential Stuffing, T1621 Multi-Factor Authentication Request Generation
Segmentation of the cardholder data environmentRequirement 1PR.IR-01SC-7T1133 External Remote Services
Supplier access and assurance12.8GV.SC-07SR-6, AC-17T1199 Trusted Relationship
Secrets and cloud data protectionRequirement 3PR.AA-05AC-6, IA-5T1552.001 Credentials In Files, T1530 Data from Cloud Storage, T1078.004 Cloud Accounts
Backups and recovery12.10RC.RP-01CP-2, CP-9T1486 Data Encrypted for Impact

Common failure patterns

  • Treating the help desk as a service, not a control: a reset on the strength of a phone call opened the Co-op cyber attack, and impersonation of a contractor preceded the Marks and Spencer cyberattack.
  • Monitoring the repository, not the page: skimmers served from a write-enabled CDN bucket and re-injected by cron survived redeployments in the AI agent retail card theft campaign.
  • Keys next to the data: the same campaign reached a Magento database and its encryption key, then decrypted stored cards; tokenisation or separate key management would have broken the chain.
  • Single-factor data platforms: analytics accounts with passwords only, no network restrictions and no rotation were the whole root cause of the Snowflake breach campaign against retail and consumer brands.
  • No channel for researchers: a leaked token with access to fulfilment and inventory systems stayed live for over a year partly because there was no disclosure route, as in the Home Depot token exposure.
  • Compliance as assurance: a passed PCI assessment says controls existed on the assessment date, not that alerts are answered or suppliers are segmented.

Practitioner checklist

  • Require identity verification and a second approver for privileged resets at every service desk, including outsourced ones.
  • Enforce phishing-resistant MFA for administrators, remote access, ecommerce admin panels and data platforms.
  • Inventory, authorise and integrity-protect every payment page script, and monitor the rendered page for change.
  • Remove write access to storage behind the CDN from any key that does not need it, and alert on changes to checkout assets.
  • Tokenise stored cards and keep encryption keys in a separate key management service.
  • Deploy bot controls on login, checkout, gift card and product launch endpoints, measured against OWASP automated threats.
  • Segment POS and payment systems from corporate, supplier and building networks, and adopt P2PE where possible.
  • Tier suppliers by access and route their remote access through a broker with named accounts.
  • Publish a vulnerability disclosure route and act on reports within a set time.
  • Define degraded trading modes and rehearse ransomware recovery before every peak season.

Standards and references

Related NHI Mgmt Group resources: Retail and E-Commerce Identity Security Guide · PCI DSS 4.0 Guide · Client-Side Security Guide · Bot Management Guide · Cybersecurity for Hospitality Guide

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 26 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org