E-commerce security: protect customers, checkout and operations
An e-commerce security programme should protect customer accounts, orders, payment journeys and the business’s ability to trade. A secure payment provider is important, but compromise can also occur through administrator accounts, extensions, scripts, suppliers or application logic.
Start by identifying what your provider manages and what you control. Then prioritise the actions that could change payments, expose customer information or stop order fulfilment.

Reviewed: 26 October 2026.
Hosted platform or self-managed store?
| Area | Hosted platform | Self-managed platform |
|---|---|---|
| Core infrastructure | Provider usually operates much of the underlying platform; verify the service terms. | Your team or hosting supplier must assign responsibility for operating systems, runtime, web server and database. |
| Accounts and configuration | You still control staff access, settings and many integrations. | You control these plus a larger part of the technical stack. |
| Extensions and scripts | Apps, themes and tags can change behaviour or access information. | Plugins, custom code and deployment tools require active maintenance and review. |
| Recovery | Confirm export, restore, retention and provider support arrangements. | Plan and test application, data, configuration and dependency recovery. |
| Assurance | Review provider evidence and test your own configuration and workflows. | Combine configuration, code and runtime testing across the managed scope. |
Write a responsibility matrix. “The host handles security” is not precise enough to establish who patches an extension, investigates a suspicious order or restores a deleted catalogue.
Map checkout and payment responsibilities
Document whether the customer is redirected to a provider, uses an embedded payment form or enters details into a merchant-controlled page. Identify who can change that integration and which scripts run on relevant pages.
Outsourcing card-data handling can reduce PCI DSS scope, but does not automatically remove merchant responsibilities. Confirm SAQ eligibility and applicable scanning and script protections against the actual integration with the acquirer or accepting entity. See our PCI DSS guide and PCI SSC’s e-commerce eligibility clarification.
Keep payment-provider credentials and webhook secrets out of public code and client-side pages. Validate payment notifications on the server and reconcile the paid amount, currency and order before fulfilment.

Protect the highest-impact paths first
| Risk | Practical action | How to check |
|---|---|---|
| Administrator takeover | Use individual accounts, suitable MFA, least privilege and controlled recovery. | Test leaver removal and review privileged roles and new authenticators. |
| Vulnerable plugins or themes | Inventory components, remove unused ones and track supported versions. | Verify installation of updates and regression-test critical journeys. |
| Malicious or excessive scripts | Record purpose, owner, source and permissions; control changes. | Compare the approved inventory with what the customer’s browser loads. |
| Customer account takeover | Protect sign-in and recovery, rate-limit abuse and investigate anomalies. | Test recovery and access boundaries using authorised test accounts. |
| Order, price or refund abuse | Enforce business rules on the server and separate sensitive approvals. | Test changes to quantities, discounts, ownership and order state. |
| Supplier / API compromise | Limit permissions and secrets; verify callbacks and monitor use. | Review scopes, revoke unused keys and exercise supplier failure. |

Understand the technical foundations behind a secure store
Network controls and web application firewalls
A network firewall controls permitted connections. A web application firewall examines application traffic against rules. They can reduce exposure or block some malicious requests, but neither establishes that the application’s permissions, pricing or refunds are correct. Keep administration and data services restricted to the paths they actually need.
For a hosted store, ask which protections are provided and which settings remain yours. For a self-managed store, record the origin servers, proxy/CDN, management interfaces and database connections. Test an intended restriction from the relevant network location rather than assuming a rule name proves it works.
Configuration, updates and safe changes
Remove unused accounts, extensions, test pages and services. Protect deployment credentials and prevent debug output exposing secrets or internal details. Maintain an inventory of the components and who updates them, including plugins, themes, runtime and supporting services.
Test an update against checkout, login, refunds and integrations in an appropriate environment, then verify production installation. Plan rollback without losing genuine orders. A staging success does not prove every production instance received the change; check versions and configuration after release.
Encryption, passwords and key management
Use appropriate TLS for customer and administrative connections and verify certificate renewal. Protect sensitive stored data and backups according to the risk and applicable obligations, with access to encryption keys separated and controlled. Test that authorised recovery remains possible if the normal key-management account is unavailable.
Passwords should normally be stored using suitable password-hashing methods, not reversible encryption. Encryption at rest does not stop an application that has legitimate decryption access from disclosing data through an authorisation flaw. Reduce unnecessary data collection and retention as well as protecting the copies you keep.
Use platform-specific guidance and the OWASP testing guide when defining verification. The appropriate implementation depends on the service and deployment; installing a product with “security” in its name is not an implementation test.
Test complete customer and administrator journeys
Test with representative accounts and synthetic data. Include registration, login, password recovery, address changes, checkout, cancellation, refund and administrative actions. Confirm one customer cannot access another’s records and that staff permissions match their roles.
A scanner can identify some technical weaknesses, but it will not reliably determine whether a discount can be reused, a refund is unauthorised or an order can be fulfilled without a valid payment. Combine automated checks with manual business-logic review.
For a complex retailer, include mobile clients, headless storefronts, APIs, warehouse/fulfilment integrations and marketplace connections. Agree authority before testing third-party systems. OWASP’s Web Security Testing Guide is a useful reference for application testing.

