AI Coding Agents That Ship Their Own Code: Early but Real, If a Human Owns the Merge

AI Coding Agents That Ship Their Own Code: Early but Real, If a Human Owns the Merge

On February 17, 2026, at 3:26 AM Pacific time, someone published cline@2.3.0 to npm. Nobody at Cline pushed that button. The token came from a chain that started with an AI triage bot reading a GitHub issue title, and the package sat on npm for about eight hours. Its postinstall line only installed another tool, and Cline says no user data was touched. The next attacker won’t be that polite.

It matters more this week because agents got closer to the merge button. On November 23, 2026, Anthropic launched Claude Ship: a review agent (generally available), PR Steward, a beta that fixes failing CI and review comments by pushing commits, and Claude Approvals, a beta that can post an approving review under a policy file in your repository. GitHub has been moving the same way. Claude Ship is my example because it’s the newest; GitHub’s Copilot cloud agent and OpenAI’s Codex sit in the same category.

At a glance

What it isAI agents that commit, push, open pull requests, answer review comments and fix CI without a person typing each step, and now sometimes approve
KindTrend
MaturityEarly adoption (agent-drafted pull requests are common; agent approval is in beta or preview)
Who should careAnyone who owns a GitHub or GitLab organization, CI/CD secrets, branch protection or a package you publish
VerdictEarly but real
Read time7 minutes

What’s actually changing

The volume is real. GitHub’s Octoverse, published October 28, 2026, counts a pull request as agent-started when its first draft came from a coding agent GitHub can detect. On that definition, agents went from 17% of pull requests in March 2026 to more than 40% in September, about 110 million that month. GitHub also says agent pull requests merged within two weeks at 90% in September, against about 86% for the rest. Keep in mind who is counting: GitHub sells one of these agents.

The second change is the approval step. On September 1, 2026, GitHub put Copilot code review approvals into public preview: off by default, but once on, Copilot’s approval counts toward the repository’s required approvals. Anthropic’s docs say the same of Claude Approvals: its approving review can meet a GitHub rule that requires one approval. In March, GitHub also added a setting that lets admins skip the human approval before workflows run on Copilot’s pull requests. The default still asks a human.

The third change is the attack record. Adnan Khan disclosed the Cline chain on February 9, 2026: any GitHub user could trigger the triage bot, which had shell access, the issue title went straight into the prompt, and a shared Actions cache let that job poison the release job holding the npm token. Cline then deleted the wrong npm token, which is how the February 17 publish happened. On April 15, 2026, Aonan Guan and two Johns Hopkins researchers showed “Comment and Control”: crafted PR titles, issues and hidden HTML comments got Anthropic’s security review action, Google’s Gemini CLI action and GitHub’s Copilot agent (once a victim assigned it the issue) to leak keys or tokens. GitHub called its part an architectural limitation. In June, GMO Flatt Security and Microsoft published two more ways to pull secrets out of Claude’s GitHub Action. Each reported path was patched, though the Flatt researcher describes follow-up bypasses from February to April.

Timeline of six dated events from February to November 2026: the unauthorized Cline npm publish, GitHub's option to skip workflow approval for Copilot, the Comment and Control disclosure, Copilot code review approvals, Octoverse reporting agents start more than 40% of pull requests, and the Claude Ship launch
2026 in six dates: agents gained the approval path while researchers kept pulling secrets out of them. Sources: Adnan Khan, Cline, GitHub, Aonan Guan, Anthropic.

The best independent test I found is GitInject (arXiv v2, November 2, 2026), which ran 11 attack scenarios against live GitHub Actions workflows from Anthropic, OpenAI, Google and Cline. Every provider fell to at least one high-severity attack in the tested setups. The worst class was a CLAUDE.md, AGENTS.md or GEMINI.md file in the attacker’s branch, loaded as trusted instructions.

How it works

Every one of these agents reads text from places anyone can write to (issue titles, PR bodies, comments, CI logs, config files in the branch), decides with a model, and acts with credentials: a GitHub App token, a CI secret, an API key. The old pipeline had the same inputs and tokens. What’s new is that a model, not a person, sits between the untrusted text and the token, and a model treats that text as context to follow. OWASP’s Top 10 for Agentic Applications (December 9, 2025) names the pieces: ASI01 Agent Goal Hijack, ASI02 Tool Misuse, ASI03 Identity & Privilege Abuse, ASI04 Agentic Supply Chain Vulnerabilities.

Before and after table comparing a human-driven pull request with an agent-driven one across five steps: who writes the change, who reads untrusted text, where credentials live, who fixes CI, and who approves
What moves when an agent ships the code: the same pull request, with the untrusted text and the credentials now in front of a model.

The platforms answer with the same few controls. Copilot cloud agent pushes only to its own branch unless started on an existing pull request, can’t approve or merge its own work, ignores comments from users without write access, and needs one more approval when a pull request isn’t attributed to a person. Anthropic keeps PR Steward’s GitHub token outside its sandbox and refuses approvals, branch protection edits and tag pushes at its service. Merging, auto-merge and force-push are left to your branch rules plus a text match and a model’s judgment, and the docs admit a command written another way can pass both. Codex blocks internet access during the agent phase by default. GitHub’s Agentic Workflows go furthest: a read-only agent job, writes staged and checked after it exits, and zero access to secrets as the design goal.

Where it helps, and where it doesn’t

Real wins. Fixing red CI and stale review comments is boring work, and agents do it fast. Anthropic says merged pull requests on its Claude Code team more than doubled from June to September while the share reverted fell by more than 40%, an internal claim with no method published. Copilot’s commits are signed, co-authored by whoever assigned the work, and linked to a session log, which to me beats a shared personal access token.

Real limits.

  • Prompt injection isn’t fixed, it’s fenced. In Comment and Control, Anthropic said its security review action “is not designed to be hardened against prompt injection.” Flatt Security’s researcher says he has reported about 50 permission bypasses to Anthropic. Vendors patch each path. The class stays.
  • Bot approvals can quietly replace the second human. Anthropic’s docs list the ways a pull request can merge without human review: seats: 0, seats: 1 that the author fills, a machine user counted as a person, files no rule covers. A policy condition that reads a classifier can also be steered by the PR author’s own text.
  • Auto-merge closes the loop. The docs warn that with auto-merge or a merge queue and a policy that needs no person, “a change can merge without anyone acting.”
  • Review is already fast. A Notre Dame study of 33,596 agent pull requests (2025 data) found a median review time of 0.11 hours for non-security agent PRs, against 3.92 hours for security ones. The authors stress this measures reviewer scrutiny, not whether the code was secure.
  • Controls cost something. In GitInject’s tests, an author-association filter let 0 of 9 attacks through but broke one of five normal tasks, and config-file judgment manipulation survived every control tested. PR Steward has no spend limit until you set one.

What it means for you

Small team / SMB: evaluate, with one rule. An agent fixing CI on your own pull requests is fine. One that runs on events strangers can create (issues, fork PRs, comments) while holding a publish token is not. First step: search your workflows for AI actions and settings such as allowed_non_write_users: "*", and pull publish secrets out of any job that feeds issue or PR text to a model.

Mid-size or enterprise: start now on the controls, pilot the agents. Write down your two-person rule before a policy file rewrites it. On default branches, require one approval from a human who isn’t the author, keep agent apps off every bypass list, dismiss stale approvals, and leave the workflow-approval gate for agent PRs on. Apply the Agents Rule of Two that Microsoft’s post recommends: no workflow should read untrusted input, hold secrets and write or call out at once. Ask any vendor:

  • Where does the token live, and can the agent’s own process read it?
  • Whose comments and which repo files reach the model, including CLAUDE.md or AGENTS.md from the PR branch?
  • Can the agent push to workflow files, other branches, or tags?
  • Can its approval count toward required reviews, and can I turn that off centrally?
  • Which audit events show what the agent read, ran and pushed?

Practitioners and learners: start now. Read the Clinejection write-up and the GitInject defense table. Then build a throwaway repo with an AI action, open an issue from a second account, and watch what the agent does.

My take

Early but real. The agents work and the volume is huge, so “wait” isn’t serious advice. But the security model is still patched one bypass at a time, and the newest step, a bot approval that satisfies branch protection, changes something we’ve treated as fixed for years: the second person on the merge. I don’t object to a model reviewing code. I object to it counting as the human.

I’d move this to Ready now if platforms made “one human who isn’t the author” the enforced default on agent-written pull requests and kept secrets out of agent runtimes by design, the way GitHub’s Agentic Workflows try to. I’d call it Overhyped if independent data showed agent PRs reverting or breaking things more often than human ones. Prediction, and this is opinion: by the end of 2027 at least one widely used package will be published with malicious code through an AI agent that approved or merged its own change, and that incident, not a standard, will make human-only approval the default.

Further reading on netsec101

Sources

On This Day (November 30, 2018): Marriott Reveals the Starwood Breach

On This Day (November 30, 2018): Marriott Reveals the Starwood Breach

On Friday, November 30, 2018, Marriott International put out a press release from its headquarters in Bethesda, Maryland, with a title that sounded routine: “Marriott Announces Starwood Guest Reservation Database Security Incident”. The contents weren’t. Someone had been inside the Starwood network since 2014, and the reservation database they reached held information on up to approximately 500 million guests.

Marriott had bought Starwood Hotels two years earlier. So it was telling the world that it had bought a hotel chain and, with it, an intruder.

At a glance

DateNovember 30, 2018 (public disclosure: Marriott press release)
EventMarriott reveals unauthorized access to the Starwood guest reservation database, ongoing since 2014
TypeIncident / breach
Who was involvedMarriott International, CEO Arne Sorenson, Starwood’s legacy network, an unidentified intruder
Impact at the timeUp to about 500 million guests, about 327 million with passport numbers, birth dates or other details possible
Still relevant today?Yes: every acquisition still brings in networks nobody has checked for intruders

What happened

According to the Federal Trade Commission’s later complaint, the intrusion that mattered began around July 2014, while Starwood was still independent. Marriott announced it would acquire Starwood on November 16, 2015, and completed the deal in 2016. The FTC says Starwood’s network had already suffered a separate breach in June 2014 that exposed card data of over 40,000 customers; Starwood told those customers in November 2015, four days after the acquisition was announced.

The big intrusion stayed hidden until September 2018. Marriott’s press release says it received an alert on September 8 from an internal security tool about an attempt to access the Starwood guest reservation database in the United States. When Arne Sorenson testified to a US Senate subcommittee on March 7, 2019, he dated the alert September 7 and explained that the third-party operator of the tool told Marriott the next day. That explains the one-day gap.

Marriott brought in outside forensic investigators. On November 19, 2018, they determined that the intruder had accessed the database, which covered guests who had booked Starwood properties on or before September 10, 2018. Eleven days later came the announcement. For about 327 million of the guests, the exposed data could include a mix of name, mailing address, phone number, email address, passport number, Starwood Preferred Guest account details, date of birth, gender, arrival and departure dates and reservation dates. Some records held payment card numbers, encrypted with AES-128, but Marriott said it could not rule out that the attacker also took the two components needed to decrypt them.

Sorenson’s line in the release was blunt: “We fell short of what our guests deserve and what we expect of ourselves.” Marriott set up a website and call centre, started emailing affected guests that same day, and offered a year of free WebWatcher monitoring.

Timeline from the intrusion into Starwood around July 2014 and Marriott's acquisition of Starwood in 2016, through the security alert in September 2018 and the public disclosure on November 30, 2018, to the FTC action on October 9, 2024, with the order finalized on December 20, 2024.
Four years inside before anyone noticed. Sources: Marriott (Nov 30, 2018), Senate PSI hearing (Mar 7, 2019), FTC (Oct 9 and Dec 20, 2024).

Why it mattered then

Five hundred million was the headline. But what made security people sit up was the data type. Card numbers can be cancelled. Passport numbers, dates of birth and years of travel history can’t, and that kind of data is gold for an intelligence service tracking who stays where.

That angle arrived within a week. On December 5, 2018, Reuters reported that three unnamed sources said private investigators had found hacking tools, techniques and procedures previously used in attacks attributed to Chinese hackers, and two of them read it as espionage rather than theft for profit. The same report carried the caveats: some of the tools had been posted online, and one source said several groups might have been inside Starwood’s network since 2014. That is a claim from people briefed on a private investigation, not a finding. When senators asked Sorenson in March 2019 whether China was responsible, he answered that “the short answer is we do not know.”

Reuters also noted that US and UK regulators had opened probes after the Friday disclosure.

What changed afterwards

First, the number came down. On January 4, 2019, Marriott said the upper limit was about 383 million guest records, not unique people, because many guests had several records. It also put figures on the worst part: about 5.25 million passport numbers were stored unencrypted, along with about 20.3 million encrypted ones, and about 8.6 million encrypted payment cards, of which roughly 354,000 were still unexpired in September 2018. The FTC and the UK regulator later used about 339 million records.

Second, the old system went away. Marriott said it completed the phase-out of the Starwood reservations database at the end of 2018, and Sorenson told the Senate it had not been in use since December 18, 2018.

Third, the penalties. On October 30, 2020, the UK Information Commissioner’s Office fined Marriott £18.4 million under the GDPR’s security requirements, down from the £99 million it had said it intended to impose in July 2019. About 7 million of the records belonged to UK guests. In the US, the FTC announced action against Marriott and Starwood on October 9, 2024, alleging three breaches between 2014 and 2020 that affected more than 344 million customers worldwide, including a third one, from September 2018 to February 2020, on Marriott’s own network. It cited weak control of passwords, access, firewalls and network segmentation, unpatched outdated systems, poor logging and monitoring, and not enough multifactor authentication. The proposed order ran for 20 years, with an information security program and independent assessments every two years, and the FTC finalized the order on December 20, 2024. Under a separate settlement, Marriott agreed to pay a $52 million penalty to 49 states and the District of Columbia.

Then and now table comparing what was said on November 30, 2018 with what the record shows today on the guest count, passports, dwell time, regulators and the lesson for acquisitions.
The first numbers versus the settled ones. The last row is the author's view; the rest is sourced.

My take

The “500 million” reputation is half deserved. The number was an upper bound that shrank, and records are not people. If you write breach notices, the first figure becomes the permanent headline, so call it a ceiling and say when a better count is due.

The part I think is underrated is the acquisition. Marriott didn’t build the weak network; it bought it, and kept it running for about two years while the intruder stayed. By the FTC’s account, Starwood had disclosed a card breach four days after the deal was announced. To me that is the moment someone should have asked whether the network was still compromised. Security due diligence needs more than questionnaires; it needs a compromise assessment: hunt for an existing intruder before you connect the networks, and treat the acquired estate as untrusted until you have.

Two smaller lessons still hold. Encryption only counts when the keys are kept somewhere else; Marriott itself could not say the card keys were safe, and 5.25 million passport numbers had no encryption at all. And the breach was eventually caught by a security tool that flagged an attempt to access the reservation database. Watching your most valuable database works. Starwood’s problem was the four years before anyone had it pointed at the right table.

If you are about to absorb another company’s network, I’d put one item at the top of the integration plan: assume someone is already inside, and prove otherwise before you trust it.

Sources

On This Day (November 29, 2010): Iran Admits Malware Hit Its Centrifuges

On This Day (November 29, 2010): Iran Admits Malware Hit Its Centrifuges

On November 29, 2010, a Monday, Iran’s president Mahmoud Ahmadinejad stood in front of reporters in Tehran and said something Iran’s government had never said. Software planted by Iran’s enemies, he said in Wired’s rendering of his words, had “succeeded in creating problems for a limited number of our centrifuges.” His specialists had stopped it, he added, and the attackers would not be able to do it again.

In the reports from that day, he named neither Stuxnet nor the Natanz enrichment plant. He didn’t have to. By then the security world had spent five months taking apart a worm that hunted for Siemens industrial controllers, and Wired’s Kim Zetter called his statement the first apparent confirmation that it had hit Iran’s centrifuges. That same day, two Iranian nuclear scientists were hit by car bombs in Tehran as they drove to work; one of them, Majid Shahriari, was killed.

At a glance

DateNovember 29, 2010 (public disclosure: Iran’s first official admission that malware disrupted its centrifuges)
EventPresident Ahmadinejad says software sabotage caused problems for a limited number of uranium enrichment centrifuges
TypeCyber attack
Who was involvedIran’s government; researchers at VirusBlokAda, Symantec and others; Siemens and Microsoft as the vendors whose products were abused
Impact at the timeIran acknowledged that code had disrupted centrifuges; more than 100,000 systems infected worldwide, most of them in Iran
Still relevant today?Yes, in my view: removable media, abused code-signing certificates and trusted engineering PCs remain the way into industrial networks

What happened

The story starts with a small antivirus company in Belarus. On June 17, 2010, VirusBlokAda said it had found two malware samples that could infect a fully patched Windows 7 PC when someone simply opened an infected USB drive in Windows Explorer. The trick was a flaw in how Windows handled shortcut (.lnk) files, later tracked as CVE-2010-2568.

The find got wide attention when Brian Krebs wrote it up on July 15, 2010. His report added two details that should have made every defender sit up. The malware’s rootkit drivers were signed with a certificate belonging to Realtek Semiconductor, so Windows trusted them. And researcher Frank Boldewin found the code looking for Siemens WinCC, software used to supervise industrial processes. Microsoft confirmed the shell flaw the next day and shipped an emergency out-of-band fix, MS10-046, on August 2, 2010, rated Critical and already exploited in the wild.

Timeline from VirusBlokAda's June 17, 2010 find and Krebs's July 15 report, through Microsoft's August 2 patch and Symantec's November 12 frequency-converter finding, to Ahmadinejad's admission on November 29, 2010.
Five months from a strange USB sample to a president's admission. Sources: Krebs, Microsoft, ISIS, Wired.

The target came into focus in November. Researchers at Symantec found that Stuxnet went after frequency converter drives, the power supplies that set a motor’s speed, from two makers: Fararo Paya in Tehran and Vacon in Finland. It only acted on drives running between 807 Hz and 1210 Hz, and then pushed them to 1410 Hz, down to 2 Hz and back to 1064 Hz. (I’m relying on accounts of that work by the Institute for Science and International Security and by Wired, because Symantec’s original November 12 post would not load for me.) On November 17, the institute pointed out that 1064 Hz is the normal operating frequency of Iran’s IR-1 centrifuge, while warning that such drives have other uses too.

Meanwhile, an International Atomic Energy Agency report said Iran had briefly halted enrichment earlier that month, for reasons nobody outside Iran knew. Then came the press conference of November 29. Until that day, Iranian officials had only admitted that some personal computers at the Bushehr power plant were infected, and had denied any damage.

Why it mattered then

In 2010, most of the security industry thought about malware as a money problem: banking trojans, botnets and spam. Industrial control systems were a niche topic, and the usual defence was the air gap, the idea that a plant network not connected to the internet could not be reached. Stuxnet walked across that gap on USB sticks.

Before November 29, the case that Stuxnet was a weapon aimed at Iran was strong but circumstantial: the infection map, the Siemens code, the frequency ranges. The admission was the strongest confirmation yet. A head of state said, on the record, that software had disrupted machines in his country’s nuclear program. Wired and The Register both ran the story the same day.

What changed afterwards

The first change was the question of who did it. On June 1, 2012, David Sanger reported in The New York Times that Stuxnet was part of a US and Israeli program code-named Olympic Games, begun under President George W. Bush, and that a programming error let the worm escape Natanz in the summer of 2010. The popular retelling says Stuxnet destroyed a thousand centrifuges; the reporting is narrower. According to the Times, one attack temporarily took out nearly 1,000 of the 5,000 centrifuges Iran had running. Neither government has officially confirmed any of it, so I treat it as strong reporting, not record.

The second change was technical, and less flattering. The 2010 shortcut patch was not complete. On March 10, 2015, Microsoft shipped MS15-020 for CVE-2015-0096, a way around the original fix found by researcher Michael Heerklotz and reported through HP’s Zero Day Initiative. The bug that carried Stuxnet into Natanz had stayed partly open for more than four years after Microsoft first patched it.

Then and now table comparing 2010 and today on the way in, code signing, the shortcut bug, attribution and advice for defenders.
The same entry points, sixteen years later. The Today column is the author's view, except the dated facts.

The third change was in how we talk about industrial security at all. After Stuxnet, the idea that a plant could be sabotaged through its control software stopped being a conference thought experiment, and the air gap stopped being an argument that ended the discussion.

My take

I think the admission matters more than most of the Stuxnet lore. The worm itself was remarkable, but the moment a government acknowledged that code had disrupted its own centrifuges is what moved this from malware analysis into national security. Its reputation as the start of cyber-physical sabotage is deserved.

Its reputation as an unstoppable super-weapon is not. Look at how it got in: a USB stick, a shortcut file, drivers signed with a Realtek certificate, and engineering workstations that the plant trusted completely. Those are ordinary weaknesses, and none of them has gone away. Removable media rules exist on paper and get waived for the contractor with a laptop. Code signing is treated as proof of good intent, when all it proves is who held the key.

If you defend an industrial network, here’s what I’d take from November 29, 2010. Assume the air gap leaks and monitor inside it. Control and log what crosses on removable media. Watch for unexpected changes to controller logic, not just for malware on Windows hosts. And when a vendor ships a fix for a famous bug, test whether it actually closed the hole, because in this case it took until 2015 to be sure.

Sources

Detecting Cacti 4HTTP2SHELL: 4 Sigma rules for web logs, the poller and the web root

Detecting Cacti 4HTTP2SHELL: 4 Sigma rules for web logs, the poller and the web root

An unpatched bug with a public proof of concept and no CVE is the worst kind of week for a detection team: no vendor signature, no scanner plugin, nothing in the threat feeds. That is where Cacti users are with 4HTTP2SHELL, the four-request chain that turns an enabled guest account on Cacti 1.2.31 into command execution. Cacti merged matching fixes into its source branches on November 28, but no release carries them yet. I covered the bug, who is exposed and what to switch off in my analysis of the zero-day.

This post is the detection side. I found no published IOCs or request samples in the sources I read, so these four rules are built from the behaviour that watchTowr and RavenAI describe, plus my own reasoning where I say so. They are all experimental. Treat them as starting points to tune, not as alerts to page someone on at 3 a.m.

At a glance

  • Rules: 4 (one Sigma v2 correlation with three base rules, two host rules, one hunting rule).
  • Domains: Web/App and Linux.
  • Log sources: web server access logs with query strings, the PHP or web server error log and the Cacti log, Linux process creation and file creation (Sysmon for Linux, auditd or EDR).
  • ATT&CK: T1190, T1059.004, T1105, T1505.003.
  • Status: experimental. No CVE tag, because there is no CVE.
  • GitHub: Detection Rules/Linux and Detection Rules/Web-App.

The case in brief

The chain needs Cacti’s guest account to be enabled, which is not the default. According to RavenAI’s breakdown, the guest saves a text value into preview_graphs_per_page through auth_profile.php, a display setting that should be a number. A graph_view.php preview request then concatenates that stored value into a SQL LIMIT clause, and a stacked statement rewrites the arg1 command of a poller_item row. Finally a guest-reachable realtime graph request runs the poller path, which executes the command as the Cacti web and poller account. watchTowr adds that a warning about a non-numeric value may be logged along the way (RavenAI calls it a PHP warning), and lists new files created by the poller process as a pivot. The full story is in the analysis.

So the traces land in four places: the web access log (the request order), the PHP error log or Cacti log (the warning), the database (the rewritten poller command) and the host (whatever that command starts, and any files it writes). Sigma covers three of them. The database is the gap.

Detection map

Block diagram: web access logs, the PHP or Cacti log and Linux host process and file events feed four Sigma rules (request-order correlation, non-numeric warning hunt, suspicious poller child, PHP written in the Cacti tree) mapped to ATT&CK T1190, T1059.004 with T1105, and T1505.003, with the poller_item database rewrite marked as a gap.
Three log sources, four rules. The SQL rewrite of the poller command stays a database check.

