Base16 or Base32 Encoding/Decoding Activity

Adversaries may encode/decode data in an attempt to evade detection by host- or network-based security controls.

Elastic rule (View on GitHub)

 2creation_date = "2020/04/17"
 3integration = ["endpoint", "auditd_manager"]
 4maturity = "production"
 5min_stack_comments = "New fields added: required_fields, related_integrations, setup"
 6min_stack_version = "8.3.0"
 7updated_date = "2024/03/08"
10author = ["Elastic"]
11description = "Adversaries may encode/decode data in an attempt to evade detection by host- or network-based security controls."
12false_positives = [
13    """
14    Automated tools such as Jenkins may encode or decode files as part of their normal behavior. These events can be
15    filtered by the process executable or username values.
16    """,
18from = "now-9m"
19index = ["*", "endgame-*", "auditbeat-*", "logs-auditd_manager.auditd-*"]
20language = "eql"
21license = "Elastic License v2"
22name = "Base16 or Base32 Encoding/Decoding Activity"
23risk_score = 21
24rule_id = "debff20a-46bc-4a4d-bae5-5cdd14222795"
25setup = """## Setup
27This rule requires data coming in from one of the following integrations:
28- Elastic Defend
29- Auditbeat
31### Elastic Defend Integration Setup
32Elastic 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.
34#### Prerequisite Requirements:
35- Fleet is required for Elastic Defend.
36- To configure Fleet Server refer to the [documentation](
38#### The following steps should be executed in order to add the Elastic Defend integration on a Linux System:
39- Go to the Kibana home page and click "Add integrations".
40- In the query bar, search for "Elastic Defend" and select the integration to see more details about it.
41- Click "Add Elastic Defend".
42- Configure the integration name and optionally add a description.
43- Select the type of environment you want to protect, either "Traditional Endpoints" or "Cloud Workloads".
44- 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. [Helper guide](
45- We suggest selecting "Complete EDR (Endpoint Detection and Response)" as a configuration setting, that provides "All events; all preventions"
46- 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.
47For more details on Elastic Agent configuration settings, refer to the [helper guide](
48- Click "Save and Continue".
49- 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.
50For more details on Elastic Defend refer to the [helper guide](
52### Auditbeat Setup
53Auditbeat 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.
55#### The following steps should be executed in order to add the Auditbeat on a Linux System:
56- Elastic provides repositories available for APT and YUM-based distributions. Note that we provide binary packages, but no source packages.
57- To install the APT and YUM repositories follow the setup instructions in this [helper guide](
58- To run Auditbeat on Docker follow the setup instructions in the [helper guide](
59- To run Auditbeat on Kubernetes follow the setup instructions in the [helper guide](
60- For complete “Setup and Run Auditbeat” information refer to the [helper guide](
62severity = "low"
63tags = [
64        "Domain: Endpoint",
65        "OS: Linux",
66        "Use Case: Threat Detection",
67        "Tactic: Defense Evasion",
68        "Data Source: Elastic Endgame",
69        "Data Source: Elastic Defend",
70        "Data Source: Auditd Manager"
71        ]
72timestamp_override = "event.ingested"
73type = "eql"
74query = '''
75process where host.os.type == "linux" and event.type == "start" and event.action in ("exec", "exec_event", "executed", "process_started")
76 and in ("base16", "base32", "base32plain", "base32hex") and
77not process.args in ("--help", "--version")
81framework = "MITRE ATT&CK"
84id = "T1027"
85name = "Obfuscated Files or Information"
86reference = ""
89id = "T1140"
90name = "Deobfuscate/Decode Files or Information"
91reference = ""
94id = "TA0005"
95name = "Defense Evasion"
96reference = ""

Related rules