Cis GCP Cos 6.2.2

Ensure no legacy "+" entries exist in /etc/passwd

cyberstrikeus Updated

File contents

6.2.2 Ensure no legacy "+" entries exist in /etc/passwd (Automated)

Description

The character + in various files used to be markers for systems to insert data from NIS maps at a certain point in a system configuration file. These entries are no longer required on most systems, but may exist in files that have been imported from other platforms.

Rationale

These entries may provide an avenue for attackers to gain privileged access on the system.

Audit Procedure

Run the following command and verify that no output is returned:

# grep '^\+:' /etc/passwd

Expected Result

No output should be returned.

Remediation

Remove any legacy '+' entries from /etc/passwd if they exist.

CIS Controls

Controls Version Control IG 1 IG 2 IG 3
v8 5.6 Centralize Account Management x x
v7 16.2 Configure Centralized Point of Authentication x x

Profile

  • Level 1 - Server

cyberstrikeus/cyberstrike/tree/main/.cyberstrike/skill/CIS_benchmarks/Cloud_Providers/Google_Cloud_Platform/cis-google-container-optimized-os/cis-gcp-cos-6.2.2 commit 24099189cf

Frequently asked questions

npx skillmds@latest add cyberstrikeus/cis-gcp-cos-6-2-2