diff --git a/etc/decoder.xml b/etc/decoder.xml
index 77cc04efc..366698457 100755
--- a/etc/decoder.xml
+++ b/etc/decoder.xml
@@ -2907,7 +2907,6 @@ Jul 26 13:57:56 mx1.example.org outbound/smtp: 127.0.0.1 1406297159-06f4a35b4df2
srcip,url
-
+
+ ^[\S+ \S+ \S+] info [cpsrvd] \.+FAILED LOGIN
+ info [cpsrvd] (\S+) - (\S+)
+ srcip,user
+
+
+
+
+
+ postgresql_log
+ ^info [cpsrvd] \.+FAILED LOGIN
+ info [cpsrvd] (\S+) - (\S+)
+ srcip,user
+
+
+
+
+
+ web-accesslog
+ FAILED LOGIN
+ ^(\S+) \S+ (\S+)
+ srcip,user
+
+
+
+
+
+ ^[\S+ \S+ \S+] info [cpsrvd] \S+ NEW
+ info [cpsrvd] (\S+) \S+ (\w+):
+ srcip,user
+
+
+
+ postgresql_log
+ ^info [cpsrvd] \S+ NEW
+ info [cpsrvd] (\S+) \S+ (\w+):
+ srcip,user
+
+
+
+
+ ^[\S+ \S+ \S+] info [cpsrvd] \S+ PURGE \S+ logout$
+ info [cpsrvd] (\S+) \S+ (\w+):
+ srcip,user
+
+
+
+ postgresql_log
+ ^info [cpsrvd] \S+ PURGE \S+ logout$
+ info [cpsrvd] (\S+) \S+ (\w+):
+ srcip,user
+
+
diff --git a/etc/ossec-agent.conf b/etc/ossec-agent.conf
index 662a38229..f7bfe715b 100755
--- a/etc/ossec-agent.conf
+++ b/etc/ossec-agent.conf
@@ -65,4 +65,20 @@
apache
/var/www/logs/error_log
+
+
+ syslog
+ /usr/local/cpanel/logs/login_log
+
+
+
+ syslog
+ /usr/local/cpanel/logs/access_log
+
+
+
+ syslog
+ /usr/local/cpanel/logs/session_log
+
+
diff --git a/etc/ossec-local.conf b/etc/ossec-local.conf
index 2864e7590..f8f2f21c0 100755
--- a/etc/ossec-local.conf
+++ b/etc/ossec-local.conf
@@ -74,6 +74,7 @@
sysmon_rules.xml
opensmtpd_rules.xml
local_rules.xml
+ cpanel_rules.xml
@@ -197,4 +198,20 @@
apache
/var/www/logs/error_log
+
+
+ syslog
+ /usr/local/cpanel/logs/login_log
+
+
+
+ syslog
+ /usr/local/cpanel/logs/access_log
+
+
+
+ syslog
+ /usr/local/cpanel/logs/session_log
+
+
diff --git a/etc/ossec-server.conf b/etc/ossec-server.conf
index fd488b4c4..fe6e4226e 100755
--- a/etc/ossec-server.conf
+++ b/etc/ossec-server.conf
@@ -73,6 +73,7 @@
opensmtpd_rules.xml
local_rules.xml
exim_rules.xml
+ cpanel_rules.xml
@@ -208,4 +209,19 @@
/var/log/exim_mainlog
+
+ syslog
+ /usr/local/cpanel/logs/login_log
+
+
+
+ syslog
+ /usr/local/cpanel/logs/access_log
+
+
+
+ syslog
+ /usr/local/cpanel/logs/session_log
+
+
diff --git a/etc/ossec.conf b/etc/ossec.conf
index e65c97d43..226da1421 100755
--- a/etc/ossec.conf
+++ b/etc/ossec.conf
@@ -32,7 +32,8 @@
dropbear_rules.xml
sysmon_rules.xml
opensmtpd_rules.xml
-
+ cpanel_rules.xml
+
@@ -160,4 +161,20 @@
apache
/var/www/logs/error_log
+
+
+ syslog
+ /usr/local/cpanel/logs/login_log
+
+
+
+ syslog
+ /usr/local/cpanel/logs/access_log
+
+
+
+ syslog
+ /usr/local/cpanel/logs/session_log
+
+
diff --git a/etc/rules/cpanel_rules.xml b/etc/rules/cpanel_rules.xml
new file mode 100644
index 000000000..5dca9ee01
--- /dev/null
+++ b/etc/rules/cpanel_rules.xml
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+ 2501
+ cpanel-login-failed
+ FAILED LOGIN
+ Possible attack on the cpanel services
+
+
+
+ 50500
+ postgresql_log
+ FAILED LOGIN
+ Possible attack on the cpanel services
+
+
+
+ 2501
+ cpanel-access-failed
+ FAILED LOGIN
+ Possible attack on the cpanel services
+
+
+
+
+ 11001
+ Possible breakin attempt
+
+
+
+ 11000
+ Possible breakin attempt
+
+
+
+ 11002
+ Possible breakin attempt
+
+
+
+ cpanel-login-success
+ NEW
+ Cpanel login success
+
+
+
+ 50500
+ postgresql_log
+ NEW
+ Cpanel login success
+
+
+
+ cpanel-session-logout
+ PURGE \S+ logout
+ Cpanel session logout
+
+
+
+ 50500
+ postgresql_log
+ PURGE \S+ logout
+ Cpanel session logout
+
+
+