Skip to content

Auditbeat Linux

Overview

Auditbeat communicates directly with the Linux audit framework, collects the same data as auditd then the data can be stored in JSON inside a log file before being sent to a log concentrator.

The following Sekoia.io built-in rules match the intake Elastic AuditBeat Linux. This documentation is updated automatically and is based solely on the fields used by the intake which are checked against our rules. This means that some rules will be listed but might not be relevant with the intake.

SEKOIA.IO x Elastic AuditBeat Linux on ATT&CK Navigator

AccCheckConsole Executing Dll

Detects suspicious LOLBIN AccCheckConsole execution with parameters as used to load an arbitrary DLL.

  • Effort: advanced
AdFind Usage

Detects the usage of the AdFind tool. AdFind.exe is a free tool that extracts information from Active Directory. Wizard Spider (Bazar, TrickBot, Ryuk), FIN6 and MAZE operators have used AdFind.exe to collect information about Active Directory organizational units and trust objects

  • Effort: elementary
Add User to Privileged Group

Add user in a potential privileged group which can be used to elevate privileges on the system

  • Effort: advanced
Address Space Layout Randomization (ASLR) Alteration

ASLR is a security feature used by the Operating System to mitigate memory exploit, attacker might want to disable it

  • Effort: intermediate
Adexplorer Usage

Detects the usage of Adexplorer, a legitimate tool from the Sysinternals suite that could be abused by attackers as it can saves snapshots of the Active Directory Database.

  • Effort: advanced
Advanced IP Scanner

Detects the use of Advanced IP Scanner. Seems to be a popular tool for ransomware groups.

  • Effort: master
Aspnet Compiler

Detects the starts of aspnet compiler.

  • Effort: advanced
Audio Capture via PowerShell

Detects audio capture via PowerShell Cmdlet

  • Effort: intermediate
AzureEdge in Command Line

Detects use of azureedge in the command line.

  • Effort: advanced
BITSAdmin Download

Detects command to download file using BITSAdmin, a built-in tool in Windows. This technique is used by several threat actors to download scripts or payloads on infected system.

  • Effort: advanced
BazarLoader Persistence Using Schtasks

Detects possible BazarLoader persistence using schtasks. BazarLoader will create a Scheduled Task using a specific command line to establish its persistence.

  • Effort: intermediate
Bloodhound and Sharphound Tools Usage

Detects default process names and default command line parameters used by Bloodhound and Sharphound tools.

  • Effort: intermediate
Blue Mockingbird Malware

Attempts to detect system changes made by Blue Mockingbird

  • Effort: elementary
CMSTP Execution

Detects various indicators of Microsoft Connection Manager Profile Installer execution

  • Effort: intermediate
Capture a network trace with netsh.exe

Detects capture a network trace via netsh.exe trace functionality

  • Effort: intermediate
CertOC Loading Dll

Detects when a user installs certificates by using CertOC.exe to loads the target DLL file.

  • Effort: intermediate
Certificate Authority Modification

Installation of new certificate(s) in the Certificate Authority can be used to trick user when spoofing website or to add trusted destinations.

  • Effort: master
Change Default File Association

When a file is opened, the default program used to open the file (also called the file association or handler) is checked. File association selections are stored in the Windows Registry and can be edited by users, administrators, or programs that have Registry access or by administrators using the built-in assoc utility. Applications can modify the file association for a given file extension to call an arbitrary program when a file with the given extension is opened.

  • Effort: advanced
Clear EventLogs Through CommandLine

Detects a command that clears event logs which could indicate an attempt from an attacker to erase its previous traces.

  • Effort: intermediate
Cmdkey Cached Credentials Recon

Detects usage of cmdkey to look for cached credentials.

  • Effort: intermediate
Commonly Used Commands To Stop Services And Remove Backups

Detects specific commands used regularly by ransomwares to stop services or remove backups

  • Effort: intermediate
Compress Data for Exfiltration via Archiver

Detects data compressed by specific tools.

  • Effort: advanced
Container Credential Access

Adversaries could abuse containers tools to obtain credential like Kubernetes secret or Kubernetes service account access token

  • Effort: intermediate
Control Panel Items

Detects the malicious use of a control panel item

  • Effort: advanced
Copying Browser Files With Credentials

Detects copy of sensitive data (passwords, cookies, credit cards) included in web browsers files.

  • Effort: elementary
Copying Sensitive Files With Credential Data

Detects copy of files with well-known filenames (sensitive files with credential data) using esentutl. This requires Windows Security event log with the Detailed File Share logging policy enabled.

  • Effort: elementary
DNS Exfiltration and Tunneling Tools Execution

Well-known DNS exfiltration tools execution

  • Effort: intermediate
Data Compressed With Rar

An adversary may compress data in order to make it portable and minimize the amount of data sent over the network, this could be done the popular rar command line program.

  • Effort: master
Data Compressed With Rar With Password

An adversary may compress data in order to make it portable and minimize the amount of data sent over the network, this could be done the popular rar command line program. This is a more specific one for rar where the arguments allow to encrypt both file data and headers with a given password.

  • Effort: intermediate
Debugging Software Deactivation

Deactivation of some debugging softwares using taskkill command. It was observed being used by Ransomware operators.

  • Effort: elementary
Default Encoding To UTF-8 PowerShell

Detects PowerShell encoding to UTF-8, which is used by Sliver implants. The command line just sets the default encoding to UTF-8 in PowerShell.

  • Effort: advanced
Disable Task Manager Through Registry Key

Detects commands used to disable the Windows Task Manager by modifying the proper registry key in order to impair security tools. This technique is used by the Agent Tesla RAT, among others.

  • Effort: elementary
Disabled IE Security Features

Detects from the command lines or the registry, changes that indicate unwanted modifications to registry keys that disable important Internet Explorer security features. This has been used by attackers during Operation Ke3chang.

  • Effort: advanced
Dism Disabling Windows Defender

Detects windows defender disabled by dism.

  • Effort: advanced
Docker Escape Bind Mount

Catch Docker escape via mount escape followed by chroot

  • Effort: intermediate
Domain Group And Permission Enumeration

Detects adversaries attempts to find domain-level groups and permission settings. Commands such as net group /domain of the Net utility can list domain-level groups The knowledge of domain-level permission groups can help adversaries determine which groups exist and which users belong to a particular group. Adversaries may use this information to determine which users have elevated permissions, such as domain administrators. Wizard Spider, FIN6, and other groups used net in their campaigns.

  • Effort: advanced
Domain Trust Discovery Through LDAP

Detects attempts to gather information on domain trust relationships that may be used to identify lateral movement opportunities. "trustedDomain" which is detected here is a Microsoft Active Directory ObjectClass Type that represents a domain that is trusted by, or trusting, the local AD DOMAIN. Several tools are using LDAP queries in the end to get the information (DSQuery, sometimes ADFind as well, etc.)

  • Effort: elementary
Dynamic Linker Hijacking From Environment Variable

LD_PRELOAD and LD_LIBRARY_PATH are environment variables used by the Operating System at the runtime to load shared objects (library.ies) when executing a new process, attacker can overwrite this variable to attempts a privileges escalation.

  • Effort: advanced
ETW Tampering

Detects a command that clears or disables any ETW Trace log which could indicate a logging evasion

  • Effort: intermediate
Elise Backdoor

Detects Elise backdoor activity as used by Lotus Blossom

  • Effort: elementary
Empire Monkey Activity

Detects EmpireMonkey APT reported Activity

  • Effort: elementary
Equation Group DLL_U Load

Detects a specific tool and export used by EquationGroup

  • Effort: elementary
Erase Shell History

Malware and attacker try to reduce their fingerprints on compromised host by deleting shell history

  • Effort: advanced
Exchange Mailbox Export

Detection of a standard Exchange Mailbox export, which stores all mails from a user in a pst file.

  • Effort: intermediate
Exchange PowerShell Snap-Ins To Export Exchange Mailbox Data

Detects PowerShell SnapIn command line, often used with Get-Mailbox to export Exchange mailbox data.

  • Effort: intermediate
Exfiltration And Tunneling Tools Execution

Execution of well known tools for data exfiltration and tunneling

  • Effort: advanced
Exfiltration Domain In Command Line

Detects commands containing a domain linked to http exfiltration.

  • Effort: intermediate
Exfiltration Via Pscp

Detects the use of pscp which is a file sharing services.

  • Effort: advanced
Explorer Process Executing HTA File

Detects a suspicious execution of an HTA file by the explorer.exe process. This unusual activity was observed when running IcedID malspam.

  • Effort: intermediate
Fail2ban Unban IP

An IP was ubaned by Fail2ban. It could be use to allow malicous traffic.

  • Effort: advanced
File and Directory Permissions Modification

Detects the use of chmod to give high level permissions to file that might be binary files

  • Effort: advanced
Generic-reverse-shell-oneliner

To bypass some security equipement or for a sack of simplicity attackers can open raw reverse shell using shell commands

  • Effort: intermediate
Grabbing Sensitive Hives Via Reg Utility

Detects dump of SAM, System or Security hives using reg.exe utility. Adversaries may attempt to dump these Windows Registry to retrieve password hashes and access credentials.

  • Effort: intermediate
HackTools Suspicious Process Names In Command Line

Detects the default process name of several HackTools and also check in command line. This rule is here for quickwins as it obviously has many blind spots.

  • Effort: intermediate
Hiding Files With Attrib.exe

Detects usage of attrib.exe to hide files from users.

  • Effort: advanced
High Privileges Network Share Removal

Detects high privileges shares being deleted with the net share command.

  • Effort: intermediate
ICacls Granting Access To All

Detects suspicious icacls command granting access to all, used by the ransomware Ryuk to delete every access-based restrictions on files and directories. ICacls is a built-in Windows command to interact with the Discretionary Access Control Lists (DACLs) which can grand adversaries higher permissions on specific files and folders.

  • Effort: elementary
IIS Module Installation Using AppCmd

Detects the installation of a new IIS module from the command line. It can used used to backdoor an IIS/OWA/Sharepoint server.

  • Effort: intermediate
Inhibit System Recovery Deleting Backups

Detects adversaries attempts to delete backups or inhibit system recovery. This rule relies on differents known techniques using Windows events logs from Sysmon (ID 1), and PowerShell (ID 4103, 4104).

  • Effort: intermediate
KeePass Config XML In Command-Line

Detects a command-line interaction with the KeePass Config XML file. It could be used to retrieve informations or to be abused for persistence.

  • Effort: intermediate
Kernel Module Alteration

Kernel module installation can be used to configure system settings to automatically execute a program during system boot or logon to maintain persistence or gain higher-level privileges on compromised systems.

  • Effort: advanced
Lazarus Loaders

Detects different loaders used by the Lazarus Group APT

  • Effort: elementary
Linux Bash Reverse Shell

To bypass some security equipement or for a sack of simplicity attackers can open raw reverse shell using shell commands

  • Effort: intermediate
Linux Binary Masquerading

Attackers could rename legitimate system bin to evade security mechanisme

  • Effort: elementary
Linux Remove Immutable Attribute

Adversaries may used chattr utility to alter file and folder attributes to control sudden operations like the deletion and modification of files.

  • Effort: intermediate
Linux Shared Lib Injection Via Ldso Preload

Detect ld.so.preload modification for shared lib injection, technique used by attackers to load arbitrary code into process

  • Effort: intermediate
Linux Suspicious Search

Adversaries may search for private key on compromised systems

  • Effort: intermediate
List Shadow Copies

Detects command line used to list shadow copies. An adversary may attempt to get information on shadow volumes to perform deletion or extract password hashes from the ntds.dit file. This rule requires command line logging or Windows PowerShell events (4104).

  • Effort: master
Listing Systemd Environment

Detects a listing of systemd environment variables. This command could be used to do reconnaissance on a compromised host.

  • Effort: advanced
MSBuild Abuse

Detection of MSBuild uses by attackers to infect an host. Focuses on XML compilation which is a Metasploit payload, and on connections made by this process which is unusual.

  • Effort: intermediate
Malicious Browser Extensions

Detects browser extensions being loaded with the --load-extension and -base-url options, which works on Chromium-based browsers. We are looking for potentially malicious browser extensions. These extensions can get access to informations.

  • Effort: advanced
MalwareBytes Uninstallation

Detects command line being used by attackers to uninstall Malwarebytes.

  • Effort: intermediate
MavInject Process Injection

Detects process injection using the signed Windows tool Mavinject32.exe (which is a LOLBAS)

  • Effort: intermediate
Meterpreter or Cobalt Strike Getsystem Service Installation

Detects the use of getsystem Meterpreter/Cobalt Strike command by detecting some of the techniques being used (technique 1,2 and 5).

  • Effort: elementary
Microsoft Defender Antivirus Disable Scheduled Tasks

The rule detects attempts to deactivate/disable Windows Defender scheduled tasks via command line

  • Effort: intermediate
Microsoft Defender Antivirus Disable Using Registry

The rule detects attempts to deactivate/disable Microsoft Defender Antivirus using registry modification via command line.

  • Effort: master
Microsoft Defender Antivirus Disabled Base64 Encoded

Detects attempts to deactivate/disable Windows Defender through base64 encoded PowerShell command line.

  • Effort: intermediate
Microsoft Defender Antivirus History Directory Deleted

Windows Defender history directory has been deleted. Could be an attempt by an attacker to remove its traces.

  • Effort: elementary
Microsoft Defender Antivirus Restoration Abuse

The rule detects attempts to abuse Windows Defender file restoration tool. The Windows Defender process is allowed to write files in its own protected directory. This functionality can be used by a threat actor to overwrite Windows Defender files in order to prevent it from running correctly or use Windows Defender to execute a malicious DLL.

  • Effort: intermediate
Microsoft Defender Antivirus Set-MpPreference Base64 Encoded

Detects changes of preferences for Windows Defender scan and updates. Configure Windows Defender using base64-encoded commands is suspicious and could be related to malicious activities.

  • Effort: intermediate
Microsoft Defender Antivirus Signatures Removed With MpCmdRun

Detects attempts to remove Windows Defender Signatures using MpCmdRun legitimate Windows Defender executable. No signatures mean Windows Defender will be less effective (or completely useless depending on the option used).

  • Effort: elementary
Mshta JavaScript Execution

Identifies suspicious mshta.exe commands that execute JavaScript supplied as a command line argument.

  • Effort: elementary
NTDS.dit File Interaction Through Command Line

Detects interaction with the file NTDS.dit through command line. This is usually really suspicious and could indicate an attacker trying copy the file to then look for users password hashes.

  • Effort: intermediate
Net.exe User Account Creation

Identifies creation of local users via the net.exe command

  • Effort: master
NetSh Used To Disable Windows Firewall

Detects NetSh commands used to disable the Windows Firewall

  • Effort: intermediate
Netsh Allow Command

Netsh command line to allow a program to pass through firewall.

  • Effort: advanced
Netsh Allowed Python Program

