// ===== file_event_lnx_drupal_settings_php.yml (microsoft_xdr)
DeviceFileEvents
| where FolderPath contains "/sites/" and FolderPath endswith "/settings.php"
// ===== file_event_lnx_drupal_sites_php.yml (microsoft_xdr)
DeviceFileEvents
| where FolderPath contains "/sites/" and (FolderPath endswith ".php" or FolderPath endswith ".phtml" or FolderPath endswith ".phar")
// ===== file_event_win_drupal_settings_php.yml (microsoft_xdr)
DeviceFileEvents
| where FolderPath contains "\\sites\\" and FolderPath endswith "\\settings.php"
// ===== net_connection_lnx_drupal_php_outbound.yml (microsoft_xdr)
DeviceNetworkEvents
| where (InitiatingProcessFolderPath endswith "/php-fpm" or InitiatingProcessFolderPath endswith "/php" or InitiatingProcessFolderPath endswith "/php-cgi" or InitiatingProcessFolderPath endswith "/lsphp" or InitiatingProcessFolderPath endswith "/apache2" or InitiatingProcessFolderPath endswith "/httpd") and (not((ipv4_is_in_range(RemoteIP, "127.0.0.0/8") or ipv4_is_in_range(RemoteIP, "10.0.0.0/8") or ipv4_is_in_range(RemoteIP, "172.16.0.0/12") or ipv4_is_in_range(RemoteIP, "192.168.0.0/16"))))
// ===== proc_creation_lnx_drupal_drush_user_change.yml (microsoft_xdr)
DeviceProcessEvents
| where ProcessCommandLine contains "drush" and (ProcessCommandLine contains "user:password" or ProcessCommandLine contains " upwd" or ProcessCommandLine contains "user:login" or ProcessCommandLine contains " uli" or ProcessCommandLine contains "user:create" or ProcessCommandLine contains "user:unblock" or ProcessCommandLine contains "user:role:add" or ProcessCommandLine contains "site:install")
// ===== proc_creation_lnx_drupal_web_shell.yml (microsoft_xdr)
DeviceProcessEvents
| where (InitiatingProcessFolderPath endswith "/apache2" or InitiatingProcessFolderPath endswith "/httpd" or InitiatingProcessFolderPath endswith "/nginx" or InitiatingProcessFolderPath endswith "/php-fpm" or InitiatingProcessFolderPath endswith "/php" or InitiatingProcessFolderPath endswith "/php-cgi" or InitiatingProcessFolderPath endswith "/lsphp" or InitiatingProcessFolderPath endswith "/litespeed") and (FolderPath endswith "/sh" or FolderPath endswith "/bash" or FolderPath endswith "/dash" or FolderPath endswith "/zsh" or FolderPath endswith "/python" or FolderPath endswith "/python3" or FolderPath endswith "/perl" or FolderPath endswith "/curl" or FolderPath endswith "/wget" or FolderPath endswith "/nc" or FolderPath endswith "/ncat" or FolderPath endswith "/socat" or FolderPath endswith "/base64")
// ===== proc_creation_win_drupal_web_shell.yml (microsoft_xdr)
DeviceProcessEvents
| where (InitiatingProcessFolderPath endswith "\\w3wp.exe" or InitiatingProcessFolderPath endswith "\\php-cgi.exe" or InitiatingProcessFolderPath endswith "\\php.exe" or InitiatingProcessFolderPath endswith "\\nginx.exe" or InitiatingProcessFolderPath endswith "\\httpd.exe") and (FolderPath endswith "\\cmd.exe" or FolderPath endswith "\\powershell.exe" or FolderPath endswith "\\pwsh.exe" or FolderPath endswith "\\curl.exe" or FolderPath endswith "\\certutil.exe")
// ===== webserver_drupal_install_php_post.yml (microsoft_xdr)
// CONVERSION FAILED: Error: Error while converting: Unable to determine table name from rule.  The query table is determined in the following order of priority:
// ===== webserver_drupal_install_php_request.yml (microsoft_xdr)
// CONVERSION FAILED: Error: Error while converting: Unable to determine table name from rule.  The query table is determined in the following order of priority:
