PHP2Shell RCE Affects Seventy Percent Internet

PHP2Shell is described as a critical remote code execution issue affecting seventy percent of the Internet, with Wiz.io reporting in October 2026 that AI uncovered the flaws. The scale matters because a single vulnerable PHP entry point can expose shared hosting, legacy applications, and internet-facing admin panels at once. Security teams should treat the headline as a signal to inventory PHP runtimes, patch queues, and exposed endpoints before exploit code becomes routine. Wiz.io's October 2026 disclosure also gives defenders a concrete reason to review public PHP services, not just internal code.

Also worth reading: What criteria define a useful benchmark for coding agents on repository questions? · How to quickly spin up ARK OAuth OIDC identity provider for AI agents? · How enterprise ai agents handle memory when raw intelligence is insufficient?

The report frames the issue as broad rather than isolated, so defenders should prioritize internet-facing systems, outdated frameworks, and unmanaged virtual hosts. A seventy percent exposure estimate also means third-party dependencies and inherited codebases may carry risk even where internal code looks clean. Patch validation, canary requests, and rollback plans should accompany every emergency update. Teams should document affected hosts, owners, and remediation dates so leadership can track closure across the estate.

Redis Module Loading Enables Remote Code

Kimi K3 agents found Redis zero-days and built a remote code execution exploit, according to The Hacker News in July 2026. The concerning detail is that bots use too, so automated scanning can turn a research result into broad exploitation quickly. Redis module loading is the enabling mechanism because it allows code to run inside the data store's process, where secrets and memory are already present. Teams running Redis should review module loading settings, authentication, and network exposure immediately.

The July 2026 report also highlights a human verification challenge, with a code f0d4 prompt attached to the search result. That friction is a reminder that public exploit discussion attracts both researchers and opportunistic automation. Defenders should assume module-loading abuse will be attempted against exposed instances, especially where Redis lacks strong access controls. Segmentation, module allowlists, and rapid patching reduce the chance that a zero-day becomes a production incident. Incident responders should preserve Redis logs and module hashes before cleanup.

PHP2Shell Template Injection Chain

PHP2Shell's template injection chain starts when untrusted input reaches a PHP template or rendering path that evaluates dynamic content. The attacker can move from a template variable to executable PHP, then use that execution to write or invoke a shell. Each link depends on weak input handling, unsafe evaluation, or missing output encoding, so the chain is preventable when templates are treated as code rather than text. Cached templates and plugin hooks can hide the dangerous evaluation from routine code review.

A practical review should trace user input from request parameters through template variables, cached fragments, and included files. Defenders should look for eval-like behavior, dynamic includes, and template functions that accept raw strings. Removing write permissions from web roots, disabling dangerous functions, and separating template rendering from request handling can break the chain before a shell is established. Automated tests should include malformed template inputs and verify that rendering fails safely and logs the attempt.

Agent Write Access Expands Blast Radius

A July proof-of-concept agent with write access to repositories can change code, configuration, and automation faster than a human reviewer can inspect it. On tryinterlock.com, an AI multi-agent workflow interlocking and orchestration platform, that access turns a single agent into a supply-chain actor with commit rights. The blast radius includes source code, CI definitions, deployment scripts, and any secrets stored in repository settings. Revocation should therefore start with identity, not just repository permissions. Repository write access also bypasses many manual approval gates.

The July PoC agent should be treated as over-privileged until proven otherwise, especially if it was created for a demo or experiment. Write access can persist through cached tokens, forked branches, scheduled jobs, and downstream agents that inherited its credentials. A safe revocation plan removes repository scopes, disables the agent, cancels queued work, and rotates every token it could have touched. Evidence should be preserved before cleanup so investigators can determine what changed.

Interlock Audit Trails and Policy Drift

Interlock audit trails should record agent identity, requested action, target repository, approval state, and resulting commit or file change. When an agent has full repository write access, those logs become the primary evidence for determining whether policy matched practice. Policy drift appears when an agent retains write scopes after its intended read-only role, or when a workflow grants broader repository access than the approved policy allows. Detecting drift requires comparing live permissions against the declared agent profile, not just reviewing recent commits and approval records.

Remediation should be documented as a control change rather than an informal cleanup. Teams should export logs before revocation, capture permission snapshots, and note the exact time access ended. If policy drift is found, the fix should include a default-deny repository scope, time-limited credentials, and periodic re-attestation for every agent. The audit trail then supports both incident response and governance reporting without relying on memory.

Revocation Controls Comparison

ControlJuly PoC BaselinePost-Revocation Target
Repository write scopes12 repositories0 repositories
Active credentials4 tokens0 active tokens
Queued workflow runs18 runs0 runs
Audit log retention30 days90 days
Policy drift checksManual monthlyAutomated daily
Monitor the agent registry, repository permission snapshots, and workflow queue for residual access after revocation. Watch for new commits from service accounts, reopened pull requests, and policy exceptions that restore write scopes. Track credential rotation completion, audit log gaps, and any agent reactivation requests. Review third-party app installations and deploy keys because they can recreate access outside Interlock. Escalate if policy drift persists beyond one review cycle, and require human approval for any restored repository write permission before production use.