Security

SIEM

A SIEM is a system that gathers in one place the logs of an organisation's devices, applications and services and correlates them in real time to detect threats and generate alerts.

In this post

A SIEM is a system that gathers in one place the activity logs of all an organisation’s devices, programs and services, and analyses them to detect suspicious behaviour. The acronym stands for Security Information and Event Management. When it finds something abnormal, it generates an alert so that an analyst can review it and decide how to act.

The best comparison is the control room of a large building. Every door, every lift and every corridor has its camera and its sensor, but if each one recorded its incidents in a different notebook, nobody could see the full picture. The control room brings all the signals together on one screen, and makes it possible to spot that a forced door, a stopped lift and a silenced alarm are part of the same event.

A SIEM is the control room of your digital security. It brings all the scattered signals together and cross-checks them to uncover what would go unnoticed on its own.

What is a SIEM?

All the devices and programs that a SIEM monitors generate logs. They record who logs in, which files are opened, which connections are established and which errors occur. A server produces thousands of lines a day, and a medium-sized organisation, millions. Reviewing them by hand is impossible, and if they are stored on each machine separately, an attacker who gets in can delete them to cover their tracks. A SIEM solves both problems.

SIM and SEM, the two functions a SIEM brings together

The acronym sums up two functions that used to be sold separately. Security information management, SIM, dealt with storing logs for long periods and analysing them after the fact, mainly for audits and investigations. Security event management, SEM, watched what was happening in real time and raised alerts. Over time, both were merged into a single platform. That dual heritage explains what a SIEM offers today. It is used to see live whether something abnormal is happening and also to reconstruct in detail what happened weeks earlier. A log that nobody keeps is useless for investigating, and one that nobody looks at in time is useless for stopping an attack. Both are needed.

Difference between SIM and SEM in a SIEM

Neighbouring tools

The world of monitoring has many overlapping acronyms. EDR looks in detail at what happens inside each device. SOAR automates the responses to alerts. XDR tries to unify signals from devices, email, the network and the cloud. The SIEM sits at the centre, because it is the place where data from every source is gathered and cross-checked, and it often feeds the other tools.

For an organisation that is just starting out, the question is not which one to buy, but which problem to solve. If the urgent need is to know what happened in an incident, a good log store is required. If the urgent need is to detect intrusions on laptops, an EDR adds more value. Over time, these pieces get connected to each other, but there is no need to have them all from day one.

How a SIEM works

Collecting and centralising

The first step when deploying a SIEM is to connect the sources. Servers, workstations, firewalls, email systems, cloud applications, login accounts and network devices. Each one sends its logs to the central system, where they are stored out of reach of the monitored machines. This last point is essential. An attacker who compromises a server and deletes its local logs cannot alter the copies that have already been sent.

Choosing what to log is an important decision. Too little leaves gaps, and too much floods the system with noise and makes storage more expensive. Guidelines recommend prioritising the events most relevant to security. Logins, permission changes, account creation, configuration changes and unusual connections. A short, well-thought-out list usually works better than dumping everything.

Correlating and alerting

Once the logs are centralised, the system applies rules that describe suspicious patterns. Many failed login attempts followed by a successful one. An account connecting from two countries within a few minutes. A device that starts sending large volumes of data outside. It also uses behavioural analysis, which learns what is normal in each environment and warns about deviations. Each pattern detected generates an alert. The challenge is balance. Rules that are too sensitive generate hundreds of false alarms, which wear out the analysts and lead to real warnings being ignored. Rules that are too lax let attacks through. Tuning the system is continuous work that requires knowing the environment and the way the organisation works. That is why it is a tool that gives good results in expert hands and poor results in nobody’s hands.

How a SIEM links events to detect an account takeover

Threat intelligence and behavioural analysis

Fixed rules are complemented by several other sources of information. Threat intelligence feeds provide addresses, domains and file hashes associated with known attacks, and the SIEM warns as soon as they appear in the organisation’s own logs. User and entity behaviour analytics, or UEBA, learns what is normal for each account and flags whatever falls outside the pattern.

Many systems also organise their rules according to the MITRE ATT&CK framework, to know which attack techniques they cover and which they do not. And the main enemy of a SIEM is alert fatigue. If it generates hundreds of false warnings a day, analysts stop looking at them and the real ones go unnoticed.

Investigating and responding

When an alert fires, an analyst examines it. They look at the related logs, check whether it is a false positive and, if it is not, trigger the response procedure.

Isolating a computer, locking an account and notifying whoever is responsible are typical first steps. The most advanced systems automate some of these actions. The centralised history also makes it possible to investigate after the fact, finding out when an intrusion began and how far it reached.

