IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Creation of Hidden Shared Object File
editCreation of Hidden Shared Object Fileedit
Identifies the creation of a hidden shared object (.so) file. Users can mark specific files as hidden simply by putting a "." as the first character in the file or folder name. Adversaries can use this to their advantage to hide files and folders on the system for persistence and defense evasion.
Rule type: eql
Rule indices:
- auditbeat-*
- logs-endpoint.events.*
- endgame-*
Severity: medium
Risk score: 47
Runs every: 5m
Searches indices from: now-9m (Date Math format, see also Additional look-back time
)
Maximum alerts per execution: 33
References: None
Tags:
- Domain: Endpoint
- OS: Linux
- Use Case: Threat Detection
- Tactic: Defense Evasion
- Data Source: Elastic Endgame
- Data Source: Elastic Defend
Version: 106
Rule authors:
- Elastic
Rule license: Elastic License v2
Investigation guide
edit### Elastic Defend Integration Setup Elastic Defend is integrated into the Elastic Agent using Fleet. Upon configuration, the integration allows the Elastic Agent to monitor events on your host and send data to the Elastic Security app. #### Prerequisite Requirements: - Fleet is required for Elastic Defend. - To configure Fleet Server refer to the {security-guide}/fleet/current/fleet-server.html[documentation]. #### The following steps should be executed in order to add the Elastic Defend integration on a Linux System: - Go to the Kibana home page and click Add integrations. - In the query bar, search for Elastic Defend and select the integration to see more details about it. - Click Add Elastic Defend. - Configure the integration name and optionally add a description. - Select the type of environment you want to protect, either Traditional Endpoints or Cloud Workloads. - Select a configuration preset. Each preset comes with different default settings for Elastic Agent, you can further customize these later by configuring the Elastic Defend integration policy. {security-guide}/security/current/configure-endpoint-integration-policy.html[Helper guide]. - We suggest to select "Complete EDR (Endpoint Detection and Response)" as a configuration setting, that provides "All events; all preventions" - Enter a name for the agent policy in New agent policy name. If other agent policies already exist, you can click the Existing hosts tab and select an existing policy instead. For more details on Elastic Agent configuration settings, refer to the {security-guide}/fleet/8.10/agent-policy.html[helper guide]. - Click Save and Continue. - To complete the integration, select Add Elastic Agent to your hosts and continue to the next section to install the Elastic Agent on your hosts. For more details on Elastic Defend refer to the {security-guide}/security/current/install-endpoint.html[helper guide]. ### Auditbeat Setup Auditbeat is a lightweight shipper that you can install on your servers to audit the activities of users and processes on your systems. For example, you can use Auditbeat to collect and centralize audit events from the Linux Audit Framework. You can also use Auditbeat to detect changes to critical files, like binaries and configuration files, and identify potential security policy violations. #### The following steps should be executed in order to add the Auditbeat for Linux System: - Elastic provides repositories available for APT and YUM-based distributions. Note that we provide binary packages, but no source packages. - To install the APT and YUM repositories follow the setup instructions in this {security-guide}/beats/auditbeat/current/setup-repositories.html[helper guide]. - To run Auditbeat on Docker follow the setup instructions in the {security-guide}/beats/auditbeat/current/running-on-docker.html[helper guide]. - To run Auditbeat on Kubernetes follow the setup instructions in the {security-guide}/beats/auditbeat/current/running-on-kubernetes.html[helper guide]. - For complete Setup and Run Auditbeat information refer to the {security-guide}/beats/auditbeat/current/setting-up-and-running.html[helper guide]. #### Custom Ingest Pipeline For versions <8.2, you need to add a custom ingest pipeline to populate `event.ingested` with @timestamp for non-elastic-agent indexes, like auditbeats/filebeat/winlogbeat etc. For more details to add a custom ingest pipeline refer to the {security-guide}/fleet/current/data-streams-pipeline-tutorial.html[guide].
Rule query
editfile where host.os.type == "linux" and event.type == "creation" and file.extension == "so" and file.name : ".*.so"
Framework: MITRE ATT&CKTM
-
Tactic:
- Name: Defense Evasion
- ID: TA0005
- Reference URL: https://attack.mitre.org/tactics/TA0005/
-
Technique:
- Name: Hide Artifacts
- ID: T1564
- Reference URL: https://attack.mitre.org/techniques/T1564/
-
Sub-technique:
- Name: Hidden Files and Directories
- ID: T1564.001
- Reference URL: https://attack.mitre.org/techniques/T1564/001/