Recovery record / Trusted reconstruction · Built environment / WordPress
Trusted WordPress Reconstruction
Modified entry points, unexpected core additions and a separate plugin-code discrepancy required evidence preservation and recovery from trusted sources.
Security work is built on discretion. Osiris has removed the client name, domain, dates, personnel, vendors, infrastructure addresses, credentials, and indicators that could identify or expose the organization. The sequence, technical reasoning, controls, and outcomes are preserved. Some operational details are generalized where publishing them would create avoidable risk.
The engagement at a glance.
The response distinguished official core replacement, quarantine of unexpected additions and review of altered plugin code. Trusted-source reconstruction and observed control checks established a documented recovery baseline; the record does not establish the entry vector or responsibility of a vendor.
If active symptoms require containment, see the WordPress malware removal and incident response service. An agreed security audit can instead define a posture review when an active incident has not been established.
Matching release used for reconstruction and final verification.
Replacing official files would not remove unexpected additions.
An affected vendor component received its own review.
Control tests and representative journeys support bounded conclusions.
Several components required separate trust decisions.
The finding set included altered official and request-entry files, unexplained executable additions and a vendor-library discrepancy inside a legitimate plugin. The combination justified investigation beyond a single scanner alert. A product name or generated-looking path was not itself proof of a vendor defect or a malicious directory.
Reconstruct known files. Quarantine additions.
The response preserved metadata, hashes and consequential configuration, obtained a matching official WordPress release and retained affected directories outside the public path before installing trusted core. Unexpected additions were handled separately because overlaying official files would leave them in place. The affected plugin component was compared with a trusted source and treated as a different recovery boundary.
Verify integrity and serving behavior.
The record includes final core verification, quarantine of identified extras, configuration and ownership controls, disabled dashboard editing and a post-reload upload-execution test. Representative public and editorial behavior was checked alongside integrity. The scope of each check belongs in the handover; it is not an exhaustive or permanent assurance about every connected system.
What happened. What changed.
A connected set of integrity findings
The initial review reported modified WordPress core and entry-point files, unexpected PHP additions in a core directory, a non-core generated-looking directory, backup-named executable artifacts and a modified vendor-library file inside a backup plugin. Each observation required context. Together, altered request loaders, unexplained additions and a separate plugin-code discrepancy justified containment and trusted-source reconstruction. Osiris treated the scanner alert as an intake signal and checked the components before defining the response.
The response used the combination of observations to select a recovery boundary. It did not establish a malware family, entry vector or responsibility of the affected plugin vendor.
Preserving the system before changing it
The response began with a timestamped evidence and backup structure. File metadata and hashes were retained for suspicious artifacts, and consequential configuration was copied before remediation. This mattered because the unknown files were distributed across root, core, a generated-looking directory, and a vendor library. Deleting only the most obvious loader could have removed the visible symptom while leaving another persistence point. Evidence preservation also made it possible to distinguish malicious modification from expected WordPress or plugin behavior and to explain why each live file was removed, replaced, or retained.
Evidence retention supported later comparison without leaving suspicious executable material reachable in the live application. This public account omits the actual evidence paths and hashes.
Reconstructing WordPress core from a trusted release
Modified official files and unexpected additions inside wp-includes meant that individual editing was not the safest recovery strategy. Osiris identified the installed WordPress version, obtained the matching official release, and used it as the trusted source for core reconstruction. Compromised core directories were retained outside the public path as evidence before clean directories were installed with correct ownership and permissions. Extra files were explicitly quarantined because copying official files over the installation would not remove unauthorized additions. Final checksum verification demonstrated that live core matched the official release after reconstruction.
There were two separate operations: replace known official files from trusted provenance, and remove or quarantine additions that an overlay would otherwise leave behind.
Treating plugin modification as a separate trust question
The modified WPvivid vendor file could not be assumed safe merely because it lived inside a legitimate backup plugin. Vendor libraries are useful hiding places because administrators expect many unfamiliar files. Osiris compared the component against a trusted plugin source and treated replacement of affected plugin code separately from core repair. Backup capability was reviewed before altering the plugin because incident recovery depends on retaining trustworthy restore options. This balanced two needs: removing a potentially modified execution path and avoiding careless destruction of the client’s recovery tooling or archives.
A location inside a legitimate product is not sufficient provenance for the installed file. Conversely, an altered installed component does not prove a defect or compromise at the vendor.
Removing loaders, backup artifacts, and generated persistence
Modified entry points, backup-named executable artifacts, additional PHP variants and an unexplained cache-like directory were handled as separate trust questions. High-confidence artifacts were quarantined with their relative paths preserved. The response also searched related loading, must-use plugin, uploads, configuration, scheduled-task and database paths. This widened the investigation beyond the original signatures and considered how code might be loaded, rewritten, scheduled or served conditionally.
The recorded search widened the review beyond the original alert. It was not an assertion that a signature list could enumerate every possible persistence mechanism.
Hardening writable paths and production editing
After reconstruction, Osiris disabled dashboard code editing, protected sensitive configuration, corrected ownership and file permissions, and installed controls to prevent PHP execution from uploads. On the OpenLiteSpeed environment, controls were verified by requesting a temporary executable at the public path and confirming it did not run after server reload. The homepage and critical public behavior were checked so hardening would not quietly break production. These steps reduced the chance that a future vulnerable upload or stolen administrator session could recreate the same easy execution path.
The execution result was tested on the serving environment after reload. The same behavior must be reconsidered if the host, handler or virtual-host policy changes.
Verification after service restoration
Recovery validation included official core checksums, plugin review, live homepage status, uploads execution testing, examination of administrators and application passwords, and review of recent or unexpected files. Normal and crawler-facing responses were considered where search spam or cloaking could have been part of the compromise. Each control was evaluated in the environment that actually served the site. The result was a known baseline supported by evidence: trusted core, reviewed plugin code, quarantined extras, restricted writable execution, controlled administration, and documented configuration backups.
Each observation supports a particular control at the time checked. No single check establishes that every account, integration or operating-system component is permanently trustworthy.
The operational change mattered as much as cleanup
The most important long-term change was explicit ownership. The organization moved from reacting to scanner emails toward a repeatable security maintenance process. Dependencies, privileged access, backups, integrity, uptime, and performance received named review. Future findings could be compared against the recorded baseline rather than investigated from scratch. Quarantine retention and change records supported later analysis without leaving suspicious code accessible. The case shows that a complex WordPress compromise is not a collection of files to delete; it is a failure of trust that must be rebuilt across application, infrastructure, access, recovery, and ongoing stewardship.
The maintenance model describes ownership and follow-up. It does not supply a measured reduction in incidents, a response-time commitment or a future recurrence guarantee.
Why the root loaders mattered
Modified root entry files, backup-named executable material and an unexpected comments-related loader sat in locations that could receive or influence requests. Their names could resemble legitimate bootstrap or recovery tooling, which made source comparison and context necessary. Osiris mapped the files to their execution roles, retained evidence and removed the unauthorized live paths. Request entry points received separate attention because verified core directories cannot compensate for an untrusted loader that runs before or alongside normal WordPress bootstrap.
Entry-point handling and core-directory handling are separate because requests can reach code before the ordinary application bootstrap. Both need an explicit source and verification boundary.
Handling the non-core cache directory
The generated-looking directory did not belong to the official WordPress release. Its name alone was insufficient evidence: generated directories can be legitimate. Osiris reviewed ownership, timestamps, file types, references and whether an active component documented its use. In the wider context of unexplained executable content and modified entry files, the directory was quarantined and the recovered site observed for a legitimate dependency.
The decision depended on provenance and executable content in the wider finding set. A directory name alone would not justify declaring legitimate generated content malicious.
Release and editorial verification
After technical recovery, the team verified more than the homepage. Representative content templates, navigation, search, forms, redirects, media, administrator publishing, cache behavior, and connected services were checked. This protected the business from a different kind of failure: a technically clean WordPress installation that could no longer support essential work. Recovery sign-off combined integrity and usability. Documentation recorded what was replaced, what was retained, where evidence lived, which credentials or components still needed owner action, and how the new baseline would be monitored.
Usability checks belong beside integrity checks in the handover. Their recorded scope should identify which journeys were exercised rather than imply exhaustive coverage of all possible transactions.
Lessons applied to future custom development
The case informed how Osiris approaches custom WordPress engineering. Plugins and themes should have traceable sources, controlled deployments, explicit owners, scoped privileges, and an update strategy. Writable locations should not execute application code. Backup plugins and vendor libraries should be included in integrity review rather than assumed safe. Logs and monitoring should make unexpected loaders and core additions visible. Security requirements belong in the development definition of done, because architecture and operational choices determine how difficult an incident will be to detect, contain, and recover from later.
These are engineering lessons drawn from the documented response. They do not claim a new custom-development delivery, quantified business gain or certification.
From altered components to a checked baseline.
Evidence that shaped the response
- Altered official and request-entry files
- Unexpected additions within trusted-looking paths
- A separate plugin vendor-file discrepancy
- Generated-looking executable content required provenance review
- Scanner signals needed component-level interpretation
Recorded response and validation
- Matching official core used for reconstruction
- Unexpected live additions quarantined separately
- Affected plugin code compared with a trusted source
- Core and upload-execution checks recorded after changes
- Representative journeys and handover limits documented

