このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

WordPress Sentinel

説明

WordPress Sentinel tracks all files in a WordPress installation (core, themes, plugins) and then periodically rechecks and notifies the administrator of any files that have changed in any way.

Most attacks against WordPress sites will install rogue code wherever they can – in new and existing files in the themes, plugins and even in the WordPress core files. This plugin is designed to tell the administrator exactly what files have been touched and when in order to make hack detection and recovery much easier.

スクリーンショット

  • Wordpress Sentinel Administration Screen – shows all Top Level items (Wordpress Core, Themes, Plugins) and status for each.
  • Item detail screen (In this screenshot: Wordpress Root)

インストール

  1. Install the plugin
  2. Select the plugin option under the Settings menu
  3. Press the Snapshot Everything New button

This causes the plugin to scan the WordPress install and track details on all files used by WordPress, as well as for all installed plugins and themes.

It is also possible to disable watching specific files. This is done in the detail view by clicking on the Eye Icon next to the filename. A crossed out Eye Icon will appear and the status will change to Not Watched. To enable watching on that file, just click on the crossed out Eye Icon.

FAQ

How does this thing work?

As WordPress grows in popularity, it also becomes a bigger target for the hacking community. It is hard to think of anything more frustrating than finding that your site is redirecting or displaying content which is not your own.

If you are hacked, there are four questions that you have to address:

  1. How did they get in?
  2. What did they change?
  3. How do I undo the damage that was done?
  4. How do I prevent them from getting in again?

The purpose of this plugin is to alert you when you have been hacked and to address questions 2 & 3. WordPress Sentinel acts as a watchdog that knows how your install is supposed to look and then alert you when something gets changed.

How do I use it?

First, install the plugin and go to the WordPress Sentinel option under Settings. It should list content under WordPress, Themes and Plugins.

Second, click the Snapshot Everything New button, and every file in your WordPress install, as well as installed Themes and Plugins will be catalogued.

Periodically, the plugin will check a portion of the items for which snapshots have been taken. If any changes are detected, an administrative message will be displayed in WordPress Admin. If this happens, go back to the WordPress Sentinel option under Settings. The offending item will be marked as Changed. If you click details, you can see what files have been changed and you can determine if this was a valid change or an intrusion and take the appropriate action.

What if I’m the one making changes?

Obviously, the plugin cannot differentiate between a good change and a bad change, so if you make changes to a Theme or install a new Plugin, or even Upgrade WordPress to a newer version, it is simply going to notice the change and let you know. When this happens (and it will happen), just go to the WordPress Sentinel option, find the item that you changed or added, and Refresh the Snapshot. (The Snapshot Everything New button is a handy way to create initial snapshots after installing new themes and plugins. It does not touch items which have previously been catalogued.)

What are Checksums and Why do I need Them?

Checksums are a way of looking at the contents of a file and building a hash. If the file changes in any way, even if the size remains the same, the checksum will be different. Enabling checksums adds extra security however, however this comes at a cost. The added overhead can slow down a site if there are an inordinate number of files or if there are extremely large files that have to be processed. The basic file checks compare the modification date and the file size. This should provide adequate protection in most situations.

It is complaining because my sitemap updated – How do I fix this?

To stop watching your sitemap files, do the following:

  1. Go to the WordPress Sentinel interface
  2. Under WordPress Root, click the Detail link
  3. Find sitemap.xml in the list and click on the Eye Icon to the left of the filename
  4. Find sitemap.xml.gz (if it exists) in the list and click on the Eye Icon to the left of the filename
  5. Click the Back link to get back to the Sentinel main screen
  6. Under WordPress Root, click the Perform Check link

The same process can be used to ignore changes for any file.

I have a plugin that creates temp files in the plugin directory and gives false positives. How do I fix this?

To stop watching a specific plugin or theme, do the following:

  1. Go to the WordPress Sentinel interface
  2. Find the plugin or theme that you would like to not have watched
  3. Click on the Eye Icon to the left of the plugin or theme
  4. The Eye Icon will now show a red X indicating that the plugin or theme is not being watched
What do I do if I really have been hacked?

The first thing to do is to look at the WordPress Sentinel page and figure out what items have been changed. Take a screenshot and then look at the details of those items to see what files have been affected. If WordPress is changed, you need to replace every file that is changed, although usually removing the existing install and replacing it with a clean install is the best course.

If a plugin has been corrupted, it needs to be completely removed and reinstalled. Just updating over the existing install is not advised, as any malicious files that have been added would remain.

If a theme has been corrupted, then things may get complicated. If it is a stock theme that can be removed and reinstalled, then do that. If it is a custom theme, then every modified file needs to be carefully examined and cleaned up. You may need someone with advanced skills in site development to help separate the template content from the injected code.

How do I stop the hacker from getting back in?

That is really beyond the scope of this plugin. The best course of action is to keep WordPress as well as all plugins and themes up to date. If you know the time the hack occurred (and this plugin helps you determine that) then it is also a good idea to have an Analyst look through your server logs and try to isolate the entry point.

評価

このプラグインにはレビューがありません。

貢献者と開発者

WordPress Sentinel はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“WordPress Sentinel” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.31

  • Blew stable tag on the last update so no one automatically updated. Now Fixed!
  • Tweaked the options on the Plugins page so settings shows next to Deactivate.

1.3

  • The plugin would occasionally show a mystery change alert when a plugin or them had been changed and then removed. It now handles this situation and removes stored snapshot data on themes and plugins that are no longer installed.

1.2.1

  • Increased location field length for the section table to accomodate extremely long install paths

1.2

  • Any folder or file named ‘cache’ is now always ignored
  • Any folder or file named ‘error_log’ is now always ignored
  • A new option that enables/disabled checksum evaluation has been added (Default and recommended setting is Disabled)

1.1

  • Plugin now allows an entire plugin or theme to be ignored (not watched)

1.0.2

  • Details now sort by path & filename
  • Ignored files are now still ignored after refreshing a snapshot

1.0.1

  • Fixed Security vulnerabilities, thanks to Julio from boiteaweb.fr.
  • Changed “Snapshot Everything” button to “Snapshot Everything New” to prevent untentional overwriting of existing snapshot data.
  • Changed Detail so it also shows current file information (size and date) in red below the snapshot values.

1.0.0

  • Initial Plugin Release