Difference between revisions of "HIDS 5702"

From Atomicorp Wiki
Jump to: navigation, search
(Created page with "'''Rule ID''' 5702 '''Status''' Possible breakin attempt (high number of reverse lookup errors). '''Description''' Note: This rule does not block anything. It merely...")
 

Latest revision as of 17:25, 16 December 2015

Rule ID

5702

Status

Possible breakin attempt (high number of reverse lookup errors).

Description

Note: This rule does not block anything. It merely reports.

This rule reports when sshd performs the reverse lookup of an IP address and sshd reports that the reverse lookups mapping has failed.

A reverse lookup error occurs when sshd attempts to determine what the fully qualified domain name (FQDN) is for an IP address. It then looks up the fully qualified name to see that name matches the IP address returned for the reverse lookup. If they do not match, this is a reverse mapping error. This may indicate that someone is spoofing the fully qualified domain name to try to trick your system into allowing them to log in.

For example:

servername sshd[12345]: reverse mapping checking getaddrinfo for www.example.com failed - POSSIBLE BREAK-IN ATTEMPT!

A system has connected to your ssh server, in this case lets say the systems IP address is 1.2.3.4. The sshd service then performs what is called a "reverse lookup" on the IP address, to determine what the fully qualified domain name is for 1.2.3.4. The DNS server, in this example, claims that the FQDN for 1.2.3.4 is "www.example.com". Because anyone can return any FQDN they want from their DNS server (even a fake one.), this method alone is not an accurate way of determining if the answer is correct. To verify the answer, the process now needs to be reversed. So in this example, sshd then conducts a DNS query to ask the authoritative DNS server for www.example.com what the IP address is for www.example.com. If that DNS server returns an address that is different from 1.2.3.4, say 4.5.6.7, then the reverse mapping has failed. The IP address for www.example.com is 4.5.6.7, not 1.2.3.4. So 1.2.3.4 is not www.example.com. This could mean that someone is to spoof the www.example.com DNS address.

This could also occur if someone made a mistake with their DNS names, or what sometimes occurs is that the two records are sometimes not kept up to date. If you believe that is the case, contact the DNS operators for both the domain name and IP address.

ASL does not cause this occur. It merely reports when it occurs. Disabling this rule will not prevent sshd from generating this error.

Log Examples

Jane 1 16:44:45 somehost sshd[13749]: reverse mapping checking getaddrinfo for hostname.example.com [1.2.3.4] failed - POSSIBLE BREAK-IN ATTEMPT!

False Positives

There are no known false positive for this rule. This rule simply reports when sshd reports that this has occurred. If sshd is in error, please contact your OS (or sshd) vendor for assistance. If the DNS servers are in error, please contact your DNS operators or vendor. And if the DNS software is incorrectly reporting this information to your application, please contact your DNS vendor.

Tuning Recommendations

None.

Similar Rules


Knowledge Base Articles

None.

Outside References


Notes

ASL has no control over the message generated by sshd. This message generated by sshd is neither generated by ASL, nor is this something ASL can control. ASL is just listening to what you application is "saying", analyzing the "message" and then reporting its significance to you you based on its internal understanding of those messages, and other events that may (or may not) be occurring on the system.

Personal tools