title: Google Cloud Storage PHP Webshell Upload to WordPress Theme or Web-Root Bucket Path id: 9a41d8c2-5f19-4e30-b724-202611203001 status: experimental description: Detects Google Cloud Storage object creation or overwrite calls writing PHP files or WordPress theme templates (404.php, functions.php) via service accounts outside approved CI/CD pipelines. author: Odin by Brandefense date: 2026/11/20 tags: - attack.defense-evasion - attack.t1078.004 - attack.persistence - attack.t1505.003 logsource: product: gcp service: gcp.audit detection: selection_method: gcp.audit.method_name: - 'storage.objects.create' - 'storage.objects.update' selection_cms_php_object: gcp.audit.resource_name|re: '(wp-content/(themes|plugins)/.*\.php|/404\.php$|/functions\.php$|/pax_cmd\.php$|/serve/shell2?\.php$)' filter_cicd: gcp.audit.authentication_info.principal_email: - 'wp-cicd-deployer@prod-cms-sync.iam.gserviceaccount.com' - 'terraform-media-sync@prod-cms-sync.iam.gserviceaccount.com' condition: selection_method and selection_cms_php_object and not filter_cicd falsepositives: - Authorized CMS release pipelines that sync pre-built WordPress theme code into object storage buckets level: critical --- title: PHP-FPM or Web Server Worker Spawning System Reconnaissance or Shell Subprocess id: 3e82b7f1-9c04-4d62-a815-202611203002 status: experimental description: Identifies PHP-FPM, Apache, or CGI workers spawning OS reconnaissance or shell binaries consistent with pax_cmd fallback execution (system, passthru, exec, shell_exec) or Behinder eval payloads. author: Odin by Brandefense date: 2026/11/20 tags: - attack.persistence - attack.t1505.003 - attack.execution logsource: category: process_creation product: linux detection: selection_parent: ParentImage|endswith: - '/php-fpm' - '/php-fpm8.2' - '/php-fpm8.3' - '/php-cgi' - '/apache2' - '/httpd' - '/lsphp' selection_child: Image|endswith: - '/id' - '/whoami' - '/uname' - '/sh' - '/bash' - '/dash' - '/curl' - '/wget' filter_lab: ComputerName: - 'SEC-VALIDATION-WEB-01' condition: selection_parent and selection_child and not filter_lab falsepositives: - Legacy PHP administration plugins invoking system utilities on non-hardened web hosts level: critical --- title: GCS Service-Account Webshell Deployer or curl pax_cmd Verification Probe Execution id: 7c15f0a8-2b61-4a93-8e57-202611203003 status: experimental description: Detects command-line execution of the deploy_gcs_webshell Python playbook, local gcs_service_account.json reads, or post-upload curl -sk verification probes carrying the pax_cmd parameter. author: Odin by Brandefense date: 2026/11/20 tags: - attack.credential-access - attack.t1528 - attack.persistence - attack.t1505.003 logsource: category: process_creation product: linux detection: selection_runtime: Image|endswith: - '/python' - '/python3' - '/curl' selection_cli: CommandLine|contains: - 'deploy_gcs_webshell' - 'gcs_service_account.json' - 'pax_cmd=id' - '/CVE-2026-109618/tools/calibrate.py' filter_security_host: ComputerName: - 'SEC-VALIDATION-LNX-01' condition: selection_runtime and selection_cli and not filter_security_host falsepositives: - Registered security validation hosts replaying authorized cloud-to-CMS purple-team scenarios level: high