How to protect your eCommerce project from cyber attacks

April 5, 2023
7 min
ecommerce project from cyber attacks

How to protect your eCommerce project from cyber attacks

According to ThreatPost, NordLocker scientists discovered 1.2 terabytes of stolen information collected from 3.2 million Windows computers in June 2021. Hackers attacked with viral versions of photo editors, pirated games, and Windows hacking tools. They found 6.6 million files, 26 million pieces of bank information, and 2 billion cookies. This proves that nowadays, personal data is more vulnerable than ever.

It’s not just companies that haven’t taken security measures or users who don’t know why you can’t connect to an unsecured connection or what a VPN is that are at risk. As ExpressVPN explains, any of us are potentially vulnerable. Let’s say you have a Mac with Wi-Fi and Ethernet connections available, but the preferred connection is Ethernet. It’s a common situation. At the same time, the IP address in the “DNS Servers” section is 10.x.x.x, 192.168.x.x, or between 172.16.x.x and 172.31.x.x, which is your local IP address. So, the router is acting as a DNS server, and the ISP easily looks up your DNS queries. In this case, you are completely vulnerable to a leak through the DNS server, although the system looks secure at first glance.

PerimeterX research shows that cybercriminals no longer use a single attack model but instead develop an attack tailored to each eCommerce company. This is not surprising: Cyber attack software can easily be purchased for $100 on the dark web. What’s more, as this year’s Verizon report showed, in 61% of incidents, data was leaked after account credentials were stolen. Cybercriminals pay $2 to buy billions of logins and passwords and then use the information to break in and get substantial financial rewards.

Our client had a case where he was hacked in a rather interesting way. So we at Default Value are well experienced in how to secure an online store.

Types of cybercrimes

In this article, we’ll take a closer look at the cyber risks that eCommerce companies face and how to deal with them.

Cyber threat statistics in eCommerce

Let’s look at the following facts from the WebScale report to determine what to expect in the future.

  • According to Cyberpion, 83% of U.S. eCommerce businesses are vulnerable to cyberattacks.
  • According to a VMWare Carbon Black report, 77% of online store owners have purchased cybersecurity tools, and 69% have expanded their IT departments by hiring experts to assess networks, systems, and vulnerabilities.
  • In 2020, the number of viral bots was 32% higher than in 2019. 38% more DDoS attacks were recorded. Credit card thefts without the online banking user’s knowledge were 43% more common, and financial fraud was 56% more advanced. SQL injection (putting a virus code into a form on the site of an online store to get the buyer’s money at the moment of online payment) increased by 45%.

Those eCommerce representatives who were able to adapt to the threats of the digital age have taken several security measures. Let’s take a look at what this has resulted in, according to the WebScale report.

  • 70% of organizations have invested in two-factor authentication.
  • 54% of brands have taken care of bot management, a system to detect viral bots and block malicious traffic that disrupts the online store.
  • 79% of e-commerce players will invest in a Content Security Protection (CSP) policy. This mechanism protects against the site’s introduction of viral forms and codes. The CSP forms the rules for secure content and blocks any information from outside the site that does not comply with the rules.
  • 64% of the companies will buy online fraud detection systems, and 72% will purchase Real User Monitoring (RUM) software.
  • 68% of online store owners want to automate security management systems.
  • With these measures, 29% of organizations have improved their ability to prevent cyberattacks compared to two years ago. 34% are faster at identifying hacker intent, 24% are better at recovering systems after a leak, and 27% are more accessible at minimizing the impact of incidents on business.

Types of cybercrimes

As we mentioned above, hackers have rarely used the same tactics in recent years, each time coming up with new ways to bypass security. Nevertheless, users are often lazy when it comes to cybersecurity, and cybercriminals may use long-tested attack methods, which we’ll talk about here.



During a DDoS attack, many requests are sent to the system, making it impossible for ordinary users to log in and taking the system down. For example, Amazon suffered such an attack in 2020, after which it took the company three days to get the site back up and running.

What you can do to protect your online store from a DDoS attack:

  • Use only licensed software and don’t ignore updates.
  • Update your server hardware frequently.
  • Install an open-source proxy manager (such as NGINX) to help your server withstand high traffic volumes.
  • Implement traffic analytics to help identify DDoS attacks in advance.
  • Use a firewall to protect network servers, giving access only to administrators.



