TMAegisBêta
Plus de règles pour juniper-junos

Juniper Junos

TMA-JUNIPER-JUNOS-4.7.2

Ensure authentication is set to AES-CMAC (LDP)

ÉlevéeNiveau 2Automatiséejuniper-junos

Description

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).

Méthode de vérification

Méthode d'audit: Motif de configuration

Motif
(?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(?:[^ \t\n][^ \t\n]*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))))))))))))))?)))*\n?\z

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

! 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>

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
juniper-junosnetworkaaa
Référence
CIS Juniper OS Benchmark v2.1.0 - 4.7.2 Ensure authentication is set to AES-CMAC

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

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