This ability to reconstruct every phase of an attack is very valuable. Many organisations discover that an attacker had been inside for weeks or months. With a good history, they can find out which data was touched, where the attacker got in and which accounts were used. Without one, they can only guess, and they are forced to assume the worst. Having reliable logs turns an opaque crisis into an investigation based on data, and it makes the subsequent legal notifications easier.

Logs and monitoring on a website

A website also generates logs that a SIEM can make use of. The server records every request, and content management systems and online shops, such as WordPress, PrestaShop or Magento, can log logins, user changes, extension installations and administrator actions. With security extensions or with the application’s own logging you get a simple version of the same idea. An activity log that shows who did what and when, and email alerts when something important happens, such as a new administrator or a modified file. If your website runs on WordPress, a WordPress security specialist knows how to put this protection into practice.

A good habit is to define which events are critical and must arrive immediately. A new administrator, an unauthorised extension installation, an abnormal volume of failed logins. And to review a weekly summary of everything else. This distinction prevents alert fatigue and ensures that serious matters do not go unnoticed. Logs are useless if nobody reads them, and useless if the attacker can delete them.

Use cases for event correlation

Each SIEM use case translates into a set of sources that have to be connected and a specific set of correlation rules. A SIEM without defined use cases is just an expensive log store, which is why mature teams start by deciding what they want to detect.

Logins with stolen credentials

The most common use case is detecting that someone is logging in with a stolen password. The impossible travel rule raises an alert when the same account logs in from Madrid and, twenty minutes later, from Singapore, and another classic rule fires when dozens of failed attempts end in a successful login.

Lateral movement by an intruder

Once inside, the intruder jumps from one machine to another. The SIEM detects this when an account that used to work on two computers logs in to thirty in an hour, or when remote administration tools appear on machines where nobody uses them, by combining Windows login logs with antivirus logs.

Data leaving the organisation

Exfiltration is detected by comparing the volume of data leaving each device with its usual behaviour. A database server that sends several gigabytes to an unknown address in the early hours, or a laptop uploading files to a personal storage service, generates an alert that deserves immediate review.

Insider threats

Insider threats are hard to see because the user has legitimate permissions. The SIEM helps by cross-referencing activity with HR data, for example when an employee who has just handed in their resignation downloads more documents in two days than in the whole previous year.

Dangerous configurations in the cloud

In the cloud, the SIEM monitors the provider’s audit logs. It raises an alert when a storage bucket becomes public, when an access key is created for an account that did not need one or when someone disables the audit log itself, which is usually a step that comes just before an attack.

Regulatory compliance and log platforms

Regulatory compliance is another strong reason for deploying a SIEM. The PCI DSS standard requires access to card data to be logged and reviewed, the ISO 27001 standard asks for activity logs to be monitored and, in Spain, the National Security Framework obliges public administrations and their suppliers to keep and analyse the logs of their systems.

The market includes commercial products, cloud-native services and open-source alternatives, such as Wazuh or the Elastic stack. Many charge for the volume of data they receive each day, so deciding what to log is also an economic decision.

Alternatives for small organisations and checking your monitoring

Limitations and alternatives for small organisations

A SIEM is not a tool that you install and that then works on its own. It requires connecting the right sources, writing and tuning rules, handling alerts and maintaining the system. If time is not devoted to it, it generates noise or goes blind to what matters. In addition, its cost, between licences, storage and staff, is considerable, and a poor choice can eat up budget without adding protection.

For small and medium-sized businesses there are more realistic options than a full SIEM. Cloud services reduce the maintenance burden, and managed services hand the monitoring over to a specialised provider who handles the alerts in exchange for a fee. Even a simple set of centralised logs, with basic alerts about logins and configuration changes, is better than nothing and can grow over time.

How to tell whether your monitoring is enough

Ask yourself whether you would find out that someone had broken into your website or your systems. How long would it take you? Who would see it? If the answer is probably through a customer complaint, your monitoring is weak. The minimum useful logs include logins, permission changes and file modifications. If you do not have them, start by enabling them and storing them in a separate place.

Check how long your security logs are kept. Many intrusions are discovered months after they happen. If your logs only last a few days, you will not be able to reconstruct anything. Retention of at least three to six months is a common reference, and some standards require more. Weigh up the cost of storage, which is usually modest compared with the value of being able to investigate an incident with real data.