Skimming is adding virus code to various websites to collect users’ data—for example, to payment and order confirmation pages, giving hackers access to banking data, emails, passwords, etc.

Measures to protect eCommerce projects from skimming include:

  • Using a firewall and two-factor authentication.
  • Regular system updates.
  • Installation of security plugins (if the site was created using free templates).



Phishing is a model of cybercrime in which hackers impersonate a real company while sending emails. When the recipient clicks on a link in an email or opens an attached file, a virus attacks their computer. Often these attacks can be ordered by your competitor, or cyber criminals can steal important data or break your site, demanding a ransom. Unfortunately, the only thing you can do to protect yourself from phishing is to always be on your guard against opening suspicious emails, especially if the link to the site looks strange.

In the first quarter of 2022, according to Statista, 14.6 percent of all phishing attacks worldwide were aimed at retail and eCommerce projects, making them the third most important targets for hackers (after financial institutions and SaaS).

SQL injection

This is probably one of the easiest tactics to infiltrate a site that works with databases, bypassing all authentication procedures. The hacker adds arbitrary code to SQL queries, which gives him access to databases, personal user data, including transaction data, and the ability to encrypt the data to demand a ransom.

What can you do to protect your eCom project from this attack?

  • Don’t make your store code publicly available.
  • Don’t use other people’s code, as it may contain viruses.
  • GET method should be replaced by POST, since GET sends unencrypted requests, which may help cyber criminals to find out the variable names for the attack.
  • If you have had technical problems with your site, don’t tell users which ones because hackers may figure out which vulnerabilities you have.

Why is using Magento 2 a guarantee of security for your site?

In the world of eCommerce, security is paramount. Online stores are a prime target for cybercriminals looking to steal sensitive data and exploit vulnerabilities. That’s why it’s essential to choose an eCommerce platform that provides robust security features to protect your site and your customers. Magento 2 is one such platform, and it’s quickly becoming the go-to choice for online businesses.

One of the primary reasons why using Magento 2 is a guarantee of security for your site is its commitment to cybersecurity. Magento 2 is designed with security in mind, and the platform is continuously updated with the latest security features to protect against cyber threats. Magento 2’s built-in security features include data encryption, two-factor authentication, and PCI compliance.

Moreover, Magento 2 offers a range of security extensions that can protect your eCommerce project from cyber attacks. These extensions can help detect and prevent fraud, provide malware scanning, and enable real-time security monitoring. They can also help you stay on top of emerging threats and provide automated security updates to keep your site safe and secure.

In addition, Magento 2’s modular architecture provides additional protection by reducing the risk of site-wide breaches. This architecture allows developers to build custom extensions and add-ons without affecting the core codebase. This means that if a vulnerability is discovered in a third-party extension, it can be isolated and addressed without compromising the entire site.

Finally, Magento 2’s active community of developers and security experts ensures that the platform remains up-to-date with the latest security trends and best practices. They are continually working to improve the platform’s security features and address any vulnerabilities as they arise.

In conclusion, if you’re looking to protect your eCommerce project from cyber attacks and safeguard your customers’ data, Magento 2 is an excellent choice. Its robust security features, modular architecture, and active community of developers and security experts provide a reliable and secure eCommerce platform for businesses of all sizes.


In conclusion, protecting your eCommerce project from cyber attacks is crucial in ensuring the security of your customers’ sensitive data and your business reputation. It is essential to understand the common types of cyber attacks and implement preventive measures such as using strong passwords, keeping software up to date, and installing firewalls and anti-virus programs.

However, there is no one-size-fits-all solution to cybersecurity, and partnering with experts in Magento 2 development and cybersecurity can provide a more comprehensive approach. Default Value offers customized security solutions for eCommerce projects that address the unique needs of each business.

Our team of experienced developers and security experts can conduct a thorough analysis of your website’s vulnerabilities and implement the necessary measures to protect your eCommerce project from cyber attacks. We can also provide ongoing support and monitoring to ensure that your website is always up to date with the latest security standards.

In today’s digital age, cyber attacks are becoming increasingly sophisticated, and eCommerce projects are a prime target. By partnering with Default Value, you can rest assured that your eCommerce project is secure, and your customers’ data is protected. Contact us today to learn more about how we can help protect your eCommerce project from cyber attacks.

Written by

Table of Contents