Information
The Cisco switch must have all disabled switch ports assigned to an unused VLAN.
GROUP ID: V-220667
RULE ID: SV-220667r991904
It is possible that a disabled port that is assigned to a user or management VLAN becomes enabled by accident or by an attacker and as a result gains access to that VLAN as a member.
Solution
Assign all switch ports not in use to an inactive VLAN.
Step 1: Assign the disabled interfaces to an inactive VLAN.
SW3(config)#int range g0/0 - 9
SW3(config-if-range)# switchport access vlan 999
Step 2: Configure trunk links to not allow traffic from the inactive VLAN.
SW3(config)#int g1/1
SW3(config-if)#switchport trunk allowed vlan except 999