Finally, define who responds to each SIEM alert. An alert without an owner is just noise. Assign a person, and a deputy, with clear instructions on what to do when the most important warnings come in. Test the procedure once a year with a simulated alert. The FireEye case showed the value of attentive monitoring and expert analysis, and that combination is what turns a pile of logs into a real defence.

An authentication alert that uncovered a supply chain attack

On 8 December 2020, the security company FireEye announced that it had been the victim of a very sophisticated attack. The attackers had accessed its security testing tools, which the company uses to simulate attacks for the benefit of its customers. Its chief executive, Kevin Mandia, described the attack as carried out by an actor with exceptional capabilities. It was a serious blow for a company whose business is precisely detecting intrusions.

FireEye published measures to detect the use of the stolen tools, more than three hundred of them, which anyone could download. And it launched an in-depth investigation with the FBI and Microsoft. During that analysis, it discovered something bigger. The attackers had got in through a tampered update of a network management program called Orion, from the company SolarWinds. On 13 December, FireEye revealed the existence of a global supply chain attack campaign.

The discovery uncovered one of the largest intrusions in history, which affected thousands of organisations, including US government agencies. A security company, thanks to its own monitoring and analysis capabilities, was the first to raise the alarm. Many other organisations had had the tampered program installed for months without realising it, with logs that could have shown strange activity if anyone had cross-checked them.

The lesson of that early detection is twofold. Centralised monitoring and expert analysis make it possible to detect even the most skilled attackers, if you look at the right data. And whoever lacks that capability can take a very long time to find out. For a small organisation, the point is not to copy FireEye’s set-up, but to embrace the idea. Log what matters, store it out of reach and have someone who reviews it when something does not add up.

The evolution of SIEM from log management

Before SIEM, security teams reviewed logs by hand or with standalone tools. In the late 1990s the first event management products appeared, such as those from ArcSight, founded in 2000, and in 2005 the Gartner analysts Mark Nicolett and Amrit Williams coined the term SIEM to name the merger of information management and event management, security information management and security event management.

In the following decade, Splunk popularised searching large volumes of logs, IBM bought QRadar in 2011 and the free Elastic project made it possible to build similar systems without licences. Around 2019 cloud-native SIEM tools arrived, such as Microsoft Sentinel and Google’s Chronicle, which charge by data volume and scale without servers of their own.

Today the SIEM increasingly blends with its neighbouring tools. It incorporates behavioural analysis, response automation and artificial intelligence that summarises alerts, and many organisations buy it as a managed service together with an outsourced security operations centre.

Frequently asked questions

Frequently asked questions about SIEM

What is a SIEM?

It is a system that gathers in one place the activity logs of all an organisation's devices, programs and services, and analyses them to detect suspicious behaviour. When it finds something odd, it generates an alert for an analyst to review.

What does SIEM stand for?

It stands for Security Information and Event Management. It brings together two ideas, collecting and storing security information, and analysing events in real time to react when something abnormal happens.

What is a log in a SIEM?

It is an automatic record of something that happens in a system. Who logged in, which file was opened, which connection was established, which error occurred. Devices generate thousands of logs a day, and separately they are almost impossible to review. A SIEM centralises them and makes sense of them.

What advantages does a SIEM have?

It lets you see the whole picture, correlating events that seem unrelated. An odd login, followed by a mass download and an external connection, may be an attack, even though each event on its own looks harmless. It is also used to investigate incidents and demonstrate regulatory compliance.

What are the use cases of a SIEM?

The most widespread are detecting stolen credentials, monitoring changes to administrator accounts, detecting lateral movement and tracking devices that behave strangely. It is also used to show compliance with regulations that require access logs to be kept and to reconstruct an incident.

What are the difficulties of a SIEM?

It requires configuring properly what gets logged, tuning the rules to avoid false alarms and having people to analyse what comes out. A SIEM with nobody reading its alerts is a wasted expense. It can also generate large volumes of data, with the storage costs that come with them.

Does a small company need a SIEM?

Not a complex one of its own, but something equivalent. Managed services and cloud platforms offer simple versions. The essential thing is to log what matters, such as logins and changes, store it away from the monitored device and review it when there is a warning.

How is a SIEM related to a SOC?

The SIEM is the tool and the security operations centre is the human team that uses it. Normally, the centre's analysts work on the SIEM alerts, investigate them and decide how to respond. One without the other loses much of its value.

I set up security monitoring tailored to your project

Although a full SIEM is usually meant for large organisations, I can set up security monitoring that fits the real size of your website.

About the author

Javier Afán

WordPress developer specialised in security, WooCommerce, and hacked website recovery.

I work on WordPress from a technical angle focused on security, architecture, and the decisions that really affect a project's continuity.