Detects netsh command that performs modification on Firewall rules to allow the program python.exe. This activity is most likely related to the deployment of a Python server or an application that needs to communicate over a network. Threat actors could use it for data extraction, hosting a webshell or else.

  • Effort: intermediate
Netsh Port Forwarding

Detects netsh commands that enable a port forwarding between to hosts. This can be used by attackers to tunnel RDP or SMB shares for example.

  • Effort: intermediate
Netsh Port Opening

Detects netsh commands that opens a specific port. Can be used by malware or attackers for lateralisation/exfiltration (e.g. SMB/RDP opening).

  • Effort: master
Netsh RDP Port Forwarding

Detects netsh commands that configure a port forwarding of port 3389 used for RDP. This is commonly used by attackers during lateralization on windows environments.

  • Effort: elementary
Netsh RDP Port Opening

Detects netsh commands that opens the port 3389 used for RDP, used in Sarwent Malware

  • Effort: intermediate
Network Scanning and Discovery

Tools and command lines used for network discovery from current system

  • Effort: advanced
Network Sniffing

List of common tools used for network packages sniffing

  • Effort: advanced
Network Sniffing Windows

Network sniffing refers to using the network interface on a system to monitor or capture information sent over a wired or wireless connection. An adversary may place a network interface into promiscuous mode to passively access data in transit over the network, or use span ports to capture a larger amount of data.

  • Effort: intermediate
New DLL Added To AppCertDlls Registry Key

Dynamic-link libraries (DLLs) that are specified in the AppCertDLLs value in the Registry key can be abused to obtain persistence and privilege escalation by causing a malicious DLL to be loaded and run in the context of separate processes on the computer. Logging for Registry events is needed in the Sysmon configuration (events 12 and 13).

  • Effort: intermediate
New Service Creation

Detects creation of a new service from command line

  • Effort: advanced
Ngrok Process Execution

Detects possible Ngrok execution, which can be used by attacker for RDP tunneling.

  • Effort: intermediate
NlTest Usage

Detects attempts to gather information on domain trust relationships that may be used to identify lateral movement opportunities. These command lines were observed in numerous attacks, but also sometimes from legitimate administrators for debugging purposes. The rule does not cover very basics commands but rather the ones that are interesting for attackers to gather information on a domain.

  • Effort: advanced
Non-Legitimate Executable Using AcceptEula Parameter

Detects accepteula in command line with non-legitimate executable name. Some attackers are masquerading SysInternals tools with decoy names to prevent detection.

  • Effort: advanced
Opening Of a Password File

Command line detection of common office software opening some password related file. It could be a security breach if an unauthorized user access it.

  • Effort: master
Outlook Registry Access

Detection of accesses to Microsoft Outlook registry hive, which might contain sensitive information.

  • Effort: master
PasswordDump SecurityXploded Tool

Detects the execution of the PasswordDump SecurityXploded Tool

  • Effort: elementary
Permission Discovery Via Wmic

Detects discovery of permission on local groups via the tool wmic.

  • Effort: advanced
Phorpiex DriveMgr Command

Detects specific command used by the Phorpiex botnet to execute a copy of the loader during its self-spreading stage. As described by Microsoft, this behavior is unique and easily identifiable due to the use of folders named with underscores "__" and the PE name "DriveMgr.exe".

  • Effort: elementary
PowerCat Function Loading

Detect a basic execution of PowerCat. PowerCat is a PowerShell function allowing to do basic connections, file transfer, shells, relays, generate payloads.

  • Effort: intermediate
PowerShell AMSI Deactivation Bypass Using .NET Reflection

Detects Request to amsiInitFailed that can be used to disable AMSI (Antimalware Scan Interface) Scanning. More information about Antimalware Scan Interface https://docs.microsoft.com/en-us/windows/win32/amsi/antimalware-scan-interface-portal.

  • Effort: elementary
PowerShell Downgrade Attack

Detects PowerShell downgrade attack by comparing the host versions with the actually used engine version 2.0

  • Effort: elementary
PowerShell Download From URL

Detects a Powershell process that contains download commands in its command line string

  • Effort: advanced
PowerShell EncodedCommand

Detects popular file extensions in commands obfuscated in base64 run through the EncodedCommand option.

  • Effort: advanced
PowerShell Execution Via Rundll32

Detects PowerShell Strings applied to rundll as seen in PowerShdll.dll Rule modified

  • Effort: intermediate
PowerShell Malicious Nishang PowerShell Commandlets

Detects Commandlet names and arguments from the Nishang exploitation framework

  • Effort: advanced
Powershell UploadString Function

Powershell's uploadXXX functions are a category of methods which can be used to exfiltrate data through native means on a Windows host.

  • Effort: intermediate
Powershell Web Request

Detects the use of various web request methods executed remotely via Windows PowerShell

  • Effort: advanced
Process Memory Dump Using Comsvcs

Detects the use of comsvcs in command line to dump a specific proces memory. This techinique is widlely used by attackers for privilege escalation and pivot.

  • Effort: elementary
Process Memory Dump Using Rdrleakdiag

Detects the use of rdrleakdiag.exe in command line to dump the memory of a process. This technique is used by attackers for privilege escalation and pivot.

  • Effort: elementary
Process Trace Alteration

PTrace syscall provides a means by which one process ("tracer") may observe and control the execution of another process ("tracee") and examine and change the tracee's memory and registers. Attacker might want to abuse ptrace functionnality to analyse memory process. It requires to be admin or set ptrace_scope to 0 to allow all user to trace any process.

  • Effort: advanced
PsExec Process

Detects PsExec execution, command line which contains pstools or installation of the PsExec service. PsExec is a SysInternals which can be used to execute a program on another computer. The tool is as much used by attackers as by administrators.

  • Effort: advanced
Python HTTP Server

Detects command used to start a Simple HTTP server in Python. Threat actors could use it for data extraction, hosting a webshell or else.

  • Effort: intermediate
Python Offensive Tools and Packages

Track installation and usage of offensive python packages and project that are used for lateral movement

  • Effort: master
Qakbot Persistence Using Schtasks

Detects possible Qakbot persistence using schtasks.

  • Effort: intermediate
RDP Session Discovery

Detects use of RDP session discovery via qwinsta or quser. Used by some threat actors to know if someone is working via RDP on a server.

  • Effort: advanced
Raccine Uninstall

Detects commands that indicate a Raccine removal from an end system. Raccine is a free ransomware protection tool.

  • Effort: elementary
Rclone Process

Detects Rclone executable or Rclone execution by using the process name, the execution through a command obfuscated or not.

  • Effort: advanced
RedMimicry Winnti Playbook Registry Manipulation

Detects actions caused by the RedMimicry Winnti playbook. Logging for Registry events is needed in the Sysmon configuration (events 12 and 13).

  • Effort: elementary
Remote Monitoring and Management Software - AnyDesk

Detect artifacts related to the installation or execution of the Remote Monitoring and Management tool AnyDesk.

  • Effort: master
Rubeus Tool Command-line

Detects command line parameters used by Rubeus, a toolset to interact with Kerberos and abuse it.

  • Effort: advanced
SOCKS Tunneling Tool

Detects the usage of a SOCKS tunneling tool, often used by threat actors. These tools often use the socks5 commandline argument, however socks4 can sometimes be used as well. Unfortunately, socks alone (without any number) triggered too many false positives.

  • Effort: intermediate
SSH Tunnel Traffic

When a user creates and uses a SSH tunnel in Linux, the sshd process opens sockets to communicate with other machines or ports. With SSH tunneling, the SSH server can be used as a getaway to access internal systems. The traffic will seem to be coming from the SSH server whereas it only acts as a relay for an attacker. By using this technique, an attacker can successfully bypass external firewall rules and gain foothold to your network, allowing him to scan,hunt and attack your internal systems. This rule includes a filter on port 22, this filter is created to avoid false positive when a user is connecting via ssh. If you do not use port 22 for your machines, please create an alert filter.

  • Effort: advanced
SSH X11 Forwarding

When a user creates and uses SSH X11 Forwarding in Linux, the sshd process opens sockets to communicate with the client machine via a ssh tunnel. X11 forwarding is used to deport graphic programs on the client side.

  • Effort: advanced
Schtasks Persistence With High Privileges

Detection of scheduled task with high privileges used by attacker for persistence.

  • Effort: elementary
Setuid Or Setgid Usage

Detects the usage of a setuid or a setgid.

  • Effort: intermediate
Spyware Persistence Using Schtasks

Detects possible Agent Tesla or Formbook persistence using schtasks. The name of the scheduled task used by these malware is very specific (Updates/randomstring).

  • Effort: intermediate
Suncrypt Parameters

Detects SunCrypt ransomware's parameters, most of which are unique.

  • Effort: elementary
Suspicious Cmd File Copy Command To Network Share

Copy suspicious files through Windows cmd prompt to network share

  • Effort: intermediate
Suspicious CodePage Switch with CHCP

Detects a code page switch in command line

  • Effort: intermediate
Suspicious Control Process

Detects suspicious execution of control.exe process when used to execute a DLL file.

  • Effort: advanced
Suspicious DLL Loading By Ordinal

Detects suspicious DLL Loading by ordinal number in a non legitimate or rare folders. For example, Sofacy (APT28) used this technique to load their Trojan in a campaign of 2018.

  • Effort: intermediate
Suspicious Double Extension

Detects suspicious use of an .exe extension after a non-executable file extension like .pdf.exe, a set of spaces or underlines to cloak the executable file in spearphishing campaigns

  • Effort: advanced
Suspicious Finger Usage

Detects suspicious aged finger.exe tool execution often used in malware attacks nowadays. An attacker can use finger to silently retrieve a command, a script or a payload from a remote server. For example, the tool Darkfinger-C2 uses this technique to download files from the C2 channel.

  • Effort: intermediate
Suspicious Headless Web Browser Execution To Download File

Detects a suspicious command used to execute a Chromium-based web browser (Chrome or Edge) using the headless mode, meaning that the browser window wouldn't be visible, and the dump mode to download a file. This technique can be used to fingerprint the compromised host, in particular by the Ducktail infostealer.

  • Effort: elementary
Suspicious Microsoft Defender Antivirus Exclusion Command

Detects PowerShell commands aiming to exclude path, process, IP address, or extension from scheduled and real-time scanning. These commands can be used by attackers or malware to avoid being detected by Windows Defender. Depending on the environment and the installed software, this detection rule could raise false positives. We recommend customizing this rule by filtering legitimate processes that use Windows Defender exclusion command in your environment.

  • Effort: master
Suspicious Mshta Execution

Detects suspicious mshta.exe execution patterns, either involving file polyglotism, remote file (http, ftp or ldap) or suspicious location. This technique is often used by threat actors.

  • Effort: intermediate
Suspicious Netsh DLL Persistence

Detects persitence via netsh helper. Netsh interacts with other operating system components using dynamic-link library (DLL) files. Adversaries may establish persistence by executing malicious content triggered by Netsh Helper DLLs.

  • Effort: elementary
Suspicious Network Args In Command Line

Detection on some commonly observed suspicious processes command lines using HTTP schema with port 443.

  • Effort: intermediate
Suspicious PowerShell Invocations - Specific

Detects suspicious PowerShell invocation command parameters

  • Effort: intermediate
Suspicious PrinterPorts Creation (CVE-2020-1048)

Detects new commands that add new printer port which point to suspicious file

  • Effort: advanced
Suspicious Regasm Regsvcs Usage

catch abuse of regsvcs and regasm lolbin by attacker

  • Effort: advanced
Suspicious Rundll32.exe Execution

The process rundll32.exe executes a newly dropped DLL with update /i in the command line. This specific technic was observed at least being used by the IcedID loading mechanism dubbed Gziploader.

  • Effort: intermediate
Suspicious Taskkill Command

Detects rare taskkill command being used. It could be related to Baby Shark malware.

  • Effort: intermediate
Suspicious VBS Execution Parameter

Detects suspicious VBS file execution with a specific parameter by cscript. It was observed in the Operation CloudHopper.

  • Effort: elementary
Suspicious Windows Installer Execution

Detects suspicious execution of the Windows Installer service (msiexec.exe) which could be used to install a malicious MSI package hosted on a remote server.

  • Effort: intermediate
Suspicious Windows Script Execution

Detects wscript.exe or cscript.exe executing a script in user directories (C:\ProgramData or C:\Users) with a .txt extension, which is very suspicious. It could strongly correspond to a malware dropper, as seen during SquirrelWaffle maldoc campaign.

  • Effort: intermediate
Suspicious certutil command

Detects suspicious certutil command which can be used by threat actors to download and/or decode payload.

  • Effort: intermediate
Sysprep On AppData Folder

Detects suspicious Sysprep process start with AppData folder as target (as used by Trojan Syndicasec in Thrip report by Symantec). Sysprep is a Windows tool used to change Windows images from a generalized state to a specialized state, and then back to a generalized state. It can be used to remove all system-specific information and reset the computer.

  • Effort: intermediate
System Info Discovery

System info discovery, attempt to detects basic command use to fingerprint a host

  • Effort: master
Usage Of Procdump With Common Arguments

Detects the usage of Procdump sysinternals tool with some common arguments and followed by common patterns.

  • Effort: intermediate
WMI Install Of Binary

Detection of WMI used to install a binary on the host. It is often used by attackers as a signed binary to infect an host.

  • Effort: elementary
WMIC Uninstall Product

Detects products being uninstalled using WMIC command.

  • Effort: intermediate
WiFi Credentials Harvesting Using Netsh

Detects the harvesting of WiFi credentials using netsh.exe.

  • Effort: advanced
Windows Firewall Changes

Detects changes on Windows Firewall configuration

  • Effort: master
Wmic Process Call Creation

The WMI command-line (WMIC) utility provides a command-line interface for Windows Management Instrumentation (WMI). WMIC is compatible with existing shells and utility commands. Although WMI is supposed to be an administration tool, it is wildy abused by threat actors. One of the reasons is WMI is quite stealthy. This rule detects the wmic command line launching a process on a remote or local host.

  • Effort: intermediate
Wmic Service Call

Detects either remote or local code execution using wmic tool.

  • Effort: intermediate
XCopy Suspicious Usage

Detects the usage of xcopy with suspicious command line options (used by Judgment Panda APT in the past). The rule is based on command line only in case xcopy is renamed.

  • Effort: advanced
XSL Script Processing And SquiblyTwo Attack

Detection of an attack where adversaries may bypass application control and obscure execution of code by embedding scripts inside XSL files. Another variation of this technique, dubbed "Squiblytwo", involves to invoke JScript or VBScript within an XSL file.

  • Effort: intermediate
xWizard Execution

Detects the execution of Xwizard tool with specific arguments which utilized to run custom class properties.

  • Effort: master

Event Categories

The following table lists the data source offered by this integration.

Data Source Description
Authentication logs From system module, login dataset retrieve User logins, logouts, and system boots
File monitoring From audit module, the file metric-set sends events when a file is changed (created, updated, or deleted) on disk. The events contain file metadata and hashes
Process monitoring From system module, process dataset retrieve Started and stopped processes
Process use of network From system module, socket dataset retrieve Opened and Closed sockets

