Back to diary list

Diary

PHP zero-day attack damage and the decision to abandon shared servers. Reconstructing from design data using AI and migrating to zero-trust passkey authentication with Cloudflare and EmDash.

October 22, 202615 minShin Yamaguchi (Representative Partner, FLARES LLC)
A laptop placed on a quiet desk with soft morning light streaming in, evoking a daily scene of secure cloud configuration and security shields.

Regarding yesterday's topic of critical PHP vulnerabilities (zero-day attacks), we received a desperate consultation from a client who was actually targeted and suffered unauthorized access damage.

Zero-day attacks, where attack methods circulate before public disclosure or security patches are released, are theoretically difficult to prevent completely, no matter how much you prioritize daily maintenance and updates. It is a truly frustrating and painful reality.


Why we 'abandon entirely' instead of cleaning infected servers

The worst thing to do as an initial response to a compromised server is to 'delete only the suspicious files found and continue using the same server.'

In modern, sophisticated cyberattacks, once the execution privileges of a web server are seized, latent programs are planted in every crevice of the system—not just visible PHP file tampering, but also cron jobs, system libraries, obfuscated web shells, and backdoors disguised as other processes.

It is practically impossible to find these 100% within the limited privileges and logs of a rental or shared server and return it to a completely 'sterile state.' Trying to keep a suspicious server alive is synonymous with leaving the breeding ground for re-attacks and secondary damage (botnet usage, information leakage, malware distribution) intact.

That is why we make the decision to:**'Abandon (discard) that server entirely without regret,'**and we are proceeding with proposals based on that policy.

Response ApproachCleaning/Extending Existing ServerServer Abandonment & Edge Migration (Adopted Policy)
Backdoor residual riskHigh (High risk of undetectable latent shells)Zero(Completely discarded/isolated along with the contaminated environment)
Possibility of recurrence/secondary damageHigh (Re-attack on the same runtime vulnerability)Minimal(Eliminates the dynamic PHP server itself)
Recovery/Investigation man-hoursEnormous (Audit of all files and log analysis)Rapid(Redeploy from clean data)
Future operation/maintenance loadHeavy (Chasing PHP/CMS vulnerability responses)Extremely light(Operation-free with static/edge infrastructure)
Loading diagram...

Accelerating the trend of moving away from WordPress and shared servers

Through this event, I am convinced that the trend among SMEs and web managers to**'Stop using WordPress and traditional shared servers'**will undoubtedly accelerate rapidly.

WordPress and PHP have reigned as the standard for web production for many years, but because they are the most widely used in the world, they are constantly targeted by attackers and automated scanning bots globally. No matter how many security plugins you install, if a zero-day vulnerability appears in the core, PHP runtime, or plugins, you will be mercilessly breached in the few hours to days before a patch is applied.

The risk of exposing a full-stack PHP execution environment—which is prone to becoming a hotbed for vulnerabilities—to the internet just to run a corporate or service site far outweighs the benefits gained.


Restoring from design data with AI and moving to Cloudflare + EmDash

Fortunately, this client had their original design data and screen layout assets cleanly preserved. Therefore, we have compiled a proposal for a rapid and secure recovery migration using the following steps.

  1. Front-end restoration and reconstruction from design data using AI:

    Using design data, we utilize the latest AI agents to rapidly regenerate modern, lightweight front-end (React / TypeScript / Tailwind CSS) code. There is no need to touch the source code of the contaminated server, allowing for a restart from a completely sterile and clean state.

  2. Deployment to Cloudflare:

We are phasing out traditional hosting that runs PHP on the server side and migrating to the global edge network of Cloudflare Pages / Workers. Since delivery is handled solely through static assets and secure edge functions, web server intrusions and OS-level backdoor installations are theoretically impossible.

  1. Integration with EmDash:

For areas requiring announcements or daily content updates, we integrate via API with 'EmDash', a headless CMS based on Cloudflare D1 and R2. Because the CMS management infrastructure and the public website are physically and network-isolated, the risk of database extraction or tampering from the website side is fundamentally eliminated.


Drastically strengthening the authentication infrastructure with Passkeys and OAuth

Beyond modernizing the server architecture, we are also fundamentally reviewing access authentication for management consoles.

To eradicate the 'brute-force attacks on management consoles' and 'credential theft via phishing' that frequently occurred with traditional WordPress, we are abolishing password-based authentication entirely,**and proposing robust access control by combining Passkeys (WebAuthn / FIDO2), OAuth 2.0 authentication such as Google, and Cloudflare Zero Trust Access.**Third parties without fingerprints, facial recognition, or hardware keys cannot even reach the management console, creating a world where the very concept of password leakage does not exist.


Entering an era where security determines a company's fate

The idyllic era of thinking 'we are a small local company' or 'we are not a large corporation, so we won't be targeted' is completely over.

For attackers utilizing automated scanning bots and AI tools, the target's company size or business nature is irrelevant. If there is an open port or a PHP vulnerability, they will mechanically intrude, install a backdoor, and turn the system into a stepping stone or a target for ransom.

Security is not an 'insurance' policy to be considered after something happens, but the very 'foundation' for protecting corporate trust and continuity. Instead of outsourcing everything, we must review architectural boundaries ourselves and solidify defenses with simple designs.

We will do our utmost to advance this proposal and recovery process so that we can alleviate the anxiety of affected customers as quickly as possible and help them move forward toward a safer and more robust foundation.

We are committed to doing our utmost to advance this proposal and recovery, aiming to alleviate the concerns of affected customers as quickly as possible and help them move forward to a safer and stronger foundation.