New New post: Rough Detection rule for CVE-2026-109618
Get in touch
Blog

Blog

Findings, advisories and field notes from Threatbear engagements.

21 October 2026 · 4 MIN READ

Rough Detection rule for CVE-2026-109618

These rules are experimental, not necessarily novel (there are other “php spawning shell” rules out there) and come with no guarantees! Sigma rule title: PHP Worker Spawned Shell or Recon Utility (Possible PHP2Shell RCE) id: 8f3b1c2a-6d4e-4a9b-bc77-2e5c9a1f0b42 status: experimental description: | Detects a PHP worker (php-fpm, php-cgi, LiteSpeed lsphp, FrankenPHP, or Apache with mod_php) spawning a shell, interpreter, download/network tool or recon utility, or running a reverse-shell or temp-dir dropper one-liner. Written for CVE-2026-109618 / CVE-2026-109619 ("php2shell"), where suspicious PHP child processes are the expected exploitation signal. Reported scope is PHP 5 onward with no known configuration prerequisite, so parent matching covers legacy (php5-*) packaging. Root cause is unconfirmed by PHP; the rule is deliberately behavioural. Also fires on PHP web shells and other PHP RCE. references: - https://www.huntress.com/blog/php2shell-leaked-critical-php-vulnerabilities - https://watchtowr.com/intelligence/php-cve-2026-109618-faq/ - https://github.com/Neo23x0/process-watcher/blob/main/emerging-threats/php-rce-october-26/README.md - https://github.com/Neo23x0/process-watcher/blob/main/emerging-threats/php-rce-october-26/guide.md - https://www.php.net/archive/2026.php#2026-10-20-1 - https://jackalsyn.com/posts/php-up-2026.html author: threatbear date: 2026-10-21 modified: 2026-10-21 tags: - attack.initial-access - attack.t1190 - attack.execution - attack.t1059.004 - attack.persistence - attack.t1505.003 - cve.2026-109618 - cve.2026-109619 - detection.emerging-threats logsource: category: process_creation product: linux detection: # Versioned binaries (php-fpm8.3, lsphp82) and vendor prefixes # (/opt/remi/php74/..., /opt/cpanel/ea-php81/..., /opt/plesk/php/8.1/...) need 'contains' parent_php: ParentImage|contains: - '/php-fpm' - '/php-cgi' - '/php5-fpm' # PHP 5 era packaging (Debian 8 / Ubuntu 14.04): EOL, so unpatched - '/php5-cgi' - '/lsphp' - '/frankenphp' # mod_php runs PHP inside the Apache worker parent_modphp: ParentImage|endswith: - '/apache2' - '/httpd' # Telemetry usually reports the resolved binary (sh -> dash, nc -> nc.openbsd) child_tools: Image|endswith: - '/sh' - '/dash' - '/bash' - '/zsh' - '/ash' - '/ksh' - '/busybox' - '/curl' - '/wget' - '/nc' - '/nc.openbsd' - '/nc.traditional' - '/ncat' - '/netcat' - '/socat' - '/socat1' # Rocky/RHEL 9 - '/telnet' - '/inetutils-telnet' # Debian 13 - '/openssl' - '/whoami' - '/id' - '/uname' - '/hostname' - '/ifconfig' - '/base64' - '/mkfifo' # Catches versioned interpreters (python3.11, perl5.36) child_interpreters: Image|contains: - '/python' - '/perl' - '/ruby' # PHP CLI below a web worker: common for php -r reverse shells and stagers. # Regex keeps php-fpm/php-cgi themselves out of the match. child_php_cli: Image|re: '/php[0-9.]*$' # High-confidence patterns: never suppressed by the allowlist below. # '!notwrtbl!' is the marker from the PHP FastCGI temp-dir dropper Huntress observed. cmd_revshell_or_dropper: CommandLine|contains: - '/dev/tcp/' - '/dev/udp/' - 'fsockopen' - 'mkfifo' - 'bash -i' - 'sh -i' - 'nc -e' - 'ncat -e' - 'TCP-LISTEN' # socat bind shell - 'EXEC:' # socat exec to shell - 'pty.spawn' # python TTY upgrade - 'socket.socket' # python one-liner shells - '!notwrtbl!' # PHP exec()/system()/shell_exec()/popen()/mail() run "sh -c -- <command>" (the "--" # is optional for older builds). Allowlist only when the command STARTS with a known # tool, so "curl ...; sh #ffmpeg" can't ride along. filter_known_good: CommandLine|re: '^(/usr)?(/bin/)?(sh|dash|bash) -c (-- )?(/usr/(s)?bin/|/usr/local/bin/)?(sendmail|convert|magick|ffmpeg|ffprobe|pdftotext)( |$)' # ...and never when the command chains or substitutes further commands shell_chaining: CommandLine|contains: - ';' - '|' - '&&' - '`' - '$(' condition: 1 of parent_* and (cmd_revshell_or_dropper or (1 of child_* and not (filter_known_good and not shell_chaining))) falsepositives: - Applications that shell out to tools beyond the allowlist (git deploy hooks, backup plugins, control panels) - add anchored entries to filter_known_good - Non-PHP CGI scripts under Apache when mod_cgi is enabled - Apps that exec the PHP CLI (artisan, wp-cli, composer from admin panels) - allowlist per host level: high Elastic EQL - experimental Tested in a lab with a custom php program that spawned a shell.