Event Samples

Find below few samples of events and how they are normalized by Sekoia.io.

{
    "message": "{\"@timestamp\":\"2023-06-23T07:55:01.421Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.17.7\"},\"user\":{\"audit\":{\"name\":\"foobar\",\"id\":\"1000\"},\"effective\":{\"id\":\"1000\",\"name\":\"foobar\"}},\"ecs\":{\"version\":\"1.12.0\"},\"host\":{\"name\":\"SRVFOOBAR\",\"hostname\":\"SRVFOOBAR\",\"architecture\":\"x86_64\",\"os\":{\"kernel\":\"4.15.0-192-generic\",\"codename\":\"bionic\",\"type\":\"linux\",\"platform\":\"ubuntu\",\"version\":\"18.04.5 LTS (Bionic Beaver)\",\"family\":\"debian\",\"name\":\"Ubuntu\"},\"id\":\"a1500a93a08345ce8499645d872ae3b4\",\"containerized\":false,\"ip\":[\"1.1.1.1\",\"fe80::\"],\"mac\":[\"00:00:00:00:00:00\"]},\"event\":{\"module\":\"auditd\",\"category\":[\"authentication\"],\"action\":\"changed-login-id-to\",\"outcome\":\"success\",\"kind\":\"event\",\"type\":[\"start\"]},\"agent\":{\"name\":\"SRVFOOBAR\",\"type\":\"auditbeat\",\"version\":\"7.17.7\",\"hostname\":\"SRVFOOBAR\",\"ephemeral_id\":\"e19079f8-f5eb-4c92-b875-2b8129079220\",\"id\":\"ac023697-7cb3-43f9-95df-2e1ee89b5bfe\"},\"process\":{\"pid\":18267},\"related\":{\"user\":[\"foobar\"]},\"auditd\":{\"result\":\"success\",\"data\":{\"tty\":\"(none)\",\"old-ses\":\"4294967295\"},\"session\":\"550229\",\"summary\":{\"actor\":{\"primary\":\"unset\",\"secondary\":\"root\"},\"object\":{\"type\":\"user-session\",\"primary\":\"1000\"}},\"message_type\":\"login\",\"sequence\":28655980},\"service\":{\"type\":\"auditd\"}}\n",
    "event": {
        "action": "changed-login-id-to",
        "category": [
            "authentication"
        ],
        "kind": "event",
        "module": "auditd",
        "outcome": "success",
        "type": [
            "start"
        ]
    },
    "@timestamp": "2023-06-23T07:55:01.421000Z",
    "action": {
        "outcome": "success"
    },
    "agent": {
        "ephemeral_id": "e19079f8-f5eb-4c92-b875-2b8129079220",
        "hostname": "SRVFOOBAR",
        "id": "ac023697-7cb3-43f9-95df-2e1ee89b5bfe",
        "name": "SRVFOOBAR",
        "type": "auditbeat",
        "version": "7.17.7"
    },
    "auditbeat": {},
    "auditd": {
        "data": {
            "old-ses": "4294967295",
            "tty": "(none)"
        },
        "message_type": "login",
        "result": "success",
        "sequence": 28655980,
        "session": "550229",
        "summary": {
            "actor": {
                "primary": "unset",
                "secondary": "root"
            },
            "object": {
                "primary": "1000",
                "type": "user-session"
            }
        },
        "user": {}
    },
    "client": {
        "address": [
            "1.1.1.1",
            "fe80::"
        ],
        "ip": [
            "1.1.1.1",
            "fe80::"
        ],
        "mac": [
            "00:00:00:00:00:00"
        ]
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "SRVFOOBAR",
        "id": "a1500a93a08345ce8499645d872ae3b4",
        "ip": [
            "1.1.1.1",
            "fe80::"
        ],
        "mac": [
            "00:00:00:00:00:00"
        ],
        "name": "SRVFOOBAR",
        "os": {
            "codename": "bionic",
            "family": "debian",
            "kernel": "4.15.0-192-generic",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "18.04.5 LTS (Bionic Beaver)"
        }
    },
    "log": {
        "hostname": "SRVFOOBAR"
    },
    "process": {
        "pid": 18267
    },
    "related": {
        "hosts": [
            "SRVFOOBAR"
        ],
        "ip": [
            "1.1.1.1",
            "fe80::"
        ]
    },
    "sekoiaio": {
        "client": {
            "name": "SRVFOOBAR",
            "os": {
                "type": "linux"
            }
        },
        "server": {
            "name": "SRVFOOBAR",
            "os": {
                "type": "linux"
            }
        }
    },
    "server": {
        "ip": [
            "1.1.1.1",
            "fe80::"
        ],
        "mac": [
            "00:00:00:00:00:00"
        ]
    },
    "service": {
        "type": "auditd"
    },
    "user": {
        "audit": {
            "id": "1000",
            "name": "foobar"
        },
        "effective": {
            "id": "1000",
            "name": "foobar"
        }
    }
}
{
    "message": "{\"@timestamp\":\"2023-06-22T08:03:20.160Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.13.1\"},\"source\":{\"ip\":\"1.1.1.1\"},\"service\":{\"type\":\"auditd\"},\"user\":{\"effective\":{\"id\":\"0\",\"name\":\"root\"},\"selinux\":{\"user\":\"=unconfined\"}},\"host\":{\"name\":\"ext-rp\"},\"agent\":{\"id\":\"5e75ccef-91c4-4dec-9615-d30ac29006d8\",\"name\":\"ext-rp\",\"type\":\"auditbeat\",\"version\":\"7.13.1\",\"hostname\":\"ext-rp\",\"ephemeral_id\":\"2cb57415-6154-41e9-8584-fb412e22c5a7\"},\"process\":{\"pid\":16718,\"executable\":\"/usr/sbin/sshd\"},\"network\":{\"direction\":\"ingress\"},\"related\":{\"user\":[\"root\"]},\"auditd\":{\"message_type\":\"user_login\",\"sequence\":39380335,\"result\":\"fail\",\"data\":{\"op\":\"login\",\"terminal\":\"sshd\",\"acct\":\"root\"},\"summary\":{\"actor\":{\"primary\":\"unset\",\"secondary\":\"root\"},\"object\":{\"secondary\":\"1.1.1.1\",\"type\":\"user-session\",\"primary\":\"sshd\"},\"how\":\"/usr/sbin/sshd\"}},\"event\":{\"action\":\"logged-in\",\"outcome\":\"failure\",\"kind\":\"event\",\"type\":[\"start\",\"authentication_failure\"],\"module\":\"auditd\",\"category\":[\"authentication\"]},\"ecs\":{\"version\":\"1.9.0\"}}",
    "event": {
        "action": "logged-in",
        "category": [
            "authentication"
        ],
        "kind": "event",
        "module": "auditd",
        "outcome": "failure",
        "type": [
            "authentication_failure",
            "start"
        ]
    },
    "@timestamp": "2023-06-22T08:03:20.160000Z",
    "action": {
        "outcome": "failure"
    },
    "agent": {
        "ephemeral_id": "2cb57415-6154-41e9-8584-fb412e22c5a7",
        "hostname": "ext-rp",
        "id": "5e75ccef-91c4-4dec-9615-d30ac29006d8",
        "name": "ext-rp",
        "type": "auditbeat",
        "version": "7.13.1"
    },
    "auditbeat": {},
    "auditd": {
        "data": {
            "acct": "root",
            "op": "login",
            "terminal": "sshd"
        },
        "message_type": "user_login",
        "result": "fail",
        "sequence": 39380335,
        "summary": {
            "actor": {
                "primary": "unset",
                "secondary": "root"
            },
            "how": "/usr/sbin/sshd",
            "object": {
                "primary": "sshd",
                "secondary": "1.1.1.1",
                "type": "user-session"
            }
        },
        "user": {}
    },
    "client": {
        "address": "1.1.1.1",
        "ip": "1.1.1.1"
    },
    "host": {
        "name": "ext-rp",
        "os": {
            "type": "linux"
        }
    },
    "log": {
        "hostname": "ext-rp"
    },
    "network": {
        "direction": "ingress"
    },
    "process": {
        "executable": "/usr/sbin/sshd",
        "name": "sshd",
        "pid": 16718
    },
    "related": {
        "ip": [
            "1.1.1.1"
        ]
    },
    "sekoiaio": {
        "authentication": {
            "process": {
                "name": "sshd"
            }
        },
        "server": {
            "name": "ext-rp",
            "os": {
                "type": "linux"
            }
        }
    },
    "server": {},
    "service": {
        "type": "auditd"
    },
    "source": {
        "address": "1.1.1.1",
        "ip": "1.1.1.1"
    },
    "user": {
        "effective": {
            "id": "0",
            "name": "root"
        },
        "selinux": {
            "user": "=unconfined"
        }
    }
}
{
    "message": "  {\"@timestamp\":\"2023-06-22T01:32:32.888Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.17.9\"},\"event\":{\"kind\":\"event\",\"type\":[\"start\",\"authentication_success\"],\"module\":\"auditd\",\"category\":[\"authentication\"],\"action\":\"logged-in\",\"outcome\":\"success\"},\"user\":{\"name\":\"linveeam\",\"id\":\"1001\",\"selinux\":{\"user\":\"=unconfined\"},\"audit\":{\"name\":\"linveeam\",\"id\":\"1001\"}},\"process\":{\"executable\":\"/usr/sbin/sshd\",\"pid\":1432775},\"source\":{\"ip\":\"1.1.1.1\"},\"network\":{\"direction\":\"ingress\"},\"auditd\":{\"message_type\":\"user_login\",\"sequence\":968787,\"result\":\"success\",\"data\":{\"terminal\":\"/dev/pts/0\",\"id\":\"1001\",\"hostname\":\"1.1.1.1\",\"op\":\"login\"},\"session\":\"66207\",\"summary\":{\"actor\":{\"primary\":\"linveeam\",\"secondary\":\"linveeam\"},\"object\":{\"secondary\":\"1.1.1.1\",\"type\":\"user-session\",\"primary\":\"/dev/pts/0\"},\"how\":\"/usr/sbin/sshd\"}},\"agent\":{\"id\":\"8e633966-f3f7-4b2e-a58c-eb0a020a4d8c\",\"name\":\"SRVFOOBAR\",\"type\":\"auditbeat\",\"version\":\"7.17.9\",\"hostname\":\"SRVFOOBAR\",\"ephemeral_id\":\"b56f3afe-b449-4d5e-ae91-913589894aae\"},\"host\":{\"name\":\"SRVFOOBAR\"},\"related\":{\"user\":[\"linveeam\"]},\"service\":{\"type\":\"auditd\"},\"ecs\":{\"version\":\"1.12.0\"}}\n",
    "event": {
        "action": "logged-in",
        "category": [
            "authentication"
        ],
        "kind": "event",
        "module": "auditd",
        "outcome": "success",
        "type": [
            "authentication_success",
            "start"
        ]
    },
    "@timestamp": "2023-06-22T01:32:32.888000Z",
    "action": {
        "outcome": "success"
    },
    "agent": {
        "ephemeral_id": "b56f3afe-b449-4d5e-ae91-913589894aae",
        "hostname": "SRVFOOBAR",
        "id": "8e633966-f3f7-4b2e-a58c-eb0a020a4d8c",
        "name": "SRVFOOBAR",
        "type": "auditbeat",
        "version": "7.17.9"
    },
    "auditbeat": {},
    "auditd": {
        "data": {
            "hostname": "1.1.1.1",
            "id": "1001",
            "op": "login",
            "terminal": "/dev/pts/0"
        },
        "message_type": "user_login",
        "result": "success",
        "sequence": 968787,
        "session": "66207",
        "summary": {
            "actor": {
                "primary": "linveeam",
                "secondary": "linveeam"
            },
            "how": "/usr/sbin/sshd",
            "object": {
                "primary": "/dev/pts/0",
                "secondary": "1.1.1.1",
                "type": "user-session"
            }
        },
        "user": {}
    },
    "client": {
        "address": "1.1.1.1",
        "ip": "1.1.1.1"
    },
    "host": {
        "name": "SRVFOOBAR",
        "os": {
            "type": "linux"
        }
    },
    "log": {
        "hostname": "SRVFOOBAR"
    },
    "network": {
        "direction": "ingress"
    },
    "process": {
        "executable": "/usr/sbin/sshd",
        "name": "sshd",
        "pid": 1432775
    },
    "related": {
        "ip": [
            "1.1.1.1"
        ],
        "user": [
            "linveeam"
        ]
    },
    "sekoiaio": {
        "authentication": {
            "process": {
                "name": "sshd"
            }
        },
        "server": {
            "name": "SRVFOOBAR",
            "os": {
                "type": "linux"
            }
        }
    },
    "server": {},
    "service": {
        "type": "auditd"
    },
    "source": {
        "address": "1.1.1.1",
        "ip": "1.1.1.1"
    },
    "user": {
        "audit": {
            "id": "1001",
            "name": "linveeam"
        },
        "id": "1001",
        "name": "linveeam",
        "selinux": {
            "user": "=unconfined"
        }
    }
}
{
    "message": " {\"@timestamp\":\"2023-06-22T12:15:59.000Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.17.9\"},\"related\":{\"user\":[\"USER_NAME1\"],\"ip\":[\"1.1.1.1\"]},\"message\":\"Login by user USER_NAME1 (UID: 10350) on ftpd12345 (PID: 37966) from 1.1.1.1 (IP: 1.1.1.1)\",\"agent\":{\"id\":\"03bea9ee-1954-4a31-900d-138c080e723b\",\"name\":\"foo.net\",\"type\":\"auditbeat\",\"version\":\"7.17.9\",\"hostname\":\"foo.net\",\"ephemeral_id\":\"aa3e9fe0-3a6f-4d78-8b40-6063a934018a\"},\"ecs\":{\"version\":\"1.12.0\"},\"user\":{\"id\":10350,\"terminal\":\"ftpd12345\",\"name\":\"USER_NAME1\"},\"process\":{\"pid\":37966},\"source\":{\"ip\":\"1.1.1.1\"},\"service\":{\"type\":\"system\"},\"event\":{\"action\":\"user_login\",\"origin\":\"/var/log/wtmp\",\"category\":[\"authentication\"],\"outcome\":\"success\",\"type\":[\"start\",\"authentication_success\"],\"module\":\"system\",\"dataset\":\"login\",\"kind\":\"event\"},\"host\":{\"name\":\"foo.net\"}}\n",
    "event": {
        "action": "user_login",
        "category": [
            "authentication"
        ],
        "kind": "event",
        "module": "system",
        "outcome": "success",
        "type": [
            "authentication_success",
            "start"
        ]
    },
    "@timestamp": "2023-06-22T12:15:59Z",
    "action": {
        "outcome": "success"
    },
    "agent": {
        "ephemeral_id": "aa3e9fe0-3a6f-4d78-8b40-6063a934018a",
        "hostname": "foo.net",
        "id": "03bea9ee-1954-4a31-900d-138c080e723b",
        "name": "foo.net",
        "type": "auditbeat",
        "version": "7.17.9"
    },
    "auditbeat": {
        "message": "Login by user USER_NAME1 (UID: 10350) on ftpd12345 (PID: 37966) from 1.1.1.1 (IP: 1.1.1.1)"
    },
    "auditd": {
        "user": {}
    },
    "client": {
        "address": "1.1.1.1",
        "ip": "1.1.1.1"
    },
    "host": {
        "name": "foo.net",
        "os": {
            "type": "linux"
        }
    },
    "log": {
        "hostname": "foo.net"
    },
    "process": {
        "pid": 37966
    },
    "related": {
        "ip": [
            "1.1.1.1"
        ],
        "user": [
            "USER_NAME1"
        ]
    },
    "sekoiaio": {
        "server": {
            "name": "foo.net",
            "os": {
                "type": "linux"
            }
        }
    },
    "server": {},
    "service": {
        "type": "system"
    },
    "source": {
        "address": "1.1.1.1",
        "ip": "1.1.1.1"
    },
    "user": {
        "id": "10350",
        "name": "USER_NAME1",
        "terminal": "ftpd12345"
    }
}
{
    "message": "  {\"@timestamp\":\"2023-06-22T15:59:33.000Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.13.1\"},\"user\":{\"name\":\"root\",\"id\":0,\"terminal\":\"ssh:notty\"},\"process\":{\"pid\":1999},\"agent\":{\"type\":\"auditbeat\",\"version\":\"7.13.1\",\"hostname\":\"ext-rp\",\"ephemeral_id\":\"2cb57415-6154-41e9-8584-fb412e22c5a7\",\"id\":\"5e75ccef-91c4-4dec-9615-d30ac29006d8\",\"name\":\"ext-rp\"},\"service\":{\"type\":\"system\"},\"event\":{\"dataset\":\"login\",\"kind\":\"event\",\"action\":\"user_login\",\"origin\":\"/var/log/btmp\",\"category\":[\"authentication\"],\"outcome\":\"failure\",\"type\":[\"start\",\"authentication_failure\"],\"module\":\"system\"},\"message\":\"Failed login by user root (UID: 0) on ssh:notty (PID: 1999) from 1.1.1.1 (IP: 1.1.1.1)\",\"host\":{\"name\":\"ext-rp\"},\"source\":{\"ip\":\"1.1.1.1\"},\"related\":{\"user\":[\"root\"],\"ip\":[\"1.1.1.1\"]},\"ecs\":{\"version\":\"1.9.0\"}}\n",
    "event": {
        "action": "user_login",
        "category": [
            "authentication"
        ],
        "kind": "event",
        "module": "system",
        "outcome": "failure",
        "type": [
            "authentication_failure",
            "start"
        ]
    },
    "@timestamp": "2023-06-22T15:59:33Z",
    "action": {
        "outcome": "failure"
    },
    "agent": {
        "ephemeral_id": "2cb57415-6154-41e9-8584-fb412e22c5a7",
        "hostname": "ext-rp",
        "id": "5e75ccef-91c4-4dec-9615-d30ac29006d8",
        "name": "ext-rp",
        "type": "auditbeat",
        "version": "7.13.1"
    },
    "auditbeat": {
        "message": "Failed login by user root (UID: 0) on ssh:notty (PID: 1999) from 1.1.1.1 (IP: 1.1.1.1)"
    },
    "auditd": {
        "user": {}
    },
    "client": {
        "address": "1.1.1.1",
        "ip": "1.1.1.1"
    },
    "host": {
        "name": "ext-rp",
        "os": {
            "type": "linux"
        }
    },
    "log": {
        "hostname": "ext-rp"
    },
    "process": {
        "pid": 1999
    },
    "related": {
        "ip": [
            "1.1.1.1"
        ],
        "user": [
            "root"
        ]
    },
    "sekoiaio": {
        "server": {
            "name": "ext-rp",
            "os": {
                "type": "linux"
            }
        }
    },
    "server": {},
    "service": {
        "type": "system"
    },
    "source": {
        "address": "1.1.1.1",
        "ip": "1.1.1.1"
    },
    "user": {
        "id": "0",
        "name": "root",
        "terminal": "ssh:notty"
    }
}
{
    "message": "{\"@timestamp\":\"2023-06-23T08:03:25.000Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.17.9\"},\"source\":{\"ip\":\"1.1.1.1\",\"domain\":\"host-1-1-1-1.foo.bar.net\"},\"agent\":{\"name\":\"baz.bar.net\",\"type\":\"auditbeat\",\"version\":\"7.17.9\",\"hostname\":\"baz.bar.net\",\"ephemeral_id\":\"aa3e9fe0-3a6f-4d78-8b40-6063a934018a\",\"id\":\"03bea9ee-1954-4a31-900d-138c080e723b\"},\"ecs\":{\"version\":\"1.12.0\"},\"service\":{\"type\":\"system\"},\"message\":\"Failed login by user cs (UID: -1) on ssh:notty (PID: 65003) from host-1-1-1-1.foo.bar.net (IP: 1.1.1.1)\",\"user\":{\"name\":\"cs\",\"terminal\":\"ssh:notty\"},\"related\":{\"user\":[\"cs\"],\"ip\":[\"1.1.1.1\"]},\"process\":{\"pid\":65003},\"host\":{\"name\":\"baz.bar.net\"},\"event\":{\"kind\":\"event\",\"action\":\"user_login\",\"origin\":\"/var/log/btmp\",\"category\":[\"authentication\"],\"outcome\":\"failure\",\"type\":[\"start\",\"authentication_failure\"],\"module\":\"system\",\"dataset\":\"login\"}}",
    "event": {
        "action": "user_login",
        "category": [
            "authentication"
        ],
        "kind": "event",
        "module": "system",
        "outcome": "failure",
        "type": [
            "authentication_failure",
            "start"
        ]
    },
    "@timestamp": "2023-06-23T08:03:25Z",
    "action": {
        "outcome": "failure"
    },
    "agent": {
        "ephemeral_id": "aa3e9fe0-3a6f-4d78-8b40-6063a934018a",
        "hostname": "baz.bar.net",
        "id": "03bea9ee-1954-4a31-900d-138c080e723b",
        "name": "baz.bar.net",
        "type": "auditbeat",
        "version": "7.17.9"
    },
    "auditbeat": {
        "message": "Failed login by user cs (UID: -1) on ssh:notty (PID: 65003) from host-1-1-1-1.foo.bar.net (IP: 1.1.1.1)"
    },
    "auditd": {
        "user": {}
    },
    "client": {
        "address": "1.1.1.1",
        "ip": "1.1.1.1"
    },
    "host": {
        "name": "baz.bar.net",
        "os": {
            "type": "linux"
        }
    },
    "log": {
        "hostname": "baz.bar.net"
    },
    "process": {
        "pid": 65003
    },
    "related": {
        "hosts": [
            "host-1-1-1-1.foo.bar.net"
        ],
        "ip": [
            "1.1.1.1"
        ],
        "user": [
            "cs"
        ]
    },
    "sekoiaio": {
        "server": {
            "name": "baz.bar.net",
            "os": {
                "type": "linux"
            }
        }
    },
    "server": {},
    "service": {
        "type": "system"
    },
    "source": {
        "address": "host-1-1-1-1.foo.bar.net",
        "domain": "host-1-1-1-1.foo.bar.net",
        "ip": "1.1.1.1",
        "registered_domain": "bar.net",
        "subdomain": "host-1-1-1-1.foo",
        "top_level_domain": "net"
    },
    "user": {
        "name": "cs",
        "terminal": "ssh:notty"
    }
}
{
    "message": "{\"@timestamp\":\"2021-01-01T00:01:01.000Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.13.0\"},\"event\":{\"module\":\"system\",\"dataset\":\"process\",\"kind\":\"event\",\"category\":[\"process\"],\"type\":[\"end\"],\"action\":\"process_stopped\"},\"process\":{\"working_directory\":\"/my/directory\",\"start\":\"2021-01-01T00:01:01.000Z\",\"name\":\"smtp\",\"entity_id\":\"AZERTY123456789\",\"ppid\":1457,\"executable\":\"/usr/lib/postfix/sbin/smtp\",\"pid\":123123,\"args\":[\"smtp\",\"-t\",\"unix\",\"-u\",\"-c\"],\"hash\":{\"sha1\":\"53fe0c00019fb177e43c7ac214f466f01158384e\"}},\"message\":\"Process smtp (PID: 123123) by user postfix STOPPED\",\"user\":{\"effective\":{\"id\":\"999\",\"group\":{\"id\":\"222\"}},\"saved\":{\"id\":\"999\",\"group\":{\"id\":\"222\"}},\"name\":\"postfix\",\"id\":\"999\",\"group\":{\"id\":\"222\",\"name\":\"postfix\"}},\"service\":{\"type\":\"system\"},\"ecs\":{\"version\":\"1.9.0\"},\"host\":{\"name\":\"fame\"},\"agent\":{\"hostname\":\"fame\",\"ephemeral_id\":\"qsdfghjklm-1111-2222-3333-azertyuiop\",\"id\":\"wxcvbn-010101-121212-4444-azertyuiop\",\"name\":\"fame\",\"type\":\"auditbeat\",\"version\":\"7.13.0\"}}",
    "event": {
        "action": "process_stopped",
        "category": [
            "process"
        ],
        "kind": "event",
        "module": "system",
        "type": [
            "end"
        ]
    },
    "@timestamp": "2021-01-01T00:01:01Z",
    "agent": {
        "ephemeral_id": "qsdfghjklm-1111-2222-3333-azertyuiop",
        "hostname": "fame",
        "id": "wxcvbn-010101-121212-4444-azertyuiop",
        "name": "fame",
        "type": "auditbeat",
        "version": "7.13.0"
    },
    "auditbeat": {
        "message": "Process smtp (PID: 123123) by user postfix STOPPED"
    },
    "auditd": {
        "user": {
            "group": {
                "id": "222"
            },
            "saved": {
                "group": {
                    "id": "222"
                },
                "id": "999"
            }
        }
    },
    "host": {
        "name": "fame"
    },
    "log": {
        "hostname": "fame"
    },
    "process": {
        "args": [
            "-c",
            "-t",
            "-u",
            "smtp",
            "unix"
        ],
        "command_line": "smtp -t unix -u -c",
        "entity_id": "AZERTY123456789",
        "executable": "/usr/lib/postfix/sbin/smtp",
        "hash": {
            "sha1": "53fe0c00019fb177e43c7ac214f466f01158384e"
        },
        "name": "smtp",
        "parent": {
            "pid": 1457
        },
        "pid": 123123,
        "start": "2021-01-01T00:01:01Z",
        "working_directory": "/my/directory"
    },
    "related": {
        "hash": [
            "53fe0c00019fb177e43c7ac214f466f01158384e"
        ],
        "user": [
            "postfix"
        ]
    },
    "service": {
        "type": "system"
    },
    "user": {
        "effective": {
            "group": {
                "id": "222"
            },
            "id": "999"
        },
        "group": {
            "id": "222",
            "name": "postfix"
        },
        "id": "999",
        "name": "postfix",
        "saved": {
            "group": {
                "id": "222"
            }
        }
    }
}
{
    "message": "{\"@timestamp\":\"2021-11-09T17:39:26.389Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.15.1\"},\"process\":{\"ppid\":18470,\"title\":\"/opt/google/chrome/chrome --type=zygote --enable-crashpad --crashpad-handler-pid=18479 --enable-crash-reporter=, --change-stack-\",\"name\":\"chrome\",\"executable\":\"/opt/google/chrome/chrome\",\"working_directory\":\"/home/housetodd\",\"pid\":18488},\"auditd\":{\"session\":\"3\",\"summary\":{\"actor\":{\"primary\":\"housetodd\",\"secondary\":\"housetodd\"},\"object\":{\"primary\":\"/proc/1/oom_score_adj\",\"type\":\"file\"},\"how\":\"/opt/google/chrome/chrome\"},\"paths\":[{\"cap_fe\":\"0\",\"cap_fver\":\"0\",\"inode\":\"16064\",\"name\":\"/proc/1/\",\"ogid\":\"0\",\"ouid\":\"0\",\"rdev\":\"00:00\",\"cap_fi\":\"0000000000000000\",\"cap_fp\":\"0000000000000000\",\"dev\":\"00:04\",\"item\":\"0\",\"mode\":\"040555\",\"nametype\":\"PARENT\"},{\"nametype\":\"NORMAL\",\"ogid\":\"0\",\"ouid\":\"0\",\"cap_fe\":\"0\",\"dev\":\"00:04\",\"item\":\"1\",\"mode\":\"0100644\",\"name\":\"/proc/1/oom_score_adj\",\"rdev\":\"00:00\",\"cap_fi\":\"0000000000000000\",\"cap_fp\":\"0000000000000000\",\"cap_fver\":\"0\",\"inode\":\"25973\"}],\"message_type\":\"syscall\",\"sequence\":9052,\"result\":\"fail\",\"data\":{\"tty\":\"(none)\",\"exit\":\"EACCES\",\"a0\":\"7ffc1bfcdfa0\",\"a3\":\"7ffc1bfcde00\",\"a2\":\"55881de610b8\",\"a1\":\"1b6\",\"arch\":\"x86_64\",\"syscall\":\"creat\"}},\"event\":{\"module\":\"auditd\",\"category\":[\"file\"],\"action\":\"opened-file\",\"outcome\":\"failure\",\"kind\":\"event\",\"type\":[\"creation\"]},\"user\":{\"filesystem\":{\"id\":\"5511617b-5ca7-4dd5-bb80-d8590dff4430\",\"group\":{\"id\":\"5511617b-5ca7-4dd5-bb80-d8590dff4430\",\"name\":\"housetodd\"},\"name\":\"housetodd\"},\"name\":\"housetodd\",\"audit\":{\"id\":\"5511617b-5ca7-4dd5-bb80-d8590dff4430\",\"name\":\"housetodd\"},\"saved\":{\"group\":{\"id\":\"5511617b-5ca7-4dd5-bb80-d8590dff4430\",\"name\":\"housetodd\"},\"id\":\"5511617b-5ca7-4dd5-bb80-d8590dff4430\",\"name\":\"housetodd\"},\"group\":{\"id\":\"5511617b-5ca7-4dd5-bb80-d8590dff4430\",\"name\":\"housetodd\"},\"id\":\"5511617b-5ca7-4dd5-bb80-d8590dff4430\"},\"host\":{\"name\":\"xps-housetodd\",\"ip\":[\"144.1.237.149\"],\"mac\":[\"22:69:ae:27:fe:66\"],\"hostname\":\"xps-housetodd\",\"architecture\":\"x86_64\",\"os\":{\"family\":\"debian\",\"name\":\"Ubuntu\",\"kernel\":\"4.15.0-161-generic\",\"codename\":\"bionic\",\"type\":\"linux\",\"platform\":\"ubuntu\",\"version\":\"18.04.6 LTS (Bionic Beaver)\"},\"id\":\"7dd912136af040e4a6ea4f683010b824\",\"containerized\":false},\"file\":{\"gid\":\"0\",\"owner\":\"housetodd\",\"group\":\"housetodd\",\"path\":\"/proc/1/oom_score_adj\",\"device\":\"00:00\",\"inode\":\"25973\",\"mode\":\"0644\",\"uid\":\"0\"},\"tags\":[\"access\"],\"service\":{\"type\":\"auditd\"},\"ecs\":{\"version\":\"1.11.0\"},\"agent\":{\"version\":\"7.15.1\",\"hostname\":\"xps-housetodd\",\"ephemeral_id\":\"f1ac5b09-4f0c-42cf-b9f7-f854eeae073a\",\"id\":\"e9872892-b999-4ad5-83da-d6ec9dbc1f81\",\"name\":\"xps-housetodd\",\"type\":\"auditbeat\"}}",
    "event": {
        "action": "opened-file",
        "category": [
            "file"
        ],
        "kind": "event",
        "module": "auditd",
        "type": [
            "creation"
        ]
    },
    "@timestamp": "2021-11-09T17:39:26.389000Z",
    "agent": {
        "ephemeral_id": "f1ac5b09-4f0c-42cf-b9f7-f854eeae073a",
        "hostname": "xps-housetodd",
        "id": "e9872892-b999-4ad5-83da-d6ec9dbc1f81",
        "name": "xps-housetodd",
        "type": "auditbeat",
        "version": "7.15.1"
    },
    "auditbeat": {
        "auditd": {
            "paths": [
                {},
                {}
            ]
        },
        "tags": [
            "access"
        ]
    },
    "auditd": {
        "data": {
            "a0": "7ffc1bfcdfa0",
            "a1": "1b6",
            "a2": "55881de610b8",
            "a3": "7ffc1bfcde00",
            "arch": "x86_64",
            "exit": "EACCES",
            "syscall": "creat",
            "tty": "(none)"
        },
        "message_type": "syscall",
        "paths": [
            {
                "cap_fe": "0",
                "cap_fi": "0000000000000000",
                "cap_fp": "0000000000000000",
                "cap_fver": "0",
                "dev": "00:04",
                "inode": "16064",
                "item": "0",
                "mode": "040555",
                "name": "/proc/1/",
                "nametype": "PARENT",
                "ogid": "0",
                "ouid": "0",
                "rdev": "00:00"
            },
            {
                "cap_fe": "0",
                "cap_fi": "0000000000000000",
                "cap_fp": "0000000000000000",
                "cap_fver": "0",
                "dev": "00:04",
                "inode": "25973",
                "item": "1",
                "mode": "0100644",
                "name": "/proc/1/oom_score_adj",
                "nametype": "NORMAL",
                "ogid": "0",
                "ouid": "0",
                "rdev": "00:00"
            }
        ],
        "result": "fail",
        "sequence": 9052,
        "session": "3",
        "summary": {
            "actor": {
                "primary": "housetodd",
                "secondary": "housetodd"
            },
            "how": "/opt/google/chrome/chrome",
            "object": {
                "primary": "/proc/1/oom_score_adj",
                "type": "file"
            }
        },
        "user": {
            "group": {
                "id": "5511617b-5ca7-4dd5-bb80-d8590dff4430"
            },
            "saved": {
                "group": {
                    "id": "5511617b-5ca7-4dd5-bb80-d8590dff4430",
                    "name": "housetodd"
                },
                "id": "5511617b-5ca7-4dd5-bb80-d8590dff4430",
                "name": "housetodd"
            }
        }
    },
    "file": {
        "device": "00:00",
        "directory": "/proc/1",
        "gid": "0",
        "group": "housetodd",
        "inode": "25973",
        "mode": "0644",
        "name": "oom_score_adj",
        "owner": "housetodd",
        "path": "/proc/1/oom_score_adj",
        "uid": "0"
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "xps-housetodd",
        "id": "7dd912136af040e4a6ea4f683010b824",
        "ip": [
            "144.1.237.149"
        ],
        "mac": [
            "22:69:ae:27:fe:66"
        ],
        "name": "xps-housetodd",
        "os": {
            "codename": "bionic",
            "family": "debian",
            "kernel": "4.15.0-161-generic",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "18.04.6 LTS (Bionic Beaver)"
        }
    },
    "log": {
        "hostname": "xps-housetodd"
    },
    "process": {
        "executable": "/opt/google/chrome/chrome",
        "name": "chrome",
        "parent": {
            "pid": 18470
        },
        "pid": 18488,
        "title": "/opt/google/chrome/chrome --type=zygote --enable-crashpad --crashpad-handler-pid=18479 --enable-crash-reporter=, --change-stack-",
        "working_directory": "/home/housetodd"
    },
    "related": {
        "hosts": [
            "xps-housetodd"
        ],
        "ip": [
            "144.1.237.149"
        ],
        "user": [
            "housetodd"
        ]
    },
    "service": {
        "type": "auditd"
    },
    "user": {
        "audit": {
            "id": "5511617b-5ca7-4dd5-bb80-d8590dff4430",
            "name": "housetodd"
        },
        "filesystem": {
            "group": {
                "id": "5511617b-5ca7-4dd5-bb80-d8590dff4430",
                "name": "housetodd"
            },
            "id": "5511617b-5ca7-4dd5-bb80-d8590dff4430",
            "name": "housetodd"
        },
        "group": {
            "id": "5511617b-5ca7-4dd5-bb80-d8590dff4430",
            "name": "housetodd"
        },
        "id": "5511617b-5ca7-4dd5-bb80-d8590dff4430",
        "name": "housetodd",
        "saved": {
            "group": {
                "id": "5511617b-5ca7-4dd5-bb80-d8590dff4430"
            }
        }
    }
}
{
    "message": "{\"@timestamp\":\"2021-11-09T19:07:37.325Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.15.1\"},\"event\":{\"outcome\":\"unknown\",\"kind\":\"event\",\"type\":[\"info\"],\"module\":\"auditd\",\"category\":[\"file\"],\"action\":\"violated-seccomp-policy\"},\"user\":{\"id\":\"56d2c11c-9371-4617-bac3-2c18e86042c6\",\"audit\":{\"id\":\"56d2c11c-9371-4617-bac3-2c18e86042c6\",\"name\":\"UWWL21LVdEVmqrbT\"},\"group\":{\"id\":\"56d2c11c-9371-4617-bac3-2c18e86042c6\",\"name\":\"UWWL21LVdEVmqrbT\"},\"name\":\"UWWL21LVdEVmqrbT\"},\"process\":{\"name\":\"ThreadPoolSingl\",\"executable\":\"/opt/google/chrome/chrome\",\"pid\":2720},\"host\":{\"mac\":[\"0c:5d:c0:dc:1f:3f\"],\"hostname\":\"xps-UWWL21LVdEVmqrbT\",\"architecture\":\"x86_64\",\"os\":{\"family\":\"debian\",\"name\":\"Ubuntu\",\"kernel\":\"4.15.0-161-generic\",\"codename\":\"bionic\",\"type\":\"linux\",\"platform\":\"ubuntu\",\"version\":\"18.04.6 LTS (Bionic Beaver)\"},\"id\":\"7dd912136af040e4a6ea4f683010b824\",\"containerized\":false,\"ip\":[\"43.161.42.208\"],\"name\":\"xps-UWWL21LVdEVmqrbT\"},\"agent\":{\"id\":\"e9872892-b999-4ad5-83da-d6ec9dbc1f81\",\"name\":\"xps-UWWL21LVdEVmqrbT\",\"type\":\"auditbeat\",\"version\":\"7.15.1\",\"hostname\":\"xps-UWWL21LVdEVmqrbT\",\"ephemeral_id\":\"f1ac5b09-4f0c-42cf-b9f7-f854eeae073a\"},\"ecs\":{\"version\":\"1.11.0\"},\"auditd\":{\"session\":\"2\",\"summary\":{\"how\":\"/opt/google/chrome/chrome\",\"actor\":{\"primary\":\"UWWL21LVdEVmqrbT\",\"secondary\":\"UWWL21LVdEVmqrbT\"},\"object\":{\"primary\":\"stat\",\"type\":\"process\"}},\"message_type\":\"seccomp\",\"sequence\":12522,\"result\":\"unknown\",\"data\":{\"code\":\"0x50000\",\"syscall\":\"stat\",\"compat\":\"0\",\"ip\":\"0x7fe0a0df1845\",\"arch\":\"x86_64\",\"sig\":\"0\"}},\"service\":{\"type\":\"auditd\"}}",
    "event": {
        "action": "violated-seccomp-policy",
        "category": [
            "file"
        ],
        "kind": "event",
        "module": "auditd",
        "type": [
            "info"
        ]
    },
    "@timestamp": "2021-11-09T19:07:37.325000Z",
    "agent": {
        "ephemeral_id": "f1ac5b09-4f0c-42cf-b9f7-f854eeae073a",
        "hostname": "xps-UWWL21LVdEVmqrbT",
        "id": "e9872892-b999-4ad5-83da-d6ec9dbc1f81",
        "name": "xps-UWWL21LVdEVmqrbT",
        "type": "auditbeat",
        "version": "7.15.1"
    },
    "auditbeat": {},
    "auditd": {
        "data": {
            "arch": "x86_64",
            "code": "0x50000",
            "compat": "0",
            "ip": "0x7fe0a0df1845",
            "sig": "0",
            "syscall": "stat"
        },
        "message_type": "seccomp",
        "result": "unknown",
        "sequence": 12522,
        "session": "2",
        "summary": {
            "actor": {
                "primary": "UWWL21LVdEVmqrbT",
                "secondary": "UWWL21LVdEVmqrbT"
            },
            "how": "/opt/google/chrome/chrome",
            "object": {
                "primary": "stat",
                "type": "process"
            }
        },
        "user": {
            "group": {
                "id": "56d2c11c-9371-4617-bac3-2c18e86042c6"
            }
        }
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "xps-UWWL21LVdEVmqrbT",
        "id": "7dd912136af040e4a6ea4f683010b824",
        "ip": [
            "43.161.42.208"
        ],
        "mac": [
            "0c:5d:c0:dc:1f:3f"
        ],
        "name": "xps-UWWL21LVdEVmqrbT",
        "os": {
            "codename": "bionic",
            "family": "debian",
            "kernel": "4.15.0-161-generic",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "18.04.6 LTS (Bionic Beaver)"
        }
    },
    "log": {
        "hostname": "xps-UWWL21LVdEVmqrbT"
    },
    "process": {
        "executable": "/opt/google/chrome/chrome",
        "name": "ThreadPoolSingl",
        "pid": 2720
    },
    "related": {
        "hosts": [
            "xps-UWWL21LVdEVmqrbT"
        ],
        "ip": [
            "43.161.42.208"
        ],
        "user": [
            "UWWL21LVdEVmqrbT"
        ]
    },
    "service": {
        "type": "auditd"
    },
    "user": {
        "audit": {
            "id": "56d2c11c-9371-4617-bac3-2c18e86042c6",
            "name": "UWWL21LVdEVmqrbT"
        },
        "group": {
            "id": "56d2c11c-9371-4617-bac3-2c18e86042c6",
            "name": "UWWL21LVdEVmqrbT"
        },
        "id": "56d2c11c-9371-4617-bac3-2c18e86042c6",
        "name": "UWWL21LVdEVmqrbT"
    }
}
{
    "message": "{\"@timestamp\":\"2021-11-09T18:35:01.754Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.15.1\"},\"related\":{\"user\":[\"root\"]},\"service\":{\"type\":\"auditd\"},\"event\":{\"module\":\"auditd\",\"category\":[\"authentication\"],\"action\":\"changed-login-id-to\",\"outcome\":\"success\",\"kind\":\"event\",\"type\":[\"start\"]},\"user\":{\"audit\":{\"id\":\"0\",\"name\":\"root\"},\"effective\":{\"id\":\"0\",\"name\":\"root\"}},\"ecs\":{\"version\":\"1.11.0\"},\"host\":{\"containerized\":false,\"ip\":[\"66.253.230.251\"],\"mac\":[\"5e:55:38:73:40:a4\"],\"hostname\":\"web-65\",\"architecture\":\"x86_64\",\"os\":{\"codename\":\"bionic\",\"type\":\"linux\",\"platform\":\"ubuntu\",\"version\":\"18.04.6 LTS (Bionic Beaver)\",\"family\":\"debian\",\"name\":\"Ubuntu\",\"kernel\":\"4.15.0-161-generic\"},\"name\":\"web-65\",\"id\":\"7dd912136af040e4a6ea4f683010b824\"},\"agent\":{\"ephemeral_id\":\"f1ac5b09-4f0c-42cf-b9f7-f854eeae073a\",\"id\":\"e9872892-b999-4ad5-83da-d6ec9dbc1f81\",\"name\":\"web-65\",\"type\":\"auditbeat\",\"version\":\"7.15.1\",\"hostname\":\"web-65\"},\"process\":{\"pid\":20899},\"auditd\":{\"data\":{\"tty\":\"(none)\",\"old-ses\":\"4294967295\"},\"session\":\"436\",\"summary\":{\"actor\":{\"primary\":\"unset\",\"secondary\":\"root\"},\"object\":{\"primary\":\"0\",\"type\":\"user-session\"}},\"message_type\":\"login\",\"sequence\":11578,\"result\":\"success\"}}",
    "event": {
        "action": "changed-login-id-to",
        "category": [
            "authentication"
        ],
        "kind": "event",
        "module": "auditd",
        "outcome": "success",
        "type": [
            "start"
        ]
    },
    "@timestamp": "2021-11-09T18:35:01.754000Z",
    "action": {
        "outcome": "success"
    },
    "agent": {
        "ephemeral_id": "f1ac5b09-4f0c-42cf-b9f7-f854eeae073a",
        "hostname": "web-65",
        "id": "e9872892-b999-4ad5-83da-d6ec9dbc1f81",
        "name": "web-65",
        "type": "auditbeat",
        "version": "7.15.1"
    },
    "auditbeat": {},
    "auditd": {
        "data": {
            "old-ses": "4294967295",
            "tty": "(none)"
        },
        "message_type": "login",
        "result": "success",
        "sequence": 11578,
        "session": "436",
        "summary": {
            "actor": {
                "primary": "unset",
                "secondary": "root"
            },
            "object": {
                "primary": "0",
                "type": "user-session"
            }
        },
        "user": {}
    },
    "client": {
        "address": [
            "66.253.230.251"
        ],
        "ip": [
            "66.253.230.251"
        ],
        "mac": [
            "5e:55:38:73:40:a4"
        ]
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "web-65",
        "id": "7dd912136af040e4a6ea4f683010b824",
        "ip": [
            "66.253.230.251"
        ],
        "mac": [
            "5e:55:38:73:40:a4"
        ],
        "name": "web-65",
        "os": {
            "codename": "bionic",
            "family": "debian",
            "kernel": "4.15.0-161-generic",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "18.04.6 LTS (Bionic Beaver)"
        }
    },
    "log": {
        "hostname": "web-65"
    },
    "process": {
        "pid": 20899
    },
    "related": {
        "hosts": [
            "web-65"
        ],
        "ip": [
            "66.253.230.251"
        ]
    },
    "sekoiaio": {
        "client": {
            "name": "web-65",
            "os": {
                "type": "linux"
            }
        },
        "server": {
            "name": "web-65",
            "os": {
                "type": "linux"
            }
        }
    },
    "server": {
        "ip": [
            "66.253.230.251"
        ],
        "mac": [
            "5e:55:38:73:40:a4"
        ]
    },
    "service": {
        "type": "auditd"
    },
    "user": {
        "audit": {
            "id": "0",
            "name": "root"
        },
        "effective": {
            "id": "0",
            "name": "root"
        }
    }
}
{
    "message": "{\"@timestamp\":\"2021-11-09T19:02:33.866Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.15.1\"},\"event\":{\"kind\":\"event\",\"type\":[\"start\"],\"module\":\"auditd\",\"category\":[\"process\"],\"action\":\"started-service\",\"outcome\":\"success\"},\"user\":{\"id\":\"16bb03ba-2e90-4c98-a5c8-c3d8b8b52c1e\",\"name\":\"X9PzJKityWAFaA5i\"},\"process\":{\"pid\":1,\"name\":\"systemd\",\"executable\":\"/lib/systemd/systemd\"},\"auditd\":{\"result\":\"success\",\"data\":{\"unit\":\"anacron\"},\"summary\":{\"how\":\"/lib/systemd/systemd\",\"actor\":{\"primary\":\"unset\",\"secondary\":\"X9PzJKityWAFaA5i\"},\"object\":{\"primary\":\"anacron\",\"type\":\"service\"}},\"message_type\":\"service_start\",\"sequence\":12295},\"service\":{\"type\":\"auditd\"},\"ecs\":{\"version\":\"1.11.16bb03ba-2e90-4c98-a5c8-c3d8b8b52c1e\"},\"host\":{\"hostname\":\"LCPmbaxBgGyJj8VH\",\"architecture\":\"x86_64\",\"os\":{\"name\":\"Ubuntu\",\"kernel\":\"4.15.0-161-generic\",\"codename\":\"bionic\",\"type\":\"linux\",\"platform\":\"ubuntu\",\"version\":\"18.04.6 LTS (Bionic Beaver)\",\"family\":\"debian\"},\"name\":\"LCPmbaxBgGyJj8VH\",\"id\":\"7dd912136af040e4a6ea4f683010b824\",\"containerized\":false,\"ip\":[\"87.138.107.154\"],\"mac\":[\"09:d0:5f:99:43:f6\"]},\"agent\":{\"hostname\":\"LCPmbaxBgGyJj8VH\",\"ephemeral_id\":\"f1ac5b09-4f0c-42cf-b9f7-f854eeae073a\",\"id\":\"e9872892-b999-4ad5-83da-d6ec9dbc1f81\",\"name\":\"LCPmbaxBgGyJj8VH\",\"type\":\"auditbeat\",\"version\":\"7.15.1\"}}",
    "event": {
        "action": "started-service",
        "category": [
            "process"
        ],
        "kind": "event",
        "module": "auditd",
        "type": [
            "start"
        ]
    },
    "@timestamp": "2021-11-09T19:02:33.866000Z",
    "agent": {
        "ephemeral_id": "f1ac5b09-4f0c-42cf-b9f7-f854eeae073a",
        "hostname": "LCPmbaxBgGyJj8VH",
        "id": "e9872892-b999-4ad5-83da-d6ec9dbc1f81",
        "name": "LCPmbaxBgGyJj8VH",
        "type": "auditbeat",
        "version": "7.15.1"
    },
    "auditbeat": {},
    "auditd": {
        "data": {
            "unit": "anacron"
        },
        "message_type": "service_start",
        "result": "success",
        "sequence": 12295,
        "summary": {
            "actor": {
                "primary": "unset",
                "secondary": "X9PzJKityWAFaA5i"
            },
            "how": "/lib/systemd/systemd",
            "object": {
                "primary": "anacron",
                "type": "service"
            }
        },
        "user": {}
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "LCPmbaxBgGyJj8VH",
        "id": "7dd912136af040e4a6ea4f683010b824",
        "ip": [
            "87.138.107.154"
        ],
        "mac": [
            "09:d0:5f:99:43:f6"
        ],
        "name": "LCPmbaxBgGyJj8VH",
        "os": {
            "codename": "bionic",
            "family": "debian",
            "kernel": "4.15.0-161-generic",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "18.04.6 LTS (Bionic Beaver)"
        }
    },
    "log": {
        "hostname": "LCPmbaxBgGyJj8VH"
    },
    "process": {
        "executable": "/lib/systemd/systemd",
        "name": "systemd",
        "pid": 1
    },
    "related": {
        "hosts": [
            "LCPmbaxBgGyJj8VH"
        ],
        "ip": [
            "87.138.107.154"
        ],
        "user": [
            "X9PzJKityWAFaA5i"
        ]
    },
    "service": {
        "type": "auditd"
    },
    "user": {
        "id": "16bb03ba-2e90-4c98-a5c8-c3d8b8b52c1e",
        "name": "X9PzJKityWAFaA5i"
    }
}
{
    "message": "{\"@timestamp\":\"2021-01-01T00:01:01.000Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.13.0\"},\"message\":\"Process containerd (PID: 1197) by user root is RUNNING\",\"user\":{\"group\":{\"name\":\"root\",\"id\":\"0\"},\"effective\":{\"id\":\"0\",\"group\":{\"id\":\"0\"}},\"saved\":{\"id\":\"0\",\"group\":{\"id\":\"0\"}},\"name\":\"root\",\"id\":\"0\"},\"ecs\":{\"version\":\"1.9.0\"},\"host\":{\"name\":\"fame\"},\"agent\":{\"hostname\":\"fame\",\"ephemeral_id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"name\":\"fame\",\"type\":\"auditbeat\",\"version\":\"7.13.0\"},\"service\":{\"type\":\"system\"},\"event\":{\"action\":\"existing_process\",\"id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"module\":\"system\",\"dataset\":\"process\",\"kind\":\"state\",\"category\":[\"process\"],\"type\":[\"info\"]},\"process\":{\"args\":[\"containerd\"],\"pid\":1197,\"ppid\":1,\"working_directory\":\"/\",\"entity_id\":\"AZERTYqsdfghjklm\",\"name\":\"containerd\",\"executable\":\"/usr/bin/containerd\",\"start\":\"2021-01-01T00:01:01.000Z\",\"hash\":{\"sha1\":\"azertyuiop1234567890\"}, \"command_line\": \"/usr/bin/containerd\"}}",
    "event": {
        "action": "existing_process",
        "category": [
            "process"
        ],
        "kind": "state",
        "module": "system",
        "type": [
            "info"
        ]
    },
    "@timestamp": "2021-01-01T00:01:01Z",
    "agent": {
        "ephemeral_id": "12345678-azer-1234-a1z2-12qsdfghjklm",
        "hostname": "fame",
        "id": "12345678-azer-1234-a1z2-12qsdfghjklm",
        "name": "fame",
        "type": "auditbeat",
        "version": "7.13.0"
    },
    "auditbeat": {
        "message": "Process containerd (PID: 1197) by user root is RUNNING"
    },
    "auditd": {
        "user": {
            "group": {
                "id": "0"
            },
            "saved": {
                "group": {
                    "id": "0"
                },
                "id": "0"
            }
        }
    },
    "host": {
        "name": "fame"
    },
    "log": {
        "hostname": "fame"
    },
    "process": {
        "args": [
            "containerd"
        ],
        "command_line": "/usr/bin/containerd",
        "entity_id": "AZERTYqsdfghjklm",
        "executable": "/usr/bin/containerd",
        "hash": {
            "sha1": "azertyuiop1234567890"
        },
        "name": "containerd",
        "parent": {
            "pid": 1
        },
        "pid": 1197,
        "start": "2021-01-01T00:01:01Z",
        "working_directory": "/"
    },
    "related": {
        "hash": [
            "azertyuiop1234567890"
        ],
        "user": [
            "root"
        ]
    },
    "service": {
        "type": "system"
    },
    "user": {
        "effective": {
            "group": {
                "id": "0"
            },
            "id": "0"
        },
        "group": {
            "id": "0",
            "name": "root"
        },
        "id": "0",
        "name": "root",
        "saved": {
            "group": {
                "id": "0"
            }
        }
    }
}
{
    "message": "{\"@timestamp\":\"2021-01-01T00:01:01.000Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.13.0\"},\"message\":\"Process unattended-upgr (PID: 1195) by user root is RUNNING\",\"user\":{\"name\":\"root\",\"id\":\"0\",\"group\":{\"id\":\"0\",\"name\":\"root\"},\"effective\":{\"group\":{\"id\":\"0\"},\"id\":\"0\"},\"saved\":{\"id\":\"0\",\"group\":{\"id\":\"0\"}}},\"service\":{\"type\":\"system\"},\"event\":{\"type\":[\"info\"],\"action\":\"existing_process\",\"id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"module\":\"system\",\"dataset\":\"process\",\"kind\":\"state\",\"category\":[\"process\"]},\"process\":{\"args\":[\"/usr/bin/python3\",\"/usr/share/unattended-upgrades/unattended-upgrade-shutdown\",\"--wait-for-signal\"],\"start\":\"2021-01-01T00:01:01.000Z\",\"hash\":{\"sha1\":\"azertyuiop1234567890\"},\"name\":\"unattended-upgr\",\"entity_id\":\"rvSkGilnHCy6yuIZ\",\"pid\":1195,\"ppid\":1,\"executable\":\"/usr/bin/python3.8\",\"working_directory\":\"/\"},\"ecs\":{\"version\":\"1.9.0\"},\"host\":{\"name\":\"fame\"},\"agent\":{\"version\":\"7.13.0\",\"hostname\":\"fame\",\"ephemeral_id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"name\":\"fame\",\"type\":\"auditbeat\"}}",
    "event": {
        "action": "existing_process",
        "category": [
            "process"
        ],
        "kind": "state",
        "module": "system",
        "type": [
            "info"
        ]
    },
    "@timestamp": "2021-01-01T00:01:01Z",
    "agent": {
        "ephemeral_id": "12345678-azer-1234-a1z2-12qsdfghjklm",
        "hostname": "fame",
        "id": "12345678-azer-1234-a1z2-12qsdfghjklm",
        "name": "fame",
        "type": "auditbeat",
        "version": "7.13.0"
    },
    "auditbeat": {
        "message": "Process unattended-upgr (PID: 1195) by user root is RUNNING"
    },
    "auditd": {
        "user": {
            "group": {
                "id": "0"
            },
            "saved": {
                "group": {
                    "id": "0"
                },
                "id": "0"
            }
        }
    },
    "host": {
        "name": "fame"
    },
    "log": {
        "hostname": "fame"
    },
    "process": {
        "args": [
            "--wait-for-signal",
            "/usr/bin/python3",
            "/usr/share/unattended-upgrades/unattended-upgrade-shutdown"
        ],
        "command_line": "/usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal",
        "entity_id": "rvSkGilnHCy6yuIZ",
        "executable": "/usr/bin/python3.8",
        "hash": {
            "sha1": "azertyuiop1234567890"
        },
        "name": "unattended-upgr",
        "parent": {
            "pid": 1
        },
        "pid": 1195,
        "start": "2021-01-01T00:01:01Z",
        "working_directory": "/"
    },
    "related": {
        "hash": [
            "azertyuiop1234567890"
        ],
        "user": [
            "root"
        ]
    },
    "service": {
        "type": "system"
    },
    "user": {
        "effective": {
            "group": {
                "id": "0"
            },
            "id": "0"
        },
        "group": {
            "id": "0",
            "name": "root"
        },
        "id": "0",
        "name": "root",
        "saved": {
            "group": {
                "id": "0"
            }
        }
    }
}
{
    "message": "{\"@timestamp\":\"2021-01-01T00:01:01.000Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.13.0\"},\"ecs\":{\"version\":\"1.9.0\"},\"host\":{\"name\":\"fame\"},\"agent\":{\"version\":\"7.13.0\",\"hostname\":\"fame\",\"ephemeral_id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"name\":\"fame\",\"type\":\"auditbeat\"},\"user\":{\"effective\":{\"id\":\"114\",\"group\":{\"id\":\"121\"}},\"saved\":{\"id\":\"114\",\"group\":{\"id\":\"121\"}},\"name\":\"postgres\",\"id\":\"114\",\"group\":{\"name\":\"postgres\",\"id\":\"121\"}},\"service\":{\"type\":\"system\"},\"event\":{\"category\":[\"process\"],\"type\":[\"info\"],\"action\":\"existing_process\",\"id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"module\":\"system\",\"dataset\":\"process\",\"kind\":\"state\"},\"process\":{\"executable\":\"/usr/lib/postgresql/9.5/bin/postgres\",\"ppid\":1231,\"start\":\"2021-01-01T00:01:01.000Z\",\"hash\":{\"sha1\":\"azertyuiop1234567890\"},\"name\":\"postgres\",\"args\":[\"postgres: cuckoo cuckoo 127.0.0.1(45786) idle\"],\"entity_id\":\"azertyuiop\",\"working_directory\":\"/var/lib/postgresql/9.5/main\",\"pid\":207706},\"message\":\"Process postgres (PID: 207706) by user postgres is RUNNING\"}",
    "event": {
        "action": "existing_process",
        "category": [
            "process"
        ],
        "kind": "state",
        "module": "system",
        "type": [
            "info"
        ]
    },
    "@timestamp": "2021-01-01T00:01:01Z",
    "agent": {
        "ephemeral_id": "12345678-azer-1234-a1z2-12qsdfghjklm",
        "hostname": "fame",
        "id": "12345678-azer-1234-a1z2-12qsdfghjklm",
        "name": "fame",
        "type": "auditbeat",
        "version": "7.13.0"
    },
    "auditbeat": {
        "message": "Process postgres (PID: 207706) by user postgres is RUNNING"
    },
    "auditd": {
        "user": {
            "group": {
                "id": "121"
            },
            "saved": {
                "group": {
                    "id": "121"
                },
                "id": "114"
            }
        }
    },
    "host": {
        "name": "fame"
    },
    "log": {
        "hostname": "fame"
    },
    "process": {
        "args": [
            "postgres: cuckoo cuckoo 127.0.0.1(45786) idle"
        ],
        "entity_id": "azertyuiop",
        "executable": "/usr/lib/postgresql/9.5/bin/postgres",
        "hash": {
            "sha1": "azertyuiop1234567890"
        },
        "name": "postgres",
        "parent": {
            "pid": 1231
        },
        "pid": 207706,
        "start": "2021-01-01T00:01:01Z",
        "working_directory": "/var/lib/postgresql/9.5/main"
    },
    "related": {
        "hash": [
            "azertyuiop1234567890"
        ],
        "user": [
            "postgres"
        ]
    },
    "service": {
        "type": "system"
    },
    "user": {
        "effective": {
            "group": {
                "id": "121"
            },
            "id": "114"
        },
        "group": {
            "id": "121",
            "name": "postgres"
        },
        "id": "114",
        "name": "postgres",
        "saved": {
            "group": {
                "id": "121"
            }
        }
    }
}
{
    "message": "{\"@timestamp\":\"2021-01-01T00:01:01.000Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.13.0\"},\"related\":{\"ip\":[\"127.0.0.1\",\"127.0.0.1\"]},\"service\":{\"type\":\"system\"},\"ecs\":{\"version\":\"1.9.0\"},\"host\":{\"name\":\"fame\"},\"client\":{\"port\":88888,\"packets\":1,\"bytes\":52,\"ip\":\"127.0.0.1\"},\"system\":{\"audit\":{\"socket\":{\"kernel_sock_address\":\"0xffff8e9955b02300\"}}},\"network\":{\"direction\":\"unknown\",\"type\":\"ipv4\",\"transport\":\"tcp\",\"packets\":2,\"bytes\":84,\"community_id\":\"12345678901234567891234567890\"},\"event\":{\"duration\":116168,\"module\":\"system\",\"kind\":\"event\",\"action\":\"network_flow\",\"type\":[\"info\",\"connection\"],\"dataset\":\"socket\",\"end\":\"2021-01-01T00:01:01.000Z\",\"category\":[\"network\",\"network_traffic\"],\"start\":\"2021-01-01T00:01:01.000Z\"},\"flow\":{\"complete\":false,\"final\":true},\"agent\":{\"version\":\"7.13.0\",\"hostname\":\"fame\",\"ephemeral_id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"name\":\"fame\",\"type\":\"auditbeat\"},\"source\":{\"packets\":1,\"bytes\":52,\"ip\":\"127.0.0.1\",\"port\":88888},\"destination\":{\"port\":11111,\"packets\":1,\"bytes\":32,\"ip\":\"127.0.0.1\"},\"server\":{\"ip\":\"127.0.0.1\",\"port\":11111,\"packets\":1,\"bytes\":32}}",
    "event": {
        "action": "network_flow",
        "category": [
            "network",
            "network_traffic"
        ],
        "kind": "event",
        "module": "system",
        "type": [
            "connection",
            "info"
        ]
    },
    "@timestamp": "2021-01-01T00:01:01Z",
    "agent": {
        "ephemeral_id": "12345678-azer-1234-a1z2-12qsdfghjklm",
        "hostname": "fame",
        "id": "12345678-azer-1234-a1z2-12qsdfghjklm",
        "name": "fame",
        "type": "auditbeat",
        "version": "7.13.0"
    },
    "auditbeat": {},
    "client": {
        "address": "127.0.0.1",
        "bytes": 52,
        "ip": "127.0.0.1",
        "packets": 1,
        "port": 88888
    },
    "destination": {
        "address": "127.0.0.1",
        "bytes": 32,
        "ip": "127.0.0.1",
        "packets": 1,
        "port": 11111
    },
    "host": {
        "name": "fame"
    },
    "log": {
        "hostname": "fame"
    },
    "network": {
        "bytes": 84,
        "community_id": "12345678901234567891234567890",
        "direction": "unknown",
        "packets": 2,
        "transport": "tcp",
        "type": "ipv4"
    },
    "related": {
        "ip": [
            "127.0.0.1"
        ]
    },
    "server": {
        "bytes": 32,
        "ip": "127.0.0.1",
        "packets": 1,
        "port": 11111
    },
    "service": {
        "type": "system"
    },
    "source": {
        "address": "127.0.0.1",
        "bytes": 52,
        "ip": "127.0.0.1",
        "packets": 1,
        "port": 88888
    },
    "system": {}
}
{
    "message": "{\"@timestamp\":\"2021-01-01T00:01:01.000Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.13.0\"},\"user\":{\"group\":{\"name\":\"messagebus\",\"id\":\"110\"},\"effective\":{\"id\":\"106\",\"group\":{\"id\":\"110\"}},\"saved\":{\"group\":{\"id\":\"110\"},\"id\":\"106\"},\"name\":\"messagebus\",\"id\":\"106\"},\"ecs\":{\"version\":\"1.9.0\"},\"host\":{\"name\":\"fame\"},\"agent\":{\"hostname\":\"fame\",\"ephemeral_id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"name\":\"fame\",\"type\":\"auditbeat\",\"version\":\"7.13.0\"},\"service\":{\"type\":\"system\"},\"event\":{\"category\":[\"process\"],\"type\":[\"info\"],\"action\":\"existing_process\",\"id\":\"12345678-azer-1234-a1z2-12qsdfghjklm\",\"module\":\"system\",\"dataset\":\"process\",\"kind\":\"state\"},\"process\":{\"args\":[\"/usr/bin/dbus-daemon\",\"--system\",\"--address=systemd:\",\"--nofork\",\"--nopidfile\",\"--systemd-activation\",\"--syslog-only\"],\"hash\":{\"sha1\":\"azertyuiop1234567890\"},\"entity_id\":\"azertyuiop\",\"working_directory\":\"/\",\"ppid\":1,\"pid\":645,\"start\":\"2021-01-01T00:01:01.000Z\",\"executable\":\"/usr/bin/dbus-daemon\",\"name\":\"dbus-daemon\"},\"message\":\"Process dbus-daemon (PID: 645) by user messagebus is RUNNING\"}",
    "event": {
        "action": "existing_process",
        "category": [
            "process"
        ],
        "kind": "state",
        "module": "system",
        "type": [
            "info"
        ]
    },
    "@timestamp": "2021-01-01T00:01:01Z",
    "agent": {
        "ephemeral_id": "12345678-azer-1234-a1z2-12qsdfghjklm",
        "hostname": "fame",
        "id": "12345678-azer-1234-a1z2-12qsdfghjklm",
        "name": "fame",
        "type": "auditbeat",
        "version": "7.13.0"
    },
    "auditbeat": {
        "message": "Process dbus-daemon (PID: 645) by user messagebus is RUNNING"
    },
    "auditd": {
        "user": {
            "group": {
                "id": "110"
            },
            "saved": {
                "group": {
                    "id": "110"
                },
                "id": "106"
            }
        }
    },
    "host": {
        "name": "fame"
    },
    "log": {
        "hostname": "fame"
    },
    "process": {
        "args": [
            "--address=systemd:",
            "--nofork",
            "--nopidfile",
            "--syslog-only",
            "--system",
            "--systemd-activation",
            "/usr/bin/dbus-daemon"
        ],
        "command_line": "/usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only",
        "entity_id": "azertyuiop",
        "executable": "/usr/bin/dbus-daemon",
        "hash": {
            "sha1": "azertyuiop1234567890"
        },
        "name": "dbus-daemon",
        "parent": {
            "pid": 1
        },
        "pid": 645,
        "start": "2021-01-01T00:01:01Z",
        "working_directory": "/"
    },
    "related": {
        "hash": [
            "azertyuiop1234567890"
        ],
        "user": [
            "messagebus"
        ]
    },
    "service": {
        "type": "system"
    },
    "user": {
        "effective": {
            "group": {
                "id": "110"
            },
            "id": "106"
        },
        "group": {
            "id": "110",
            "name": "messagebus"
        },
        "id": "106",
        "name": "messagebus",
        "saved": {
            "group": {
                "id": "110"
            }
        }
    }
}
{
    "message": "{\"@timestamp\":\"2021-01-01T00:01:01.000Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.13.0\"},\"service\":{\"type\":\"system\"},\"event\":{\"action\":\"existing_process\",\"id\":\"e9c16612-2053-4bc6-86aa-7e04c6114ecc\",\"module\":\"system\",\"dataset\":\"process\",\"kind\":\"state\",\"category\":[\"process\"],\"type\":[\"info\"]},\"process\":{\"executable\":\"/usr/lib/postgresql/9.5/bin/postgres\",\"entity_id\":\"1234zertyui\",\"ppid\":1231,\"start\":\"2021-01-01T00:01:01.000Z\",\"name\":\"postgres\",\"pid\":1234,\"working_directory\":\"/var/lib/postgresql/9.5/main\",\"hash\":{\"sha1\":\"12345678901234567891234567890\"},\"args\":[\"postgres: wal writer process   \"]},\"host\":{\"name\":\"fame\"},\"agent\":{\"ephemeral_id\":\"0101010-abcd-1234-a1b2c3d4e5f6g7h8\",\"id\":\"0101010-abcd-1234-a1b2c3d4e5f6g7h8\",\"name\":\"fame\",\"type\":\"auditbeat\",\"version\":\"7.13.0\",\"hostname\":\"fame\"},\"ecs\":{\"version\":\"1.9.0\"},\"message\":\"Process postgres (PID: 1234) by user postgres is RUNNING\",\"user\":{\"effective\":{\"group\":{\"id\":\"121\"},\"id\":\"114\"},\"saved\":{\"id\":\"114\",\"group\":{\"id\":\"121\"}},\"name\":\"postgres\",\"id\":\"114\",\"group\":{\"id\":\"121\",\"name\":\"postgres\"}}}",
    "event": {
        "action": "existing_process",
        "category": [
            "process"
        ],
        "kind": "state",
        "module": "system",
        "type": [
            "info"
        ]
    },
    "@timestamp": "2021-01-01T00:01:01Z",
    "agent": {
        "ephemeral_id": "0101010-abcd-1234-a1b2c3d4e5f6g7h8",
        "hostname": "fame",
        "id": "0101010-abcd-1234-a1b2c3d4e5f6g7h8",
        "name": "fame",
        "type": "auditbeat",
        "version": "7.13.0"
    },
    "auditbeat": {
        "message": "Process postgres (PID: 1234) by user postgres is RUNNING"
    },
    "auditd": {
        "user": {
            "group": {
                "id": "121"
            },
            "saved": {
                "group": {
                    "id": "121"
                },
                "id": "114"
            }
        }
    },
    "host": {
        "name": "fame"
    },
    "log": {
        "hostname": "fame"
    },
    "process": {
        "args": [
            "postgres: wal writer process   "
        ],
        "entity_id": "1234zertyui",
        "executable": "/usr/lib/postgresql/9.5/bin/postgres",
        "hash": {
            "sha1": "12345678901234567891234567890"
        },
        "name": "postgres",
        "parent": {
            "pid": 1231
        },
        "pid": 1234,
        "start": "2021-01-01T00:01:01Z",
        "working_directory": "/var/lib/postgresql/9.5/main"
    },
    "related": {
        "hash": [
            "12345678901234567891234567890"
        ],
        "user": [
            "postgres"
        ]
    },
    "service": {
        "type": "system"
    },
    "user": {
        "effective": {
            "group": {
                "id": "121"
            },
            "id": "114"
        },
        "group": {
            "id": "121",
            "name": "postgres"
        },
        "id": "114",
        "name": "postgres",
        "saved": {
            "group": {
                "id": "121"
            }
        }
    }
}
{
    "message": "{\"@timestamp\":\"2021-01-01T00:01:01.000Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.13.0\"},\"destination\":{\"bytes\":123,\"ip\":\"8.8.8.8\",\"port\":53,\"packets\":1},\"event\":{\"end\":\"2021-01-01T00:01:01.000Z\",\"type\":[\"info\",\"connection\"],\"action\":\"network_flow\",\"dataset\":\"socket\",\"kind\":\"event\",\"category\":[\"network\",\"network_traffic\"],\"start\":\"2021-01-01T00:01:01.000Z\",\"duration\":12345,\"module\":\"system\"},\"process\":{\"pid\":9876543,\"name\":\"smtp\",\"args\":[\"smtp\",\"-t\",\"unix\",\"-u\",\"-c\"],\"executable\":\"/usr/lib/postfix/sbin/smtp\",\"created\":\"2021-01-01T00:01:01.000Z\"},\"client\":{\"bytes\":70,\"domain\":\"malware1.viralstudio.org\",\"ip\":\"255.255.255.1\",\"port\":58855,\"packets\":1},\"ecs\":{\"version\":\"1.9.0\"},\"server\":{\"bytes\":123,\"ip\":\"8.8.8.8\",\"port\":53,\"packets\":1},\"source\":{\"domain\":\"malware1.viralstudio.org\",\"ip\":\"255.255.255.1\",\"port\":58855,\"packets\":1,\"bytes\":70},\"network\":{\"transport\":\"udp\",\"packets\":2,\"bytes\":210,\"community_id\":\"azertyuiopsdfghjklm\",\"direction\":\"egress\",\"type\":\"ipv4\"},\"group\":{\"id\":\"0\",\"name\":\"root\"},\"service\":{\"type\":\"system\"},\"host\":{\"name\":\"fame\"},\"agent\":{\"ephemeral_id\":\"0101010-abcd-1234-a1b2c3d4e5f6g7h8\",\"id\":\"123poi-99zz-4qzds099-qsd-azerty\",\"name\":\"fame\",\"type\":\"auditbeat\",\"version\":\"7.13.0\",\"hostname\":\"fame\"},\"flow\":{\"final\":true,\"complete\":false},\"related\":{\"ip\":[\"255.255.255.1\",\"8.8.8.8\"],\"user\":[\"root\"]},\"user\":{\"id\":\"0\",\"name\":\"root\"},\"system\":{\"audit\":{\"socket\":{\"gid\":0,\"euid\":0,\"egid\":0,\"kernel_sock_address\":\"0xffffffffffffff\",\"uid\":0}}}}",
    "event": {
        "action": "network_flow",
        "category": [
            "network",
            "network_traffic"
        ],
        "kind": "event",
        "module": "system",
        "type": [
            "connection",
            "info"
        ]
    },
    "@timestamp": "2021-01-01T00:01:01Z",
    "agent": {
        "ephemeral_id": "0101010-abcd-1234-a1b2c3d4e5f6g7h8",
        "hostname": "fame",
        "id": "123poi-99zz-4qzds099-qsd-azerty",
        "name": "fame",
        "type": "auditbeat",
        "version": "7.13.0"
    },
    "auditbeat": {},
    "auditd": {
        "user": {}
    },
    "client": {
        "address": "malware1.viralstudio.org",
        "bytes": 70,
        "domain": "malware1.viralstudio.org",
        "ip": "255.255.255.1",
        "packets": 1,
        "port": 58855,
        "registered_domain": "viralstudio.org",
        "subdomain": "malware1",
        "top_level_domain": "org"
    },
    "destination": {
        "address": "8.8.8.8",
        "bytes": 123,
        "ip": "8.8.8.8",
        "packets": 1,
        "port": 53
    },
    "group": {
        "id": "0",
        "name": "root"
    },
    "host": {
        "name": "fame"
    },
    "log": {
        "hostname": "fame"
    },
    "network": {
        "bytes": 210,
        "community_id": "azertyuiopsdfghjklm",
        "direction": "egress",
        "packets": 2,
        "transport": "udp",
        "type": "ipv4"
    },
    "process": {
        "args": [
            "-c",
            "-t",
            "-u",
            "smtp",
            "unix"
        ],
        "command_line": "smtp -t unix -u -c",
        "executable": "/usr/lib/postfix/sbin/smtp",
        "name": "smtp",
        "pid": 9876543
    },
    "related": {
        "hosts": [
            "malware1.viralstudio.org"
        ],
        "ip": [
            "255.255.255.1",
            "8.8.8.8"
        ],
        "user": [
            "root"
        ]
    },
    "server": {
        "bytes": 123,
        "ip": "8.8.8.8",
        "packets": 1,
        "port": 53
    },
    "service": {
        "type": "system"
    },
    "source": {
        "address": "malware1.viralstudio.org",
        "bytes": 70,
        "domain": "malware1.viralstudio.org",
        "ip": "255.255.255.1",
        "packets": 1,
        "port": 58855,
        "registered_domain": "viralstudio.org",
        "subdomain": "malware1",
        "top_level_domain": "org"
    },
    "system": {},
    "user": {
        "id": "0",
        "name": "root"
    }
}
{
    "message": "{\"@timestamp\":\"2021-11-09T16:17:55.149Z\",\"@metadata\":{\"beat\":\"auditbeat\",\"type\":\"_doc\",\"version\":\"7.15.1\"},\"event\":{\"kind\":\"event\",\"type\":[\"start\"],\"module\":\"auditd\",\"category\":[\"process\"],\"action\":\"ran-command\",\"outcome\":\"success\"},\"user\":{\"id\":\"4e8ff660-f139-4248-8b64-ad29495fca9e\",\"name\":\"NElD74Hc4MX8PjLF\",\"audit\":{\"id\":\"4e8ff660-f139-4248-8b64-ad29495fca9e\",\"name\":\"NElD74Hc4MX8PjLF\"}},\"host\":{\"hostname\":\"web-66\",\"architecture\":\"x86_64\",\"os\":{\"type\":\"linux\",\"platform\":\"ubuntu\",\"version\":\"18.04.6 LTS (Bionic Beaver)\",\"family\":\"debian\",\"name\":\"Ubuntu\",\"kernel\":\"4.15.0-161-generic\",\"codename\":\"bionic\"},\"id\":\"7dd912136af040e4a6ea4f683010b824\",\"containerized\":false,\"ip\":[\"173.8.126.146\"],\"name\":\"web-66\",\"mac\":[\"57:4c:ff:5d:1e:41\"]},\"agent\":{\"id\":\"e9872892-b999-4ad5-83da-d6ec9dbc1f81\",\"name\":\"web-66\",\"type\":\"auditbeat\",\"version\":\"7.15.1\",\"hostname\":\"web-66\",\"ephemeral_id\":\"f1ac5b09-4f0c-42cf-b9f7-f854eeae073a\"},\"ecs\":{\"version\":\"1.11.0\"},\"process\":{\"pid\":12416,\"working_directory\":\"/home/NElD74Hc4MX8PjLF/Documents/Projets/Qh1HoDnBg4mYfHhi\"},\"auditd\":{\"data\":{\"terminal\":\"pts/3\",\"cmd\":\"systemctl status auditbeat\"},\"session\":\"2\",\"summary\":{\"actor\":{\"primary\":\"NElD74Hc4MX8PjLF\",\"secondary\":\"NElD74Hc4MX8PjLF\"},\"object\":{\"primary\":\"systemctl status auditbeat\",\"type\":\"process\"}},\"message_type\":\"user_cmd\",\"sequence\":465,\"result\":\"success\"},\"service\":{\"type\":\"auditd\"}}",
    "event": {
        "action": "ran-command",
        "category": [
            "process"
        ],
        "kind": "event",
        "module": "auditd",
        "type": [
            "start"
        ]
    },
    "@timestamp": "2021-11-09T16:17:55.149000Z",
    "agent": {
        "ephemeral_id": "f1ac5b09-4f0c-42cf-b9f7-f854eeae073a",
        "hostname": "web-66",
        "id": "e9872892-b999-4ad5-83da-d6ec9dbc1f81",
        "name": "web-66",
        "type": "auditbeat",
        "version": "7.15.1"
    },
    "auditbeat": {},
    "auditd": {
        "data": {
            "cmd": "systemctl status auditbeat",
            "terminal": "pts/3"
        },
        "message_type": "user_cmd",
        "result": "success",
        "sequence": 465,
        "session": "2",
        "summary": {
            "actor": {
                "primary": "NElD74Hc4MX8PjLF",
                "secondary": "NElD74Hc4MX8PjLF"
            },
            "object": {
                "primary": "systemctl status auditbeat",
                "type": "process"
            }
        },
        "user": {}
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "web-66",
        "id": "7dd912136af040e4a6ea4f683010b824",
        "ip": [
            "173.8.126.146"
        ],
        "mac": [
            "57:4c:ff:5d:1e:41"
        ],
        "name": "web-66",
        "os": {
            "codename": "bionic",
            "family": "debian",
            "kernel": "4.15.0-161-generic",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "18.04.6 LTS (Bionic Beaver)"
        }
    },
    "log": {
        "hostname": "web-66"
    },
    "process": {
        "pid": 12416,
        "working_directory": "/home/NElD74Hc4MX8PjLF/Documents/Projets/Qh1HoDnBg4mYfHhi"
    },
    "related": {
        "hosts": [
            "web-66"
        ],
        "ip": [
            "173.8.126.146"
        ],
        "user": [
            "NElD74Hc4MX8PjLF"
        ]
    },
    "service": {
        "type": "auditd"
    },
    "user": {
        "audit": {
            "id": "4e8ff660-f139-4248-8b64-ad29495fca9e",
            "name": "NElD74Hc4MX8PjLF"
        },
        "id": "4e8ff660-f139-4248-8b64-ad29495fca9e",
        "name": "NElD74Hc4MX8PjLF"
    }
}

Extracted Fields

The following table lists the fields that are extracted, normalized under the ECS format, analyzed and indexed by the parser. It should be noted that infered fields are not listed.

Name Type Description
@timestamp date Date/time when the event originated.
agent.hostname keyword Deprecated - use agent.name or agent.id to identify an agent. Hostname of the agent.
client.geo.country_iso_code keyword Country ISO code.
client.ip ip IP address of the client.
cloud.image.id keyword Image ID for the cloud instance.
container.image.name keyword Name of the image the container was built on.
error.message match_only_text Error message.
event.action keyword The action captured by the event.
event.category keyword Event category. The second categorization field in the hierarchy.
event.kind keyword The kind of the event. The highest categorization field in the hierarchy.
event.module keyword Name of the module this data is coming from.
event.type keyword Event type. The third categorization field in the hierarchy.
fields object Contains user configurable fields.
host.name keyword Name of the host.
host.os.type keyword Which commercial OS family (one of: linux, macos, unix or windows).
log.hostname keyword Hostname of the computer (temporary fix for detection rules and smart description).
process.command_line wildcard Full command line that started the process.
process.name keyword Process name.
process.parent.pid long Process id.
sekoiaio.server.os.type keyword OS type of the server
user.target.name keyword Short name or login of the user.

Configure

