Editor's Note 3/25/20: This is an excellent post to reacquaint yourself with in light of coronavirus/COVID-19 and retailers' focus on online sales.
Cyber Crime Moving from Physical to Online Retail
Physical retailers have long been warned of the dangers of card skimmers and shimmers, physical devices that thieves attach onto or insert into card capture equipment to quietly capture card information. These devices have indeed become quite advanced, allowing them to avoid detection and even transmit card numbers back to the attacker using cellular or Bluetooth technology.
These days, a new exploit known as e-commerce skimming is making the rounds. The Payment Card Industry Security Standards Council (PCI SSC) recently released a blog warning of the growing threat of digital skimming, followed immediately by a bulletin from Visa warning of the same. Both publications warn that multiple vendors providing services to e-commerce sites have been compromised by a suite of hacking tools called Magecart, and that their embedded services have been acting as e-commerce skimmers, intercepting and compromising credit cards entered by unsuspecting consumers.
How E-Commerce Skimming Works
Bad actors have been able to compromise these insecure third-party systems and insert malicious code that acts as a sniffer or digital skimmer. When the customer’s browser executes the seemingly innocuous script, it then detects card information entered elsewhere on the page, and transmits it to the attacker.
Protect Your Website from E-Commerce Skimming
There are three important areas to consider that will help protect your website from e-commerce skimming:
The PCI SSC’s Best Practices for Securing E-Commerce Special Interest Group compiled a list of best practices for securing iframes, which encourages merchants to “consider complementing their PCI DSS compliance program with additional security controls to reduce e-commerce risk, even if such controls are not stated as required by SAQ A. Hardening of servers, vulnerability management, and monitoring of server activity are effective controls for these implementations.” (p. 12)
- Four years ago, the PCI SSC introduced the SAQ A-EP, which may be suitable for your business if you host your own payment forms but do not transmit cardholder data. However, in the case of digital skimmers, the element that captures the credit card (e.g., a <form> <input> field) is only one part of the payment page.
When the code is a snippet dropped into the code, it immediately becomes your responsibility to maintain the security of that code. Much of PCI DSS requirement 6 remains in scope—even for SAQ A-EP merchants—and requires you to take ownership of all code including vulnerability testing, security patching, change control, secure coding practices, manual or automated protection against common coding vulnerabilities (such as a web application firewall), and documented procedures for maintaining these applications. Even if you didn’t write the snippet, you must be able to confirm that these controls have been met by all code on the page(s) in question. Therefore, if your business cannot meet these requirements, other e-commerce implementation options may be more favorable.
- The use of third-party services providers (TPSPs) is becoming increasingly prevalent across all aspects of the modern enterprise. Their potential value to deliver efficiency and improved customer experience is undisputed. However, this practice creates a significant challenge for security and compliance. It is unacceptable to turn a blind eye to the roles, permissions and capabilities third parties have within your organization. Requirement 12.8 (in scope for every SAQ type, including both SAQ A and SAQ A-EP) requires that a list be maintained of all service providers that could affect the security of cardholder data (even if they do not store, process or transmit that data), including any PCI DSS controls that their services impact.
What To Do If You Suspect a Compromise
Could your site’s payments function already be compromised? If you believe an infection has already occurred, or your site has been running without the necessary controls in place to prevent such an attack, immediate action is crucial. As with any data breach, removal of the affected vendor code may not fully resolve the issue. Our Security Consulting Services experts can help with vendor risk assessment, vulnerability scanning and penetration testing, to confirm full remediation and removal of all malicious code from affected systems.
Want to learn more about protecting the payment card data collected through your website? Check out the e-commerce articles on our PCI Compliance Guide blog.