Tài liệu Firewall Log Review and Analysis - Pdf 97



Firewall Log Review and Analysis
After the decision has been made to log events from your firewall, the next step is
determining what you should be looking for in the logs and how you should properly
perform log analysis. The most important thing to remember is that firewall logs are
virtually worthless if no one ever looks at the logs. Logging is merely a means to an end,
namely knowing what is going on with your firewalls so that you can respond
accordingly. Review of the logs should not be reserved for only when an incident has
occurred. It should be a part of the weekly, if not daily, tasks that the firewall
administrators perform. To help reduce the time and effort required to review the logs,
many of the enterprise security incident management products provide tools and utilities
that assist the firewall administrator in separating the wheat from the chaff, allowing the
firewall administrator to spend less time reviewing the logs, while still providing the
information necessary to help identify situations before they become a problem.
Another aspect of reviewing the logs that should not be overlooked is the need to define a
log archive and normalization policy. Too many organizations do not store their firewall
logs long enough to adhere to regulations (some of which such as Sarbanes-Oxley are
generally accepted to require seven years of log data to be stored). This creates situations
where data from the logs may be necessary, but the logs themselves have been destroyed.
In conjunction with this, it is important to normalize your log data. Normalization just
means converting your logs into a standard format that allows for easier review and
correlation of data from different data sources (such as different firewall vendors).
What to Look for in Firewall Logs
After you have collected the firewall logs and begun the process of analyzing the logs,
determine the data that you should be looking for in the logs. With that said, it is
important to remember not to fall into the trap of looking in your firewall logs only for
"bad" events. Yes, firewall logs can be the key element in discovering security incidents
and compromises, but that is only one of the reasons for analyzing your logs. You also
want to be able to use the log information to assist in defining the baselines and normal
operations of the firewall. After all, one of the easiest ways to know whether behavior

common cause of this event is a simple misconfiguration of the ruleset. Therefore, if
users cannot access protected resources, it is important to review the logs to determine
whether the firewall is dropping the traffic, thereby pointing you in the direction of what
may need to be fixed to provide access to the resources requested.
Firewall Stop/Start/Restart
The firewall should never stop, start, or restart without the firewall administrator knowing
in advance that the situation is going to occur. This event can be caused by non-firewall-
specific issues such as power failures as well as by firewall-specific issues such as the
firewall crashing or a high-availability failover, and therefore it should always be
investigated in more detail to ascertain the root cause.
Firewall Configuration Changed
Almost all firewall configuration changes should be accompanied with the appropriate
change control documentation. This event always warrants further investigation to ensure
that the changes that were made are legitimate and in accordance with expected results.
In fact, many SIM products can be configured to perform a comparison of the changed
configuration against a "known good" configuration when a firewall configuration
changed event occurs. In fact, some products such as NetIQ Security Manager can
actually use that information to attempt to undo the changes that were made if they are
found to be out of compliance with the known good configuration.
Interface Up/Down Status Changed
Firewall interfaces transitioning from an up to a down status and vice versa can indicate
problems with the underlying network configuration. This information can prove
particularly helpful in situations where redundant firewalls are implemented, because the
network interfaces transitioning to a down state could cause the firewall failover process
to occur.
Administrator Access Granted
Whenever administrator access is granted, the corresponding event should be
investigated. Although similar to monitoring for authentication, in this case we are
looking explicitly at gaining administrator access. Most likely the access is expected, and
there is nothing suspicious or out of order that warrants further review. However, if that

Idle Timeout Connection timed out because it was idle longer than
timeout value.
IPS fail-close Flow was terminated due to IPS card down.
SYN Control Back channel initiation from wrong side.
SYN Timeout Force termination after 2 minutes awaiting three-way
handshake completion.
TCP bad retransmission Connection terminated because of bad TCP retransmission.
TCP FINs Normal close-down sequence.
TCP Invalid SYN Invalid TCP SYN packet.
TCP Reset-I Reset was from the inside.
TCP Reset-O Reset was from the outside.
TCP segment partial
overlap
Detected a partially overlapping segment.
TCP unexpected window
size variation
Connection terminated due to variation in the TCP window
size.
Tunnel has been torn
down
Flow terminated because tunnel is down.
Unauth Deny Denied by URL filter.
Unknown Catchall error.
Xlate Clear Command-line removal

As you can see, reasons such as "Unauth Deny" or "Flow closed by inspection" can be
indicators of malicious traffic and warrant more concern and investigation than a reason
such as "TCP ResetI" (which is a normal method of applications terminating their
communications session).
Authentication Failed