Monitor changes and prepare to recover
Log relevant administrative changes, failed access, payment exceptions and suspicious transactions without unnecessarily storing sensitive payment data. Give alerts an owner and a response route.
Back up or export what the business needs, including configuration and integrations where possible. Test recovery and understand the provider’s limitations. Plan how to pause unsafe checkout, communicate with customers and reconcile orders after an outage.
If compromise is suspected, preserve evidence and involve the relevant payment provider, hosting partner and incident lead. Restoring a page or deleting one script does not establish that access has been removed or that data was not taken.
Give shop staff guidance for the decisions they make. Customer support should verify requests to reset accounts or change delivery details; finance should use the approved refund and supplier-payment process; administrators should verify unexpected support calls before granting access or installing software. Include temporary staff and remove seasonal access when it is no longer needed.
During induction and after relevant changes, show people the trusted reporting route and practise a short example. Check that they can obtain help during busy trading periods. Encourage prompt reporting of mistakes and suspicious requests, and use the findings to improve the workflow.
Further guidance: NCSC: Spotting cyber attacks (small organisations).
A proportionate starting plan
| Business | First priorities |
|---|---|
| Small merchant using a hosted checkout | Secure administrator accounts; remove unused apps; confirm payment integration, provider responsibilities, recovery and applicable PCI validation. |
| Growing shop with plugins and customisation | Add component ownership, change control, critical-journey tests, script review and monitored integrations. |
| Complex retailer | Map service dependencies and trust boundaries; combine threat modelling, code/configuration review, penetration testing and recovery exercises. |
Make each action owned and verifiable. For example, “improve access” becomes “remove unused administrators, require appropriate MFA on remaining accounts and test recovery with the service owner”.
Turn monitoring into a response
Choose events that support a decision: creation of an administrator, a payment integration change, an unusual refund, a new application token or repeated account recovery. Establish a normal operating context and assign an alert owner. Do not collect passwords, security codes or unnecessary payment data in logs.
Test one agreed event from action to investigation. Confirm that the record identifies the relevant actor and change, reaches the person responsible and survives a plausible application outage. Include the hosting or payment provider if its records are needed.
Prepare for a supplier interruption as well as an attack. Know whether checkout should pause, which orders need reconciliation and how customer support will receive accurate information. Restore testing should include data consistency and order state, not just whether the homepage loads.
Common questions
Does HTTPS make the shop secure?
It protects data in transit to the site, but does not correct insecure code, compromised administrators, malicious scripts or fraudulent business logic.
Can we install a security plugin and stop there?
No. A tool may help, but responsibilities, updates, access, testing and recovery still need to operate across the service.
When should we test again?
After material changes to checkout, identity, integrations or infrastructure, and at risk-based or applicable required intervals.
Relate the guidance to an assessment
ProCheckUp’s web application penetration-testing case study illustrates a particular assessed application. Use its context to discuss which customer journeys, roles and business rules need testing in your store. It does not establish that every e-commerce platform has the same findings.
Related guidance
Secure code review · Build and configuration review · Penetration testing
For More Information Please Contact Us
ACCREDITATIONS
