TMAegisBeta
Thêm quy tắc cho juniper-junos

Juniper Junos

TMA-JUNIPER-JUNOS-4.7.2

Ensure authentication is set to AES-CMAC (LDP)

CaoCấp 2Tự độngjuniper-junos

Mô tả

LDP peers should be strongly authenticated. Where it is deployed, LDP is vital for normal operation of an MPLS network. LDP is used to determine Label mapping and populate the routers Forwarding Information Base (FIB). Passes when no LDP session is configured. Audited against the output of 'show configuration | display set | no-more' (set format, not the curly-brace hierarchy).

Cách kiểm tra

Phương pháp kiểm tra: Mẫu cấu hình

Mẫu khớp
(?m)\A(?:(?:[ \t]*(?:$|[^s \t\n]|s(?:$|[^e\n]|e(?:$|[^t\n]|t(?:$|[^ \n]| (?:$|[^p\n]|p(?:$|[^r\n]|r(?:$|[^o\n]|o(?:$|[^t\n]|t(?:$|[^o\n]|o(?:$|[^c\n]|c(?:$|[^o\n]|o(?:$|[^l\n]|l(?:$|[^s\n]|s(?:$|[^ \n]| (?:$|[^l\n]|l(?:$|[^d\n]|d(?:$|[^p\n]|p(?:$|[^ \n]))))))))))))))))))[^\n]*|[ \t]*set protocols ldp (?:(?:[^a \t\n][^ \t\n]*|a(?:|[^e \t\n][^ \t\n]*|e(?:|[^s \t\n][^ \t\n]*|s(?:|[^\- \t\n][^ \t\n]*|-(?:|[^1 \t\n][^ \t\n]*|1(?:|[^2 \t\n][^ \t\n]*|2(?:|[^8 \t\n][^ \t\n]*|8(?:|[^\- \t\n][^ \t\n]*|-(?:|[^c \t\n][^ \t\n]*|c(?:|[^m \t\n][^ \t\n]*|m(?:|[^a \t\n][^ \t\n]*|a(?:|[^c \t\n][^ \t\n]*|c(?:|[^\- \t\n][^ \t\n]*|-(?:|[^9 \t\n][^ \t\n]*|9(?:|[^6 \t\n][^ \t\n]*|6(?:[^ \t\n][^ \t\n]*))))))))))))))))[ \t]+)*(?:(?:[^a \t\n][^ \t\n]*|a(?:|[^e \t\n][^ \t\n]*|e(?:|[^s \t\n][^ \t\n]*|s(?:|[^\- \t\n][^ \t\n]*|-(?:|[^1 \t\n][^ \t\n]*|1(?:|[^2 \t\n][^ \t\n]*|2(?:|[^8 \t\n][^ \t\n]*|8(?:|[^\- \t\n][^ \t\n]*|-(?:|[^c \t\n][^ \t\n]*|c(?:|[^m \t\n][^ \t\n]*|m(?:|[^a \t\n][^ \t\n]*|a(?:|[^c \t\n][^ \t\n]*|c(?:|[^\- \t\n][^ \t\n]*|-(?:|[^9 \t\n][^ \t\n]*|9(?:|[^6 \t\n][^ \t\n]*|6(?:[^ \t\n][^ \t\n]*)))))))))))))))))?)\n)*[ \t]*set protocols ldp (?:session|session-group) (?:(?:[^a \t\n][^ \t\n]*|a(?:|[^e \t\n][^ \t\n]*|e(?:|[^s \t\n][^ \t\n]*|s(?:|[^\- \t\n][^ \t\n]*|-(?:|[^1 \t\n][^ \t\n]*|1(?:|[^2 \t\n][^ \t\n]*|2(?:|[^8 \t\n][^ \t\n]*|8(?:|[^\- \t\n][^ \t\n]*|-(?:|[^c \t\n][^ \t\n]*|c(?:|[^m \t\n][^ \t\n]*|m(?:|[^a \t\n][^ \t\n]*|a(?:|[^c \t\n][^ \t\n]*|c(?:|[^\- \t\n][^ \t\n]*|-(?:|[^9 \t\n][^ \t\n]*|9(?:|[^6 \t\n][^ \t\n]*|6(?:[^ \t\n][^ \t\n]*))))))))))))))))[ \t]+)*(?:(?:[^a \t\n][^ \t\n]*|a(?:|[^e \t\n][^ \t\n]*|e(?:|[^s \t\n][^ \t\n]*|s(?:|[^\- \t\n][^ \t\n]*|-(?:|[^1 \t\n][^ \t\n]*|1(?:|[^2 \t\n][^ \t\n]*|2(?:|[^8 \t\n][^ \t\n]*|8(?:|[^\- \t\n][^ \t\n]*|-(?:|[^c \t\n][^ \t\n]*|c(?:|[^m \t\n][^ \t\n]*|m(?:|[^a \t\n][^ \t\n]*|a(?:|[^c \t\n][^ \t\n]*|c(?:|[^\- \t\n][^ \t\n]*|-(?:|[^9 \t\n][^ \t\n]*|9(?:|[^6 \t\n][^ \t\n]*|6(?:[^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t\n][^ \t\n]*)))))))))))))))))?)))*\n?\z

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

! If you have deployed LDP in your network you should use strong authentication for all neighbors. Both AES-CMAC and SHA1-HMAC authentication require a keychain to be configured on the device under the hierarchy with at least one key which has a start time in the past. set security authentication-key-chains key-chain <name> key <key number> start-time <YYYY-MM-DD.HH:MM> set security authentication-key-chains key-chain <name> key <key number> secret <secret key> The chosen algorithm and keychain should then be configured for all session groups from the hierarchy: set protocols ldp session-group <Destination IP Address or IP/Mask> authentication-algorithm aes-128-cmac-96 set protocols ldp session-group <Destination IP Address or IP/Mask> authentication-key-chain <name> or for SHA1 : set protocols ldp session-group <Destination IP Address or IP/Mask> authentication-algorithm hmac-sha-1-96 set protocols ldp session-group <Destination IP Address or IP/Mask> authentication-key-chain <name>

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
juniper-junosnetworkaaa
Tham chiếu
CIS Juniper OS Benchmark v2.1.0 - 4.7.2 Ensure authentication is set to AES-CMAC

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target juniper-junos --level 2