Read it left to right. Web logs feed the correlation rule, which watches for the request order. The PHP error log or Cacti log feeds a keyword hunt. Host telemetry feeds the two rules I trust most: a suspicious child process under PHP, the web server or the spine poller, and a PHP file written into the Cacti tree by one of those processes. On the right, the red dashed box is the part none of the rules can see: the SQL write into poller_item. You close that with a scheduled database query, not a SIEM rule.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
Suspicious command spawned by Cacti web server or pollerLinuxlinux / process_creationExecution / T1059.004, C2 / T1105HighExperimental
Profile update, then preview, then realtime graph (correlation)Web/AppwebserverInitial Access / T1190MediumExperimental
PHP file written in Cacti web root by a web processLinuxlinux / file_eventPersistence / T1505.003MediumExperimental
Non-numeric value warning in the PHP or Cacti log (hunting)Web/Appcacti / application (PHP or Cacti log)Initial Access / T1190LowExperimental

The rules

Suspicious command spawned by Cacti web server or poller

Context: the last step of the chain is the poller running a command an anonymous guest chose. Whatever the attacker does next (download a tool, open a reverse shell, check who they are) starts as a process under PHP, Apache or spine. This is the rule I would turn on first, because it does not depend on how the command got into the poller.

Condition: alert when PHP, Apache/httpd or spine starts a shell whose command line contains curl, wget, a /dev/tcp redirect, base64, whoami, netcat, socat, chmod +x or an inline Python one-liner, or starts one of those tools directly. The lineage is my inference: I assume Cacti hands the stored command to a shell, so I match both the shell and the direct case.

ATT&CK: Execution (TA0002) – T1059.004 Unix Shell; Command and Control (TA0011) – T1105 Ingress Tool Transfer.

title: Suspicious Command Spawned by Cacti Web Server or Poller - Possible 4HTTP2SHELL Exploitation
id: 60c2cf77-4095-4bbf-9a3d-fd67b80c2a27
status: experimental
description: |
    Detects a shell running download, reverse-shell, discovery or encoding commands, or such a tool started directly,
    under the PHP, web server or spine poller processes on a Linux Cacti host. The 4HTTP2SHELL chain rewrites a
    poller command that a realtime graph request then executes as the Cacti service account (inferred process lineage).
references:
    - https://watchtowr.com/intelligence/4http2root-cacti-zero-day-faq/
    - https://ravenai.sh/blog/four-requests-to-shell-cacti
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.execution
    - attack.t1059.004
    - attack.command-and-control
    - attack.t1105
    - detection.emerging-threats
logsource:
    product: linux
    category: process_creation
detection:
    selection_parent:
        - ParentImage|contains: '/php'
        - ParentImage|endswith:
              - '/apache2'
              - '/httpd'
              - '/spine'
    selection_shell:
        Image|endswith:
            - '/sh'
            - '/bash'
            - '/dash'
    selection_shell_payload:
        CommandLine|contains:
            - 'curl '
            - 'wget '
            - '/dev/tcp/'
            - 'base64'
            - 'whoami'
            - 'nc -'
            - 'ncat '
            - 'socat '
            - 'chmod +x'
            - 'python -c'
            - 'python3 -c'
    selection_direct_tool:
        Image|endswith:
            - '/curl'
            - '/wget'
            - '/nc'
            - '/ncat'
            - '/netcat'
            - '/socat'
            - '/whoami'
            - '/base64'
    condition: selection_parent and ((selection_shell and selection_shell_payload) or selection_direct_tool)
falsepositives:
    - Custom Cacti data input scripts that call curl or wget to poll HTTP APIs (scope by the script path and add a filter)
    - Other PHP applications on the same host; scope the rule to Cacti servers
level: high

View on GitHub

False positives and tuning: custom data input scripts that poll HTTP APIs with curl are the obvious one. Add a filter on their script path rather than dropping curl from the list. Scope the rule to hosts tagged as Cacti servers, because on a general PHP web server it will be noisier.

How to test: on a lab Cacti host, run a harmless command through PHP as the web user, for example sudo -u www-data php -r 'system("whoami");'. That produces PHP starting a shell that runs whoami, the same lineage the rule looks for.

Profile update, then preview, then realtime graph from one client

Context: RavenAI describes the chain’s footprint as a guest profile update followed by graph preview and realtime graph initialisation requests. Each request on its own is normal Cacti use. The order, from one client in a short window, is what stands out.

Condition: three informational base rules match auth_profile.php with action=update_data, graph_view.php with action=preview, and graph_realtime.php. A Sigma v2 temporal_ordered correlation fires when the same client IP hits all three in that order within 10 minutes. The action=update_data string comes from InfoSec Monkey’s hunting grep; action=preview is the standard Cacti preview URL and my assumption. Access logs do not show request bodies, so the rule cannot see the injected value itself.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: Cacti Profile Update Request
id: 79a15d1d-b432-48fb-8b57-83e92d9f520c
name: cacti_profile_update_request
status: experimental
description: |
    Base rule for the 4HTTP2SHELL sequence correlation. Matches a request to the Cacti user profile update action,
    the step where the chain stores a value in a per-user display setting.
references:
    - https://ravenai.sh/blog/four-requests-to-shell-cacti
    - https://infosecmonkey.com/cacti-4http2shell-zero-day/
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection:
        cs-uri-stem|endswith: '/auth_profile.php'
        cs-uri-query|contains: 'action=update_data'
    condition: selection
falsepositives:
    - Users changing their own profile settings (expected; this base rule is not meant to alert on its own)
level: informational
---
title: Cacti Graph Preview Request
id: d3eb6803-9216-45a4-98d5-c877fc4f3a35
name: cacti_graph_preview_request
status: experimental
description: |
    Base rule for the 4HTTP2SHELL sequence correlation. Matches the graph_view.php preview action, which reads the
    stored page-size preference back into a SQL query.
references:
    - https://ravenai.sh/blog/four-requests-to-shell-cacti
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection:
        cs-uri-stem|endswith: '/graph_view.php'
        cs-uri-query|contains: 'action=preview'
    condition: selection
falsepositives:
    - Normal graph browsing in preview mode (expected; this base rule is not meant to alert on its own)
level: informational
---
title: Cacti Realtime Graph Request
id: 7d465808-b5cb-44ec-be1f-89fbedd54bb0
name: cacti_realtime_graph_request
status: experimental
description: |
    Base rule for the 4HTTP2SHELL sequence correlation. Matches a request to graph_realtime.php, the page that
    triggers the realtime poller path where the rewritten command runs.
references:
    - https://ravenai.sh/blog/four-requests-to-shell-cacti
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection:
        cs-uri-stem|endswith: '/graph_realtime.php'
    condition: selection
falsepositives:
    - Users opening realtime graphs (expected; this base rule is not meant to alert on its own)
level: informational
---
title: Cacti Profile Update Followed by Graph Preview and Realtime Graph - Possible 4HTTP2SHELL Chain
id: efe4f9f7-cadc-41a8-b8f0-d7fd9ad6127f
status: experimental
description: |
    Detects one client sending a Cacti profile update, then a graph_view.php preview, then a graph_realtime.php
    request within ten minutes, the request order RavenAI describes for the 4HTTP2SHELL guest-to-shell chain.
    Inferred from published analyses; I found no published request samples in the sources I read.
references:
    - https://ravenai.sh/blog/four-requests-to-shell-cacti
    - https://watchtowr.com/intelligence/4http2root-cacti-zero-day-faq/
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - detection.emerging-threats
correlation:
    type: temporal_ordered
    rules:
        - cacti_profile_update_request
        - cacti_graph_preview_request
        - cacti_realtime_graph_request
    group-by:
        - c-ip
    timespan: 10m
falsepositives:
    - A logged-in user who changes the preview page size and then opens a realtime graph; check whether the client is a known admin or NOC address
level: medium

View on GitHub

False positives and tuning: a logged-in admin who changes the preview page size and then opens a realtime graph will trigger it. Exclude your NOC and admin subnets, or better, enrich with the session user if your web server logs it and alert only when it is the guest. If guest is off on all your servers, this rule should be silent; any hit is worth a look.

How to test: on a lab install, log in, change the graphs-per-page preference, open preview mode, then open a realtime graph, all within a few minutes.

PHP file written in the Cacti web root by a web process

Context: watchTowr lists new files created by the poller process as a detection pivot, and RavenAI mentions an unexpected web shell or marker file. Once an attacker can run commands as the web user, dropping a PHP file in the Cacti tree is the cheapest way to keep access after you turn guest off.

Condition: alert when a file ending in .php is created under a path containing /cacti/, and the writing process is PHP, Apache/httpd, spine or a shell. Legitimate Cacti code arrives through the package manager or an admin’s deployment, not through those processes.

ATT&CK: Persistence (TA0003) – T1505.003 Web Shell.

title: PHP File Written in Cacti Web Root by Web Server or Shell Process
id: 23d1ea44-9240-49d3-9768-00be868c537d
status: experimental
description: |
    Detects a .php file created under a Cacti installation path by PHP, the web server, the spine poller or a shell.
    watchTowr lists new files created by the poller process, and RavenAI an unexpected web shell or marker file, as pivots
    after 4HTTP2SHELL exploitation. Legitimate Cacti code is written by the package manager or an admin, not by these processes.
references:
    - https://watchtowr.com/intelligence/4http2root-cacti-zero-day-faq/
    - https://ravenai.sh/blog/four-requests-to-shell-cacti
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.persistence
    - attack.t1505.003
    - detection.emerging-threats
logsource:
    product: linux
    category: file_event
detection:
    selection_path:
        TargetFilename|contains: '/cacti/'
        TargetFilename|endswith: '.php'
    selection_writer:
        - Image|contains: '/php'
        - Image|endswith:
              - '/apache2'
              - '/httpd'
              - '/spine'
              - '/sh'
              - '/bash'
              - '/dash'
    condition: all of selection_*
falsepositives:
    - Cacti plugin installs or upgrades done through the web UI (match the time against change records)
    - Installs where Cacti lives outside a path containing /cacti/ will not match; adjust the path
level: medium

View on GitHub

False positives and tuning: plugin installs through the web UI write PHP as the web user, so match hits against change records. If Cacti lives in a path without /cacti/ in it, change the path. A shell writing the file is in the list on purpose: an attacker’s echo into a file comes from sh, not PHP.

How to test: as the web user, have PHP write a harmless file into the Cacti directory, check for the alert, then delete the file.

Non-numeric value warning in the PHP or Cacti log

Context: watchTowr and BleepingComputer both say a warning about a non-numeric value in a graph display setting may be logged when the chain runs, while the request itself succeeds. RavenAI describes it as a PHP warning. Depending on your setup it lands in the PHP or web server error log, or in Cacti’s own log, so forward both.

Condition: match the keyword non-numeric in the forwarded PHP error log or Cacti log. I could not find the exact message text in the sources, so I kept it to the keyword. That makes it a hunting rule, not an alert.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: Non-Numeric Value Warning on a Cacti Host - 4HTTP2SHELL Hunting
id: af338bec-2440-4abd-8619-e984ec9031de
status: experimental
description: |
    Hunts for warnings about non-numeric values on a Cacti host. watchTowr notes a warning about a non-numeric value in a
    graph display setting may be logged when the 4HTTP2SHELL chain runs, while the request still succeeds; RavenAI calls it
    a PHP warning. Where it lands (PHP or web server error log, or the Cacti log) depends on the setup. The exact text is
    not published, so this matches the keyword only and needs review.
references:
    - https://watchtowr.com/intelligence/4http2root-cacti-zero-day-faq/
    - https://www.bleepingcomputer.com/news/security/unpatched-cacti-zero-day-with-public-poc-gives-remote-code-execution/
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - detection.threat-hunting
logsource:
    product: cacti
    service: application
    definition: 'Requirement: forward the PHP or web server error log and the Cacti log from the Cacti host to the SIEM (locations vary by install).'
detection:
    keywords:
        - 'non-numeric'
    condition: keywords
falsepositives:
    - PHP warnings from unrelated code paths or plugins with sloppy numeric handling
level: low

View on GitHub

False positives and tuning: any plugin with sloppy number handling can produce the same PHP warning. Once you see a real hit, copy the exact message into the rule and raise its level.