How the result was checked.
The recorded checks support specific parts of the recovered baseline. Core integrity, extra-file handling, plugin provenance, serving controls and representative journeys remain distinct pieces of evidence. The case does not supply an exhaustive forensic history.
Official core integrity
Final verification matched the trusted WordPress release after core reconstruction.
Unexpected additions
Identified extra executables and generated-looking content were quarantined separately from official-file replacement.
Affected plugin code
The component was compared with a trusted source; core verification was not used to clear unrelated plugin files.
Uploads execution boundary
A temporary execution request was checked after server reload and did not run as PHP.
Representative behavior
The record includes public, editorial and connected-service checks; it does not enumerate every possible transaction.
Entry vector and permanent safety
No malware-family attribution, vendor-causation finding or guarantee against future recurrence is made.
Provenance determines the recovery boundary.
Core replacement, extra-file quarantine and plugin-source comparison are different operations. Treating them as separate decisions makes the result easier to explain and retest. An apparently normal homepage is not enough to validate an untrusted request loader, and a known product directory does not prove that the installed copy is intact.
Use the compromised-site response guide for the wider sequence and the audit evidence and retest framework for handover records. The core-integrity quarantine case illustrates a narrower intervention with an explicitly unresolved availability condition.
Questions this engagement helps answer.
A trusted overlay can replace official files while leaving unexpected additions in place. This response treated official-file reconstruction and quarantine of extra executable content as separate operations.
The installed copy still needs a traceable source. A file in a known product can be altered locally; that does not establish a defect or compromise at the vendor.
This public record does not establish the initial entry vector, malware family or responsibility of a product vendor. It describes the observations and bounded response.
The record includes core verification, identified extra-file handling, plugin review, a post-reload uploads execution test and representative application behavior. The scope and limits of each check remain separate.
No. The observations describe the reviewed state and time. New changes, accounts, dependencies or host behavior can require further assessment and retesting.
Provide the public URL, visible symptoms, important journeys and the ownership of WordPress and hosting access. Agree a private access method separately and keep confidential evidence out of the public form.
Trusted core. Separately reviewed components.
The documented result is a recovery baseline supported by trusted-source reconstruction and bounded checks. It does not establish an entry vector, vendor responsibility, exhaustive absence of persistence, a quantified business gain or permanent safety. Further work depends on the agreed scope and new evidence.


