{"description": "The <tt>Storage</tt> option in <tt>[Coredump]</tt> section\nof <tt>/etc/systemd/coredump.conf</tt> or a drop-in file in\n<tt>/etc/systemd/coredump.conf.d/*.conf</tt>\ncan be set to <tt>none</tt> to disable storing core dumps permanently.", "rationale": "A core dump includes a memory image taken at the time the operating system\nterminates an application. The memory image could contain sensitive data\nand is generally useful only for developers or system operators trying to\ndebug problems. Enabling core dumps on production systems is not recommended,\nhowever there may be overriding operational requirements to enable advanced\ndebugging. Permitting temporary enablement of core dumps during such situations\nshould be reviewed through local needs and policy.", "severity": "medium", "references": {"nist": ["CM-6"], "pcidss": ["Req-3.2"], "srg": ["SRG-OS-000480-GPOS-00227"], "pcidss4": ["3.3.1.1", "3.3.1", "3.3"]}, "control_references": {"pcidss4": ["3.3.1.1", "3.3.1", "3.3"]}, "components": [], "identifiers": {}, "ocil_clause": "Storage is not set to none or is commented out and the need for core dumps is not documented with the Information System Security Officer (ISSO) as an operational requirement for all domains that have the \"core\" item assigned", "ocil": "Verify Ubuntu 22.04 disables storing core dumps for all users by issuing the following command:\n\n$ grep -i storage /etc/systemd/coredump.conf /etc/systemd/coredump.conf.d/*.conf\n\nStorage=none", "oval_external_content": null, "fixtext": "Configure Ubuntu 22.04 to disable storing core dumps for all users.\n\nAdd or modify the following line in /etc/systemd/coredump.conf or a drop-in file under /etc/systemd/coredump.conf.d/:\n\nStorage=none", "checktext": "", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04 must disable storing core dumps.", "warnings": [{"general": "If the <tt>/etc/systemd/coredump.conf</tt> file or a drop-in file under <tt>/etc/systemd/coredump.conf.d/</tt>\ndoes not already contain the <tt>[Coredump]</tt> section,\nthe value will not be configured correctly."}], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must disable storing core dumps.", "vuldiscussion": "A core dump includes a memory image taken at the time the operating system terminates an application. The memory image could contain sensitive data and is generally useful only for developers or system operators trying to debug problems. Enabling core dumps on production systems is not recommended; however, there may be overriding operational requirements to enable advanced debugging. Permitting temporary enablement of core dumps during such situations must be reviewed through local needs and policy.", "checktext": "Verify Ubuntu 22.04 disables storing core dumps for all users by issuing the following command:\n\n$ grep -i storage /etc/systemd/coredump.conf\n\nStorage=none\n\nIf the \"Storage\" item is missing, commented out, or the value is anything other than \"none\" and the need for core dumps is not documented with the information system security officer (ISSO) as an operational requirement for all domains that have the \"core\" item assigned, this is a finding.", "fixtext": "Configure the operating system to disable storing core dumps for all users.\n\nAdd or modify the following line in /etc/systemd/coredump.conf:\n\nStorage=none"}}, "platform": "package[systemd]", "platforms": ["package[systemd]"], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": ["package_systemd"], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Disable storing core dump", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/permissions/restrictions/coredumps/coredump_disable_storage/rule.yml", "template": {"name": "systemd_dropin_configuration", "vars": {"master_cfg_file": "/etc/systemd/coredump.conf", "dropin_dir": "/etc/systemd/coredump.conf.d", "section": "Coredump", "param": "Storage", "application": "systemd-coredump", "value": "none", "no_quotes": "true", "missing_config_file_fail": "false"}, "backends": {}}}