{"description": "Ubuntu 22.04 natively supports partition encryption through the\nLinux Unified Key Setup-on-disk-format (LUKS) technology. The easiest way to\nencrypt a partition is during installation time.\n<br /><br />\nFor manual installations, select the <tt>Encrypt</tt> checkbox during\npartition creation to encrypt the partition. When this\noption is selected the system will prompt for a passphrase to use in\ndecrypting the partition. The passphrase will subsequently need to be entered manually\nevery time the system boots.\n\n<br /><br />\nDetailed information on encrypting partitions using LUKS or LUKS ciphers can be found on\nthe Ubuntu 22.04 Documentation web site:<br />\n\n    \n    <a xmlns='http://www.w3.org/1999/xhtml' href='https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019'>https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019</a>\n.", "rationale": "The risk of a system's physical compromise, particularly mobile systems such as\nlaptops, places its data at risk of compromise.  Encrypting this data mitigates\nthe risk of its loss if the system is lost.", "severity": "high", "references": {"cis-csc": ["13", "14"], "cobit5": ["APO01.06", "BAI02.01", "BAI06.01", "DSS04.07", "DSS05.03", "DSS05.04", "DSS05.07", "DSS06.02", "DSS06.06"], "cui": ["3.13.16"], "hipaa": ["164.308(a)(1)(ii)(D)", "164.308(b)(1)", "164.310(d)", "164.312(a)(1)", "164.312(a)(2)(iii)", "164.312(a)(2)(iv)", "164.312(b)", "164.312(c)", "164.314(b)(2)(i)", "164.312(d)"], "isa-62443-2013": ["SR 3.4", "SR 4.1", "SR 5.2"], "iso27001-2013": ["A.10.1.1", "A.11.1.4", "A.11.1.5", "A.11.2.1", "A.13.1.1", "A.13.1.3", "A.13.2.1", "A.13.2.3", "A.13.2.4", "A.14.1.2", "A.14.1.3", "A.6.1.2", "A.7.1.1", "A.7.1.2", "A.7.3.1", "A.8.2.2", "A.8.2.3", "A.9.1.1", "A.9.1.2", "A.9.2.3", "A.9.4.1", "A.9.4.4", "A.9.4.5"], "nerc-cip": ["CIP-003-8 R4.2", "CIP-007-3 R5.1"], "nist": ["CM-6(a)", "SC-28", "SC-28(1)", "SC-13", "AU-9(3)"], "nist-csf": ["PR.DS-1", "PR.DS-5"], "srg": ["SRG-OS-000405-GPOS-00184", "SRG-OS-000185-GPOS-00079", "SRG-OS-000404-GPOS-00183"], "stigid": ["UBTU-22-231010"], "stigref": ["SV-260484r958552_rule"]}, "control_references": {"stigid": ["UBTU-22-231010"]}, "components": [], "identifiers": {}, "ocil_clause": "partitions do not have a type of crypto_LUKS", "ocil": "Check the system partitions to determine if they are encrypted with the following command:\n<pre>blkid</pre>\n<br /><br />\nOutput will be similar to:\n<pre>/dev/sda1: UUID=\" ab12c3de-4f56-789a-8f33-3850cc8ce3a2\n\" TYPE=\"crypto_LUKS\"\n/dev/sda2: UUID=\" bc98d7ef-6g54-321h-1d24-9870de2ge1a2\n\" TYPE=\"crypto_LUKS\"</pre>\n<br /><br />\nThe boot partition and pseudo-file systems, such as /proc, /sys, and tmpfs,\nare not required to use disk encryption and are not a finding.", "oval_external_content": null, "fixtext": "Configure Ubuntu 22.04 to prevent unauthorized modification of all information at rest by using disk encryption.\n\nEncrypting a partition in an already installed system is more difficult, because existing partitions will need to be resized and changed.\nTo encrypt an entire partition, dedicate a partition for encryption in the partition layout.", "checktext": "Verify Ubuntu 22.04 prevents unauthorized disclosure or modification of all information requiring at-rest protection by using disk encryption.\n\nIf there is a documented and approved reason for not having data-at-rest encryption, this requirement is Not Applicable.\n\n\nDetermine the partition layout for the system with the following command:\n<pre>$ sudo fdisk -l</pre>\n\nVerify that the system partitions are all encrypted with the following command:\n<pre>$ more /etc/crypttab</pre>\n\nEvery persistent disk partition present must have an entry in the file.\nIf any partitions other than the boot partition or pseudo file systems (such as /proc or /sys) are not listed, this is a finding.", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04 local disk partitions must implement cryptographic mechanisms to prevent unauthorized disclosure or modification of all information that requires at-rest protection.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 local disk partitions must implement cryptographic mechanisms to prevent unauthorized disclosure or modification of all information that requires at rest protection.", "vuldiscussion": "Ubuntu 22.04 systems handling data requiring \"data at rest\" protections must employ cryptographic mechanisms to prevent unauthorized disclosure and modification of the information at rest.\n\nSelection of a cryptographic mechanism is based on the need to protect the integrity of organizational information. The strength of the mechanism is commensurate with the security category and/or classification of the information. Organizations have the flexibility to either encrypt all information on storage devices (i.e., full disk encryption) or encrypt specific data structures (e.g., files, records, or fields).", "checktext": "Note: If there is a documented and approved reason for not having data-at-rest encryption at the operating system level, such as encryption provided by a hypervisor or a disk storage array in a virtualized environment, this requirement is Not Applicable.\n\nVerify Ubuntu 22.04 prevents unauthorized disclosure or modification of all information requiring at-rest protection by using disk encryption.\n\nNote: If there is a documented and approved reason for not having data-at-rest encryption, this requirement is Not Applicable.\n\nList all block devices in tree-like format:\n\n$ sudo lsblk --tree\n\nNAME                       MAJ:MIN  RM   SIZE     RO    TYPE    MOUNTPOINTS\nzram0                      252:0    0    8G       0     disk    [SWAP]\nnvme0n1                    259:0    0    476.9G   0     disk\n|-nvme0n1p1                259:1    0    1G       0     part    /boot/efi\n|-nvme0n1p2                259:2    0    1G       0     part    /boot\n|-nvme0n1p3                259:3    0    474.9G   0     part\n  |-luks-&lt;encrypted_id&gt;    253:0    0    474.9G   0     crypt\n    |-rhel-root            253:1    0    16G      0     lvm     /\n    |-rhel-varcache        253:2    0    8G       0     lvm     /var/cache\n    |-rhel-vartmp          253:3    0    4G       0     lvm     /var/tmp\n    |-rhel-varlog          253:4    0    4G       0     lvm     /var/log\n    |-rhel-home            253:5    0    64G      0     lvm     /home\n    |-rhel-varlogaudit     253:6    0    4G       0     lvm     /var/log/audit\n\nVerify that the block device tree for each persistent filesystem, excluding the /boot and /boot/efi filesystems, has at least one parent block device of type \"crypt\", and that the encryption type is LUKS:\n\n$ sudo cryptsetup status luks-b74f6910-2547-4399-86b2-8b0252d926d7\n/dev/mapper/luks-b74f6910-2547-4399-86b2-8b0252d926d7 is active and is in use.\n  type:    LUKS2\n  cipher:  aes-xts-plain64\n  keysize: 512 bits\n  key location: keyring\n  device:  /dev/nvme0n1p3\n  sector size:  512\n  offset:  32768 sectors\n  size:    995986063 sectors\n  mode:    read/write\n\nIf there are persistent filesystems (other than /boot or /boot/efi) whose block device trees do not have a crypt block device of type LUKS, ask the administrator to indicate how persistent filesystems are encrypted.\n\nIf there is no evidence that persistent filesystems are encrypted, this is a finding.", "fixtext": "Configure Ubuntu 22.04 to prevent unauthorized modification of all information at rest by using disk encryption.\n\nEncrypting a partition in an already installed system is more difficult, because existing partitions will need to be resized and changed.\n\nTo encrypt an entire partition, dedicate a partition for encryption in the partition layout."}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["not container"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["not_container"], "bash_conditional": null, "fixes": {}, "title": "Encrypt Partitions", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/software/disk_partitioning/encrypt_partitions/rule.yml", "template": null}