Estimated read time: 4 minutes
![Why It Is Not a Good Idea to Leave a Server on the Internet?](https://cdn.prod.website-files.com/6319cfa7c887590a57c2e4ac/6319d137bcbf8d2341644fdc_62fe31a0cf6c374d2f797140_2.webp)
In this article we would like to share our experience with running servers in the internet zone and why servers operating without communication restrictions are easy targets for attackers. Let's show it on a practical example, and we will see how attackers will take care of our server.
The main idea behind our experiment is to create a standard server somewhere in the public cloud and start there few services simulating common databases, web servers or remote access solutions.
We often read articles about hacked systems and how the Internet is dangerous, but what happens in real life? How our server will survive in the outside world? Is it true that hackers are trying to attack even if we are a small server somewhere in the corner of the Internet? There is also a question what happens if someone uses a password like "test" or "password" for a "root" user?
Consider the Following Scenario:
I installed a Linux operating system and emulation of an HTTP server, SSH server, VNC server, MySQL database and Postgres databases on our machine. This machine is run in Hetzner Cloud Console (personally, Hetzner is a very cool public cloud provider for simple infrastructure workloads). The emulator shows our server connect and login attempts with detailed information about the attacker's IP address and activities.
![](https://cdn.prod.website-files.com/6319cfa7c887590a57c2e4ac/6319d137bcbf8d9ecd644fdd_6240ab9f1d9ecdbf6b7ccc0e_Hetzner.png)
From statistics stored in our server, we can learn interesting things:
- first connection attempt to our server we can see just after 3 minutes (!), an attacker tries to connect to SSH service
- after 20minutes, we can see there many connection attempts to HTTP, MYSQL and POSTGRES services
- there is a connection rate of 2500 connections per hour from attacker's bots trying to login into our services
- it's clear that attackers are using password dictionaries for attack
![](https://cdn.prod.website-files.com/6319cfa7c887590a57c2e4ac/6319d137bcbf8d0278644fdf_6240abcce7a32133cba44657_Count%2520of%2520data%2520by%2520day%2520hour.png)
Let's now discover in detail how the attacks are targeting; we can see many logins with different user names like admin, demo, root, etc., and passwords from hacker's password dictionaries.
![](https://cdn.prod.website-files.com/6319cfa7c887590a57c2e4ac/6319d137bcbf8dd252644fde_6240abfef3c511579012bc2f_Passwords1-3.png)
What Does It Mean for Us?
First, attackers will try to break into the server if we run the server in an internet environment and leave an open connection to our services. Many times I had a chance to see usual misconfiguration like:
- Companies create temporary machines for external access, installed with default configurations and passwords. Usually, this temporary machine is hacked in a few hours or days.
- Or another example is a misconfigured machine for internal users (where security doesn't matter because it is an internal thing), which accidentally exposes it to the Internet. So again, we can see that it's been hacked in a while.
![](https://cdn.prod.website-files.com/6319cfa7c887590a57c2e4ac/6319d137bcbf8de395644fe0_6240ac29ab503960dd2d4f91_Alerts.png)
Don't underestimate security configuration and the Internet. Practically you are in the militarized zone there.
Try Shieldoo™️
Cyber security is becoming more and more important, which is why we provide you with essential information in a wide variety of articles on our blog. We also developed a new tool Shieldoo™️ based on Nebula from Slack which can help you to provide secure connection between end-users and servers. You can try your own private network here.
FAQs
What is a cyberattack?
Cyberattack may be defined as any malicious offensive assault targeted against computer network, information system, infrastructure or personal device. It may be attempt by an individual or an organization.
How to prevent cyberattacks?
It is necessary to try to reduce risk by following steps: secure hardware, protect and encrypt data, use security software, educate employees, promote a security-focused culture,...
What are cyber security solutions?
Cyber security solutions consists of tools and softwares that help protect organizations against cyber attacks. It may prevent application downtime, theft of sensitive data, damage to reputation, etc.