| name | cis-gcp-cos-6.2.2 |
| description | Ensure no legacy "+" entries exist in /etc/passwd |
| category | cis-gcp-cos |
| version | 1.2.0 |
| author | cyberstrike-official |
| tags | ["cis","gcp","container-optimized-os","user-accounts","legacy-entries"] |
| cis_id | 6.2.2 |
| cis_benchmark | CIS Google Container-Optimized OS Benchmark v1.2.0 |
| tech_stack | ["gcp","linux"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
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:
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