What is IT security and why is it a management issue?
Today a company works through its website, its webshop, its email and the data it keeps in the cloud. If one of these goes down or falls into the wrong hands, revenue is lost, customers lose trust and, where personal data is involved, a notification duty arises as well. IT security is therefore a question of budget and responsibility, and the decision belongs to management.
IT security, cyber security, information security: what is the difference?
Information security is the broadest concept: the protection of all information, from a contract kept on paper to the knowledge in your colleagues’ heads. IT security is the part of it that concerns IT systems: servers, networks, applications, databases and backups. Cyber security concentrates on threats coming from the internet, and it is the term used by the Hungarian cyber security act and the EU NIS2 Directive as well. In practice the three largely overlap, and on this page IT security is the umbrella term.
The three basic goals: confidentiality, integrity, availability
- Confidentiality. Only those who have the right to see the data can see it. A leaked customer database breaks it.
- Integrity. The data and the software are exactly what they should be. Code smuggled onto a hacked site or a forged bank account number breaks it.
- Availability. The system works when it is needed. An overload attack or a server encrypted and made unusable breaks it.
Who attacks and what do they want?
A typical company is rarely targeted by a dedicated attacker. Most of the traffic is automated: botnets constantly scan the internet for known flaws, weak passwords and forgotten admin interfaces. The goal is mostly money: data theft and selling the data, ransomware, or using the server to send spam or to launch further attacks. This also sets the logic of defence: against mass, automated cyber attacks well-maintained fundamentals protect best.
Photo: UnsplashServer security: the first line of defence
The website, the webshop and the email run on a server, and every attack arrives there. The aim of server security is that as little of it as possible is visible from outside, and that what is visible is up to date and monitored.

Simplified diagram: an attack has to get through several layers in a row. Where one does not stop it, the next one will.Hardening: reducing the attack surface
Hardening means strengthening the server: what is not needed is switched off, and what remains gets stricter settings. Its most important steps:
- Login over SSH with a key only, with no password login and no direct root login.
- Only the services actually in use are running, and old software versions and forgotten test sites are removed.
- A separate system user and PHP process for each website, so one hacked site does not take the others down with it.
- Admin interfaces and the database manager sit behind a password or IP filtering, closed off from the public internet.
We describe the basic server configuration on the Ubuntu VPS operation page, and we wrote about VPS in general in the article VPS server: what it is for.
Firewall, fail2ban and web application firewall (WAF)
Three filters, three different jobs. The firewall allows or blocks network traffic: with a good configuration only the web and mail ports can be reached from outside. The fail2ban watches the logs and bans the addresses that try passwords or probe for vulnerabilities. The web application firewall (WAF) sits in front of the website and recognises patterns typical of attacks in HTTP requests. It is worth putting a WAF in front of a webshop, because with its customer accounts and orders it is the most frequently attacked surface.
Update management: security patches within hours
A publicly known vulnerability starts to be exploited en masse within days of the patch being released, so a security update cannot wait for the monthly maintenance. We assess severity from the CVSS score and the exposure of the system in question. We install a critical patch the same day where possible, then check that the services are really running the patched version. Routine security updates are applied by automatic updates. What this looks like in practice is shown to the minute in our article on the PHP2Shell vulnerability.
Protection against DDoS attacks and overload
The aim of an overload (DDoS) attack is to paralyse: it sends so many requests to the server that real visitors can no longer get through. A small or medium-sized company’s server is protected effectively if the traffic arrives through a large network in the first place. We typically put Cloudflare in front of public sites, which filters out most of the attack traffic before it reaches the server. The rest is caught on the server by limits on the number and size of requests.
Logging, monitoring and alerting (SIEM)
What is not logged cannot be reconstructed afterwards: when and how it happened. It is worth collecting the logs of the server, the web server, PHP and logins in one place. You need an alert for when a service crashes, the web server user runs a command or an unusual outgoing connection appears. In a larger organisation a SIEM system does this: it correlates the logs of all the company’s devices and ranks suspicious patterns.
Access management and two-factor authentication
Most break-ins start with a stolen or guessed password. That is why every account gets only the rights its work requires, a leaving employee’s access ends the same day, and important accounts are protected by two-factor authentication. Switch it on first for email, the domain and hosting control panels, the webshop admin, and the Google and Meta accounts. Against a brute force attack, two-factor authentication protects you even if the password has already leaked.
Web application security: OWASP Top 10, SQL injection, XSS
An attacker can break into even a perfectly configured server if the website’s own code is flawed. The OWASP Top 10 collects the ten most common types of web application flaw, including SQL injection (altering a database query through an input field), cross-site scripting (XSS, running foreign code in the visitor’s browser) and faulty permission handling. As developers we know these at code level: in our own systems we use parameterised queries, output encoding and role-based permissions, and we review third-party code for these flaws. The typical trace of a hacked site is a webshell: a file with an innocent name in the upload folder.