Transport to the collector

Prerequisites

The following prerequisites are needed in order to setup efficient log concentration:

  • Have administrator privileges on the server
  • Traffic towards the log collector sever which is using syslog must be open on port TCP/514

Configure the client

Install and configure Auditbeat

To download and install Auditbeat on a Debian based distributions (including Ubuntu, Linux Mint, etc.). Use the commands that work with your system:

curl -L -O https://artifacts.elastic.co/downloads/beats/auditbeat/auditbeat-8.11.4-amd64.deb
sudo dpkg -i auditbeat-8.11.4-amd64.deb

To download and install Auditbeat on Fedora, CentOS or Red Hat Enterprise Linux, use the commands that work with your system:

curl -L -O https://artifacts.elastic.co/downloads/beats/auditbeat/auditbeat-8.11.4-x86_64.rpm
sudo rpm -vi auditbeat-8.11.4-x86_64.rpm

Modify the version number with the newest one.

Auditbeat uses modules to collect audit information. By default, Auditbeat uses a configuration that’s tailored to the operating system where Auditbeat is running.

Replace the configuration file /etc/auditbeat/auditbeat.yml by the following content:

########################## Auditbeat Configuration #############################

# =========================== Modules configuration ============================
auditbeat.modules:

# The auditd module collects events from the audit framework in the Linux
# kernel. You need to specify audit rules for the events that you want to audit.
- module: auditd
  resolve_ids: true
  failure_mode: silent
  backlog_limit: 8196
  rate_limit: 0
  include_raw_message: false
  include_warnings: false

  # Load audit rules
  audit_rules: |
    ## Example of audit rules here. Comment what is NOT needed
    ## Executions.
    -a always,exit -F arch=b64 -S execve,execveat -k exec

    ## External access (warning: these can be expensive to audit).
    -a always,exit -F arch=b64 -S accept,bind,connect -F key=external-access

    ## Identity changes.
    -w /etc/group -p wa -k identity
    -w /etc/passwd -p wa -k identity
    -w /etc/gshadow -p wa -k identity

    ## Unauthorized access attempts.
    -a always,exit -F arch=b64 -S open,creat,truncate,ftruncate,openat,open_by_handle_at -F exit=-EACCES -k access
    -a always,exit -F arch=b64 -S open,creat,truncate,ftruncate,openat,open_by_handle_at -F exit=-EPERM -k access