How to test: append a line containing “non-numeric” to the forwarded log in a lab and confirm it reaches the SIEM and matches.

Coverage and gaps

Step in caseTacticTechniqueRuleCovered?
Guest profile write, preview, realtime requestsInitial Access (TA0001)T1190Correlation rule, PHP or Cacti log huntYes (inferred URIs)
Stacked SQL rewrites poller_item.arg1Initial Access (TA0001)T1190NoneGap: database only
Poller runs the attacker commandExecution (TA0002)T1059.004Suspicious poller childYes, with process telemetry
Tool downloadCommand and Control (TA0011)T1105Suspicious poller childPartial
Web shell or file dropPersistence (TA0003)T1505.003PHP written in Cacti treeYes, with file telemetry
Follow-on actions (reading credentials, pivoting to devices)Variousn/aNoneGap: not described by sources

The biggest blind spot is the SQL write. Most teams do not audit the Cacti database, and a rewritten poller_item row looks like any other config change. I would close it with a scheduled read-only query: alert when a preview_graphs_per_page value in settings_user is not a plain number, and diff poller_item.arg1 against yesterday’s copy. The analysis post has the queries. The second gap is everything after the first command. Cacti servers hold SNMP credentials (the poller_item table itself has SNMP community and password columns) and can usually reach most network devices, so if the host rule fires, assume the attacker read the config and check your devices’ logs for logins from the Cacti server.

Deploying the rules

Grab the YAML from GitHub and convert it with sigma-cli for your SIEM. The Linux rules need a pipeline that maps Sysmon for Linux or your EDR’s field names; the web rules need your access log fields mapped to cs-uri-stem, cs-uri-query and c-ip. Correlation rules need a backend that supports Sigma v2 correlations (check yours); otherwise build the sequence as a saved search by hand. For example:

sigma list pipelines
sigma convert -t splunk --without-pipeline proc_creation_lnx_cacti_web_poller_suspicious_child.yml
sigma convert -t lucene --without-pipeline file_event_lnx_cacti_webroot_php_written_by_web_process.yml
sigma convert -t splunk --without-pipeline web_cacti_guest_profile_preview_realtime_sequence_correlation.yml

The --without-pipeline output keeps the Sigma field names, so rename them to your own schema, or swap in a pipeline from sigma list pipelines that matches your log source; pipeline names change between sigma-cli plugin versions. Run everything in alert-only mode for a week before it pages anyone, and tune the process rule’s filters with what your own data input scripts actually run.

My take

Honestly, the best detection for this bug is not a rule. It is setting Guest User to No User and taking the web UI off the internet, which closes the chain completely. Everything in this post is for the case where you cannot do that today, or where guest was on before you read about this and you need to know if someone got in.

Of the four, the process rule is the one worth keeping forever. Cacti has had four guest-reachable or unauthenticated paths published this year, and most of the impact flows through a poller that runs commands from a database table. Watching what that poller starts catches this chain and the next one. What I would really like is for Cacti to log changes to poller_item and to guest profile settings by default, with the user and source IP. That single log line would turn the biggest gap in this post into the easiest alert.

Sources

Cacti 4HTTP2SHELL: an unpatched guest-account RCE in the current release

Cacti 4HTTP2SHELL: an unpatched guest-account RCE in the current release

Cacti 1.2.31 shipped on June 15, 2026, and four days later the project published advisories for three critical bugs it fixed, each scored CVSS 9.8 and none needing a password (one of them only on installs with guest viewing turned on). On November 26, 2026, a researcher published a chain that turns that same release into a command shell for an anonymous visitor, in four HTTP requests.

The chain is called 4HTTP2SHELL (first published as 4HTTP2ROOT). It has no CVE and no fixed release. On November 28 the Cacti project merged security fixes that match the chain into its source branches, but it has not shipped a release or an advisory. A working proof of concept is public on GitHub. There is one big condition: the Cacti guest account has to be enabled. If yours is, you have a problem tonight. If it is not, you should still read on: this is the fourth guest-reachable or unauthenticated path into Cacti published this year, and the guest role was already the precondition for one of the June bugs.

Severity: high. Unauthenticated code execution on a server that usually sits in the middle of the network and talks to most of your devices, held back from critical only because guest access is off by default and the code runs as the Cacti service account.

At a glance

  • Name: 4HTTP2SHELL, also 4HTTP2ROOT. No CVE assigned, no CVSS score (watchTowr, November 26, 2026).
  • Affected: Cacti Core 1.2.31, the current release, as tested by the researcher. Whether 1.2.30 and older are affected is not established.
  • Precondition: the guest account is enabled. No credentials or session needed.
  • Impact: OS command execution as the account that runs the Cacti web server and poller. The researcher’s lab returned root; watchTowr notes that in many installs this is a low-privileged web user.
  • Exploitation: public PoC since November 26. No in-the-wild exploitation reported as of November 29. Not in CISA KEV.
  • Patch: no fixed release yet. Matching fixes were merged into the 1.2.31 and 1.2.x source branches on November 28. Mitigation is to disable guest access and keep the web UI off untrusted networks.
  • Who should care: network and NOC teams running Cacti, especially anyone who turned on guest viewing for wall dashboards or customer graph pages.

What we know

The researcher, who goes by ek0ms savi0r and publishes with a group called Church of Malware, posted the write-up and PoC to a GitHub repository on November 26, 2026, US Thanksgiving. BleepingComputer reports the researcher said the flaw was not reported to Cacti before release. I have not seen a statement from the Cacti project, and its GitHub advisory list shows nothing from November when I checked on November 28.

watchTowr published an FAQ the same evening. It lists the CVE as not assigned, the vendor patch as pending and no fixed version. As of November 27 it reported no exploitation in the wild. RavenAI published a technical breakdown of the researcher’s chain the same day, and BleepingComputer, BreachNews and others picked it up on November 27.

On November 28 the Cacti project merged two security pull requests that line up with the chain step by step. Pull request 9013, for the 1.2.31 maintenance branch, stops shared guest sessions from saving profile or graph preferences and normalizes pagination values before they reach graph queries; its description says the patch also applies to the original 1.2.31 release tag. Pull request 9014, for the 1.2.x branch, rejects guest writes with HTTP 403, clamps the LIMIT values in graph_view.php and checks graph permission in graph_realtime.php before it calls shell_exec(). Neither names 4HTTP2SHELL, so the match is my reading, not a vendor statement. As of November 29 there is still no new release, no advisory and no CVE, and nobody has reported exploitation in the wild.

What is confirmed: the chain works on a lab instance of 1.2.31 with guest enabled, as published by the researcher and described consistently by watchTowr and RavenAI. What is not confirmed: the range of affected versions, how many exposed servers have guest turned on, and when a fix will land. Do not confuse it with CVE-2026-39893, one of the June bugs that 1.2.31 already fixed.

Timeline: June 15, 2026 Cacti 1.2.31 released; June 19 advisories published for three critical bugs fixed in 1.2.31, none needing a password and one only with guest viewing on; November 26 4HTTP2SHELL chain and PoC published against 1.2.31, researcher says Cacti was not told first; November 28 Cacti merges matching security fixes into its source branches, with no release, CVE or advisory yet.
1.2.31 closed three critical bugs that needed no password, one of them only with guest viewing on. The new chain breaks that same release.

How the chain works

Nothing here is exotic. It is a second-order SQL injection: the attacker stores a malicious value in one place and a different page later trusts it. Here is the flow at the level the published analyses describe it, without the request details.

First, the guest writes a profile setting. Cacti lets users, including the guest user, save display preferences through auth_profile.php. One of them, preview_graphs_per_page, should be a number. According to RavenAI, the update accepts any string.

Second, the graph preview reads it back. graph_view.php in preview mode loads the stored preference without the integer check it applies to request input, and concatenates it into the LIMIT clause of a SQL query. On the tested database path the query interface accepted an extra statement, so the stored value runs as its own SQL command. watchTowr notes that a warning about a non-numeric value may be logged at this point, and RavenAI describes it as a PHP warning. Depending on your setup it lands in the web server or PHP error log, or in Cacti’s own log. The request still succeeds either way.

Third, the injected statement rewrites a poller command. Cacti keeps the commands its poller runs in the database. RavenAI names the arg1 field of a poller_item row as the target. Change that value and you have changed what Cacti will execute next.

Fourth, a guest-reachable realtime graph page triggers the poller path (graph_realtime.php through to lib/poller.php), which runs the rewritten command on the host. That is four requests from an anonymous browser to a shell.

Four-step attack chain: guest writes a text value into a numeric profile setting, graph preview concatenates it into a SQL LIMIT clause, the stacked query rewrites a poller command, a realtime graph request runs it as the Cacti service user.
The 4HTTP2SHELL chain as described by watchTowr and RavenAI. Every step is reachable by an anonymous guest.

The design choice that makes this hurt is not new: Cacti stores the command lines its poller executes in a database table, so any SQL write primitive is one step from command execution. A numeric field nobody bound as a parameter, plus a database path that accepts stacked statements, is simply the latest way to reach that table.

Who is affected and how badly

The guest precondition matters a lot. Cacti’s documentation says the guest user has not been enabled by default since 0.8.7. To turn on anonymous access an admin has to enable the guest user and select it as the Guest User under Authentication settings. So a stock install is not exposed. The trouble is that people turn guest on for good reasons: a NOC wall screen, a public status page, customers who want to see their own bandwidth graphs.

Then think about where Cacti lives. It polls routers, switches and firewalls over SNMP, so the box holds community strings or SNMPv3 credentials and a full inventory of the network, and it usually has a route to most management interfaces. Code running as the Cacti user can read that configuration and the database, plant files in the web root, and use the server as a pivot. Whether that user is root depends on how you installed it. The researcher’s lab returned root, which tells you something about how lab installs get built, not about the bug.

My rating: critical for any internet-facing Cacti with guest enabled, because the PoC is public and there is no fixed release yet. High for internal installs with guest enabled, because anyone on the network, including malware already on a workstation, can use it. Low for installs with guest off, assuming nothing else in the chain turns out to be reachable after login. No source has published exposure counts, so I will not guess one.

What to do now

  1. Turn off guest access. In the console go to Configuration, Settings, Authentication and set Guest User to No User, then disable the guest account under Users. This removes the precondition entirely. If a wall screen needs graphs, give it a named read-only account.
  2. Take the web UI off the internet. Cacti has no business being reachable from outside a management network. Restrict it at the firewall or in the web server config to the admin and NOC subnets.
  3. Check whether you were exposed. If guest was on and the UI was reachable at any point since November 26, review the poller data and the web root (queries below) before you assume you are clean. Turning guest off now does not undo a rewritten poller command or a dropped web shell.
  4. Stay on 1.2.31 for now. It fixes the three critical June bugs. Do not roll back hoping the new chain does not reach older versions; nobody has shown that, and the older releases are definitely vulnerable to the June issues. The fixes merged on November 28 are not in any release yet. When Cacti ships a release or advisory that includes them, patch, and keep guest off anyway.
  5. Check what the Cacti service account is. If the web server or poller runs as root, fix that on your next maintenance window; it is the difference between a compromised app and a compromised host.

For the exposure check, three read-only queries against the Cacti database (adjust the database name). The first shows whether a guest user is mapped, the second finds stored page-size preferences that are not plain numbers, the third lists poller commands containing shell metacharacters. Legitimate script data inputs can contain pipes or semicolons, so read the results rather than treating every row as a hit. The table and column names match the Cacti 1.2.x schema file; the regular expression escaping is mine, so check it against your schema and your MySQL or MariaDB version before relying on it.

SELECT name, value FROM settings WHERE name = 'guest_user';
SELECT user_id, value FROM settings_user
  WHERE name = 'preview_graphs_per_page' AND value NOT REGEXP '^[0-9]+$';
SELECT local_data_id, arg1 FROM poller_item
  WHERE arg1 REGEXP '[;|`]|\\$\\(';

Detection and monitoring

