STIGQter STIGQter: STIG Summary: Juniper EX Series Switches Router Security Technical Implementation Guide Version: 2 Release: 1 Benchmark Date: 24 Jul 2024:

The Juniper router configured for BGP must reject route advertisements from CE routers with an originating AS in the AS_PATH attribute that does not belong to that customer.

DISA Rule

SV-253982r945855_rule

Vulnerability Number

V-253982

Group Title

SRG-NET-000018-RTR-000010

Rule Version

JUEX-RT-000100

Severity

CAT III

CCI(s)

Weight

10

Fix Recommendation

Configure the router to reject updates from CE routers with an originating AS in the AS_PATH attribute that does not belong to that customer.

set policy-options policy-statement bgp_originate_65535 term 1 from as-path orig_65535
set policy-options policy-statement bgp_originate_65535 term 1 then accept
set policy-options policy-statement bgp_originate_65535 term 2 then reject
set policy-options as-path orig_65535 ".* 65535"

set protocols bgp group eBGP neighbor <address> import bgp_originate_65535

Check Contents

This requirement is not applicable for the DODIN Backbone.

Review the router configuration to verify the router is configured to deny updates received from CE routers with an originating AS in the AS_PATH attribute that does not belong to that customer.

Review the router configuration and verify that there is an as-path access-list statement defined.

Each peer requires a regular expression (REGEX) defining the expected AS_PATH attribute. Each neighbor has an import policy applied to filter updates that do not match the expected path attribute. Assuming AS 65535 is an authorized neighbor's originating AS, verify an as-path REGEX is defined ('.* 65535') and a policy-statement configured to accept that REGEX.

[edit policy-options]
policy-statement bgp_originate_65535 {
term 1 {
from as-path orig_65535;
then accept;
}
term 2 {
then reject;
}
}
as-path orig_65535 ".* 65535";
Note: The REGEX matches zero or more prepended AS in the AS_PATH beginning with the defined AS number (the originator is the right-most AS in the path). The AS_PATH attribute is a space-delimited list, so a space between the leading AS numbers (.*) and the originating AS (65535) is required.

Verify that the as-path access list is referenced by the filter-list inbound for the appropriate BGP neighbors.

[edit protocols bgp]
group eBGP {
neighbor <address> {
import bgp_originate_65535;
}
}

If the router is not configured to reject updates from CE routers with an originating AS in the AS_PATH attribute that does not belong to that customer, this is a finding.

Vulnerability Number

V-253982

Documentable

False

Rule Version

JUEX-RT-000100

Severity Override Guidance

This requirement is not applicable for the DODIN Backbone.

Review the router configuration to verify the router is configured to deny updates received from CE routers with an originating AS in the AS_PATH attribute that does not belong to that customer.

Review the router configuration and verify that there is an as-path access-list statement defined.

Each peer requires a regular expression (REGEX) defining the expected AS_PATH attribute. Each neighbor has an import policy applied to filter updates that do not match the expected path attribute. Assuming AS 65535 is an authorized neighbor's originating AS, verify an as-path REGEX is defined ('.* 65535') and a policy-statement configured to accept that REGEX.

[edit policy-options]
policy-statement bgp_originate_65535 {
term 1 {
from as-path orig_65535;
then accept;
}
term 2 {
then reject;
}
}
as-path orig_65535 ".* 65535";
Note: The REGEX matches zero or more prepended AS in the AS_PATH beginning with the defined AS number (the originator is the right-most AS in the path). The AS_PATH attribute is a space-delimited list, so a space between the leading AS numbers (.*) and the originating AS (65535) is required.

Verify that the as-path access list is referenced by the filter-list inbound for the appropriate BGP neighbors.

[edit protocols bgp]
group eBGP {
neighbor <address> {
import bgp_originate_65535;
}
}

If the router is not configured to reject updates from CE routers with an originating AS in the AS_PATH attribute that does not belong to that customer, this is a finding.

Check Content Reference

M

Target Key

5479