diff --git a/linux_os/guide/system/network/network_implement_access_control/oval/shared.xml b/linux_os/guide/system/network/network_implement_access_control/oval/shared.xml new file mode 100644 index 00000000000..15459cc11cc --- /dev/null +++ b/linux_os/guide/system/network/network_implement_access_control/oval/shared.xml @@ -0,0 +1,101 @@ + + + {{{ oval_metadata("Configure the access control program to grant or deny access to + specific hosts and services") }}} + + + + + + + + + + + + + + + + + + + + .xml + + + + + + + + + /etc/hosts.allow + ^[^#]+ + 1 + + + + + + + + /etc/hosts.deny + ^[^#]+ + 1 + + + + /etc/firewalld/firewalld.conf + ^[\s]*DefaultZone=(\w+)$ + 1 + + + + + + + + ^/(etc|usr/lib)/firewalld/zones/ + + ^[\s]+<source (address|mac|ipset)="[\w:]+"[\s]*/>$ + 1 + + + + + + + + ^/(etc|usr/lib)/firewalld/zones/ + + ^[\s]+<service name="\w+"[\s]*/>$ + 1 + + + + + + + + /etc/firewalld/zones/public.xml + .* + 1 + + diff --git a/linux_os/guide/system/network/network_implement_access_control/rule.yml b/linux_os/guide/system/network/network_implement_access_control/rule.yml index 1f5650c83a9..7e8d8388315 100644 --- a/linux_os/guide/system/network/network_implement_access_control/rule.yml +++ b/linux_os/guide/system/network/network_implement_access_control/rule.yml @@ -80,3 +80,9 @@ ocil: |- If "firewalld" is not active and configured, and the "hosts.allow" and "hosts.deny" files are empty, this is a finding. +warnings: + - general: |- + This rule checks that either firewalld or tcpwrappers are being used + to restrict system access to some hosts and/or services. It does not + check for any specific hosts/services. Make sure that the allowed + hosts/services meet your operational needs.