I found no published IOCs or request samples in the sources I read, so everything here is behaviour-based and marked experimental. The good news is that the chain has to touch three places you can log: the web server sees the request sequence, a PHP warning about a non-numeric value may show up in the web server or PHP error log or in Cacti’s log, and the host sees whatever the rewritten poller command starts. The step in the middle, the SQL write into poller_item, is invisible to most SIEMs, which is why the database queries above matter. Process and file telemetry on Linux are off unless you run Sysmon for Linux, auditd or an EDR on the Cacti box.

RuleCategoryLog sourceATT&CKLevel
Suspicious command spawned by Cacti web server or pollerLinuxprocess_creationT1059.004, T1105High
Profile update, then preview, then realtime graph from one clientWeb/App (correlation)webserverT1190Medium
PHP file written in the Cacti web root by a web processLinuxfile_eventT1505.003Medium
Non-numeric value warning in the PHP or Cacti logWeb/App (hunting)PHP error log or Cacti logT1190Low

The one I would turn on first is the process rule. A monitoring server’s PHP or poller process has no reason to start a shell that runs curl, wget, netcat, base64 or a /dev/tcp redirect, or to launch those tools directly. It does not care how the command got into the poller, so it also catches the next variant. The process lineage is my inference from how Cacti runs poller commands, not something the sources spell out. If your own data input scripts call curl to poll an HTTP API, add a filter for their path.

title: Suspicious Command Spawned by Cacti Web Server or Poller - Possible 4HTTP2SHELL Exploitation
id: 60c2cf77-4095-4bbf-9a3d-fd67b80c2a27
status: experimental
description: |
    Detects a shell running download, reverse-shell, discovery or encoding commands, or such a tool started directly,
    under the PHP, web server or spine poller processes on a Linux Cacti host. The 4HTTP2SHELL chain rewrites a
    poller command that a realtime graph request then executes as the Cacti service account (inferred process lineage).
references:
    - https://watchtowr.com/intelligence/4http2root-cacti-zero-day-faq/
    - https://ravenai.sh/blog/four-requests-to-shell-cacti
    - https://netsec101.com/?p=584
author: netsec101.com
date: 2026-11-28
tags:
    - attack.execution
    - attack.t1059.004
    - attack.command-and-control
    - attack.t1105
    - detection.emerging-threats
logsource:
    product: linux
    category: process_creation
detection:
    selection_parent:
        - ParentImage|contains: '/php'
        - ParentImage|endswith:
              - '/apache2'
              - '/httpd'
              - '/spine'
    selection_shell:
        Image|endswith:
            - '/sh'
            - '/bash'
            - '/dash'
    selection_shell_payload:
        CommandLine|contains:
            - 'curl '
            - 'wget '
            - '/dev/tcp/'
            - 'base64'
            - 'whoami'
            - 'nc -'
            - 'ncat '
            - 'socat '
            - 'chmod +x'
            - 'python -c'
            - 'python3 -c'
    selection_direct_tool:
        Image|endswith:
            - '/curl'
            - '/wget'
            - '/nc'
            - '/ncat'
            - '/netcat'
            - '/socat'
            - '/whoami'
            - '/base64'
    condition: selection_parent and ((selection_shell and selection_shell_payload) or selection_direct_tool)
falsepositives:
    - Custom Cacti data input scripts that call curl or wget to poll HTTP APIs (scope by the script path and add a filter)
    - Other PHP applications on the same host; scope the rule to Cacti servers
level: high

Until Cacti ships a release with the fix, keep these running and re-run the database checks weekly. If guest was ever enabled on a reachable server, retro-hunt your web and host logs back to November 26, 2026, when the PoC went public. Once a patched release lands, keep the process rule permanently: it is cheap, and Cacti has had four guest-reachable or unauthenticated paths published this year.

I wrote up all four rules, with tuning notes, lab tests and ATT&CK coverage, in a separate detection post. The YAML lives in my Detection Rules repo, in the Linux and Web-App folders.

My take

The headline name oversells it. “Root in four requests” needs a non-default setting, and root only if you installed Cacti badly. I would not put this in the same bucket as an exploited VPN bug. But I think the story is underrated in a different way. In June, Cacti fixed three critical bugs that needed no login, two of them SQL injections in graph_view.php and one of them reachable only with guest viewing on. Five months later the release that fixed them falls to another guest-reachable SQL injection in the same file, which ends in a database table full of commands the poller will happily run. Patching each hole as it appears is not working. Cacti needs to treat the guest role as hostile input everywhere and treat poller_item as security-critical configuration, with integrity checks, not as just another table.

On the disclosure, I am not a fan. Dropping a full chain with a PoC on a holiday, with no notice to the project, mostly hurts the network teams who run it. That said, the researcher’s frustration with vendor triage is clearly real, and Cacti’s advisory history this year shows its maintainers already had plenty to fix. The practical answer does not depend on who is right: guest off, UI off the internet, and a look at your poller table tonight. Those three things close this chain completely, which is more than most zero-days give you.

Sources

On This Day (November 29, 2016): The UK’s Investigatory Powers Act Becomes Law

On This Day (November 29, 2016): The UK’s Investigatory Powers Act Becomes Law

On the morning of Tuesday, November 29, 2016, the Queen gave Royal Assent to the Investigatory Powers Bill, and it became the Investigatory Powers Act 2016. It was a formality: as PCWorld noted that day, no British monarch had refused assent since 1707. The Home Office published a short announcement the same day, saying the law brought together and updated the powers police and intelligence agencies use to gather and access electronic communications.

Critics had another name for it: the Snooper’s Charter. The day before, The Register reported that a petition to repeal the new law had passed 100,000 signatures, enough to make Parliament consider a debate. It did not change the outcome. Ten years later, the part of the Act that matters most to defenders turned out to be one most people skimmed past in 2016.

At a glance

DateNovember 29, 2016 (signing: Royal Assent)
EventThe UK Investigatory Powers Bill becomes the Investigatory Powers Act 2016
TypeLaw / policy
Who was involvedThe UK Home Office (Home Secretary Amber Rudd); Parliament; critics including Liberty and the Open Rights Group
Impact at the timeInternet providers could be required to keep a year of connection records; bulk and hacking powers put into one statute; new judicial approval and oversight
Still relevant today?Yes: a technical capability notice under the Act is reported to be behind Apple withdrawing end-to-end encrypted iCloud backups for new UK users

What happened

The government had a deadline. Its previous stopgap law for data retention, the Data Retention and Investigatory Powers Act 2014 (DRIPA), was due to expire on December 31, 2016. The government had committed to pass the new law before then, and the Home Office said it would commence the provisions that replace DRIPA. The new Act did far more than replace DRIPA.

According to the Home Office announcement, it created internet connection records (ICRs), records of which sites a person visits, that police and intelligence agencies could access. PCWorld reported that providers would have to keep a year of this data, covering the sites visited but not the exact pages. Access was not limited to spies: an inspector or above could approve police requests, and bodies such as HM Revenue and Customs and the Department for Work and Pensions were on the list too.

Timeline from the repeal petition passing 100,000 signatures on November 28, 2016 and Royal Assent on November 29, 2016, through the High Court data retention ruling on April 27, 2018 and Apple pulling Advanced Data Protection for new UK users on February 21, 2025, to the tribunal's disclosure order on November 19, 2026.
From Royal Assent to the Apple case. Sources: The Register, Home Office, MacRumors, Privacy International.

In exchange, the government offered safeguards. The most intrusive powers got what it called a “double-lock”: a warrant signed by a Secretary of State also needed approval from a senior judge, a Judicial Commissioner. A new Investigatory Powers Commissioner would oversee how the powers were used, and journalistic and legally privileged material got new protections.

Why it mattered then

Context is everything here. In the wake of Edward Snowden’s leaks, the UK was writing into law powers that, as Daniella Lock, a PhD student at UCL’s Faculty of Laws, wrote shortly afterwards, had been “the subject of widespread fear and shock”. Bulk hacking had only been acknowledged in a draft code of practice in February 2015. Bulk personal datasets were first avowed in a parliamentary committee report in March 2015, and bulk acquisition of communications data was admitted in November 2015. The Act put all of it, plus bulk interception, on an explicit statutory footing.

Supporters, including Theresa May, called the powers necessary and proportionate. Opponents focused on the ICRs and the bulk powers. Liberty argued that no operational case had been made for internet connection records, and promised to see the government in court. Most of the 2016 coverage I can find is about what the state could collect. Far less of it is about what the state could make companies build.

What changed afterwards

Liberty kept its promise. On April 27, 2018, the High Court ruled that Part 4 of the Act, the data retention rules, was incompatible with EU law, because retention orders were not independently reviewed and could be made for purposes beyond serious crime. The government got until November 1, 2018 to fix it. The court did not accept that the Act allowed general and indiscriminate retention, and it did not switch Part 4 off.

The bigger story was technical capability notices (TCNs), orders under section 253 that, in the Home Office’s own words, compel companies to “build and/or maintain” the capabilities needed to answer lawful requests for data. The Home Office’s 2025 code of practice says such a notice does not make an operator remove encryption as such. It can, however, require the operator to keep the ability to remove encryption it applied itself, ready for when a warrant arrives. In April 2024, the Investigatory Powers (Amendment) Act 2024 added notification notices, which can oblige some companies to tell the government about planned technical changes that could affect lawful access.

Then and now table comparing 2016 and today on what the debate was about, data retention, encryption, secrecy of orders and what defenders should do.
What we argued about in 2016, and what turned out to matter. The debate and encryption rows and the advice are the author's view; the dated facts are sourced.

Then came the test case. On February 7, 2025, Reuters relayed a Washington Post report that the Home Office had served Apple with a TCN demanding a way to retrieve the cloud data of any Apple user worldwide. The Home Office would not confirm or deny it. On February 21, 2025, Apple withdrew Advanced Data Protection, its end-to-end encrypted iCloud option, from the UK, saying it was “gravely disappointed”; existing users were told they would have to switch it off themselves. Apple’s support page now says it can no longer offer the feature to new UK users. In August 2025, US intelligence chief Tulsi Gabbard said the UK had agreed to drop the demand; the Home Office did not confirm. And on November 19, 2026, according to Privacy International, the Investigatory Powers Tribunal ordered the government to acknowledge whether it had issued TCNs to Apple. That ruling is about secrecy, not about whether the notice is lawful, and Apple’s challenge is still pending.

My take

I think the 2016 debate looked in the wrong place. Connection records and bulk powers were the headlines, but the clause with the longest reach for security engineers was the notice regime: the state can require a provider to keep a way to undo its own encryption, and the provider can’t say it got the order. If the reporting on the Apple notice is right, Apple’s withdrawal of encrypted backups is that clause working as designed, eight years after the Act passed.

The double-lock is a real safeguard, and I don’t want to wave it away. But a secret order, approved in secret, whose existence the government would neither confirm nor deny for nearly two years until the tribunal ordered it to, is very hard for anyone outside to trust or verify.

Here’s what I’d take from November 29, 2016, whatever country you work in. Treat jurisdiction as part of your threat model: where your provider is based and where your data sits decide who can compel access. Prefer designs where the provider never holds keys it could be forced to use, which in practice means end-to-end encryption with keys on the client. And read a vendor’s “encrypted” claim as a question, not an answer: encrypted by whom, with keys held where?

Sources

Detecting Drupal installer takeover: 4 Sigma rules for web logs and host files

Detecting Drupal installer takeover: 4 Sigma rules for web logs and host files

Drupal’s installer flaws are a detection engineer’s dream and nightmare at once. The dream: the attack has to go through one URL, /core/install.php, that a finished production site has no business serving. The nightmare: neither Drupal nor the researchers published a single IP address, hash or user agent, and Drupal itself says a compromised site may no longer look vulnerable.

This post is the companion to my analysis of CVE-2026-136716 and the earlier Fail2Install bug. Here you get four Sigma rules built on behaviour, what each one catches, how to tune it, and how to test it safely in a lab.

At a glance

  • Rules: 4 rule files (one of them a Sigma v2 correlation with its own base rule).
  • Domains: Web/App (3) and Linux (1).
  • Log sources: web server access logs with method and full path; host file events from Sysmon for Linux, auditd or an EDR.
  • ATT&CK: T1190 Exploit Public-Facing Application (Initial Access) and T1505.003 Web Shell (Persistence).
  • Status: one rule test (vector confirmed by Drupal), three experimental (built from researcher write-ups and my own reasoning).
  • GitHub: Detection Rules/Web-App and Detection Rules/Linux.

