Security scan test: harmless samples on a copy of a WP119 test site
放了什麼
Harmless samples placed before each case: PHP files with a known-malware name in a comment (uploads, site root); that comment in a plugin file, theme functions.php and a core file; a wp-config.php line loading such a file; a comment-only PHP file added to wp-includes. Listed only: a scheduled task with no handler, an uploads PHP file without the name, a post with a script and frame from other domains, a root sitemap listing another domain, a file with the name in a folder the site cannot change.
出處:安全掃描測試(在 WP119 測試站上放的無害樣本),沒有論壇帖。每種主機環境與連線模式只列最新一跑。
測試環境與放好樣本後看到什麼
測試站:WordPress 7.1、PHP 8.3。下表是放好樣本之後,首頁與登入頁回的 HTTP 狀態。
| 主機環境 | 首頁 | 登入頁 | 備註 |
|---|---|---|---|
| Apache + PHP-FPM | 200 | 200 | |
| Apache + php-cgi (mod_cgid) | 200 | 200 | |
| Apache + mod_php | 200 | 200 | |
| nginx + PHP-FPM | 200 | 200 |
每一跑的結局
| 日期(UTC) | 主機環境 | 連線模式 | 結局 | 維修站版本 | 備註 | 樣本結果 |
|---|---|---|---|---|---|---|
| 2026-11-18 | Apache + PHP-FPM | FTP | Recovered | 2.1.488 | uploads-php: Removeduploads-phtml: Removedroot-phtml: Removedplugin-line: Removedtheme-line: Removedconfig-include: Removedcore-line: Removedcore-extra: Removedlocked-folder: Listed, left as isuploads-plain: Listed, left as isorphan-cron: Listed, left as ispost-embed: Listed, left as issitemap-outside: Listed, left as is | |
| 2026-11-18 | Apache + PHP-FPM | SSH | Recovered | 2.1.488 | uploads-php: Removeduploads-phtml: Removedroot-phtml: Removedplugin-line: Removedtheme-line: Removedconfig-include: Removedcore-line: Removedcore-extra: Removedlocked-folder: Listed, left as isuploads-plain: Listed, left as isorphan-cron: Listed, left as ispost-embed: Listed, left as issitemap-outside: Listed, left as is | |
| 2026-11-18 | Apache + PHP-FPM | WP admin | Recovered | 2.1.488 | core-line: not named in the report (in WP admin mode the report does not check core files); the restore replaced the core file with the official file. | uploads-php: Removeduploads-phtml: Removedroot-phtml: Removedplugin-line: Removedtheme-line: Removedconfig-include: Removedcore-line: Removedcore-extra: n/alocked-folder: Listed, left as isuploads-plain: Listed, left as isorphan-cron: Listed, left as ispost-embed: Listed, left as issitemap-outside: n/a |
| 2026-11-18 | Apache + php-cgi (mod_cgid) | FTP | Recovered | 2.1.488 | uploads-php: Removeduploads-phtml: Removedroot-phtml: Removedplugin-line: Removedtheme-line: Removedconfig-include: Removedcore-line: Removedcore-extra: Removedlocked-folder: Listed, left as isuploads-plain: Listed, left as isorphan-cron: Listed, left as ispost-embed: Listed, left as issitemap-outside: Listed, left as is | |
| 2026-11-18 | Apache + php-cgi (mod_cgid) | SSH | Recovered | 2.1.488 | uploads-php: Removeduploads-phtml: Removedroot-phtml: Removedplugin-line: Removedtheme-line: Removedconfig-include: Removedcore-line: Removedcore-extra: Removedlocked-folder: Listed, left as isuploads-plain: Listed, left as isorphan-cron: Listed, left as ispost-embed: Listed, left as issitemap-outside: Listed, left as is | |
| 2026-11-18 | Apache + php-cgi (mod_cgid) | WP admin | Recovered | 2.1.488 | core-line: not named in the report (in WP admin mode the report does not check core files); the restore replaced the core file with the official file. | uploads-php: Removeduploads-phtml: Removedroot-phtml: Removedplugin-line: Removedtheme-line: Removedconfig-include: Removedcore-line: Removedcore-extra: n/alocked-folder: Listed, left as isuploads-plain: Listed, left as isorphan-cron: Listed, left as ispost-embed: Listed, left as issitemap-outside: n/a |
| 2026-11-18 | Apache + mod_php | FTP | Recovered | 2.1.488 | uploads-php: Removeduploads-phtml: Removedroot-phtml: Removedplugin-line: Removedtheme-line: Removedconfig-include: Removedcore-line: Removedcore-extra: Removedlocked-folder: Listed, left as isuploads-plain: Listed, left as isorphan-cron: Listed, left as ispost-embed: Listed, left as issitemap-outside: Listed, left as is | |
| 2026-11-18 | Apache + mod_php | SSH | Recovered | 2.1.488 | uploads-php: Removeduploads-phtml: Removedroot-phtml: Removedplugin-line: Removedtheme-line: Removedconfig-include: Removedcore-line: Removedcore-extra: Removedlocked-folder: Listed, left as isuploads-plain: Listed, left as isorphan-cron: Listed, left as ispost-embed: Listed, left as issitemap-outside: Listed, left as is | |
| 2026-11-18 | nginx + PHP-FPM | FTP | Recovered | 2.1.488 | uploads-php: Removeduploads-phtml: Removedroot-phtml: Removedplugin-line: Removedtheme-line: Removedconfig-include: Removedcore-line: Removedcore-extra: Removedlocked-folder: Listed, left as isuploads-plain: Listed, left as isorphan-cron: Listed, left as ispost-embed: Listed, left as issitemap-outside: Listed, left as is | |
| 2026-11-18 | nginx + PHP-FPM | SSH | Recovered | 2.1.488 | uploads-php: Removeduploads-phtml: Removedroot-phtml: Removedplugin-line: Removedtheme-line: Removedconfig-include: Removedcore-line: Removedcore-extra: Removedlocked-folder: Listed, left as isuploads-plain: Listed, left as isorphan-cron: Listed, left as ispost-embed: Listed, left as issitemap-outside: Listed, left as is | |
| 2026-11-18 | nginx + PHP-FPM | WP admin | Recovered | 2.1.488 | core-line: not named in the report (in WP admin mode the report does not check core files); the restore replaced the core file with the official file. | uploads-php: Removeduploads-phtml: Removedroot-phtml: Removedplugin-line: Removedtheme-line: Removedconfig-include: Removedcore-line: Removedcore-extra: n/alocked-folder: Listed, left as isuploads-plain: Listed, left as isorphan-cron: Listed, left as ispost-embed: Listed, left as issitemap-outside: n/a |
| 2026-11-18 | Apache + mod_php | WP admin | Recovered | 2.1.490 | core-line: not named in the report (in WP admin mode the report does not check core files); the restore replaced the core file with the official file. | uploads-php: Removeduploads-phtml: Removedroot-phtml: Removedplugin-line: Removedtheme-line: Removedconfig-include: Removedcore-line: Removedcore-extra: n/alocked-folder: Listed, left as isuploads-plain: Listed, left as isorphan-cron: Listed, left as ispost-embed: Listed, left as issitemap-outside: n/a |
放的樣本
uploads-php— PHP file in the uploads folder, with a known-malware name in a comment (Named in the report and handled in the recovery)uploads-phtml— .phtml file in the uploads folder, with a known-malware name in a comment (Named in the report and handled in the recovery)root-phtml— .phtml file in the site root folder, with a known-malware name in a comment (Named in the report and handled in the recovery)plugin-line— Comment with a known-malware name added to the end of a plugin's main file (Named in the report and handled in the recovery)theme-line— Comment with a known-malware name added to the end of the theme's functions.php (Named in the report and handled in the recovery)config-include— Line in wp-config.php that loads a file with a known-malware name in a comment (Named in the report and handled in the recovery)core-line— Comment added to the end of a WordPress core file in wp-includes (Named in the report and handled in the recovery)core-extra— Extra PHP file (comment only) in the wp-includes folder (Named in the report and handled in the recovery)locked-folder— File with a known-malware name in a comment, in an uploads subfolder the site's account cannot change (Named in the report only; left as is)uploads-plain— PHP file (comment only) in the uploads folder, with no known-malware name (Named in the report only; left as is)orphan-cron— Scheduled task with no code that handles it (Named in the report only; left as is)post-embed— Post with a script and an embedded frame from other domains (Named in the report only; left as is)sitemap-outside— Sitemap file in the site root that lists addresses on another domain (Named in the report only; left as is)
補充
Each run started from the same copy of the online store test site on that test server. Three other items were also placed on the test site before each case; they are not in the sample table, and no result is published for them: a must-use plugin that shows phone visitors a link to a reserved example domain and, on two test paths, sends visitors to reserved example domains (on one path, only phone visitors); an administrator account; and an active-plugin entry for a plugin that is not on the site.
這一筆的變更
- 2026-11-18 — Added 1 run from the lab run log.
- 2026-11-18 — Added 1 run from the lab run log.
- 2026-11-18 — Added 1 run from the lab run log.
- 2026-11-18 — Added 1 run from the lab run log.
- 2026-11-18 — Added 1 run from the lab run log.
- 2026-11-18 — Added 1 run from the lab run log.
- 2026-11-18 — Added 1 run from the lab run log.
- 2026-11-18 — Added 1 run from the lab run log.
- 2026-11-18 — Added 1 run from the lab run log.
- 2026-11-18 — Added 1 run from the lab run log.
- 2026-11-18 — Added 1 run from the lab run log.
這些是我們測試主機上、某一版、某一天的紀錄,不是對任何網站結果的承諾;其他主機、PHP 與 WordPress 版本的結果可能不同。