OSSEC / HIDS Rule Documentation

Documentation for the OSSEC/HIDS rules previously described in the Atomicorp wiki. This is an initial selection, with more rules to follow. OSSEC rule IDs have their own namespace; the WAF rule catalog documents ModSecurity rules separately.

Rule IDAlert message / subjectLevel
11Anomalous increase in log events
501New ossec agent connected.3
502Ossec server started.3
503Ossec agent started.3
504Ossec agent disconnected.3
506Ossec agent key updated3
510Host-based anomaly detection event (rootcheck).6
512Windows Audit event.3
514Windows application monitor event.2
516System Audit event.3
531Partition usage reached 90%+ (disk space monitor).7
533Listened ports status (netstat) changed (new port opened or closed).7
536Partition usage reached 80%+ (disk space monitor).7
550Integrity checksum changed.7
551Integrity checksum changed again (2nd time).1
552Integrity checksum changed again (3rd time).1
553File deleted. Unable to retrieve checksum.7
554File added to the system.5
591Log file rotated.3
592Log file size reduced.8
593Microsoft Event log cleared.9
607Active response: $(script) - $(type)3
1002Unknown problem somewhere in the system.2
1003Non standard syslog message (size too large).13
1006Syslogd restarted.5
1007File system full.7
2501User authentication failure.5
2502User missed the password more than one time10
2932New Yum/DNF package installed.7
2933Yum/DNF package updated.7
2934Yum/DNF package deleted.7
2945rsyslog may be dropping messages due to rate-limiting.4
2960User added to group.2
3301Postfix: Message rejected by postfix configuration (554: permanent problems with the remote server).6
3302Postfix: Rejected by access list (Requested action not taken).6
3305Postfix: Recipient address must contain FQDN (504: Command parameter not implemented).5
3306Postfix: IP Address black-listed by anti-spam (blocked).6
3333Postfix stopped.7
3334Postfix started.3
3335Postfix: too many errors after RCPT from unkown6
3337Spamhaus blocklist event
3351Postfix: Multiple relaying attempts of spam.6
3355Postfix: Multiple attempts to send e-mail to invalid recipient or from unknown sender domain.10
3356Postfix: Multiple attempts to send e-mail from black-listed IP address (blocked).10
3357Multiple rapid SASL authentication failures.10
3358Multiple SASL authentication failures.10
3359Multiple SASL authentication failures.10
3360Multiple SASL authentication failures.10
3379Postfix: (Fast 5/10s) Multiple attempts to send e-mail with EHLO failure6
3381Postfix: (Medium 5/60s) Multiple attempts to send e-mail with EHLO failure6
3396Postfix: hostname verification failed3
3398Postfix: Illegal address from unknown sender6
3901New courier (imap/pop3) connection.3
3910Courier brute force (multiple failed logins from the same IP).10
3911Multiple connection attempts to courier from same source.10
3912Multiple failed logins, 6 failures in 60 seconds from the same IP.10
3913Multiple failed logins, 10 failures in 1 hour from the same IP.10
4103Advanced portscan event
4151Firewall: Multiple drop events from same source.7
5108System running out of memory. Availability of the system is in risk.12
5114Error inserting module.7
5302User missed the password to change UID to root.9
5402Successful sudo to ROOT executed4
5405Unauthorized user attempted to use sudo.5
5501Login session opened.3
5502Login session closed.3
5503User login failed.5
5551Multiple failed logins in a small period of time.10
5555User changed password.3
5556Multiple failed logins in a long period of time.10
5559Password check failed.5
5701Possible attack on the ssh server (or version gathering).8
5702Reverse lookup error (bad ISP or attack).5
5703Possible breakin attempt (high number of reverse lookup errors).10
5706SSH insecure connection attempt (scan).5
5710Attempt to login using a non-existent user5
5712SSHD brute force trying to get access to the system.10
5715SSHD authentication success.3
5716SSHD authentication failed.5
5719Multiple access attempts using a denied user.10
5720Multiple SSHD authentication failures.10
5758SSH: Maximum authentication attempts exceeded.6
5905Failed adding user to the system8
7501McAfee Windows AV informational event.2
9701Dovecot Authentication Success.3
9705Dovecot Invalid User Login Attempt.5
9707Dovecot Aborted Login.5
9951vpopmail: brute force (multiple failed logins).10
9952vpopmail: brute force (email harvesting).10
9953vpopmail: brute force (empty password).10
11203proftpd: Attempt to login using a non-existent user.5
11209proftpd: Attempt to bypass firewall that can't adequately keep state of FTP traffic.14
11252proftpd: Multiple connection attempts from same source.10
11255proftpd: Attempt to log in to a forbidden account.7
11257proftpd: cannot connect to the clamd daemon. (Daemon not running?)7
11306pure-ftpd: FTP brute force (multiple failed logins).10
12145zone transfer denied1
12149Bind: Multiple query (cache) failures.6
12150Bind DoS attack. (CVE-2011-4313)12
17505Plesk console login failure5
18100Group of windows rules.0
18103Windows error event.5
18105Windows audit failure event.4
18130Windows: Logon Failure - Unknown user or bad password.5
18141Unexpected Windows shutdown.7
18145Windows: Service startup type was changed.3
18146Windows: Application Uninstalled.5
18147Windows: Application Installed.5
18149Windows User Logoff.3
18152Multiple Windows Logon Failures.10
18153Multiple Windows audit failure events.10
18154Multiple Windows error events.10
18161Windows Filtering Platform has blocked a connection2
18162Windows Filtering Platform has blocked a connection multiple times (Standard: 60/10)6
18180MS SQL Server Logon Failure.5
18183Microsoft: Multiple MS SQL Server Logon Failures from the same source.10
18258Windows: TS Gateway login failure.5
18259Windows: TS Gateway user disconnected.3
18301Windows Application Event (455): Error writing to EDB log file.4
18303Windows Application Event (82): The RPC server is unavailable.4
18305Windows Application Event (1002): Application Hang.5
18306Windows Application Event (1002): Application Hang occurred 7 or more times within 24 hrs - Check application.9
18600Windows System Rules Group.0
18601Windows System Event (7038): A service was unable to log on with the currently configured password. Check the health and configurations of the service.5
18602Windows System Event (7038): A service was unable to log on with the currently configured password MULTIPLE TIMES. Check the health and configurations of the service.7
19002SCA summary: $(sca.policy): Score less than 90% ($(sca.score))4
19003SCA summary: $(sca.policy): Score less than 80% ($(sca.score))5
19004SCA summary: $(sca.policy): Score less than 50% ($(sca.score))7
19005SCA summary: $(sca.policy): Score less than 30% ($(sca.score))9
19007$(sca.policy): $(sca.check.title)7
19008$(sca.policy): $(sca.check.title)3
19009$(sca.policy): $(sca.check.title)3
19010$(sca.policy): $(sca.check.title): Status changed from failed to passed3
19011$(sca.policy): $(sca.check.title): Status changed from passed to failed9
19012$(sca.policy): $(sca.check.title): Status changed from passed to 'not applicable'5
19013$(sca.policy): $(sca.check.title): Status changed from failed to 'not applicable'5
19014$(sca.policy): $(sca.check.title): Status changed from 'not applicable' to failed9
19015$(sca.policy): $(sca.check.title): Status changed from 'not applicable' to passed3
20100First time this IDS alert is generated.8
20101IDS event.7
20151Multiple IDS events from same source ip.10
20152Multiple IDS alerts for same id.10
20162Multiple IDS alerts for same id (ignoring now this id).11
23503$(vulnerability.cve) affects $(vulnerability.package.name)5
23504$(vulnerability.cve) affects $(vulnerability.package.name)7
23505$(vulnerability.cve) affects $(vulnerability.package.name)10
23506$(vulnerability.cve) affects $(vulnerability.package.name)13
30104Apache: segmentation fault.12
30105Apache: Attempt to access forbidden file or directory.5
30112Apache: Attempt to access an non-existent file (those are reported on the access.log).0
30113Invalid method in request7
30114mod_qos invalid request detected6
30117Apache: Invalid URI, file name too long.10
30122Multiple Invalid method requests from the same IP10
30155Multiple attempts to access a non-existent file.10
30195Multiple access forbidden file or directory events from the same IP.10
30220Invalid Apache connection attempt - Possible Apache DOS attack10
30221Multiple invalid Apache connection attempts - Possible DOS attack12
30302Self Healing: Critical vulnerability in PHP detected, attempting to remove dangerous exec stack bits from PHP modules.8
30618Apache: PHP Notice in Apache log1
31102Possible DoS Consumption Attack10
31151Multiple web server 4xx errors
38001Failed mail authenticatication attempt5
40106Buffer overflow attempt (probably on yppasswd).12
40111Multiple authentication failures.10
40112Multiple authentication failures followed by a success.12
40114Multiple authentication failures. (Slow Brute Force)10
40703Systemd: Service has entered a failed state, and likely has not started.5
50106MySQL: authentication failure.9
50180MySQL: Multiple errors.10
52502ClamAV: Virus detected8
52504Clamd: Warning7
52506Clamd database updated3
52507ClamAV database update3
52508ClamAV database updated1
52510Connection to update server refused1
52511Real-Time Anti-virus1
57390SSH: Multiple successful ssh logins from same user and different ip.6
59202Windows Security error event5
59203Windows audit success event0
59204Windows audit failure event3
59205Windows Logon Failure3
59207Microsoft: Failed attempt to perform a privileged service.0
59208Session reconnected/disconnected to winstation3
59209User account enabled or created8
59210User account changed5
59211User account disabled or deleted8
59213Group Account Changed5
59215User account locked out (multiple login errors)9
59221Computer account added/changed/deleted5
59222Windows: Remote Logon Failure - Unknown user or bad password5
59223Logon Failure - Account logon time restriction violation5
59224Logon Failure - Account currently disabled5
59225Logon Failure - Specified account expired5
59226Logon Failure - User not allowed to login at this computer7
59227Logon Failure - User not granted logon type5
59228Logon Failure - Account's password expired5
59229Logon Failure - Internal error5
59230Logon Failure - Account locked out7
59233User account unlocked5
59238Group Account Created5
59239Group Account Deleted5
59240Security Enabled Global Group Created5
59241Security Enabled Global Group Member Added $(win.eventdata.memberSid)5
59242Security Enabled Global Group Member Removed $(win.eventdata.memberSid)5
59243Security Enabled Local Group Created $(win.eventdata.memberSid)5
59244Security Enabled Local Group Member Added $(win.eventdata.memberSid)5
59245Security Enabled Local Group Member Removed $(win.eventdata.memberSid)5
59246Security Enabled Local Group Deleted5
59247Security Enabled Local Group Changed5
59248Security Enabled Global Group Changed5
59249Security Enabled Universal Group Created5
59250Security Enabled Universal Group Changed5
59251Security Enabled Universal Group Member Added5
59252Security Enabled Universal Group Member Removed5
59300IIS NetworkCleartext Logon Success3
59302Security Enabled Global Group Deleted $(win.eventdata.memberSid)5
59304Multiple Windows Logon Failures8
59306Multiple Windows error Security events10
59309An IPsec Main Mode negotiation failed8
59326Windows: Local Logon Failure - Unknown user or bad password5
59327Windows: Network Logon Failure4
59328Windows: Network Logon Failure - User does not exist5
59330Windows: Network Logon Failure - Password expired5
59334Windows: Auditing, multiple attempts to access an audited object by the same user (8/240)7
59335Windows: Code Integrity determined that the page hashes of an image file are not valid6
60026Trusted Path Execution policy violation. An untrusted user attempted to execute an untrusted application.8
60027Denied a RWX mmap event. An application just attmpted to use the mprotect function to bypass memory protection functions in the kernel.8
60032Place holder for all grsec generic events0
60034Operating System denied resource overstep7
60035Grsecurity has detected a segmentation fault on the system.5
60056Atomicorp: IP found on Threat Category 1 Atomicorp RBL - DOS bots7
60057Atomicorp: IP found on Threat Category 2 Atomicorp RBL - Spammers7
60058Atomicorp: IP found on Threat Category 3 Atomicorp RBL - Brute Force attackers7
60059Atomicorp: IP found on Threat Category 4 Atomicorp RBL - Known Attackers7
60117Access attempt blocked by Mod Security RBL.6
60118Access attempt blocked by Mod Security.5
60119Multiple attempts blocked by Mod Security.7
60126HTTP Authorization failed5
60128HTTP 403 Forbidden. This is not a WAF event, the web server has refused to complete the transaction5
60138Request Entity Too Large5
60141Requested range not satisfied5
60158Wordpress Login attempt failure5
60159Wordpress brute force (fast) login failures8
60167Drupal Login attempt failure5
60205Possible DoS attack - Configured thresholds exceeded7
60227Denied memory-protection operation
60249Connection dropped by apache due to slow connection5
60313PHPBB Login attempt failure - invalid username5
60334PaX: Crashing bruteforce prevention initiated11
60602Windows Application error event9
60608Summary event of the report's signatures4
60610Windows Installer began an installation process3
60612Application Installed $(win.eventdata.data)3
60635Windows installer reconfigured the product3
60642Software Protection service scheduled successfully3
60702The VSS service is shutting down due to idle timeout5
60790The registry file is still in use by other applications or services4
60798The database engine attached a database3
60805The database engine is starting a new instance3
60807The database engine is initiating recovery steps3
60808The database engine is replaying log file3
60809The database engine has completed recovery steps3
60816An attempt to open the file for read only access failed with system error5
60817Index cleanup of database initiated3
60819The version store for this instance has reached its maximum size5
60902Failed to start MS DTC via the MS DTC Proxy DLL5
60904MS DTC TIP Gateway illegal transition8
60905MS DTC TIP Gateway invalid value5
60906MS DTC TIP Gateway encountered error calling CoCreateInstance5
60910Very Slow Wordpress brute force login failures from same IP source.10
61026An application has attempted to set the stack executable, this is either an attack or a very vulnerable application.8
61027Denied a RWX mprotect event. An application just attmpted to use the mprotect function to bypass memory protection functions in the kernel.8
61028Denied an untrusted non system library binary from hooking an application.7
61060The Open Procedure for service Remote Access failed5
61102Windows System error event5
61104Service startup type was changed3
61110Multiple System error events10
61129The browser was unable to retrieve a list of domains from the browser master on the network5
61130The value for the parameter to the browser service was illegal8
61138New Windows Service Created5
62816Internal Server Error. The server encountered an unexpected condition which prevented it from fulfilling the request.5
62818Bad Gateway. The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.5
62819Service Unavailable. The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.5
63317Cpanel WHM root Login success6
64210Suspicious activity detected - HTTP Request Missing a Host Header7
67128XML parser error: Possible XML attack11
80701Auditd: Start / Resume1
80703Auditd: End10
80705Auditd: Configuration changed3
80711Auditd: process ended abnormally10
80717Auditd: Role-Based Access Control (RBAC) failure detected.8
80730Auditd: SELinux permission check3
81101Attached USB Storage3
81521OpenSCAP: $(oscap.check.title) (passed)1
81522OpenSCAP: $(oscap.check.title) (not checked)1
81528OpenSCAP: $(oscap.check.title) (not selected)1
81529OpenSCAP: $(oscap.check.title) (not passed)5
81530OpenSCAP: $(oscap.check.title) (not passed)5
81531OpenSCAP: $(oscap.check.title) (not passed)7
81541OpenSCAP Report overview: Score less than 904
81542OpenSCAP Report overview: Score less than 805
81543OpenSCAP Report overview: Score less than 505
81544OpenSCAP Report overview: Score less than 307
83200The audit log was cleared5
83201The Internet Explorer log file was cleared5
171002Exim authentication failure.5
171003Multiple rapid Exim authentication failures.10
171004Multiple rapid Exim authentication failures.10
171005Multiple rapid Exim authentication failures.10
171006Multiple rapid Exim authentication failures.10
171010Multiple Rejected MAIL: Access Denied in 30 seconds from the same source.7
171011SMTP Server rejected RCPT3
171303Known brute force attacker.12
300061WAF anti-spam log integration