The case in brief

Drupal fixed CVE-2026-132165 (SA-CORE-2026-017) on November 18, 2026, and reported exploitation on live sites from November 19 at 19:00 UTC. A week later, on November 25, it fixed CVE-2026-136716 (SA-CORE-2026-019) for sites in unusual or incomplete installation states that the first fix missed, and said that one is exploited in the wild too. In both cases the attacker uses the installer to reinstall Drupal on a live site and take it over. The full story is in the analysis.

For detection, the steps that matter and where they leave traces are these. The attacker requests the installer, and for Fail2Install, puts pressure on the database or the server so that the “already installed” check fails (Searchlight Cyber’s research). That shows up in access logs. The attacker then most likely submits installer forms (my inference), which are POST requests to the same path. On some setups the attacker can go further: Searchlight describes writing a SQLite database file with a .php name into the web root and running it through a crafted path. The CSA and Hive Security write-ups give that path shape as .php/core/ in the middle. That leaves a file on disk and one more odd line in the access log. The account takeover itself happens inside Drupal and does not reach the web server logs in a useful way.

Detection map

Block diagram: web access logs and Linux host file events feed four Sigma rules (installer POST request, installer request burst correlation, .php/core/ path trick, PHP file in public files) mapped to ATT&CK T1190 and T1505.003, with the user 1 takeover marked as a gap to check by hand.
Two log sources, four rules. The admin takeover itself stays a manual check.

