SV-278408r1171976_rule
V-278408
SRG-APP-000870
NGNX-APP-003040
CAT II
10
Lock the password for the NGINX user (if not already locked):
sudo passwd -l nginx
Determine path to NGINX config file(s):
nginx -qT | grep "# configuration"
# configuration file /etc/nginx/nginx.conf:
Note: The default NGINX configuration is "/etc/nginx/nginx.conf", though various files may also be included.
Identify the NGINX runtime user:
grep -E '^\s*user\s+' /etc/nginx/nginx.conf
Expected output (example):
user nginx;
Confirm the password is locked:
passwd -S nginx
Expected output (example):
nginx LK 2025-05-21 -1 -1 -1 -1 (Password locked.)
If the NGINX runtime user account is not locked for password changes, this is a finding.
V-278408
False
NGNX-APP-003040
Determine path to NGINX config file(s):
nginx -qT | grep "# configuration"
# configuration file /etc/nginx/nginx.conf:
Note: The default NGINX configuration is "/etc/nginx/nginx.conf", though various files may also be included.
Identify the NGINX runtime user:
grep -E '^\s*user\s+' /etc/nginx/nginx.conf
Expected output (example):
user nginx;
Confirm the password is locked:
passwd -S nginx
Expected output (example):
nginx LK 2025-05-21 -1 -1 -1 -1 (Password locked.)
If the NGINX runtime user account is not locked for password changes, this is a finding.
M
5720