# The file integrity module sends events when files are changed (created,
# updated, deleted). The events contain file metadata and hashes.
- module: file_integrity
  paths:
  - /bin
  - /usr/bin
  - /sbin
  - /usr/sbin
  - /etc
  - /var/spool/cron/crontabs
  - /etc/cron.d
  - /etc/cron.daily
  - /etc/cron.hourly
  - /etc/cron.monthly
  - /etc/cron.weekly


  scan_at_start: true
  scan_rate_per_sec: 50 MiB
  max_file_size: 100 MiB
  hash_types: [sha1]

  # Detect changes to files included in subdirectories. Disabled by default.
  recursive: false

- module: system
  datasets:
    - package   # Installed, updated, and removed packages
  period: 2m

- module: system
  datasets:
    - host      # General host information, e.g. uptime, IPs
    - login     # User logins, logouts, and system boots.
    - process   # Started and stopped processes
    - socket    # Opened and closed sockets
    - user      # User information


  user.detect_password_changes: true

# ================================== Outputs ===================================
# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
  enabled: false

# -------------------------------- File Output ---------------------------------
output.file:
  enabled: true

  # Configure JSON encoding
  codec.json:
    #pretty: false
    # Configure escaping HTML symbols in strings.
    #escape_html: false

  # Path to the directory where to save the generated files.
  path: "/tmp/auditbeat"
  filename: auditbeat
  rotate_every_kb: 10000
  number_of_files: 7
  permissions: 0600

