Cis Ubuntu1204 V110 10 5

Lock Inactive User Accounts

cyberstrikeus Updated 3.6k repo stars
CyberStrike — Agentic AI Penetration Testing Framework

File contents

10.5 Lock Inactive User Accounts (Scored)

Profile Applicability

  • Level 1

Description

User accounts that have been inactive for over a given period of time can be automatically disabled. It is recommended that accounts that are inactive for 35 or more days be disabled.

Rationale

Inactive accounts pose a threat to system security since the users are not logging in to notice failed login attempts or other anomalies.

Audit Procedure

Using Command Line

useradd -D | grep INACTIVE

Expected Result

INACTIVE=35

Remediation

Using Command Line

useradd -D -f 35

Default Value

INACTIVE=-1 (disabled)

References

  • CIS Ubuntu 12.04 LTS Server Benchmark v1.1.0

Profile

Level 1 - Scored

cyberstrikeus/cyberstrike commit d6eee6bf05

Frequently asked questions

npx get-skill add cyberstrikeus/cis-ubuntu1204-v110-10-5