// ===== file_event_lnx_drupal_settings_php.yml (sentinel_asim)
imFileEvent
| where TargetFileName contains "/sites/" and TargetFileName endswith "/settings.php"
// ===== file_event_lnx_drupal_sites_php.yml (sentinel_asim)
imFileEvent
| where TargetFileName contains "/sites/" and (TargetFileName endswith ".php" or TargetFileName endswith ".phtml" or TargetFileName endswith ".phar")
// ===== file_event_win_drupal_settings_php.yml (sentinel_asim)
imFileEvent
| where TargetFileName contains "\\sites\\" and TargetFileName endswith "\\settings.php"
// ===== net_connection_lnx_drupal_php_outbound.yml (sentinel_asim)
imNetworkSession
| where (((SrcProcessName endswith "/php-fpm" or SrcProcessName endswith "/php" or SrcProcessName endswith "/php-cgi" or SrcProcessName endswith "/lsphp" or SrcProcessName endswith "/apache2" or SrcProcessName endswith "/httpd") or (DstProcessName endswith "/php-fpm" or DstProcessName endswith "/php" or DstProcessName endswith "/php-cgi" or DstProcessName endswith "/lsphp" or DstProcessName endswith "/apache2" or DstProcessName endswith "/httpd")) and NetworkDirection =~ "true") and (not((ipv4_is_in_range(DstIpAddr, "127.0.0.0/8") or ipv4_is_in_range(DstIpAddr, "10.0.0.0/8") or ipv4_is_in_range(DstIpAddr, "172.16.0.0/12") or ipv4_is_in_range(DstIpAddr, "192.168.0.0/16"))))
// ===== proc_creation_lnx_drupal_drush_user_change.yml (sentinel_asim)
imProcessCreate
| where TargetProcessCommandLine contains "drush" and (TargetProcessCommandLine contains "user:password" or TargetProcessCommandLine contains " upwd" or TargetProcessCommandLine contains "user:login" or TargetProcessCommandLine contains " uli" or TargetProcessCommandLine contains "user:create" or TargetProcessCommandLine contains "user:unblock" or TargetProcessCommandLine contains "user:role:add" or TargetProcessCommandLine contains "site:install")
// ===== proc_creation_lnx_drupal_web_shell.yml (sentinel_asim)
imProcessCreate
| where ((ParentProcessName endswith "/apache2" or ParentProcessName endswith "/httpd" or ParentProcessName endswith "/nginx" or ParentProcessName endswith "/php-fpm" or ParentProcessName endswith "/php" or ParentProcessName endswith "/php-cgi" or ParentProcessName endswith "/lsphp" or ParentProcessName endswith "/litespeed") or (ActingProcessName endswith "/apache2" or ActingProcessName endswith "/httpd" or ActingProcessName endswith "/nginx" or ActingProcessName endswith "/php-fpm" or ActingProcessName endswith "/php" or ActingProcessName endswith "/php-cgi" or ActingProcessName endswith "/lsphp" or ActingProcessName endswith "/litespeed")) and (TargetProcessName endswith "/sh" or TargetProcessName endswith "/bash" or TargetProcessName endswith "/dash" or TargetProcessName endswith "/zsh" or TargetProcessName endswith "/python" or TargetProcessName endswith "/python3" or TargetProcessName endswith "/perl" or TargetProcessName endswith "/curl" or TargetProcessName endswith "/wget" or TargetProcessName endswith "/nc" or TargetProcessName endswith "/ncat" or TargetProcessName endswith "/socat" or TargetProcessName endswith "/base64")
// ===== proc_creation_win_drupal_web_shell.yml (sentinel_asim)
imProcessCreate
| where ((ParentProcessName endswith "\\w3wp.exe" or ParentProcessName endswith "\\php-cgi.exe" or ParentProcessName endswith "\\php.exe" or ParentProcessName endswith "\\nginx.exe" or ParentProcessName endswith "\\httpd.exe") or (ActingProcessName endswith "\\w3wp.exe" or ActingProcessName endswith "\\php-cgi.exe" or ActingProcessName endswith "\\php.exe" or ActingProcessName endswith "\\nginx.exe" or ActingProcessName endswith "\\httpd.exe")) and (TargetProcessName endswith "\\cmd.exe" or TargetProcessName endswith "\\powershell.exe" or TargetProcessName endswith "\\pwsh.exe" or TargetProcessName endswith "\\curl.exe" or TargetProcessName endswith "\\certutil.exe")
// ===== webserver_drupal_install_php_post.yml (sentinel_asim)
// CONVERSION FAILED: Error: Error while converting: Invalid SigmaDetectionItem field name encountered: cs-uri-stem. Please use valid fields for the imWebSession table, or the following fields that have fieldmappings in this pipeline:
// ===== webserver_drupal_install_php_request.yml (sentinel_asim)
// CONVERSION FAILED: Error: Error while converting: Invalid SigmaDetectionItem field name encountered: cs-uri-stem. Please use valid fields for the imWebSession table, or the following fields that have fieldmappings in this pipeline:
