Guide to the Secure Configuration of Debian 8
with profile Profile for ANSSI DAT-NT28 Minimal LevelThis profile contains items to be applied systematically.
scap-security-guide
package which is developed at
https://www.open-scap.org/security-policies/scap-security-guide.
Providing system administrators with such guidance informs them how to securely configure systems under their control in a variety of network roles. Policy makers and baseline creators can use this catalog of settings, with its associated references to higher-level security control catalogs, in order to assist them in security baseline creation. This guide is a catalog, not a checklist, and satisfaction of every item is not likely to be possible or sensible in many operational scenarios. However, the XCCDF format enables granular selection and adjustment of settings, and their association with OVAL and OCIL content provides an automated checking capability. Transformations of this document, and its associated automated checking content, are capable of providing baselines that meet a diverse set of policy objectives. Some example XCCDF Profiles, which are selections of items that form checklists and can be used as baselines, are available with this guide. They can be processed, in an automated fashion, with tools that support the Security Content Automation Protocol (SCAP). The DISA STIG for Debian 8, which provides required settings for US Department of Defense systems, is one example of a baseline created from this guidance.
Profile Title | Profile for ANSSI DAT-NT28 Minimal Level |
---|---|
Profile ID | xccdf_org.ssgproject.content_profile_anssi_np_nt28_minimal |
Revision History
Current version: 0.1.31
- draft (as of 2017-04-20)
Platforms
- cpe:/o:debianproject:debian:8
Table of Contents
Checklist
contains 8 rules |
System SettingsgroupContains rules that check correct system settings. |
contains 4 rules |
File Permissions and MasksgroupTraditional Unix security relies heavily on file and
directory permissions to prevent unauthorized users from reading or
modifying files to which they should not have access.
$ mount -t xfs | awk '{print $3}'For any systems that use a different local filesystem type, modify this command as appropriate. |
contains 4 rules |
Verify Permissions on Important Files and DirectoriesgroupPermissions for many files on a system must be set restrictively to ensure sensitive information is properly protected. This section discusses important permission restrictions which can be verified to ensure that no harmful discrepancies have arisen. |
contains 4 rules |
Verify Permissions on Files with Local Account Information and CredentialsgroupThe default restrictive permissions for files which act as
important security databases such as |
contains 4 rules |
Verify Permissions and ownership on shadow Filerule
To properly set the permissions of $ sudo chmod 0640 /etc/shadowTo properly set the owner of /etc/shadow , run the command:
$ sudo chown root /etc/shadowTo properly set the group owner of /etc/shadow , run the command:
$ sudo chgrp shadow /etc/shadowRationale: The references: AC-6, http://iase.disa.mil/stigs/cci/Pages/index.aspx, Req-8.7.c, NT28(R36) Remediation script:
|
Verify Permissions and ownership on gshadow Filerule
To properly set the permissions of $ sudo chmod 0640 /etc/gshadowTo properly set the owner of /etc/gshadow , run the command:
$ sudo chown root /etc/gshadowTo properly set the group owner of /etc/gshadow , run the command:
$ sudo chgrp shadow /etc/gshadowRationale: The references: AC-6, http://iase.disa.mil/stigs/cci/Pages/index.aspx, NT28(R36) Remediation script:
|
Verify Permissions and ownership on passwd Filerule
To properly set the permissions of $ sudo chmod 0644 /etc/passwdTo properly set the owner of /etc/passwd , run the command:
$ sudo chown root /etc/passwdTo properly set the group owner of /etc/passwd , run the command:
$ sudo chgrp root /etc/passwdRationale: The references: AC-6, http://iase.disa.mil/stigs/cci/Pages/index.aspx Remediation script:
|
Verify Permissions and ownership on group Filerule
To properly set the permissions of $ sudo chmod 0644 /etc/passwdTo properly set the owner of /etc/passwd , run the command:
$ sudo chown root /etc/passwdTo properly set the group owner of /etc/passwd , run the command:
$ sudo chgrp root /etc/passwdRationale: The references: AC-6, http://iase.disa.mil/stigs/cci/Pages/index.aspx Remediation script:
|
Servicesgroup
The best protection against vulnerable software is running less software. This section describes how to review
the software which Debian 8 installs on a system and disable software which is not needed. It
then enumerates the software packages installed on a default Debian 8 system and provides guidance about which
ones can be safely disabled.
|
contains 4 rules |
Deprecated servicesgroupSome deprecated software services impact the overall system security due to their behavior (leak of confidentiality in network exchange, usage as uncontrolled communication channel, risk associated with the service due to its old age, etc. |
contains 4 rules |
Uninstall the telnet serverruleThe telnet daemon should be uninstalled. Rationale:telnet allows clear text communications, and does not protect any data transmission between client and server. Any confidential data can be listened and no integrity checking is made. identifiers: CCE- references: AC-17(8), CM-7, http://iase.disa.mil/stigs/cci/Pages/index.aspx, NT007(R03) Remediation script:
|
Uninstall the inet-based telnet serverruleThe inet-based telnet daemon should be uninstalled. Rationale:telnet allows clear text communications, and does not protect any data transmission between client and server. Any confidential data can be listened and no integrity checking is made. identifiers: CCE- references: AC-17(8), CM-7, http://iase.disa.mil/stigs/cci/Pages/index.aspx, NT007(R03) Remediation script:
|
Uninstall the ssl compliant telnet serverruleThe telnet daemon, even with ssl support, should be uninstalled. Rationale:telnet, even with ssl support, should not be installed. When remote shell is required, up-to-date ssh daemon can be used. identifiers: CCE- references: AC-17(8), CM-7, NT007(R02) Remediation script:
|
Uninstall the nis packageruleThe support for Yellowpages should not be installed unless it is required. Rationale:NIS is the historical SUN service for central account management, more and more replaced by LDAP. NIS does not support efficiently security constraints, ACL, etc. and should not be used. identifiers: CCE- Remediation script:
|