STIGhubSTIGhub
STIGsSearchCompareAbout

STIGhub

A free tool to search and browse the entire DISA STIG library. Saves up to 75% in security compliance research time.

Navigation

  • Browse STIGs
  • Search
  • Compare Versions

Resources

  • About
  • VPAT
  • DISA STIG Library
Powered by Pylon
© 2026 Beacon Cloud Solutions, Inc. All rights reserved.
← Back to STIGs

Canonical Ubuntu 20.04 LTS Security Technical Implementation Guide

Version

V2R4

Benchmark ID

Canonical_Ubuntu_20-04_LTS_STIG

Total Checks

173

Tags

linux
CAT I: 15CAT II: 136CAT III: 22

This Security Technical Implementation Guide is published as a tool to improve the security of Department of Defense (DOD) information systems. The requirements are derived from the National Institute of Standards and Technology (NIST) 800-53 and related documents. Comments or proposed revisions to this document should be sent via email to the following address: disa.stig_spt@mail.mil.

Export CKLExport CSVExport JSON

Checks (173)

V-238196MEDIUMThe Ubuntu operating system must provision temporary user accounts with an expiration time of 72 hours or less.V-238197MEDIUMThe Ubuntu operating system must enable the graphical user logon banner to display the Standard Mandatory DoD Notice and Consent Banner before granting local access to the system via a graphical user logon.V-238198MEDIUMThe Ubuntu operating system must display the Standard Mandatory DOD Notice and Consent Banner before granting local access to the system via a graphical user logon.V-238199MEDIUMThe Ubuntu operating system must retain a user's session lock until that user reestablishes access using established identification and authentication procedures.V-238200MEDIUMThe Ubuntu operating system must allow users to directly initiate a session lock for all connection types.V-238201HIGHThe Ubuntu operating system must map the authenticated identity to the user or group account for PKI-based authentication.V-238202LOWThe Ubuntu operating system must enforce 24 hours/1 day as the minimum password lifetime. Passwords for new users must have a 24 hours/1 day minimum password lifetime restriction.V-238203LOWThe Ubuntu operating system must enforce a 60-day maximum password lifetime restriction. Passwords for new users must have a 60-day maximum password lifetime restriction.V-238204HIGHUbuntu operating systems when booted must require authentication upon booting into single-user and maintenance modes.V-238205MEDIUMThe Ubuntu operating system must uniquely identify interactive users.V-238206HIGHThe Ubuntu operating system must ensure only users who need access to security functions are part of sudo group.V-238207MEDIUMThe Ubuntu operating system must automatically terminate a user session after inactivity timeouts have expired.V-238208MEDIUMThe Ubuntu operating system must require users to reauthenticate for privilege escalation or when changing roles.V-238209MEDIUMThe Ubuntu operating system default filesystem permissions must be defined in such a way that all authenticated users can read and modify only their own files.V-238210MEDIUMThe Ubuntu operating system must implement smart card logins for multifactor authentication for local and network access to privileged and nonprivileged accounts.V-238211MEDIUMThe Ubuntu operating system must use strong authenticators in establishing nonlocal maintenance and diagnostic sessions.V-238212MEDIUMThe Ubuntu operating system must immediately terminate all network connections associated with SSH traffic after a period of inactivity.V-238213MEDIUMThe Ubuntu operating system must immediately terminate all network connections associated with SSH traffic at the end of the session or after 10 minutes of inactivity.V-238214MEDIUMThe Ubuntu operating system must display the Standard Mandatory DOD Notice and Consent Banner before granting any local or remote connection to the system.V-238215HIGHThe Ubuntu operating system must use SSH to protect the confidentiality and integrity of transmitted information.V-238216MEDIUMThe Ubuntu operating system must configure the SSH daemon to use Message Authentication Codes (MACs) employing FIPS 140-2 approved cryptographic hashes to prevent the unauthorized disclosure of information and/or detect changes to information during transmission.V-238217MEDIUMThe Ubuntu operating system must configure the SSH daemon to use FIPS 140-2 approved ciphers to prevent the unauthorized disclosure of information and/or detect changes to information during transmission.V-238218HIGHThe Ubuntu operating system must not allow unattended or automatic login via SSH.V-238219HIGHThe Ubuntu operating system must be configured so that remote X connections are disabled, unless to fulfill documented and validated mission requirements.V-238220MEDIUMThe Ubuntu operating system SSH daemon must prevent remote hosts from connecting to the proxy display.V-238221LOWThe Ubuntu operating system must enforce password complexity by requiring that at least one upper-case character be used.V-238222LOWThe Ubuntu operating system must enforce password complexity by requiring that at least one lower-case character be used.V-238223LOWThe Ubuntu operating system must enforce password complexity by requiring that at least one numeric character be used.V-238224LOWThe Ubuntu operating system must require the change of at least 8 characters when passwords are changed.V-238225MEDIUMThe Ubuntu operating system must enforce a minimum 15-character password length.V-238226LOWThe Ubuntu operating system must enforce password complexity by requiring that at least one special character be used.V-238227MEDIUMThe Ubuntu operating system must prevent the use of dictionary words for passwords.V-238228MEDIUMThe Ubuntu operating system must be configured so that when passwords are changed or new passwords are established, pwquality must be used.V-238229MEDIUMThe Ubuntu operating system, for PKI-based authentication, must validate certificates by constructing a certification path (which includes status information) to an accepted trust anchor.V-238230MEDIUMThe Ubuntu operating system must implement multifactor authentication for remote access to privileged accounts in such a way that one of the factors is provided by a device separate from the system gaining access.V-238231MEDIUMThe Ubuntu operating system must accept Personal Identity Verification (PIV) credentials.V-238232MEDIUMThe Ubuntu operating system must electronically verify Personal Identity Verification (PIV) credentials.V-238233MEDIUMThe Ubuntu operating system for PKI-based authentication, must implement a local cache of revocation data in case of the inability to access revocation information via the network.V-238234LOWThe Ubuntu operating system must prohibit password reuse for a minimum of five generations.V-238235LOWThe Ubuntu operating system must automatically lock an account until the locked account is released by an administrator when three unsuccessful logon attempts have been made.V-238236MEDIUMThe Ubuntu operating system must be configured so that the script which runs each 30 days or less to check file integrity is the default one.V-238237LOWThe Ubuntu operating system must enforce a delay of at least 4 seconds between logon prompts following a failed logon attempt.V-238238MEDIUMThe Ubuntu operating system must generate audit records for all account creations, modifications, disabling, and termination events that affect /etc/passwd.V-238239MEDIUMThe Ubuntu operating system must generate audit records for all account creations, modifications, disabling, and termination events that affect /etc/group.V-238240MEDIUMThe Ubuntu operating system must generate audit records for all account creations, modifications, disabling, and termination events that affect /etc/shadow.V-238241MEDIUMThe Ubuntu operating system must generate audit records for all account creations, modifications, disabling, and termination events that affect /etc/gshadow.V-238242MEDIUMThe Ubuntu operating system must generate audit records for all account creations, modifications, disabling, and termination events that affect /etc/opasswd.V-238243MEDIUMThe Ubuntu operating system must alert the ISSO and SA (at a minimum) in the event of an audit processing failure.V-238244MEDIUMThe Ubuntu operating system must shut down by default upon audit failure (unless availability is an overriding concern).V-238245MEDIUMThe Ubuntu operating system must be configured so that audit log files are not read or write-accessible by unauthorized users.V-238246MEDIUMThe Ubuntu operating system must be configured to permit only authorized users ownership of the audit log files.V-238247MEDIUMThe Ubuntu operating system must permit only authorized groups ownership of the audit log files.V-238248MEDIUMThe Ubuntu operating system must be configured so that the audit log directory is not write-accessible by unauthorized users.V-238249MEDIUMThe Ubuntu operating system must be configured so that audit configuration files are not write-accessible by unauthorized users.V-238250MEDIUMThe Ubuntu operating system must permit only authorized accounts to own the audit configuration files.V-238251MEDIUMThe Ubuntu operating system must permit only authorized groups to own the audit configuration files.V-238252MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the su command.V-238253MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the chfn command.V-238254MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the mount command.V-238255MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the umount command.V-238256MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the ssh-agent command.V-238257MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the ssh-keysign command.V-238258MEDIUMThe Ubuntu operating system must generate audit records for any use of the setxattr, fsetxattr, lsetxattr, removexattr, fremovexattr, and lremovexattr system calls.V-238264MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the chown, fchown, fchownat, and lchown system calls.V-238268MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the chmod, fchmod, and fchmodat system calls.V-238271MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the creat, open, openat, open_by_handle_at, truncate, and ftruncate system calls.V-238277MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the sudo command.V-238278MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the sudoedit command.V-238279MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the chsh command.V-238280MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the newgrp command.V-238281MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the chcon command.V-238282MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the apparmor_parser command.V-238283MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the setfacl command.V-238284MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the chacl command.V-238285MEDIUMThe Ubuntu operating system must generate audit records for the use and modification of the tallylog file.V-238286MEDIUMThe Ubuntu operating system must generate audit records for the use and modification of faillog file.V-238287MEDIUMThe Ubuntu operating system must generate audit records for the use and modification of the lastlog file.V-238288MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the passwd command.V-238289MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the unix_update command.V-238290MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the gpasswd command.V-238291MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the chage command.V-238292MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the usermod command.V-238293MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the crontab command.V-238294MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the pam_timestamp_check command.V-238295MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the init_module and finit_module syscalls.V-238297MEDIUMThe Ubuntu operating system must generate audit records for successful/unsuccessful uses of the delete_module syscall.V-238298MEDIUMThe Ubuntu operating system must produce audit records and reports containing information to establish when, where, what type, the source, and the outcome for all DoD-defined auditable events and actions in near real time.V-238299MEDIUMThe Ubuntu operating system must initiate session audits at system start-up.V-238300MEDIUMThe Ubuntu operating system must configure audit tools with a mode of 0755 or less permissive.V-238301MEDIUMThe Ubuntu operating system must configure audit tools to be owned by root.V-238302MEDIUMThe Ubuntu operating system must configure the audit tools to be group-owned by root.V-238303MEDIUMThe Ubuntu operating system must use cryptographic mechanisms to protect the integrity of audit tools.V-238304MEDIUMThe Ubuntu operating system must prevent all software from executing at higher privilege levels than users executing the software and the audit system must be configured to audit the execution of privileged functions.V-238305LOWThe Ubuntu operating system must allocate audit record storage capacity to store at least one weeks' worth of audit records, when audit records are not immediately sent to a central audit record storage facility.V-238306LOWThe Ubuntu operating system audit event multiplexor must be configured to off-load audit logs onto a different system or storage media from the system being audited.V-238307LOWThe Ubuntu operating system must immediately notify the SA and ISSO (at a minimum) when allocated audit record storage volume reaches 75% of the repository maximum audit record storage capacity.V-238308LOWThe Ubuntu operating system must record time stamps for audit records that can be mapped to Coordinated Universal Time (UTC) or Greenwich Mean Time (GMT).V-238309MEDIUMThe Ubuntu operating system must generate audit records for privileged activities, nonlocal maintenance, diagnostic sessions and other system-level access.V-238310MEDIUMThe Ubuntu operating system must generate audit records for any successful/unsuccessful use of unlink, unlinkat, rename, renameat, and rmdir system calls.V-238315MEDIUMThe Ubuntu operating system must generate audit records for the /var/log/wtmp file.V-238316MEDIUMThe Ubuntu operating system must generate audit records for the /var/run/utmp file.V-238317MEDIUMThe Ubuntu operating system must generate audit records for the /var/log/btmp file.V-238318MEDIUMThe Ubuntu operating system must generate audit records when successful/unsuccessful attempts to use modprobe command.V-238319MEDIUMThe Ubuntu operating system must generate audit records when successful/unsuccessful attempts to use the kmod command.V-238320MEDIUMThe Ubuntu operating system must generate audit records when successful/unsuccessful attempts to use the fdisk command.V-238321LOWThe Ubuntu operating system must have a crontab script running weekly to offload audit events of standalone systems.V-238323LOWThe Ubuntu operating system must limit the number of concurrent sessions to ten for all accounts and/or account types.V-238324MEDIUMThe Ubuntu operating system must monitor remote access methods.V-238325MEDIUMThe Ubuntu operating system must encrypt all stored passwords with a FIPS 140-2 approved cryptographic hashing algorithm.V-238326HIGHThe Ubuntu operating system must not have the telnet package installed.V-238327HIGHThe Ubuntu operating system must not have the rsh-server package installed.V-238328MEDIUMThe Ubuntu operating system must be configured to prohibit or restrict the use of functions, ports, protocols, and/or services, as defined in the PPSM CAL and vulnerability assessments.V-238329MEDIUMThe Ubuntu operating system must prevent direct login into the root account.V-238330MEDIUMThe Ubuntu operating system must disable account identifiers (individuals, groups, roles, and devices) after 35 days of inactivity.V-238331LOWThe Ubuntu operating system must automatically expire temporary accounts within 72 hours.V-238332MEDIUMThe Ubuntu operating system must set a sticky bit on all public directories to prevent unauthorized and unintended information transferred via shared system resources.V-238333MEDIUMThe Ubuntu operating system must be configured to use TCP syncookies.V-238334MEDIUMThe Ubuntu operating system must disable kernel core dumps so that it can fail to a secure state if system initialization fails, shutdown fails or aborts fail.V-238335MEDIUMUbuntu operating systems handling data requiring "data at rest" protections must employ cryptographic mechanisms to prevent unauthorized disclosure and modification of the information at rest.V-238337MEDIUMThe Ubuntu operating system must generate error messages that provide information necessary for corrective actions without revealing information that could be exploited by adversaries.V-238338MEDIUMThe Ubuntu operating system must configure the /var/log directory to be group-owned by syslog.V-238339MEDIUMThe Ubuntu operating system must configure the /var/log directory to be owned by root.V-238340MEDIUMThe Ubuntu operating system must configure the /var/log directory to have mode "0755" or less permissive.V-238341MEDIUMThe Ubuntu operating system must configure the /var/log/syslog file to be group-owned by adm.V-238342MEDIUMThe Ubuntu operating system must configure /var/log/syslog file to be owned by syslog.V-238343MEDIUMThe Ubuntu operating system must configure /var/log/syslog file with mode 0640 or less permissive.V-238344MEDIUMThe Ubuntu operating system must have directories that contain system commands set to a mode of 0755 or less permissive.V-238345MEDIUMThe Ubuntu operating system must have directories that contain system commands owned by root.V-238346MEDIUMThe Ubuntu operating system must have directories that contain system commands group-owned by root.V-238347MEDIUMThe Ubuntu operating system library files must have mode 0755 or less permissive.V-238348MEDIUMThe Ubuntu operating system library directories must have mode 0755 or less permissive.V-238349MEDIUMThe Ubuntu operating system library files must be owned by root.V-238350MEDIUMThe Ubuntu operating system library directories must be owned by root.V-238351MEDIUMThe Ubuntu operating system library files must be group-owned by root or a system account.V-238352MEDIUMThe Ubuntu operating system library directories must be group-owned by root.V-238353MEDIUMThe Ubuntu operating system must be configured to preserve log records from failure events.V-238354MEDIUMThe Ubuntu operating system must have an application firewall installed in order to control remote access methods.V-238355MEDIUMThe Ubuntu operating system must enable and run the uncomplicated firewall(ufw).V-238356MEDIUMThe Ubuntu operating system must, for networked systems, compare internal information system clocks at least every 24 hours with a server which is synchronized to one of the redundant United States Naval Observatory (USNO) time servers, or a time server designated for the appropriate DoD network (NIPRNet/SIPRNet), and/or the Global Positioning System (GPS).V-238357LOWThe Ubuntu operating system must synchronize internal information system clocks to the authoritative time source when the time difference is greater than one second.V-238359MEDIUMThe Ubuntu operating system's Advance Package Tool (APT) must be configured to prevent the installation of patches, service packs, device drivers, or Ubuntu operating system components without verification they have been digitally signed using a certificate that is recognized and approved by the organization.V-238360MEDIUMThe Ubuntu operating system must be configured to use AppArmor.V-238362LOWThe Ubuntu operating system must be configured such that Pluggable Authentication Module (PAM) prohibits the use of cached authentications after one day.V-238363HIGHThe Ubuntu operating system must implement NIST FIPS-validated cryptography to protect classified information and for the following: To provision digital signatures, to generate cryptographic hashes, and to protect unclassified information requiring confidentiality and cryptographic protection in accordance with applicable federal laws, Executive Orders, directives, policies, regulations, and standards.V-238364MEDIUMThe Ubuntu operating system must use DoD PKI-established certificate authorities for verification of the establishment of protected sessions.V-238367MEDIUMThe Ubuntu operating system must configure the uncomplicated firewall to rate-limit impacted network interfaces.V-238368MEDIUMThe Ubuntu operating system must implement nonexecutable data to protect its memory from unauthorized code execution.V-238369MEDIUMThe Ubuntu operating system must implement address space layout randomization to protect its memory from unauthorized code execution.V-238370MEDIUMThe Ubuntu operating system must be configured so that Advance Package Tool (APT) removes all software components after updated versions have been installed.V-238371MEDIUMThe Ubuntu operating system must use a file integrity tool to verify correct operation of all security functions.V-238372MEDIUMThe Ubuntu operating system must notify designated personnel if baseline configurations are changed in an unauthorized manner. The file integrity tool must notify the System Administrator when changes to the baseline configuration or anomalies in the operation of any security functions are discovered.V-238373LOWThe Ubuntu operating system must display the date and time of the last successful account logon upon logon.V-238374MEDIUMThe Ubuntu operating system must have an application firewall enabled.V-238376MEDIUMThe Ubuntu operating system must have system commands set to a mode of 0755 or less permissive.V-238377MEDIUMThe Ubuntu operating system must have system commands owned by root or a system account.V-238378MEDIUMThe Ubuntu operating system must have system commands group-owned by root or a system account.V-238379HIGHThe Ubuntu operating system must disable the x86 Ctrl-Alt-Delete key sequence if a graphical user interface is installed.V-238380HIGHThe Ubuntu operating system must disable the x86 Ctrl-Alt-Delete key sequence.V-251503HIGHThe Ubuntu operating system must not have accounts configured with blank or null passwords.V-251504HIGHThe Ubuntu operating system must not allow accounts configured with blank or null passwords.V-251505MEDIUMThe Ubuntu operating system must disable automatic mounting of Universal Serial Bus (USB) mass storage driver.V-252704MEDIUMThe Ubuntu operating system must disable all wireless network adapters.V-255912MEDIUMThe Ubuntu operating system SSH server must be configured to use only FIPS-validated key exchange algorithms.V-255913LOWThe Ubuntu operating system must restrict access to the kernel message buffer.V-274852MEDIUMUbuntu 20.04 LTS must audit any script or executable called by cron as root or by any privileged user.V-274853MEDIUMUbuntu 20.04 LTS must have the "SSSD" package installed.V-274854MEDIUMUbuntu 20.04 LTS must use the "SSSD" package for multifactor authentication services.V-274855MEDIUMUbuntu 20.04 LTS must ensure SSSD performs certificate path validation, including revocation checking, against a trusted anchor for PKI-based authentication.V-274856LOWUbuntu 20.04 LTS must be configured such that Pluggable Authentication Module (PAM) prohibits the use of cached authentications after one day.V-274857HIGHUbuntu 20.04 LTS must map the authenticated identity to the user or group account for PKI-based authentication.V-274858MEDIUMUbuntu 20.04 LTS must restrict privilege elevation to authorized personnel.V-274859MEDIUMUbuntu 20.04 LTS must require users to provide a password for privilege escalation.V-278950HIGHUbuntu 20.04 LTS must be a vendor-supported release.