[metadata]
creation_date = "2020/02/18"
maturity = "production"
updated_date = "2020/11/03"

[rule]
author = ["Elastic"]
description = """
The Linux mknod program is sometimes used in the command payload of a remote command injection (RCI) and other exploits.
It is used to export a command shell when the traditional version of netcat is not available to the payload.
"""
false_positives = [
    """
    Mknod is a Linux system program. Some normal use of this program, at varying levels of frequency, may originate from
    scripts, automation tools, and frameworks. Usage by web servers is more likely to be suspicious.
    """,
]
from = "now-9m"
index = ["auditbeat-*", "logs-endpoint.events.*"]
language = "kuery"
license = "Elastic License"
name = "Mknod Process Activity"
references = [
    "https://web.archive.org/web/20191218024607/https://pen-testing.sans.org/blog/2013/05/06/netcat-without-e-no-problem/",
]
risk_score = 21
rule_id = "61c31c14-507f-4627-8c31-072556b89a9c"
severity = "low"
tags = ["Elastic", "Host", "Linux", "Threat Detection"]
type = "query"

query = '''
event.category:process and event.type:(start or process_started) and process.name:mknod
'''