Read more
15 October 2026 · 4 MIN READ

Device control unmounts encrypted apfs volumes

UPDATE 22 October 2026 - The bug was fixed in v9.4.6 and v9.5.2, however the initial fix introduced another bug (restrictive device control policy was preventing macOS upgrade) which was then fixed in v9.4.8 and v9.5.5. Disable execute again to harden your systems! EDIT 19 October 2026 - I’m not actually sure if a Elastic Defend notification pops up - I can’t find where to re-enable notifications for a system extension!

Read more
22 September 2026 · 4 MIN READ

Solving real security problems using cross-project search

If you work in complex environment, the challenges facing security operations teams are probably not simple either. Asides from the finesse required to have good governance and good opsec at the same time, the features provided by our security stack don’t always match the regulatory and compliance constraints imposed upon security teams. Ultimately the fewer silos the security team has to work across, the better. Fewer silos provide a more holistic view of the threat landscape and lower cognitive demand on the analyst.

Read more
8 September 2026 · 4 MIN READ

Elastic workflow for Easy Intel

Here is an Elastic workflow that can be used to seamlessly ingest threat intelligence from our easy intel product into Elastic SIEM. If you haven’t heard of Elastic workflows yet, you should certainly check it out, it provides a way to automate common security tasks using simple primitives, right within Elastic SIEM. If you’re on Elastic 9.4+, you should be able to copypasta this into a workflow (keep in mind there will be data ingest costs if you are on serverless - you use this workflow and easy intel at your own risk).

Read more
4 August 2026 · 3 MIN READ

Introducing Easy Intel

Threat Intelligence has, for a long time, only been within reach of very large organisations or security teams. Often there is a lot of waving hands and huge dollar values thrown around when talking about threat intelligence. Six month timelines for deploying some technology that is inaccessible to the seething masses or 老百姓 (Mandarin for masses). If you like LOVE the practise of Cybersecurity, you might posess a burning curiosity for details about your cyber-adversaries. You’re not content for someone else to tell you what is a threat and what isn’t. You’re curious - what if we just pay attention to information we already have, like phishing attacks and other low hanging fruit, and extract value from that?

Read more
31 July 2026 · 2 MIN READ

Using Elastic Observability as a status page app

Elastic synthetics is an observability solution that we use to measure all kinds of things that we do here at Threatbear. Specifically we use it to monitor whether a service that we provide is available, and it lets us know if it isn’t available (or down in geekspeak). If a system is available, by using Elastic observability, we can know how long a service has been available for as well as the qualitative aspects of the service we provide. For example we can get answers to questions such as “what is the 95th percentile of our latency in milliseconds” or “when does our staging certificate expire”.

Read more
25 May 2026 · 2 MIN READ

Uncomplicated naming convention

Naming conventions are often overcomplicated. They assume you have ten thousand sites and a hundred thousand endpoints per site. Unfortunately this additional complexity means you will probably avoid a naming convention, after all, who needs the extra hassle when there are new new critical vulnerabilities to patch every week! Enter the uncomplicated naming convention - a naming convention for the 90% that strips away the complexities and does one thing well - it answers four questions :

Read more
30 April 2026 · 6 MIN READ

Detecting copyfail (CVE-2026-31431) exploitation using eBPF

For years, Linux security and observability have relied on a patchwork of tools. We scraped user-space logs, parsed Auditd events, and heavily monitored network traffic. But as adversaries have grown more sophisticated, moving deeper into the system to exploit kernel-level vulnerabilities, traditional monitoring has started to show its age. It’s often too noisy, too slow, or simply blind to exactly what is happening in the dark corners of the operating system.

Read more
24 June 2025 · 1 MIN READ

How to enable the Elastic Defend system extension in macOS Sequoia

If you’re trying to install Elastic Defend on macOS Sequoia, the system extension management screen in system preferences has been moved. Previously, as documented inElastic Defend Mac Troubleshootingit was in System Preferences under the “Privacy & Security” tab. In macOS Sequoia, they are now under the General tab. Step 1 - finding the extensions page If you’re on Sequoia, it is now under System Preferences under : General > Login Items & Extensions

Read more
6 May 2025 · 1 MIN READ

Ag-tech Cybersecurity Partner for Darling Downs

Threatbear is a cyber security services provider based in Dalby in the Darling Downs and can provide the following services : Cyber security awareness training Scam email reduction / Email security (80% of attacks start with a scam email - this is no exception in Toowoomba and the Darling Downs) CCTV, License plate recognition and surveillance technology. We can do Ai based object detection. Ag-tech security and security reviews for your smart farm technology (Zimmatic / FieldNet / Lindsay corporation / Lorawan)

Read more