{"description": "Firewalld can be configured with many backends, such as nftables.", "rationale": "Nftables is modern kernel module for controlling network connections coming into a system.\nUtilizing the limit statement in \"nftables\" can help to mitigate DoS attacks.", "severity": "medium", "references": {"nist": ["SC-5"], "srg": ["SRG-OS-000420-GPOS-00186"]}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": "the \"nftables\" is not set as the \"firewallbackend\"", "ocil": "Verify \"nftables\" is configured to allow rate limits on any connection to the system with the following command:\n\nVerify \"firewalld\" has \"nftables\" set as the default backend:\n\n$ sudo grep -i firewallbackend /etc/firewalld/firewalld.conf\n\n# FirewallBackend\nFirewallBackend=nftables", "oval_external_content": null, "fixtext": "Configure \"nftables\" to be the default \"firewallbackend\" for \"firewalld\" by adding or editing the following line in \"/etc/firewalld/firewalld.conf\":\n\nFirewallBackend=nftables\n\nEstablish rate-limiting rules based on organization-defined types of DoS attacks on impacted network interfaces.", "checktext": "", "vuldiscussion": "", "srg_requirement": "A firewall must be able to protect against or limit the effects of Denial of Service (DoS) attacks by ensuring Ubuntu 22.04 can implement rate-limiting measures on impacted network interfaces.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must protect against or limit the effects of denial-of-service (DoS) attacks by ensuring rate-limiting measures on impacted network interfaces are implemented.", "fixtext": "Configure \"nftables\" to be the default \"firewallbackend\" for \"firewalld\" by adding or editing the following line in \"/etc/firewalld/firewalld.conf\":\n\nFirewallBackend=nftables\n\nEstablish rate-limiting rules based on organization-defined types of DoS attacks on impacted network interfaces.", "checktext": "Verify \"nftables\" is configured to allow rate limits on any connection to the system with the following command:\n\n$ sudo grep -i firewallbackend /etc/firewalld/firewalld.conf\n\n# FirewallBackend\nFirewallBackend=nftables\n\nIf the \"nftables\" is not set as the \"FirewallBackend\" default, this is a finding.", "vuldiscussion": "DoS is a condition when a resource is not available for legitimate users. When this occurs, the organization either cannot accomplish its mission or must operate at degraded capacity.\n\nThis requirement addresses the configuration of Ubuntu 22.04 to mitigate the impact of DoS attacks that have occurred or are ongoing on system availability. For each system, known and potential DoS attacks must be identified and solutions for each type implemented. A variety of technologies exists to limit or, in some cases, eliminate the effects of DoS attacks (e.g., limiting processes or establishing memory partitions). Employing increased capacity and bandwidth, combined with service redundancy, may reduce the susceptibility to some DoS attacks."}}, "platform": "package[firewalld]", "platforms": ["package[firewalld]"], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": ["package_firewalld"], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Configure Firewalld to Use the Nftables Backend", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/network/network-firewalld/firewalld-backend/rule.yml", "template": {"name": "shell_lineinfile", "vars": {"path": "/etc/firewalld/firewalld.conf", "parameter": "FirewallBackend", "value": "nftables", "no_quotes": "true"}, "backends": {}}}