[
  {
    "id": "febcb7c5-6f60-4f26-8212-89d5871dd42d",
    "title": "AWS AdministratorAccess Policy Attached to an Identity",
    "path": "rules/cloud/aws/aws_cloudtrail_admin_policy_attached.yml",
    "level": "high",
    "status": "test",
    "logsource": {
      "product": "aws",
      "service": "cloudtrail"
    },
    "techniques": [
      "T1098.003"
    ],
    "tactics": [
      "persistence",
      "privilege-escalation"
    ],
    "queries": {
      "splunk": "sourcetype=\"aws:cloudtrail\" eventSource=\"iam.amazonaws.com\" eventName IN (\"AttachUserPolicy\", \"AttachGroupPolicy\", \"AttachRolePolicy\") requestParameters.policyArn=\"*:policy/AdministratorAccess\" NOT errorCode=*",
      "lucene": "(event.provider:iam.amazonaws.com AND (event.action:(AttachUserPolicy OR AttachGroupPolicy OR AttachRolePolicy)) AND aws.cloudtrail.flattened.request_parameters.policyArn:*\\:policy\\/AdministratorAccess) AND (NOT _exists_:aws.cloudtrail.error_code)",
      "esql": "from logs-aws.cloudtrail-*, filebeat-* metadata _id, _index, _version | where event.provider==\"iam.amazonaws.com\" and (event.action in (\"AttachUserPolicy\", \"AttachGroupPolicy\", \"AttachRolePolicy\")) and ends_with(aws.cloudtrail.flattened.request_parameters.policyArn, \":policy/AdministratorAccess\") and not aws.cloudtrail.error_code is not null"
    },
    "errors": {}
  },
  {
    "id": "da86cf4e-2f93-416f-8dbd-3b6116c2f84e",
    "title": "AWS CloudTrail Logging Stopped or Trail Deleted",
    "path": "rules/cloud/aws/aws_cloudtrail_logging_disabled.yml",
    "level": "high",
    "status": "test",
    "logsource": {
      "product": "aws",
      "service": "cloudtrail"
    },
    "techniques": [
      "T1562.008"
    ],
    "tactics": [
      "defense-evasion"
    ],
    "queries": {
      "splunk": "sourcetype=\"aws:cloudtrail\" eventSource=\"cloudtrail.amazonaws.com\" eventName IN (\"StopLogging\", \"DeleteTrail\") NOT errorCode=*",
      "lucene": "(event.provider:cloudtrail.amazonaws.com AND (event.action:(StopLogging OR DeleteTrail))) AND (NOT _exists_:aws.cloudtrail.error_code)",
      "esql": "from logs-aws.cloudtrail-*, filebeat-* metadata _id, _index, _version | where event.provider==\"cloudtrail.amazonaws.com\" and (event.action in (\"StopLogging\", \"DeleteTrail\")) and not aws.cloudtrail.error_code is not null"
    },
    "errors": {}
  },
  {
    "id": "64d77121-1019-4887-a803-54b3d56cd1f3",
    "title": "AWS Root Account Console Login",
    "path": "rules/cloud/aws/aws_cloudtrail_root_console_login.yml",
    "level": "high",
    "status": "test",
    "logsource": {
      "product": "aws",
      "service": "cloudtrail"
    },
    "techniques": [
      "T1078.004"
    ],
    "tactics": [
      "initial-access",
      "defense-evasion",
      "persistence",
      "privilege-escalation"
    ],
    "queries": {
      "splunk": "sourcetype=\"aws:cloudtrail\" eventName=\"ConsoleLogin\" userIdentity.type=\"Root\" responseElements.ConsoleLogin=\"Success\"",
      "lucene": "event.action:ConsoleLogin AND aws.cloudtrail.user_identity.type:Root AND aws.cloudtrail.flattened.response_elements.ConsoleLogin:Success",
      "esql": "from logs-aws.cloudtrail-*, filebeat-* metadata _id, _index, _version | where event.action==\"ConsoleLogin\" and aws.cloudtrail.user_identity.type==\"Root\" and aws.cloudtrail.flattened.response_elements.ConsoleLogin==\"Success\""
    },
    "errors": {}
  },
  {
    "id": "5262f814-c8b6-4816-acad-e968396c6de9",
    "title": "SSH Authorized Keys File Modified",
    "path": "rules/linux/file_event/file_event_lnx_ssh_authorized_keys_modified.yml",
    "level": "medium",
    "status": "test",
    "logsource": {
      "category": "file_event",
      "product": "linux"
    },
    "techniques": [
      "T1098.004"
    ],
    "tactics": [
      "persistence",
      "privilege-escalation"
    ],
    "queries": {
      "splunk": "sourcetype=\"sysmon:linux\" TargetFilename IN (\"*/.ssh/authorized_keys\", \"*/.ssh/authorized_keys2\") NOT (Image IN (\"*/cloud-init\", \"*/google_guest_agent\", \"*/waagent\"))",
      "lucene": "(file.path:(*\\/.ssh\\/authorized_keys OR *\\/.ssh\\/authorized_keys2)) AND (NOT (process.executable:(*\\/cloud\\-init OR *\\/google_guest_agent OR *\\/waagent)))",
      "esql": "from logs-endpoint.events.file-*, auditbeat-* metadata _id, _index, _version | where (ends_with(file.path, \"/.ssh/authorized_keys\") or ends_with(file.path, \"/.ssh/authorized_keys2\")) and not (ends_with(process.executable, \"/cloud-init\") or ends_with(process.executable, \"/google_guest_agent\") or ends_with(process.executable, \"/waagent\"))"
    },
    "errors": {}
  },
  {
    "id": "9bb620c0-5a79-4530-bb5c-fb6e5f963d5f",
    "title": "Cron Job Installed That Downloads or Decodes a Payload",
    "path": "rules/linux/process_creation/proc_creation_lnx_crontab_payload.yml",
    "level": "high",
    "status": "test",
    "logsource": {
      "category": "process_creation",
      "product": "linux"
    },
    "techniques": [
      "T1053.003"
    ],
    "tactics": [
      "execution",
      "persistence",
      "privilege-escalation"
    ],
    "queries": {
      "splunk": "sourcetype=\"sysmon:linux\" CommandLine=\"*crontab*\" CommandLine IN (\"*curl *\", \"*wget *\", \"*/dev/tcp/*\", \"*base64 -d*\", \"*base64 --decode*\")",
      "lucene": "process.command_line:*crontab* AND (process.command_line:(*curl\\ * OR *wget\\ * OR *\\/dev\\/tcp\\/* OR *base64\\ \\-d* OR *base64\\ \\-\\-decode*))",
      "esql": "from logs-endpoint.events.process-*, auditbeat-* metadata _id, _index, _version | where process.command_line like \"*crontab*\" and (process.command_line like \"*curl *\" or process.command_line like \"*wget *\" or process.command_line like \"*/dev/tcp/*\" or process.command_line like \"*base64 -d*\" or process.command_line like \"*base64 --decode*\")"
    },
    "errors": {}
  },
  {
    "id": "95c33114-d86b-46a0-991c-a88c190dcb4c",
    "title": "Reverse Shell Command Line on Linux",
    "path": "rules/linux/process_creation/proc_creation_lnx_reverse_shell.yml",
    "level": "high",
    "status": "test",
    "logsource": {
      "category": "process_creation",
      "product": "linux"
    },
    "techniques": [
      "T1059.004"
    ],
    "tactics": [
      "execution"
    ],
    "queries": {
      "splunk": "sourcetype=\"sysmon:linux\" CommandLine IN (\"*/dev/tcp/*\", \"*/dev/udp/*\") OR (Image IN (\"*/nc\", \"*/ncat\", \"*/netcat\", \"*/nc.traditional\") CommandLine IN (\"* -e /bin/sh*\", \"* -e /bin/bash*\", \"* -c /bin/sh*\", \"* -c /bin/bash*\", \"* -e sh*\", \"* -e bash*\"))",
      "lucene": "(process.command_line:(*\\/dev\\/tcp\\/* OR *\\/dev\\/udp\\/*)) OR ((process.executable:(*\\/nc OR *\\/ncat OR *\\/netcat OR *\\/nc.traditional)) AND (process.command_line:(*\\ \\-e\\ \\/bin\\/sh* OR *\\ \\-e\\ \\/bin\\/bash* OR *\\ \\-c\\ \\/bin\\/sh* OR *\\ \\-c\\ \\/bin\\/bash* OR *\\ \\-e\\ sh* OR *\\ \\-e\\ bash*)))",
      "esql": "from logs-endpoint.events.process-*, auditbeat-* metadata _id, _index, _version | where process.command_line like \"*/dev/tcp/*\" or process.command_line like \"*/dev/udp/*\" or (ends_with(process.executable, \"/nc\") or ends_with(process.executable, \"/ncat\") or ends_with(process.executable, \"/netcat\") or ends_with(process.executable, \"/nc.traditional\")) and (process.command_line like \"* -e /bin/sh*\" or process.command_line like \"* -e /bin/bash*\" or process.command_line like \"* -c /bin/sh*\" or process.command_line like \"* -c /bin/bash*\" or process.command_line like \"* -e sh*\" or process.command_line like \"* -e bash*\")"
    },
    "errors": {}
  },
  {
    "id": "ffe90572-ec84-4176-8163-cc83448eb75b",
    "title": "Path Traversal or Local File Inclusion Attempt in a Web Request",
    "path": "rules/web/web_path_traversal_attempt.yml",
    "level": "medium",
    "status": "test",
    "logsource": {
      "category": "webserver"
    },
    "techniques": [
      "T1190"
    ],
    "tactics": [
      "initial-access"
    ],
    "queries": {
      "splunk": "uri_query IN (\"*../*\", \"*..\\\\*\", \"*..%2f*\", \"*..%5c*\", \"*%2e%2e%2f*\", \"*%2e%2e/*\", \"*..%252f*\") OR uri_query IN (\"*/etc/passwd*\", \"*/etc/shadow*\", \"*/proc/self/environ*\", \"*win.ini*\", \"*boot.ini*\")",
      "lucene": "(url.query:(*..\\/* OR *..\\\\* OR *..%2f* OR *..%5c* OR *%2e%2e%2f* OR *%2e%2e\\/* OR *..%252f*)) OR (url.query:(*\\/etc\\/passwd* OR *\\/etc\\/shadow* OR *\\/proc\\/self\\/environ* OR *win.ini* OR *boot.ini*))",
      "esql": "from logs-nginx.access-*, logs-apache.access-*, logs-iis.access-*, filebeat-* metadata _id, _index, _version | where url.query like \"*../*\" or url.query like \"*..\\\\*\" or url.query like \"*..%2f*\" or url.query like \"*..%5c*\" or url.query like \"*%2e%2e%2f*\" or url.query like \"*%2e%2e/*\" or url.query like \"*..%252f*\" or url.query like \"*/etc/passwd*\" or url.query like \"*/etc/shadow*\" or url.query like \"*/proc/self/environ*\" or url.query like \"*win.ini*\" or url.query like \"*boot.ini*\""
    },
    "errors": {}
  },
  {
    "id": "179db1ef-ef21-49ba-aaf1-bd537fd20abc",
    "title": "Web Shell Command Execution via Query Parameter",
    "path": "rules/web/web_webshell_command_parameter.yml",
    "level": "high",
    "status": "test",
    "logsource": {
      "category": "webserver"
    },
    "techniques": [
      "T1505.003"
    ],
    "tactics": [
      "persistence"
    ],
    "queries": {
      "splunk": "uri_path IN (\"*.php\", \"*.jsp\", \"*.jspx\", \"*.asp\", \"*.aspx\", \"*.ashx\")\n| regex uri_query=\".*(cmd|exec|command|execute|run)=(whoami|id|uname|ipconfig|ifconfig|hostname).*\"",
      "lucene": "(url.path:(*.php OR *.jsp OR *.jspx OR *.asp OR *.aspx OR *.ashx)) AND url.query:/.*(cmd|exec|command|execute|run)=(whoami|id|uname|ipconfig|ifconfig|hostname).*/",
      "esql": "from logs-nginx.access-*, logs-apache.access-*, logs-iis.access-*, filebeat-* metadata _id, _index, _version | where (ends_with(url.path, \".php\") or ends_with(url.path, \".jsp\") or ends_with(url.path, \".jspx\") or ends_with(url.path, \".asp\") or ends_with(url.path, \".aspx\") or ends_with(url.path, \".ashx\")) and url.query rlike \".*(cmd|exec|command|execute|run)=(whoami|id|uname|ipconfig|ifconfig|hostname).*\""
    },
    "errors": {}
  },
  {
    "id": "eb402ed1-9e53-4fde-a2f1-82fe783bddea",
    "title": "Security Event Log Cleared",
    "path": "rules/windows/builtin/security/win_security_audit_log_cleared.yml",
    "level": "high",
    "status": "test",
    "logsource": {
      "product": "windows",
      "service": "security"
    },
    "techniques": [
      "T1070.001"
    ],
    "tactics": [
      "defense-evasion"
    ],
    "queries": {
      "splunk": "source=\"WinEventLog:Security\" EventCode=1102 Provider_Name=\"Microsoft-Windows-Eventlog\"",
      "lucene": "winlog.channel:Security AND (event.code:1102 AND winlog.provider_name:Microsoft\\-Windows\\-Eventlog)",
      "esql": "from logs-system.security-*, winlogbeat-* metadata _id, _index, _version | where winlog.channel==\"Security\" and event.code==\"1102\" and winlog.provider_name==\"Microsoft-Windows-Eventlog\""
    },
    "errors": {}
  },
  {
    "id": "1919ec4f-a56d-437c-b6de-adbdaec8c7eb",
    "title": "Kerberos Service Ticket Requested With RC4 Encryption",
    "path": "rules/windows/builtin/security/win_security_kerberoasting_rc4_ticket.yml",
    "level": "medium",
    "status": "test",
    "logsource": {
      "product": "windows",
      "service": "security"
    },
    "techniques": [
      "T1558.003"
    ],
    "tactics": [
      "credential-access"
    ],
    "queries": {
      "splunk": "source=\"WinEventLog:Security\" EventCode=4769 TicketEncryptionType=\"0x17\" Status=\"0x0\" NOT (ServiceName IN (\"*$\", \"krbtgt\"))",
      "lucene": "winlog.channel:Security AND ((event.code:4769 AND winlog.event_data.TicketEncryptionType:0x17 AND winlog.event_data.Status:0x0) AND (NOT (service.name:(*$ OR krbtgt))))",
      "esql": "from logs-system.security-*, winlogbeat-* metadata _id, _index, _version | where winlog.channel==\"Security\" and event.code==\"4769\" and winlog.event_data.TicketEncryptionType==\"0x17\" and winlog.event_data.Status==\"0x0\" and not (ends_with(service.name, \"$\") or service.name==\"krbtgt\")"
    },
    "errors": {}
  },
  {
    "id": "1e50b0b6-9f18-4058-bb22-c3ffc59f7c18",
    "title": "Account Added to the Local Administrators Group",
    "path": "rules/windows/builtin/security/win_security_member_added_to_admins.yml",
    "level": "medium",
    "status": "test",
    "logsource": {
      "product": "windows",
      "service": "security"
    },
    "techniques": [
      "T1098"
    ],
    "tactics": [
      "persistence",
      "privilege-escalation"
    ],
    "queries": {
      "splunk": "source=\"WinEventLog:Security\" EventCode=4732 TargetSid=\"S-1-5-32-544\" NOT SubjectUserName=\"*$\"",
      "lucene": "winlog.channel:Security AND ((event.code:4732 AND winlog.event_data.TargetSid:S\\-1\\-5\\-32\\-544) AND (NOT user.name:*$))",
      "esql": "from logs-system.security-*, winlogbeat-* metadata _id, _index, _version | where winlog.channel==\"Security\" and event.code==\"4732\" and winlog.event_data.TargetSid==\"S-1-5-32-544\" and not ends_with(user.name, \"$\")"
    },
    "errors": {}
  },
  {
    "id": "f1ca80c3-ee2e-4167-8245-ade13c81c910",
    "title": "Certutil Used to Download a File",
    "path": "rules/windows/process_creation/proc_creation_win_certutil_download.yml",
    "level": "high",
    "status": "test",
    "logsource": {
      "category": "process_creation",
      "product": "windows"
    },
    "techniques": [
      "T1105"
    ],
    "tactics": [
      "command-and-control"
    ],
    "queries": {
      "splunk": "Image=\"*\\\\certutil.exe\" OR OriginalFileName=\"CertUtil.exe\" CommandLine=\"*-urlcache *\" OR CommandLine=\"*/urlcache *\" OR CommandLine=\"*\u2013urlcache *\" OR CommandLine=\"*\u2014urlcache *\" OR CommandLine=\"*\u2015urlcache *\" OR CommandLine=\"*-verifyctl *\" OR CommandLine=\"*/verifyctl *\" OR CommandLine=\"*\u2013verifyctl *\" OR CommandLine=\"*\u2014verifyctl *\" OR CommandLine=\"*\u2015verifyctl *\" CommandLine IN (\"*http://*\", \"*https://*\", \"*ftp://*\")",
      "lucene": "(process.executable.caseless:*\\\\certutil.exe OR process.pe.original_file_name:CertUtil.exe) AND (process.command_line:(*\\-urlcache\\ * OR *\\/urlcache\\ * OR *\u2013urlcache\\ * OR *\u2014urlcache\\ * OR *\u2015urlcache\\ *) OR process.command_line:(*\\-verifyctl\\ * OR *\\/verifyctl\\ * OR *\u2013verifyctl\\ * OR *\u2014verifyctl\\ * OR *\u2015verifyctl\\ *)) AND (process.command_line:(*http\\:\\/\\/* OR *https\\:\\/\\/* OR *ftp\\:\\/\\/*))",
      "esql": "from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where (ends_with(process.executable.caseless, \"\\\\certutil.exe\") or process.pe.original_file_name==\"CertUtil.exe\") and (process.command_line like \"*-urlcache *\" or process.command_line like \"*/urlcache *\" or process.command_line like \"*\u2013urlcache *\" or process.command_line like \"*\u2014urlcache *\" or process.command_line like \"*\u2015urlcache *\" or process.command_line like \"*-verifyctl *\" or process.command_line like \"*/verifyctl *\" or process.command_line like \"*\u2013verifyctl *\" or process.command_line like \"*\u2014verifyctl *\" or process.command_line like \"*\u2015verifyctl *\") and (process.command_line like \"*http://*\" or process.command_line like \"*https://*\" or process.command_line like \"*ftp://*\")"
    },
    "errors": {}
  },
  {
    "id": "7b0cee57-e8b6-4137-b20a-4c86f3c40a61",
    "title": "LSASS Memory Dumped With comsvcs.dll MiniDump",
    "path": "rules/windows/process_creation/proc_creation_win_lsass_dump_comsvcs.yml",
    "level": "critical",
    "status": "test",
    "logsource": {
      "category": "process_creation",
      "product": "windows"
    },
    "techniques": [
      "T1003.001"
    ],
    "tactics": [
      "credential-access"
    ],
    "queries": {
      "splunk": "Image=\"*\\\\rundll32.exe\" OR OriginalFileName=\"RUNDLL32.EXE\" CommandLine=\"*comsvcs*\" CommandLine IN (\"*minidump*\", \"*#24*\", \"*#+24*\")",
      "lucene": "(process.executable.caseless:*\\\\rundll32.exe OR process.pe.original_file_name:RUNDLL32.EXE) AND process.command_line:*comsvcs* AND (process.command_line:(*minidump* OR *#24* OR *#\\+24*))",
      "esql": "from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where (ends_with(process.executable.caseless, \"\\\\rundll32.exe\") or process.pe.original_file_name==\"RUNDLL32.EXE\") and process.command_line like \"*comsvcs*\" and (process.command_line like \"*minidump*\" or process.command_line like \"*#24*\" or process.command_line like \"*#+24*\")"
    },
    "errors": {}
  },
  {
    "id": "fe5675ae-2a88-4ae8-a66d-d6ea9a44fbf3",
    "title": "PowerShell Launched With an Encoded Command",
    "path": "rules/windows/process_creation/proc_creation_win_powershell_encoded_command.yml",
    "level": "medium",
    "status": "test",
    "logsource": {
      "category": "process_creation",
      "product": "windows"
    },
    "techniques": [
      "T1059.001",
      "T1027"
    ],
    "tactics": [
      "execution",
      "defense-evasion"
    ],
    "queries": {
      "splunk": "Image IN (\"*\\\\powershell.exe\", \"*\\\\pwsh.exe\") OR OriginalFileName IN (\"PowerShell.EXE\", \"pwsh.dll\") CommandLine=\"* -e *\" OR CommandLine=\"* /e *\" OR CommandLine=\"* \u2013e *\" OR CommandLine=\"* \u2014e *\" OR CommandLine=\"* \u2015e *\" OR CommandLine=\"* -en *\" OR CommandLine=\"* /en *\" OR CommandLine=\"* \u2013en *\" OR CommandLine=\"* \u2014en *\" OR CommandLine=\"* \u2015en *\" OR CommandLine=\"* -enc *\" OR CommandLine=\"* /enc *\" OR CommandLine=\"* \u2013enc *\" OR CommandLine=\"* \u2014enc *\" OR CommandLine=\"* \u2015enc *\" OR CommandLine=\"* -enco *\" OR CommandLine=\"* /enco *\" OR CommandLine=\"* \u2013enco *\" OR CommandLine=\"* \u2014enco *\" OR CommandLine=\"* \u2015enco *\" OR CommandLine=\"* -ec *\" OR CommandLine=\"* /ec *\" OR CommandLine=\"* \u2013ec *\" OR CommandLine=\"* \u2014ec *\" OR CommandLine=\"* \u2015ec *\" OR CommandLine=\"* -encodedcommand *\" OR CommandLine=\"* /encodedcommand *\" OR CommandLine=\"* \u2013encodedcommand *\" OR CommandLine=\"* \u2014encodedcommand *\" OR CommandLine=\"* \u2015encodedcommand *\"",
      "lucene": "((process.executable.caseless:(*\\\\powershell.exe OR *\\\\pwsh.exe)) OR (process.pe.original_file_name:(PowerShell.EXE OR pwsh.dll))) AND (process.command_line:(*\\ \\-e\\ * OR *\\ \\/e\\ * OR *\\ \u2013e\\ * OR *\\ \u2014e\\ * OR *\\ \u2015e\\ *) OR process.command_line:(*\\ \\-en\\ * OR *\\ \\/en\\ * OR *\\ \u2013en\\ * OR *\\ \u2014en\\ * OR *\\ \u2015en\\ *) OR process.command_line:(*\\ \\-enc\\ * OR *\\ \\/enc\\ * OR *\\ \u2013enc\\ * OR *\\ \u2014enc\\ * OR *\\ \u2015enc\\ *) OR process.command_line:(*\\ \\-enco\\ * OR *\\ \\/enco\\ * OR *\\ \u2013enco\\ * OR *\\ \u2014enco\\ * OR *\\ \u2015enco\\ *) OR process.command_line:(*\\ \\-ec\\ * OR *\\ \\/ec\\ * OR *\\ \u2013ec\\ * OR *\\ \u2014ec\\ * OR *\\ \u2015ec\\ *) OR process.command_line:(*\\ \\-encodedcommand\\ * OR *\\ \\/encodedcommand\\ * OR *\\ \u2013encodedcommand\\ * OR *\\ \u2014encodedcommand\\ * OR *\\ \u2015encodedcommand\\ *))",
      "esql": "from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where (ends_with(process.executable.caseless, \"\\\\powershell.exe\") or ends_with(process.executable.caseless, \"\\\\pwsh.exe\") or process.pe.original_file_name in (\"PowerShell.EXE\", \"pwsh.dll\")) and (process.command_line like \"* -e *\" or process.command_line like \"* /e *\" or process.command_line like \"* \u2013e *\" or process.command_line like \"* \u2014e *\" or process.command_line like \"* \u2015e *\" or process.command_line like \"* -en *\" or process.command_line like \"* /en *\" or process.command_line like \"* \u2013en *\" or process.command_line like \"* \u2014en *\" or process.command_line like \"* \u2015en *\" or process.command_line like \"* -enc *\" or process.command_line like \"* /enc *\" or process.command_line like \"* \u2013enc *\" or process.command_line like \"* \u2014enc *\" or process.command_line like \"* \u2015enc *\" or process.command_line like \"* -enco *\" or process.command_line like \"* /enco *\" or process.command_line like \"* \u2013enco *\" or process.command_line like \"* \u2014enco *\" or process.command_line like \"* \u2015enco *\" or process.command_line like \"* -ec *\" or process.command_line like \"* /ec *\" or process.command_line like \"* \u2013ec *\" or process.command_line like \"* \u2014ec *\" or process.command_line like \"* \u2015ec *\" or process.command_line like \"* -encodedcommand *\" or process.command_line like \"* /encodedcommand *\" or process.command_line like \"* \u2013encodedcommand *\" or process.command_line like \"* \u2014encodedcommand *\" or process.command_line like \"* \u2015encodedcommand *\")"
    },
    "errors": {}
  },
  {
    "id": "16c8ef39-51aa-47c1-a998-a4958e47c26e",
    "title": "Regsvr32 Loading a Remote or Scriptlet COM Object",
    "path": "rules/windows/process_creation/proc_creation_win_regsvr32_remote_scriptlet.yml",
    "level": "high",
    "status": "test",
    "logsource": {
      "category": "process_creation",
      "product": "windows"
    },
    "techniques": [
      "T1218.010"
    ],
    "tactics": [
      "defense-evasion"
    ],
    "queries": {
      "splunk": "Image=\"*\\\\regsvr32.exe\" OR OriginalFileName=\"REGSVR32.EXE\" CommandLine=\"*-i:*\" OR CommandLine=\"*/i:*\" OR CommandLine=\"*\u2013i:*\" OR CommandLine=\"*\u2014i:*\" OR CommandLine=\"*\u2015i:*\" CommandLine IN (\"*http://*\", \"*https://*\", \"*scrobj.dll*\")",
      "lucene": "(process.executable.caseless:*\\\\regsvr32.exe OR process.pe.original_file_name:REGSVR32.EXE) AND process.command_line:(*\\-i\\:* OR *\\/i\\:* OR *\u2013i\\:* OR *\u2014i\\:* OR *\u2015i\\:*) AND (process.command_line:(*http\\:\\/\\/* OR *https\\:\\/\\/* OR *scrobj.dll*))",
      "esql": "from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where (ends_with(process.executable.caseless, \"\\\\regsvr32.exe\") or process.pe.original_file_name==\"REGSVR32.EXE\") and (process.command_line like \"*-i:*\" or process.command_line like \"*/i:*\" or process.command_line like \"*\u2013i:*\" or process.command_line like \"*\u2014i:*\" or process.command_line like \"*\u2015i:*\") and (process.command_line like \"*http://*\" or process.command_line like \"*https://*\" or process.command_line like \"*scrobj.dll*\")"
    },
    "errors": {}
  },
  {
    "id": "bd8f2b9f-c6c3-46ad-b68b-cc4c5ae289d9",
    "title": "Scheduled Task Created to Run From a User-Writable Folder",
    "path": "rules/windows/process_creation/proc_creation_win_schtasks_suspicious_path.yml",
    "level": "medium",
    "status": "test",
    "logsource": {
      "category": "process_creation",
      "product": "windows"
    },
    "techniques": [
      "T1053.005"
    ],
    "tactics": [
      "execution",
      "persistence",
      "privilege-escalation"
    ],
    "queries": {
      "splunk": "Image=\"*\\\\schtasks.exe\" CommandLine=\"*-create *\" OR CommandLine=\"*/create *\" OR CommandLine=\"*\u2013create *\" OR CommandLine=\"*\u2014create *\" OR CommandLine=\"*\u2015create *\" CommandLine IN (\"*\\\\AppData\\\\Local\\\\Temp\\\\*\", \"*\\\\AppData\\\\Roaming\\\\*\", \"*\\\\Users\\\\Public\\\\*\", \"*\\\\ProgramData\\\\*\", \"*%TEMP%*\", \"*%APPDATA%*\", \"*%PUBLIC%*\") NOT (ParentImage IN (\"C:\\\\Windows\\\\System32\\\\*\", \"C:\\\\Program Files\\\\*\", \"C:\\\\Program Files (x86)\\\\*\"))",
      "lucene": "(process.executable.caseless:*\\\\schtasks.exe AND process.command_line:(*\\-create\\ * OR *\\/create\\ * OR *\u2013create\\ * OR *\u2014create\\ * OR *\u2015create\\ *) AND (process.command_line:(*\\\\AppData\\\\Local\\\\Temp\\\\* OR *\\\\AppData\\\\Roaming\\\\* OR *\\\\Users\\\\Public\\\\* OR *\\\\ProgramData\\\\* OR *%TEMP%* OR *%APPDATA%* OR *%PUBLIC%*))) AND (NOT (process.parent.executable.caseless:(C\\:\\\\Windows\\\\System32\\\\* OR C\\:\\\\Program\\ Files\\\\* OR C\\:\\\\Program\\ Files\\ \\(x86\\)\\\\*)))",
      "esql": "from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where ends_with(process.executable.caseless, \"\\\\schtasks.exe\") and (process.command_line like \"*-create *\" or process.command_line like \"*/create *\" or process.command_line like \"*\u2013create *\" or process.command_line like \"*\u2014create *\" or process.command_line like \"*\u2015create *\") and (process.command_line like \"*\\\\AppData\\\\Local\\\\Temp\\\\*\" or process.command_line like \"*\\\\AppData\\\\Roaming\\\\*\" or process.command_line like \"*\\\\Users\\\\Public\\\\*\" or process.command_line like \"*\\\\ProgramData\\\\*\" or process.command_line like \"*%TEMP%*\" or process.command_line like \"*%APPDATA%*\" or process.command_line like \"*%PUBLIC%*\") and not (starts_with(process.parent.executable.caseless, \"C:\\\\Windows\\\\System32\\\\\") or starts_with(process.parent.executable.caseless, \"C:\\\\Program Files\\\\\") or starts_with(process.parent.executable.caseless, \"C:\\\\Program Files (x86)\\\\\"))"
    },
    "errors": {}
  },
  {
    "id": "d64da330-1afb-40a3-a9a2-d40a4b5ff0f5",
    "title": "Volume Shadow Copies or Backup Catalog Deleted",
    "path": "rules/windows/process_creation/proc_creation_win_shadow_copy_deletion.yml",
    "level": "high",
    "status": "test",
    "logsource": {
      "category": "process_creation",
      "product": "windows"
    },
    "techniques": [
      "T1490"
    ],
    "tactics": [
      "impact"
    ],
    "queries": {
      "splunk": "(Image=\"*\\\\vssadmin.exe\" CommandLine=\"*delete*\" CommandLine=\"*shadows*\") OR (Image=\"*\\\\wmic.exe\" CommandLine=\"*shadowcopy*\" CommandLine=\"*delete*\") OR (Image=\"*\\\\wbadmin.exe\" CommandLine=\"*delete*\" CommandLine=\"*catalog*\")",
      "lucene": "(process.executable.caseless:*\\\\vssadmin.exe AND (process.command_line:*delete* AND process.command_line:*shadows*)) OR (process.executable.caseless:*\\\\wmic.exe AND (process.command_line:*shadowcopy* AND process.command_line:*delete*)) OR (process.executable.caseless:*\\\\wbadmin.exe AND (process.command_line:*delete* AND process.command_line:*catalog*))",
      "esql": "from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where ends_with(process.executable.caseless, \"\\\\vssadmin.exe\") and process.command_line like \"*delete*\" and process.command_line like \"*shadows*\" or ends_with(process.executable.caseless, \"\\\\wmic.exe\") and process.command_line like \"*shadowcopy*\" and process.command_line like \"*delete*\" or ends_with(process.executable.caseless, \"\\\\wbadmin.exe\") and process.command_line like \"*delete*\" and process.command_line like \"*catalog*\""
    },
    "errors": {}
  },
  {
    "id": "9ea64786-ad5a-41a5-86f8-da28530ca023",
    "title": "WMIC Remote Process Creation",
    "path": "rules/windows/process_creation/proc_creation_win_wmic_remote_process_create.yml",
    "level": "medium",
    "status": "test",
    "logsource": {
      "category": "process_creation",
      "product": "windows"
    },
    "techniques": [
      "T1047"
    ],
    "tactics": [
      "execution"
    ],
    "queries": {
      "splunk": "Image=\"*\\\\wmic.exe\" OR OriginalFileName=\"wmic.exe\" CommandLine=\"*-node:*\" OR CommandLine=\"*/node:*\" OR CommandLine=\"*\u2013node:*\" OR CommandLine=\"*\u2014node:*\" OR CommandLine=\"*\u2015node:*\" CommandLine=\"*process*\" CommandLine=\"*call*\" CommandLine=\"*create*\" NOT (CommandLine=\"*-node:localhost *\" OR CommandLine=\"*/node:localhost *\" OR CommandLine=\"*\u2013node:localhost *\" OR CommandLine=\"*\u2014node:localhost *\" OR CommandLine=\"*\u2015node:localhost *\" OR CommandLine=\"*-node:127.0.0.1 *\" OR CommandLine=\"*/node:127.0.0.1 *\" OR CommandLine=\"*\u2013node:127.0.0.1 *\" OR CommandLine=\"*\u2014node:127.0.0.1 *\" OR CommandLine=\"*\u2015node:127.0.0.1 *\" OR CommandLine=\"*-node:\\\"localhost\\\"*\" OR CommandLine=\"*/node:\\\"localhost\\\"*\" OR CommandLine=\"*\u2013node:\\\"localhost\\\"*\" OR CommandLine=\"*\u2014node:\\\"localhost\\\"*\" OR CommandLine=\"*\u2015node:\\\"localhost\\\"*\")",
      "lucene": "((process.executable.caseless:*\\\\wmic.exe OR process.pe.original_file_name:wmic.exe) AND process.command_line:(*\\-node\\:* OR *\\/node\\:* OR *\u2013node\\:* OR *\u2014node\\:* OR *\u2015node\\:*) AND (process.command_line:*process* AND process.command_line:*call* AND process.command_line:*create*)) AND (NOT (process.command_line:(*\\-node\\:localhost\\ * OR *\\/node\\:localhost\\ * OR *\u2013node\\:localhost\\ * OR *\u2014node\\:localhost\\ * OR *\u2015node\\:localhost\\ *) OR process.command_line:(*\\-node\\:127.0.0.1\\ * OR *\\/node\\:127.0.0.1\\ * OR *\u2013node\\:127.0.0.1\\ * OR *\u2014node\\:127.0.0.1\\ * OR *\u2015node\\:127.0.0.1\\ *) OR process.command_line:(*\\-node\\:\\\"localhost\\\"* OR *\\/node\\:\\\"localhost\\\"* OR *\u2013node\\:\\\"localhost\\\"* OR *\u2014node\\:\\\"localhost\\\"* OR *\u2015node\\:\\\"localhost\\\"*)))",
      "esql": "from logs-endpoint.events.process-*, logs-windows.sysmon_operational-*, winlogbeat-* metadata _id, _index, _version | where (ends_with(process.executable.caseless, \"\\\\wmic.exe\") or process.pe.original_file_name==\"wmic.exe\") and (process.command_line like \"*-node:*\" or process.command_line like \"*/node:*\" or process.command_line like \"*\u2013node:*\" or process.command_line like \"*\u2014node:*\" or process.command_line like \"*\u2015node:*\") and process.command_line like \"*process*\" and process.command_line like \"*call*\" and process.command_line like \"*create*\" and not (process.command_line like \"*-node:localhost *\" or process.command_line like \"*/node:localhost *\" or process.command_line like \"*\u2013node:localhost *\" or process.command_line like \"*\u2014node:localhost *\" or process.command_line like \"*\u2015node:localhost *\" or process.command_line like \"*-node:127.0.0.1 *\" or process.command_line like \"*/node:127.0.0.1 *\" or process.command_line like \"*\u2013node:127.0.0.1 *\" or process.command_line like \"*\u2014node:127.0.0.1 *\" or process.command_line like \"*\u2015node:127.0.0.1 *\" or process.command_line like \"*-node:\\\"localhost\\\"*\" or process.command_line like \"*/node:\\\"localhost\\\"*\" or process.command_line like \"*\u2013node:\\\"localhost\\\"*\" or process.command_line like \"*\u2014node:\\\"localhost\\\"*\" or process.command_line like \"*\u2015node:\\\"localhost\\\"*\")"
    },
    "errors": {}
  }
]