Two log sources feed four rules. The web access log carries three of them: the installer POST, the burst correlation and the .php/core/ path. Host file events carry the fourth, a PHP file appearing under sites/*/files. Together they cover the initial access and the web shell step. The account takeover in the middle is the gap: it lives in Drupal’s own logs and state, so I treat it as a manual check, not a rule.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
Drupal installer POST requestWeb/AppwebserverInitial Access / T1190Hightest
Burst of installer requests from one clientWeb/Appwebserver (correlation)Initial Access / T1190Mediumexperimental
PHP file requested with trailing /core/ pathWeb/AppwebserverPersistence / T1505.003Highexperimental
PHP file created in Drupal public filesLinuxlinux / file_eventPersistence / T1505.003Highexperimental

The rules

Drupal installer POST request

Context: Drupal names the installer as the vector for both exploited bugs. My inference is that a reinstall most likely needs someone to submit installer forms on a site that is already running, with or without a resource flood, so this is the rule with the best signal. It is test rather than experimental because Drupal itself names the installer as the vector.

Condition: alert on any POST request whose path contains /install.php. The contains match also catches /core/install.php/foo style paths, which Drupal’s own hardening guide warns about.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: Drupal Installer POST Request - Potential CVE-2026-136716 / CVE-2026-132165 Site Takeover
id: d251aa0a-f5e0-4e6a-85f2-31c59d86e62c
status: test
description: |
    Detects HTTP POST requests to the Drupal installer (install.php). Drupal names the installer as the vector for both
    exploited flaws, SA-CORE-2026-017 and SA-CORE-2026-019. A reinstall most likely requires submitting installer
    forms (inference), which a site that is already installed should never receive.
references:
    - https://www.drupal.org/sa-core-2026-019
    - https://www.drupal.org/sa-core-2026-017
    - https://www.drupal.org/docs/administering-a-drupal-site/security-in-drupal/securing-the-installer-installphp
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-136716
    - cve.2026-132165
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_path:
        cs-uri-stem|contains:
            - '/core/install.php'
            - '/install.php'
    selection_method:
        cs-method: 'POST'
    condition: all of selection_*
falsepositives:
    - Building a brand new Drupal site or adding a multisite site through the browser installer
    - Staging or development hosts that are reinstalled on purpose (scope the rule to production hosts)
level: high

View on GitHub

False positives and tuning: new site builds and multisite additions done in the browser will fire it. Scope it to production host names, or add a filter for the IP addresses your team installs from. If you have already blocked the installer, you’ll see hits with status 403 or 404. Keep them; they tell you who is probing, and you can lower the level for blocked responses with a filter on sc-status.

How to test: on a lab Drupal site, send any harmless POST to /core/install.php (an empty form body is enough) and check that the access log line matches.

Burst of Drupal installer requests from one client

Context: Searchlight’s Fail2Install technique depends on a database check failing at exactly the right moment. My inference is that real attempts will hit the installer many times in a short window, much more than a scanner checking once. This rule is a Sigma v2 event_count correlation: a low-level base rule matches any installer request, and the correlation fires when one client crosses a threshold.

Condition: alert when one client address sends 30 or more requests to the installer on one host within one minute. The threshold is my starting point, not a value from any source.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: Drupal Installer Request From Any Client
id: 75e838b2-152b-43ec-b7a4-413b0331d848
name: web_drupal_installer_request_any
status: experimental
description: |
    Base rule for the burst correlation below: any request to the Drupal installer. Not meant to alert on its own.
references:
    - https://www.drupal.org/sa-core-2026-017
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-132165
    - detection.threat-hunting
logsource:
    category: webserver
detection:
    selection:
        cs-uri-stem|contains:
            - '/core/install.php'
            - '/install.php'
    condition: selection
falsepositives:
    - Uptime checks or scanners that request install.php
level: low
---
title: Burst Of Drupal Installer Requests From One Client - Potential Fail2Install Attempt
id: 8d2db544-b525-4e65-9bb3-fad5250d6ca7
status: experimental
description: |
    Detects one client sending many requests to the Drupal installer within a minute. The Fail2Install technique
    (CVE-2026-132165) relies on making database checks fail at the right moment, so I expect attempts to repeat the
    installer request many times (inference). The threshold of 30 per minute is my own starting point, not a source value.
references:
    - https://www.slcyber.io/research/fail2install-system-limits-pre-auth-rce-drupal
    - https://www.drupal.org/sa-core-2026-017
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-132165
    - detection.emerging-threats
correlation:
    type: event_count
    rules:
        - web_drupal_installer_request_any
    group-by:
        - c-ip
        - cs-host
    timespan: 1m
    condition:
        gte: 30
falsepositives:
    - Load tests or security scans aimed at the site
    - Many users behind one NAT or proxy address (group by X-Forwarded-For if your logs keep it)
level: medium

View on GitHub

False positives and tuning: load tests and authorised scans will trip it, and so will many users behind one NAT or proxy address. If your logs keep X-Forwarded-For, group by that instead of c-ip. Remember that CVE-2026-136716 may not need a flood at all, so a quiet result here does not clear a site. The base rule on its own is a decent hunting query for the retro-hunt.

How to test: send 30 plain GET requests to /core/install.php on a lab site from one machine within a minute and check that the correlation fires once your backend supports Sigma correlations.

PHP file requested with trailing /core/ path

Context: Searchlight explains that the stock Drupal .htaccess rule meant to stop PHP files outside core from running was not anchored, so a crafted path slipped past it. The Cloud Security Alliance note and Hive Security give the shape to look for: a .php file followed by an extra /core/<name>.php segment. I am matching the path shape only, not a full request.

Condition: alert on any request whose path contains a .php file followed by /core/ and another .php name.

ATT&CK: Persistence (TA0003) – T1505.003 Web Shell.

title: Drupal PHP File Requested With Trailing /core/ Path - Potential Fail2Install Code Execution
id: aba8fc39-98da-47fa-be7a-8609c0d87300
status: experimental
description: |
    Detects requests where a .php path is followed by an extra /core/<name>.php segment. Searchlight Cyber says a crafted
    path got past the stock Drupal Apache .htaccess rule in the Fail2Install chain (CVE-2026-132165); the CSA and Hive
    Security write-ups list this path shape as an indicator. Built from published research, not from vendor IOCs.
references:
    - https://www.slcyber.io/research/fail2install-system-limits-pre-auth-rce-drupal
    - https://labs.cloudsecurityalliance.org/research/csa-research-note-drupal-fail2install-ai-found-installer-tak/
    - https://hivesecurity.gitlab.io/blog/drupal-cve-2026-136716-installer-takeover/
    - https://www.drupal.org/sa-core-2026-017
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.persistence
    - attack.t1505.003
    - cve.2026-132165
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection:
        cs-uri-stem|re: '\.php/core/[^/]*\.php'
    condition: selection
falsepositives:
    - Scanners and vulnerability checks that probe this path pattern (still worth a look on a Drupal host)
level: high

View on GitHub

False positives and tuning: I don’t know of a legitimate Drupal route with this shape, so expect hits from scanners testing for the bug. Check the response code: a 200 for one of these paths deserves an incident ticket, a 404 is a probe. Make sure your log format keeps the full path; some setups split the path info part out.

How to test: request /modules/test.php/core/test.php on a lab site. It will typically return 404, depending on the server, and the log line should match.

PHP file created in Drupal public files directory

Context: Drupal’s public files directory under sites/<site>/files is for uploads and generated assets. The CSA note lists PHP files in the public files directory as an indicator. The exception is my own: from general Drupal knowledge, the default compiled Twig cache lives under files/php/twig, so I filter that path. A new PHP file anywhere else in that tree is most likely a web shell or a database file planted through the installer. This rule outlives the CVE, which is why it carries no emerging-threat tag.

Condition: alert when a file ending in .php is created under a path containing /sites/ and /files/, unless the path contains /files/php/twig/.

ATT&CK: Persistence (TA0003) – T1505.003 Web Shell.

title: PHP File Created In Drupal Public Files Directory
id: 9857fb99-344e-4407-8333-68aadb13f0f1
status: experimental
description: |
    Detects creation of a .php file under a Drupal sites/<site>/files directory. CSA lists PHP files in the public files
    directory as an indicator; excluding files/php/twig (the default compiled Twig cache) is my own tuning. A new PHP
    file there points to a web shell or to a database file planted through the installer (Fail2Install chain).
references:
    - https://labs.cloudsecurityalliance.org/research/csa-research-note-drupal-fail2install-ai-found-installer-tak/
    - https://www.slcyber.io/research/fail2install-system-limits-pre-auth-rce-drupal
    - https://www.drupal.org/sa-core-2026-019
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.persistence
    - attack.t1505.003
    - cve.2026-132165
    - cve.2026-136716
logsource:
    product: linux
    category: file_event
detection:
    selection:
        TargetFilename|contains: '/sites/'
        TargetFilename|endswith: '.php'
    selection_files_dir:
        TargetFilename|contains: '/files/'
    filter_main_twig_cache:
        TargetFilename|contains: '/files/php/twig/'
    condition: all of selection* and not 1 of filter_main_*
falsepositives:
    - Sites that moved the Twig cache or other generated PHP into a custom path under files/ (add that path as a filter)
    - Backup or migration tools that copy PHP files into the files directory
level: high

View on GitHub

False positives and tuning: if you moved the Twig cache or keep other generated PHP under files/, add that path as a filter. Backup and migration tools that copy whole trees can also trip it. The bigger limit is telemetry: file creation events are not collected by default on Linux, so you need Sysmon for Linux, an auditd watch on the files directory, or an EDR. A file written somewhere other than files/ will not match.

How to test: on a lab host with file telemetry on, run touch sites/default/files/test.php and check for an alert, then create a file under sites/default/files/php/twig/ and check that the filter keeps it quiet.

Coverage and gaps

Step in the caseTacticTechniqueRuleCovered?
Reach the installer and flood it (Fail2Install)Initial Access (TA0001)T1190Installer request burstPartly, threshold based
Submit installer forms and reinstallInitial Access (TA0001)T1190Installer POST requestYes
Take over user 1 or create an adminPersistence (TA0003)T1078 Valid AccountsNoneGap: Drupal logs and state, manual check
Write PHP through a SQLite filePersistence (TA0003)T1505.003PHP file in public filesYes, with host file telemetry
Run it through a .php/core/ pathPersistence (TA0003)T1505.003.php/core/ pathYes

What none of these rules can see is the account takeover itself. Drupal’s advice is to check logs for changes to or by user 1, set its email to one you control and consider resetting its password. Do that by hand, along with looking for administrators you don’t recognise. Hive Security also suggests checking the installer state with drush state:get install_task (expect done) and drush state:get install_time (expect the original install time). The CSA note lists database error strings that appear during the resource flood, such as PostgreSQL refusing extra clients or MySQL reporting too many connections. Those are worth a manual search of your database and PHP error logs for the days after November 18, but ordinary overload produces them too, so I did not turn them into a rule.

Deploying the rules

Pull the YAML from the GitHub folders above and convert it with sigma-cli for your SIEM. The web rules use the standard webserver field names (cs-uri-stem, cs-method, c-ip), so you need a pipeline that maps them to your Apache or nginx fields. The Linux rule uses TargetFilename as Sysmon for Linux does. A few examples:

sigma convert -t splunk --without-pipeline web_drupal_installer_post_request.yml
sigma convert -t lucene --without-pipeline web_drupal_php_path_info_core_bypass.yml
sigma convert -t splunk --without-pipeline file_event_lnx_drupal_php_file_in_public_files.yml

--without-pipeline keeps the Sigma field names as they are, so rename them to your own log schema (or write a small pipeline) before the query returns anything. The correlation rule needs a backend that supports Sigma correlations; if yours does not, run the base rule as a scheduled search with a count. Run everything in alert-only mode for a week before it pages anyone, and do a retro-hunt back to November 18, 2026 on day one.

My take

This is one of the more detectable critical bugs I’ve written rules for, and that’s because of where it lives. Every variant has to pass through one URL that a finished site never needs. If I could only deploy one rule, it would be the installer POST, and I’d pair it with the web server block from the analysis so that a hit means “someone tried” rather than “someone got in”.

The weak spot is the part attackers care about most: the takeover of user 1 happens inside Drupal, and default logging does not make it easy to see from outside. I’d like Drupal to log any write to the installer state, and any change to user 1’s email or password, to syslog by default, with a clear event name a SIEM can key on. Until then, the manual checks in the gaps section are not optional.

Sources

Drupal’s installer got patched twice in a week, and attackers used both gaps

Drupal’s installer got patched twice in a week, and attackers used both gaps

Every Drupal site ships with a file whose whole job is to build a brand new site: core/install.php. On most production sites it sits there for years, answering “already installed” to anyone who asks. In the last week it has answered something else, twice, and attackers were listening both times.

On November 25, 2026 the Drupal Security Team published SA-CORE-2026-019 (CVE-2026-136716), a “Highly critical” access bypass that lets an unauthenticated attacker take over a site through the installer. It exists because the fix from one week earlier, SA-CORE-2026-017 (CVE-2026-132165, the bug Searchlight Cyber nicknamed “Fail2Install”), did not cover sites stuck in unusual or incomplete installation states. Drupal says both are exploited in the wild, and CISA added the new one to its Known Exploited Vulnerabilities (KEV) catalog on November 27 with a November 30 deadline.

Severity in one line: critical. Unauthenticated, remote, full site takeover, confirmed exploitation, and a fix that only works if you also run the database updates.

At a glance

  • CVEs: CVE-2026-136716 (SA-CORE-2026-019, November 25, 2026) and the earlier CVE-2026-132165 (SA-CORE-2026-017, November 18, 2026).
  • Scores: Drupal risk 21/25 and 20/25, both “Highly critical”. CVSS 3.1 9.8 for both on NVD (CVE-2026-136716 from CISA’s ADP entry; CVE-2026-132165 from NVD, with CISA’s ADP entry at 8.1).
  • Affected: Drupal core before 10.6.23, 11.0.0 to before 11.3.23, and 11.4.0 to before 11.4.14, when the installer is reachable. Drupal 11.2.x and older, 10.5.x and older, and Drupal 8 and 9 are end-of-life and get no fix.
  • Exploitation: confirmed by Drupal for both. First reported exploitation of CVE-2026-132165 on November 19, 2026 at 19:00 UTC. Both are in CISA KEV (added November 24 and November 27).
  • Fix: 10.6.23, 11.3.23 or 11.4.14, then run update.php (or drush updatedb), then block install.php at the web server.
  • Who should care: anyone running a supported Drupal 10 or 11 release below the fixed versions, anyone on an end-of-life branch (Searchlight lists Drupal 8.9 and 9 as affected by the first bug), and teams whose deploys skip database updates.

What happened

The story starts with SA-CORE-2026-017 on November 18, 2026. Drupal’s advisory was short: under specific conditions an attacker can use the installer to try to reinstall Drupal on an existing site, which can lead to site takeover or remote code execution. Drupal credited the find to Anthropic’s OSS Scanner.

Drupal later updated that advisory: the Security Team received a report of exploitation on live sites as early as November 19 at 19:00 UTC. That is roughly a day after the patch. On November 24, CISA put CVE-2026-132165 into KEV, and Searchlight Cyber researchers Kevin Gervot and Adam Kues published their own write-up of the bug. Their report to Drupal had been a duplicate, but they had confirmed pre-auth code execution on a stock Apache and PostgreSQL setup back on October 27.

Then came SA-CORE-2026-019 on November 25. Drupal’s wording: the first fix closed several installer holes, but some sites in unusual or incomplete installation states were still open to takeover, production sites included. The vulnerable state is not visible in the admin interface, sites already compromised may no longer look vulnerable, and any site that left its installer reachable after SA-CORE-2026-017 may already have been taken over. The advisory is blunt: “This is being exploited in the wild.”

Timeline for November 2026: Nov 18 SA-CORE-2026-017 fixes CVE-2026-132165, Nov 19 exploitation reported from 19:00 UTC, Nov 24 Searchlight write-up and KEV listing, Nov 25 SA-CORE-2026-019 for exploited CVE-2026-136716, Nov 27 KEV listing with a Nov 30 deadline.
Two Drupal installer advisories in a week, both exploited.

How it works

Drupal has not published exploit details, so this section leans on named researchers, labelled as such, and stays conceptual.

The installer first asks: “Is Drupal already installed here?” According to Searchlight, in the vulnerable versions that check failed open. A transient database failure made the installer treat a live site as not installed, which brought the setup forms back.

The clever part of the Searchlight research is how they made that error happen on demand. They looked at three system limits: open file descriptors, the database’s maximum connections, and TCP ephemeral source ports. Push any of them to the edge and new database connections fail for a moment. Resource exhaustion is usually filed under “availability”; here it became an authentication bypass. Searchlight says it worked with Apache or PHP-FPM and MySQL or PostgreSQL on Drupal 8.9, 9, 10 and 11, with PHP-FPM harder. Drupal 7 and Drupal 8 before 8.9 are not affected, per the researchers.

Once the installer is open, the attacker gets to configure the site. Searchlight describes turning that into code execution: the installer accepted a user-chosen SQLite database file path, so a database file could be placed under the web root with a PHP extension and content the attacker controls, and the stock Apache .htaccess rule meant to stop such files running was not anchored, so a crafted path slipped past it. Even without that step, my reading is that whoever completes a reinstall controls the administrator account it sets up; Drupal itself just calls the result site takeover.

Four-step chain: starve the database so a check fails, the installer fails open on a live site, the attacker reinstalls and takes the administrator account, then a SQLite file with a .php name in the web root runs as code. Step three is my inference.
The Fail2Install chain as Searchlight Cyber describes it, at a conceptual level. Drupal has not published exploit details.

CVE-2026-136716 is the leftover gap. Drupal only says it affects sites in unusual or incomplete installation states and that an update hook must run to fix sites already in that state. Hive Security read the fix commit and inferred that the first patch missed one stored state: an install task recorded with no install time. The new update hook writes the missing values. That is a reading of a diff, not a Drupal statement, but it explains why upgrading code alone is not enough.

Who is affected and how badly

The precondition is simple: the installer has to be reachable from the internet. Drupal says sites that already secured install.php are not vulnerable to SA-CORE-2026-019. The catch: securing it is a web server rule or Composer script each site owner adds, per Drupal’s “Securing the installer” page, and the reported exploitation says enough sites never did.

No login is needed. For CVE-2026-136716 Drupal describes site takeover, and CISA scores it automatable with total technical impact. Code execution as the web server account comes from Searchlight’s research on the first bug, CVE-2026-132165. The unusual-state condition sounds narrow, but the admin UI can’t show it, so treat every reachable installer as exposed until updates have run.

End-of-life branches (Drupal 8, 9, 10.5 and older, 11.2 and older) get no fix from Drupal. Searchlight lists 8.9 and 9 as affected by the first bug; nobody has said whether they are affected by the second. Either way, blocking the installer is the only protection those sites can get, and Drupal says sites with a secured installer are not vulnerable to SA-CORE-2026-019.

Unknown as of November 28, 2026: who is exploiting these bugs, how many sites were hit, and what attackers do next. Drupal has published no victim count or IOCs.

What to do now

  1. Block the installer first, right now, before the maintenance window. On nginx, Drupal recommends a prefix match in the server block: location ^~ /core/install.php { return 404; }. Don’t use an exact location = match, which can miss paths like /core/install.php/foo. On Apache, put <Location "/core/install.php"> Require all denied </Location> in the virtual host, not in .htaccess, because Composer scaffolding overwrites .htaccess.
  2. Before you upgrade, save the evidence: web access logs since November 18, a database dump, and a copy of settings.php.
  3. Upgrade to 10.6.23, 11.3.23 or 11.4.14.
  4. Run update.php or drush updatedb. Drupal says an update hook must run to fix existing production sites in the vulnerable state. If your CI pipeline deploys code and skips database updates, the new release does not protect you.
  5. Check user 1, as Drupal advises: look at logs for changes to or by that account, set its email address to one you control, and consider resetting its password. Look for administrator accounts you don’t recognise.
  6. Verify the block from outside. Drupal’s page suggests requesting /core/install.php, /install.php and /core/install.php/foo; each should return 403 or 404. A 200 means the block isn’t working.
  7. If anything looks wrong, treat the site as compromised and follow the “Your Drupal site got hacked. Now what?” page that the advisory links. My own baseline for a compromised site: rebuild from trusted code, restore a database backup from before November 18, and rotate the database credentials and other secrets.

Detection and monitoring

Nobody has published IP addresses, hashes or user agents, so you detect behaviour. On an installed site nobody has a reason to submit installer forms, and that shows up in web access logs that record the method and full path. The code execution path Searchlight describes leaves two more traces: an odd .php/core/ request path, and a PHP file in the uploads directory, visible if you collect host file events. I wrote four Sigma rules around those signals.

RuleCategoryLog sourceATT&CKLevel
Drupal installer POST requestWeb/App, emerging threatwebserverT1190High
Burst of installer requests from one client (correlation)Web/App, emerging threatwebserverT1190Medium
PHP file requested with trailing /core/ pathWeb/App, emerging threatwebserverT1505.003High
PHP file created in Drupal public filesLinux, generic TTPlinux / file_eventT1505.003High

The one I’d turn on first is the simplest: alert on any POST request whose path contains /install.php. Scope it to production hosts, because building a new site or adding a multisite site through the browser fires it legitimately. It also fires on blocked attempts that got a 403 or 404, which is useful attempt telemetry even when the request failed.

title: Drupal Installer POST Request - Potential CVE-2026-136716 / CVE-2026-132165 Site Takeover
id: d251aa0a-f5e0-4e6a-85f2-31c59d86e62c
status: test
description: |
    Detects HTTP POST requests to the Drupal installer (install.php). Drupal names the installer as the vector for both
    exploited flaws, SA-CORE-2026-017 and SA-CORE-2026-019. A reinstall most likely requires submitting installer
    forms (inference), which a site that is already installed should never receive.
references:
    - https://www.drupal.org/sa-core-2026-019
    - https://www.drupal.org/sa-core-2026-017
    - https://www.drupal.org/docs/administering-a-drupal-site/security-in-drupal/securing-the-installer-installphp
    - https://netsec101.com/?p=563
author: netsec101.com
date: 2026-11-28
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-136716
    - cve.2026-132165
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_path:
        cs-uri-stem|contains:
            - '/core/install.php'
            - '/install.php'
    selection_method:
        cs-method: 'POST'
    condition: all of selection_*
falsepositives:
    - Building a brand new Drupal site or adding a multisite site through the browser installer
    - Staging or development hosts that are reinstalled on purpose (scope the rule to production hosts)
level: high

For monitoring, run the rules back over your logs to November 18, 2026, the day the first fix shipped, since Drupal says exploitation started as early as the next evening. Also check by hand that user 1 and the administrator list look right, and that the installer state looks finished after updates (Hive Security suggests drush state:get install_task, which should return done). Keep the installer rules on after you patch: any later hit means someone is testing for the next installer bug.

I wrote up all four rules, with tuning notes, lab tests and the ATT&CK gaps, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

I think the patch is the least interesting part of this story. The real bug is cultural: a production web app that keeps a “build me a new site” endpoint online forever, guarded only by a runtime check that says “looks installed to me”. Searchlight fooled that check with a briefly unavailable database; the second advisory fooled it with state the first fix never imagined. A third bypass would not surprise me. A blocked URL doesn’t care about clever state.

So my first action on any Drupal estate today is the web server rule, not the upgrade. It takes minutes, it covers end-of-life sites that will never get a patch, and it protects you from whatever the next installer bug turns out to be. I’d also like to see Drupal block the installer by default once a site is installed. Leaving it to a docs page invites sites to skip it.

The underrated detail is the update hook. Pipelines that ship code and leave drush updatedb as a manual step will show the patched version and stay vulnerable. On a fleet, check that the hook ran, not just the version.

Finally, the speed. An AI scanner found the first bug, two human researchers found it independently, and attackers used it about a day after the fix. With a gap that short, “we patch Drupal monthly” is not a plan for highly critical core advisories.

Sources

On This Day (November 28, 2011): The Carrier IQ Video Exposes Hidden Phone Logging

On This Day (November 28, 2011): The Carrier IQ Video Exposes Hidden Phone Logging

On November 28, 2011, Android developer Trevor Eckhart uploaded a 17-minute video to YouTube with a plain title: “Carrier IQ Part #2”. On screen was an HTC EVO he had reset to factory settings, next to a stream of log output. He tapped in digits, received a text message and typed a search query into an HTTPS page. The log showed all of it, captured by software that came preinstalled on the phone and that he had never chosen to run.

Less than a week earlier, the company that made that software had withdrawn a legal threat against him and apologised.

At a glance

DateNovember 28, 2011 (public disclosure: YouTube upload of “Carrier IQ Part #2”)
EventA researcher’s video shows Carrier IQ diagnostics software on an HTC phone logging key presses, text messages and an HTTPS search
TypeVulnerability (privacy flaw in preinstalled software)
Who was involvedTrevor Eckhart; Carrier IQ; HTC; AT&T, Sprint and T-Mobile; the EFF; Senator Al Franken
Impact at the timeCarriers and phone makers confirmed or denied the software within days; a Senate letter; class actions
Still relevant today?Yes: software you never chose, writing data you never meant to collect into logs, is still everywhere

What happened

In mid-November 2011, Eckhart published an analysis on his site, Android Security Test, arguing that Carrier IQ, a diagnostics agent that carriers had phone makers build into handsets, logged far more about users than anyone had been told. He called it a rootkit (software that hides itself while running with deep access) and mirrored the company’s training documents on his site.

Carrier IQ answered with a cease-and-desist letter. According to the EFF, it accused him of copyright infringement and “false allegations”, demanded the contact details of everyone who had downloaded the documents, and wanted his analysis replaced with a statement written by the company. The EFF replied for him on November 21, citing fair use and the First Amendment. On November 23, Carrier IQ withdrew the threat by fax, apologised, and again denied that it logged keystrokes.

Then came the video. The Register’s account says it showed numeric taps and incoming texts being logged with the phone in airplane mode, location being recorded on Wi-Fi after he had refused Google’s location prompt, and a search typed into an HTTPS page showing up in the log. Eckhart’s own chapter list for the video matches: key presses, receiving an SMS, the browser over Wi-Fi, and the phone out of service.

Timeline of the Carrier IQ story from Eckhart's first analysis in mid-November 2011 through the withdrawn legal threat, the November 28 video, the December 1 reactions and the FTC case against HTC in February 2013.
From a withdrawn legal threat to a Senate letter in eight days. Sources: EFF, The Register, FTC.

A note on the date: YouTube records the upload at 17:42 Pacific time on November 28, already November 29 in UTC. The platform and that week’s coverage use November 28, and so do I.

TechCrunch noted on November 29 that the log proved the software could see the data, not that anything was sent to a third party. Carrier IQ’s marketing VP, Andrew Coward, told The Register it never captured key presses. On December 1, AT&T, Sprint and T-Mobile confirmed they used it; Verizon, RIM and Nokia said they did not; HTC and Samsung said they installed it because carriers asked. Apple said it had stopped supporting Carrier IQ in most products with iOS 5 and would remove it completely.

Why it mattered then

In 2011, most people assumed a phone was theirs once they had paid for it. Carrier IQ showed how much of it belonged to someone else: a carrier set the collection profile, a phone maker built the agent in, and the user saw neither. The Register put the install base at 141 million smartphones, a figure other coverage attributed to Carrier IQ itself. I have not found an independent count.

The legal question landed fast. On December 1, Senator Al Franken, who chaired the Senate Judiciary privacy subcommittee, sent CEO Larry Lenhart eleven questions with a December 14 deadline. He asked whether the company complied with the federal wiretap act, the pen register statute, the Stored Communications Act and the Computer Fraud and Abuse Act.

The technical picture was messier than the headlines. On December 5, researcher Dan Rosenberg posted his own analysis. According to Android Central’s summary of his post, he found no code in Carrier IQ that recorded keystrokes for data collection; it gathered the metrics a carrier-configured profile asked for. He still called the recording of those events into a debug buffer bad by itself.

What changed afterwards

The most concrete legacy came from the US Federal Trade Commission. On February 22, 2013, HTC America settled FTC charges that it had failed to secure millions of mobile devices. The complaint cited the insecure way HTC built in two logging tools, Carrier IQ and HTC Loggers, plus flaws that let third-party apps sidestep Android’s permission model. HTC had to ship patches, run a security programme and submit to independent assessments every other year for 20 years. The FTC’s own business blog called it the agency’s first case against a mobile device maker.

In December 2015, AT&T said it had acquired the rights to Carrier IQ’s software and hired some of its staff, and the Carrier IQ website went offline. In August 2016, US District Judge Edward Chen gave final approval to a class settlement in which Carrier IQ agreed to pay $9 million, according to Courthouse News, which also reported $2.25 million in attorneys’ fees.

Then and now table comparing 2011 and today: preinstalled diagnostics vs vendor agents and SDKs, debug logs, the response to researchers and regulation.
The same questions, new software. The Today column is the author's view.

There was also a quieter change in how vendors treated researchers. A cease-and-desist meant to make one blog post go away produced an EFF response, a public apology and, days later, the video. To me, that sequence is still the clearest warning I know against threatening the person who reports the problem.

My take

I think Carrier IQ’s reputation is half deserved. Headlines like The Register’s “Secret app on millions of phones logs key taps” went further than the evidence. The video proved the agent received those events and wrote them into a log on that HTC build. It did not prove the keystrokes were shipped to carriers, and Rosenberg’s work suggests they were not.

But the defence is the lesson. “It’s only debug logging” is how secrets leak. Once a password or a search term sits in a log that other code can read, it doesn’t much matter what the original developer intended. The FTC’s case against HTC turned on that kind of carelessness: an insecure implementation of logging tools, Carrier IQ among them, on millions of devices.

For a defender in 2026, three things follow. First, inventory the agents you didn’t write: MDM, EDR, OEM utilities, analytics SDKs in your own apps. Ask what each collects, who sets its profile and where its logs go. Second, treat logs as a data store with its own classification; in my experience tokens and personal data end up in debug output far more often than we admit. Third, when someone outside reports that your software does something creepy, thank them and check. Eight days after Carrier IQ withdrew its legal threat, it had a senator’s questions to answer.

Fifteen years later, what I take from it is the question Eckhart forced into the open: what is running on this device that the owner never chose, and what is it writing down?

Sources

Word of the Day: Retro Hunt, Explained with MOVEit CVE-2023-34362

Word of the Day: Retro Hunt, Explained with MOVEit CVE-2023-34362

Thursday morning, an advisory lands: a new web shell name, a few IP addresses, an unfamiliar URL path. You check your alerts. Nothing today. But the attacker didn’t wait for the advisory, so the real question is different: did any of this show up in your logs last month, or last year?

TermRetro hunt
Also calledRetrohunt, retroactive hunting, retrospective search, historical IOC sweep
CategoryDefensive practice
LevelIntermediate
In one sentenceSearching the logs and files you already stored for threats you only learned about today.

Where the name comes from

The best-known use is a product name: VirusTotal’s hunting service runs YARA rules (pattern-matching rules for files) on new uploads with Livehunt, and over files already submitted with Retrohunt, today up to 12 months back on the paid Hunting Pro tier (3 months on standard). Retrohunt existed by March 2019, when VirusTotal raised its standard window to three months. The usual story is that the word spread from there to any search of old data, though I found no launch date to confirm it.

How it works

Normal detection looks forward: a rule watches events as they arrive. A retro hunt looks backward. You take a fresh indicator of compromise (IOC), such as a file name, hash, IP or odd request pattern, and search data you kept before you knew it mattered: web server, proxy and DNS logs, EDR telemetry, old file samples.

A hit in old data means you were exposed earlier than you thought, and the investigation starts from that date. No hit only counts if your logs cover the period.

Four-step flow of a retro hunt: a new indicator is published, it becomes a search, the search runs over stored logs and files, and an old hit means an earlier compromise to investigate
A retro hunt points today's knowledge at yesterday's data. It can only reach as far back as your logs go.

Real-world example: MOVEit CVE-2023-34362

On May 31, 2023, Progress Software disclosed CVE-2023-34362, a critical flaw in its MOVEit Transfer file-sharing product. Its advisory tells customers to check IIS (Microsoft’s web server) logs for requests to human2.aspx, a web shell that CISA and the FBI named LEMURLOOT. Mass exploitation began around May 27, and on June 5 the Clop ransomware group claimed responsibility.

Then the responders at Kroll searched further back. On June 8, 2023, they reported that affected clients’ old IIS logs showed similar requests on April 27, 2022, likely automated, and between July 6 and 18, 2021, likely by hand. The requests pulled back an organisation ID, which Kroll says helped the attackers sort out whose servers they could reach. Kroll assesses with high confidence that the exploit was being used or tested by July 2021: nearly two years that, by Kroll’s assessment, went unnoticed until responders searched old logs.

Timeline of MOVEit CVE-2023-34362: likely manual testing July 6 to 18, 2021 and automated testing April 27, 2022 found in old IIS logs, mass exploitation May 27 to 28, 2023, Progress disclosure May 31, 2023, Kroll findings June 8, 2023
The two earliest dates were only found by searching old logs after the fact. Sources: Kroll, Progress Software.

Common misconceptions

  • “No alerts means we’re clean.” Alerts only know what your rules knew at the time. A retro hunt asks again with what you know now.
  • “Zero hits proves nothing happened.” It only covers the data you still have. If your web logs roll over after 30 days, that’s as far back as the answer goes.
  • “It’s a VirusTotal thing.” Searching your own logs for a new indicator is the same idea, with whatever log search you have.

How defenders spot it

Here the defender does the hunting, so the question is what makes it possible. Lessons from the MOVEit case:

  • Keep web server logs for internet-facing apps. Progress’s advisory points to IIS logs, and Kroll’s 2021 finding only exists because those logs did.
  • Centralise logs and choose retention on purpose. A retro hunt can’t reach past the oldest log you kept.
  • Search back to the earliest attacker activity an advisory gives, not the disclosure date. For MOVEit that meant May 27, 2023 at least, per CISA, and Kroll showed it went much further.
  • Look beyond the network: Progress also pointed to unexpected downloads in MOVEit Transfer logs and new files in the web root.

Related terms

Zero-day, IOC, threat hunting, YARA, log retention.

Sources