# =================================== Paths ====================================

path.home: "/usr/share/auditbeat/bin"
path.config: "/etc/auditbeat"
path.data: "/var/lib/auditbeat"
path.logs: "/var/log/auditbeat"

# ================================== Template ==================================

# Elasticsearch template settings
setup.template.settings:
  # A dictionary of settings to place into the settings.index dictionary
  index:
    number_of_shards: 1
    #codec: best_compression

# ================================== Logging ===================================

logging.level: info

logging.to_files: true
logging.files:
  path: /var/log/auditbeat
  name: auditbeat
  rotateeverybytes: 10485760 # = 10MB
  keepfiles: 7
  permissions: 0600

Don't forget to set the right level of permission of the new auditbeat.yml if you edited a new one. sudo chmod 0600 auditbeat.yml Plus in this case ensure the owner of the file is root: sudo chown root:root auditbeat.yml

Auditbeat comes with predefined assets for parsing, indexing, and visualizing your data. To load these assets:

sudo auditbeat -e

If no error occurs, use Ctrl + C to stop running it in the terminal.

Start Auditbeat with the following command:

sudo systemctl restart auditbeat.service

Check your logs in /tmp/auditbeat/auditbeat in JSON format. It may be recommended to set up logrotate for the Auditbeat logs generated in /tmp/auditbeat.

