TMAegisBeta
More rules for cisco-asa

Cisco ASA

TMA-CISCO-ASA-2.1.1

Ensure 'OSPF authentication' is enabled

HighLevel 2Automatedcisco-asa

Description

Enables the authentication of OSPF neighbor before routing information is received from the neighbor. Enabling the routing protocol authentication prevents against attackers who can send wrong routing information in order to redirect traffic to their network or send malformed packets in order to saturate and to exhaust the control plane. Not applicable (passes) when no 'router ospf' is configured; otherwise fails if no interface has OSPF MD5 authentication. Audited against the output of 'show running-config' (run 'terminal pager 0' first; 'more system:running-config' also works and shows unmasked secrets).

How it is checked

Audit method: Configuration pattern

Pattern
(?m)\A(?:[ \t]*(?:$|[^o \t\n]|o(?:$|[^s\n]|s(?:$|[^p\n]|p(?:$|[^f\n]|f(?:$|[^ \n]| (?:$|[^am\n]|a(?:$|[^u\n]|u(?:$|[^t\n]|t(?:$|[^h\n]|h(?:$|[^e\n]|e(?:$|[^n\n]|n(?:$|[^t\n]|t(?:$|[^i\n]|i(?:$|[^c\n]|c(?:$|[^a\n]|a(?:$|[^t\n]|t(?:$|[^i\n]|i(?:$|[^o\n]|o(?:$|[^n\n]|n(?:$|[^ \n]| (?:$|[^m\n]|m(?:$|[^e\n]|e(?:$|[^s\n]|s(?:$|[^s\n]|s(?:$|[^a\n]|a(?:$|[^g\n]|g(?:$|[^e\n]|e(?:$|[^\-\n]|-(?:$|[^d\n]|d(?:$|[^i\n]|i(?:$|[^g\n]|g(?:$|[^e\n]|e(?:$|[^s\n]|s(?:$|[^t\n]))))))))))))))))))))))))))))|m(?:$|[^e\n]|e(?:$|[^s\n]|s(?:$|[^s\n]|s(?:$|[^a\n]|a(?:$|[^g\n]|g(?:$|[^e\n]|e(?:$|[^\-\n]|-(?:$|[^d\n]|d(?:$|[^i\n]|i(?:$|[^g\n]|g(?:$|[^e\n]|e(?:$|[^s\n]|s(?:$|[^t\n]|t(?:$|[^\-\n]|-(?:$|[^k\n]|k(?:$|[^e\n]|e(?:$|[^y\n]|y(?:$|[^ \n]))))))))))))))))))))))))[^\n]*\n)*[ \t]*router ospf [^\n]*(?:\n(?:[ \t]*(?:$|[^o \t\n]|o(?:$|[^s\n]|s(?:$|[^p\n]|p(?:$|[^f\n]|f(?:$|[^ \n]| (?:$|[^am\n]|a(?:$|[^u\n]|u(?:$|[^t\n]|t(?:$|[^h\n]|h(?:$|[^e\n]|e(?:$|[^n\n]|n(?:$|[^t\n]|t(?:$|[^i\n]|i(?:$|[^c\n]|c(?:$|[^a\n]|a(?:$|[^t\n]|t(?:$|[^i\n]|i(?:$|[^o\n]|o(?:$|[^n\n]|n(?:$|[^ \n]| (?:$|[^m\n]|m(?:$|[^e\n]|e(?:$|[^s\n]|s(?:$|[^s\n]|s(?:$|[^a\n]|a(?:$|[^g\n]|g(?:$|[^e\n]|e(?:$|[^\-\n]|-(?:$|[^d\n]|d(?:$|[^i\n]|i(?:$|[^g\n]|g(?:$|[^e\n]|e(?:$|[^s\n]|s(?:$|[^t\n]))))))))))))))))))))))))))))|m(?:$|[^e\n]|e(?:$|[^s\n]|s(?:$|[^s\n]|s(?:$|[^a\n]|a(?:$|[^g\n]|g(?:$|[^e\n]|e(?:$|[^\-\n]|-(?:$|[^d\n]|d(?:$|[^i\n]|i(?:$|[^g\n]|g(?:$|[^e\n]|e(?:$|[^s\n]|s(?:$|[^t\n]|t(?:$|[^\-\n]|-(?:$|[^k\n]|k(?:$|[^e\n]|e(?:$|[^y\n]|y(?:$|[^ \n]))))))))))))))))))))))))[^\n]*))*\n?\z

How it is fixed

Fix method: Guidance or infrastructure patch

! - Step 1: Acquire the interface <interface_name> used by the firewall to receive OSPF routing updates and the area ID <area_id> - Step 2: Agree with the neighbor device on the authencation key <key_value> and determine an authentication key ID <key_id> - Step 3: Run the following to enable OSPF authentication interface <interface_name> ospf authentication message-digest ospf message-digest-key <key_id> md5 <key_value> exit area <area_id> authentication message-digest

Properties

Operating systems
Any
Tags
cisco-asanetworkaaa
Reference
CIS Cisco ASA 9.x Firewall Benchmark v1.1.0 - 2.1.1 Ensure 'OSPF authentication' is enabled

Check this host

Run this on a machine you are allowed to audit. The scan is read-only.

shell
tmaegis scan --target cisco-asa --level 2