The post has been translated automatically. Original language: Russian
The company collects logs of servers, network equipment, and workstations. Thousands of events are visible in the dashboard. Then there is a suspicion that the customer base has been unloaded from the CRM.
The web server's log contains a successful request to the export function. But the application did not save who performed it, which organization the data belonged to, and how many records were in the file.
The amount of logs collected doesn't help much in this situation. The desired event was left without context.
The application knows things that the infrastructure doesn't.
The web server can capture the request address and the response code. The application itself knows more: the user, his role, the object of the operation, and the result of the access check.
Therefore, connecting the infrastructure to SIEM, a system for collecting and analyzing security events, does not mean that critical actions inside the product are observable.
To begin with, it is necessary to agree on clear names of events: login, role change, token creation, data export, access denial. When one system calls a change of rights a "user update", and the other records only a technical request, it is more difficult to compare what is happening.
What does a useful entry look like?
For conditional export from CRM, it is useful to save the time, user and organization IDs, the name of the operation, its result, the number of records, and the task ID.
If the file forms a background process, the start and end events need to be linked. Otherwise, the "export requested" entry can easily be mistaken for confirmation that the data has indeed been uploaded. The output of the finished file to the user should also be recorded separately.
At the same time, the contents of the client database, passwords, and access tokens are not needed in the log. Information about the operation is important for the investigation; copying secrets creates an additional place for possible leakage.
A check that can be carried out before the incident
Perform three coordinated actions on the test data: change the user role, start exporting, and try to open an unavailable object. Then ask the analyst to reconstruct what happened based on the received events only.
The check should answer specific questions.:
- is it possible to identify the initiator and the affected object;
- are attempt, failure, and successful execution different?;
- are the events of the same operation related?;
- whether the records reached monitoring without losing significant fields.
After that, check another scenario: the source has stopped sending events. The system should make it possible to distinguish the absence of activity from the failure of log delivery.
A good criterion for the quality of monitoring: after a critical operation, you can restore who did what, when, and with what result. The number of connected sources does not show this by itself.
В компании собираются журналы серверов, сетевого оборудования и рабочих станций. В панели мониторинга видны тысячи событий. Затем возникает подозрение, что из CRM выгрузили клиентскую базу.
В журнале веб-сервера находится успешный запрос к функции экспорта. Но кто его выполнил, к какой организации относились данные и сколько записей попало в файл, приложение не сохранило.
Объем собранных логов в такой ситуации мало помогает. Нужное событие осталось без контекста.
Приложение знает то, чего не знает инфраструктура
Веб-сервер может зафиксировать адрес запроса и код ответа. Само приложение знает больше: пользователя, его роль, объект операции и результат проверки доступа.
Поэтому подключение инфраструктуры к SIEM, системе сбора и анализа событий безопасности, ещё не означает, что критические действия внутри продукта наблюдаемы.
Для начала стоит согласовать понятные названия событий: вход, изменение роли, создание токена, экспорт данных, отказ в доступе. Когда одна система называет смену прав «обновлением пользователя», а другая фиксирует только технический запрос, сопоставлять происходящее сложнее.
Как выглядит полезная запись
Для условного экспорта из CRM полезно сохранить время, идентификаторы пользователя и организации, название операции, ее результат, количество записей и идентификатор задания.
Если файл формирует фоновый процесс, события запуска и завершения нужно связать. Иначе запись «экспорт запрошен» легко принять за подтверждение того, что данные действительно выгружены. Выдачу готового файла пользователю также стоит фиксировать отдельно.
При этом содержимое клиентской базы, пароли и токены доступа в журнале не нужны. Для расследования важны сведения об операции; копирование секретов создаёт дополнительное место возможной утечки.
Проверка, которую можно провести до инцидента
На тестовых данных выполните три согласованных действия: измените роль пользователя, запустите экспорт и попробуйте открыть недоступный объект. Затем попросите аналитика восстановить происходившее только по поступившим событиям.
Проверка должна ответить на конкретные вопросы:
- можно ли определить инициатора и затронутый объект;
- различаются ли попытка, отказ и успешное выполнение;
- связаны ли события одной операции;
- дошли ли записи до мониторинга без потери значимых полей.
После этого проверьте ещё один сценарий: источник перестал отправлять события. Система должна позволять отличить отсутствие активности от сбоя доставки журналов.
Хороший критерий качества мониторинга: по критической операции можно восстановить, кто, когда и что сделал, с каким результатом. Количество подключенных источников само по себе этого не показывает.
Comments 3
Newest Popular