Configure local Rsyslog service

In order to allow the rsyslog to work properly, please ensure the following packages are installed:

sudo apt install rsyslog

Settup a light client rsyslog by editing the /etc/rsyslog.conf file.

### Create a dedicated Rsyslog configuration file
module(load="imuxsock")                                 # provides support for local system logging
module(load="imklog" permitnonkernelfacility="on")      # provides kernel logging support

# Set the maximum supported message size
$MaxMessageSize 20k

# Use traditional timestamp format.
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

# Set the default permissions for all log files.
$FileOwner root
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022

$ActionQueueType LinkedList     # create a queue stored in the RAM
$ActionQueueFileName sek_fwd    # set up the prefix for writting
$ActionQueueMaxDiskSpace 5g     # allow 5 giga of storage for the buffer
$ActionQueueSaveOnShutdown on   # write on disk is the rsyslog is whut down
$ActionResumeRetryCount -1      # prevent the rsyslog from droping the logs if the connexion is interrupted

# Where to place spool and state files
$WorkDirectory /var/spool/rsyslog
$IncludeConfig /etc/rsyslog.d/*.conf

# Rules
*.*          -/var/log/syslog

Please ensure, options $PrivDropToUser syslog and $PrivDropToGroup syslog are removed, otherwise rsyslog process could not read auditbeat output.

And add a dedicated configuration file for the Auditbeat logs in /etc/rsyslog.d/8-linux_auditbeat.conf to be sent to a log concentrator.

module(load="imfile" PollingInterval="10")              #needs to be done just once
input(type="imfile"
      File="/tmp/auditbeat/auditbeat*.ndjson"
      Tag="linux_auditbeat"
      Severity="info"
      Facility="local7"
      ruleset="auditbeatSekoia"
      addMetadata="on"
      )

ruleset(name="auditbeatSekoia") {
    if (re_match($!metadata!filename, "auditbeat-[0-9]{8}(-[0-9]*)?.ndjson")) then {
      action(
        type="omfwd"
        protocol="tcp"
        target="YOUR_RSYSLOG_DESTINATION_SERVER"
        port="514"
        TCP_Framing="octet-counted"
      )
    }
}

Don't forget to change the value of YOUR_RSYSLOG_DESTINATION_SERVER in the bottom of the rsyslog.conf file

Restart Rsyslog
sudo systemctl restart rsyslog.service

Forward logs to Sekoia.io

The reader is invited to consult the Rsyslog Transport documentation or Syslog Forwarding documentation to transport logs to Sekoia.io.

Enjoy your events

Go to the events page to watch your incoming events.