Linux 软件免费装
Banner图

Plugin Name

开发者 mrrotella
更新时间 2016年12月12日 17:16
捐献地址: 去捐款
PHP版本: 3.5.1 及以上
WordPress版本: 4.7
版权: GPLv2 or later
版权网址: 版权信息

标签

security login pingback user enumeration brute force authentication logger fail2ban xmlrpc hack syslog meta generator version number

下载

1.1.5 1.0.0 1.0.1 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.6 1.1.7 1.2 1.2.1 1.2.2

详情介绍:

This plugin writes the log of failed access attempts (brute force attack) and invalids pingbacks requests ( by xmlrpc.php ). Very useful to process data via fail2ban. You can activate the log for each pingback request feature and stop the user enumeration method (by redirecting to the home) with log. If activated it remove the wordpress version number and meta generator in the head section of your site. If activated it disable xmlrpc methods that require authentication, in order to avoid brute force attack by xmlrpc. Use this feature if you don't need these xmlrpc methods. If activated can kill multiple requests in a single xmlrpc call returning a 401 code on xmlrpc login error. This feature may be useful to prevent server overloading on brute force attack by xmlrpc. You can also view your CUSTOM error log in the admin panel. You can write error by
  1. SYSLOG
  2. APACHE ERROR_LOG
  3. CUSTOM a custom error log file (the used path need to be writable or APACHE ERROR LOG wil be used)
Log examples Dec 17 14:21:02 webserver wordpress(SERVER_HTTP_HOST)[2588]: Authentication failure on [WORDPRESS_SITE_NAME] for USED_LOGIN from 111.222.333.444 Dec 17 14:21:02 webserver wordpress(SERVER_HTTP_HOST)[2588]: Pingback error IXR_ERROR_CODE generated on [WORDPRESS_SITE_NAME] from 111.222.333.444 Dec 17 14:21:02 webserver wordpress(SERVER_HTTP_HOST)[2588]: Pingback requested for PINGBACK_URL generated on [WORDPRESS_SITE_NAME] from 111.222.333.444 Dec 17 14:21:02 webserver wordpress(SERVER_HTTP_HOST)[2588]: User enumeration attempt generated on [WORDPRESS_SITE_NAME] from 111.222.333.444 * APACHE [Thu Dec 17 14:23:33.662339 2015] [:error] [pid 2580:tid 140001350244096] [client 111.222.333.444:52599] wordpress(SERVER_HTTP_HOST) Authentication failure on [WORDPRESS_SITE_NAME] for USED_LOGIN from 111.222.333.444, referer: SITE_ADDRESS/wp-login.php [Thu Dec 17 14:23:33.662339 2015] [:error] [pid 2580:tid 140001350244096] [client 111.222.333.444:52599] wordpress(SERVER_HTTP_HOST) Pingback error IXR_ERROR_CODE generated on [WORDPRESS_SITE_NAME] from 111.222.333.444, referer: SITE_ADDRESS/xmlrpc.php [Thu Dec 17 14:23:33.662339 2015] [:error] [pid 2580:tid 140001350244096] [client 111.222.333.444:52599] wordpress(SERVER_HTTP_HOST) Pingback requested for PINGBACK_URL generated on [WORDPRESS_SITE_NAME] from 111.222.333.444, referer: SITE_ADDRESS/xmlrpc.php [Thu Dec 17 14:23:33.662339 2015] [:error] [pid 2580:tid 140001350244096] [client 111.222.333.444:52599] wordpress(SERVER_HTTP_HOST) User enumeration attempt generated on [WORDPRESS_SITE_NAME] from 111.222.333.444 * CUSTOM [Thu Dec 17 14:25:34.000000 2015] wordpress(SERVER_HTTP_HOST) Authentication failure on [WORDPRESS_SITE_NAME] for USED_LOGIN from 111.222.333.444 [Thu Dec 17 14:25:34.000000 2015] wordpress(SERVER_HTTP_HOST) Pingback error IXR_ERROR_CODE generated on [WORDPRESS_SITE_NAME] from 111.222.333.444 [Thu Dec 17 14:25:34.000000 2015] wordpress(SERVER_HTTP_HOST) Pingback requested for PINGBACK_URL generated on [WORDPRESS_SITE_NAME] from 111.222.333.444 [Thu Dec 17 14:25:34.000000 2015] wordpress(SERVER_HTTP_HOST) User enumeration attempt generated on [WORDPRESS_SITE_NAME] from 111.222.333.444 fail2ban configuration See the FAQ section Log viewer Log viewer is available only in CUSTOM mode. Note: the log path and the file must exist. Localization

安装:

中等需求 自动安装 Automatic installation is the easiest option as WordPress handles the file transfers itself and you don't need to leave your web browser. To do an automatic install of "authentication and xmlrpc log writer", log in to your WordPress dashboard, navigate to the Plugins menu and click Add New. In the search field type "authentication and xmlrpc log writer" and click Search Plugins. Once you've found our plugin you can view details about it such as the the point release, rating and description. Most importantly of course, you can install it by simply clicking "Install Now". 手动安装
  1. Upload authentication-and-xmlrpc-log-writer.php to the /wp-content/plugins/ directory or install via zip
  2. 通过WordPress的的“Plugins”菜单激活插件

屏幕截图:

  • Settings view.
  • Custom log viewer.

常见问题:

How can I configure the plugin?

You can defines the options in the AX Logwriter Settings page.

  • Error Type: define the error type
Options: SYSTEM -> write into SYSLOG; APACHE -> write into APCACHE ERROR LOG; CUSTOM -> write into log file defined into admin panel; * CUSTOM Error Log Path: error log file absolute path ( only in CUSTOM mode ) e.g. /your/error/logs/path/ * CUSTOM Error Log Name: error log file name ( only in CUSTOM mode ) e.g. sites_auth_errors.log * TIMEZONE: time zone to use ( only if current_time() WP function not exists ) e.g. Europe/Rome * Log each pingback request: enable the log of each pingback request * Stop User Enumeration: enable the log of user enumeration attempts. Make also a redirect to the site home * Remove WP version and generator tag: remove the wordpress version number and generator meta from the head section of your site * Kill multiple xmlrpc request on xmlrpc login error: kill multiple requests in a single xmlrpc call returning a 401 code on xmlrpc login error to prevent server overloading on brute force attack by xmlrpc. * Disable xmlrpc authenticated methods: disable all xmlrpc methods that require authentication in order to avoid brute force attack by xmlrpc. Use this feature if you don't need these xmlrpc methods.

How can I configure fail2ban to work with this log?

  1. Create new filter called wp-auth-and-xmlrpc.conf into /filter.d path of fail2ban
  2. Filter content:
[Definition] failregex = ^.Authentication failure on . from .$ ^.Pingback error . generated on . from .$ ignoreregex = 1. Create new jail called wp-auth-and-xmlrpc.conf into /jail.d* path of fail2ban 1. Jail content: [wp-auth-and-xmlrpc] enabled = true logpath = /storage/www/logs/sites_auth_errors.log maxretry = 5 bantime = 600 findtime = 60 filter = wp-auth-and-xmlrpc action = %(action_mwl)s logpath must exists before activate the jail and need to be the same used for this plugin 1. Reload or restart fail2ban

更新日志:

1.2.2 1.2.1 1.2 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0