j
ust be logged without any special notification occurring. This can be done by using the
message ID (for example, %PIX-3-201008) in your logging software's filtering
syntax/search strings.
In general, every time Cisco releases a new version of software, syslog events are
added/deleted from the list of events. Therefore, your particular version of software may
or may not include all of these events, or it may have events that are not listed here.
Obviously, not all events are relevant for all environments, but this list provides a sound
starting point of events to be on the look out for, from which you can further customize to
meet the logging requirements in your environment. This list can be easily modified to
cover both the Cisco Adaptive Security Appliance (ASA) and Cisco Firewall Services
Module (FWSM) by just replacing the %PIX syntax with either a %ASA or %FWSM,
respectively (in fact, the log messages use %PIX|ASA to mean that either %PIX or
%ASA can be used):
• All severity level 1 messages (use the string %PIX|ASA-1 for the filter)
• %PIX|ASA-2-106016: Deny IP spoof from (IP_address) to IP_address on
interface interface_name
• %PIX|ASA-2-106017: Deny IP due to Land Attack from IP_address to IP_address
• %PIX|ASA-2-106018: ICMP packet type ICMP_type denied by outbound list
acl_ID src inside_address dest outside_address
• %PIX|ASA-2-106020: Deny IP teardrop fragment (size = number, offset =
number) from IP_address to IP_address
• %PIX|ASA-2-201003: Embryonic limit exceeded nconns/elimit for
outside_address/outside_port (global_address) inside_address/inside_port on
interface interface_name
• %PIX|ASA-2-304007: URL Server IP_address not responding, ENTERING
ALLOW mode.
• %PIX|ASA-3-316001: Denied new tunnel to IP_address. VPN peer limit
(platform_vpn_peer_limit) exceeded
• %PIX|ASA-3-201002: Too many TCP connections on {static|xlate}

access_group acl_ID
• %PIX|ASA-4-209003: Fragment database limit of number exceeded: src =
IP_address, dest = IP_address, proto = protocol, id = number
• %PIX|ASA-4-209004: Invalid IP fragment, size = bytes exceeds maximum size =
bytes: src = IP_address, dest = IP_address, proto = protocol, id = number
• %PIX|ASA-4-209005: Discard IP fragment set with more than number elements:
src = IP_address, dest = IP_address, proto = protocol, id = number
• %PIX|ASA-4-401004: Shunned packet: IP_address ==> IP_address on interface
interface_name
• %PIX|ASA-4-402103: identity does not match negotiated identity (ip)
dest_address= dest_address, src_addr= source_address, prot= protocol, (ident)
local=inside_address, remote=remote_address,
local_proxy=IP_address/IP_address/port/port,
remote_proxy=IP_address/IP_address/port/port
• %PIX|ASA-4-405001: Received ARP {request | response} collision from
IP_address/MAC_address on interface interface_name
• %PIX|ASA-4-405002: Received mac mismatch collision from
IP_address/MAC_address for authenticated host
• %PIX|ASA-4-407001: Deny traffic for local-host interface_name:inside_address,
license limit of number exceeded
• %PIX|ASA-4-415012: internal_sig_id HTTP Deobfuscation signature detected -
action HTTP deobfuscation detected IPS evasion technique from source_address
to source_address
• %PIX|ASA-4-415014: internal_sig_id Maximum of 10 unanswered HTTP
requests exceeded from source_address to dest_address
• %PIX|ASA-5-111001: Begin configuration: IP_address writing to device
• %PIX|ASA-5-111003: IP_address Erase configuration
• %PIX|ASA-5-111004: IP_address end configuration: {FAILED|OK}
• %PIX|ASA-5-111005: IP_address end configuration: OK
• %PIX|ASA-5-111007: Begin configuration: IP_address reading from device.

• %PIX|ASA-6-109006: Authentication failed for user user from
inside_address/inside_port to outside_address/outside_port on interface
interface_name.
• %PIX|ASA-6-106012: Deny IP from IP_address to IP_address, IP options hex
• %PIX|ASA-6-106015: Deny TCP (no connection) from IP_address/port to
IP_address/port flags tcp_flags on interface interface_name.
• %PIX|ASA-6-109008: Authorization denied for user user from
source_address/source_port to destination_address/destination_port on interface
interface_name.\
• %PIX|ASA-6-109024: Authorization denied from source_address/source_port to
dest_address/dest_port (not authenticated) on interface interface_name using
protocol
• %PIX|ASA-6-109025: Authorization denied (acl=acl_ID) for user 'user' from
source_address/source_port to dest_address/dest_port on interface interface_name
using protocol
• %PIX|ASA-6-113006: User user locked out on exceeding number successive
failed authentication attempts
• %PIX|ASA-6-302014: Teardown TCP connection id for interface:real-
address/real-port to interface:real-address/real-port duration hh:mm:ss bytes bytes
[reason] [(user)]
• %PIX|ASA-6-308001: PIX console enable password incorrect for number tries
(from IP_address)
• %PIX|ASA-6-309002: Permitted manager connection from IP_address.
• %PIX|ASA-6-315011: SSH session from IP_address on interface interface_name
for user user disconnected by SSH server, reason: reason
• %PIX|ASA-6-415009: internal_sig_id HTTP Header length exceeded. Received
length byte Header - action header length exceeded from source_address to
dest_address
• %PIX|ASA-6-415011: internal_sig_id HTTP URL Length exceeded. Received
size byte URL - action URI length exceeded from source_address to dest_address


Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status