Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan of rule accounts_maximum_age_login_defs results in unknown #6056

Closed
matusmarhefka opened this issue Sep 8, 2020 · 1 comment · Fixed by #6099
Closed

Scan of rule accounts_maximum_age_login_defs results in unknown #6056

matusmarhefka opened this issue Sep 8, 2020 · 1 comment · Fixed by #6099
Assignees
Labels
productization-issue Issue found in upstream stabilization process. RHEL Red Hat Enterprise Linux product related.

Comments

@matusmarhefka
Copy link
Member

Description of problem:

When scanning RHEL7/RHEL8 systems using rule accounts_maximum_age_login_defs the scan result is unknown.

SCAP Security Guide Version:

master

Operating System Version:

RHEL7, RHEL8

@matusmarhefka matusmarhefka added RHEL Red Hat Enterprise Linux product related. productization-issue Issue found in upstream stabilization process. labels Sep 8, 2020
@matusmarhefka
Copy link
Member Author

# oscap xccdf eval --profile '(all)' --rule xccdf_org.ssgproject.content_rule_accounts_maximum_age_login_defs /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml 
WARNING: Datastream component 'scap_org.open-scap_cref_security-data-oval-com.redhat.rhsa-RHEL7.xml' points out to the remote 'https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL7.xml'. Use '--fetch-remote-resources' option to download it.
WARNING: Skipping 'https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL7.xml' file which is referenced from datastream
WARNING: Skipping ./security-data-oval-com.redhat.rhsa-RHEL7.xml file which is referenced from XCCDF content
Title   Set Password Maximum Age
Rule    xccdf_org.ssgproject.content_rule_accounts_maximum_age_login_defs
Ident   CCE-27051-2
E: probe_textfilecontent54: Function pcre_exec() failed to match a regular expression with return code -8 on string '#
# Please note that the parameters in this configuration file control the
# behavior of the tools from the shadow-utils component. None of these
# tools uses the PAM mechanism, and the utilities that use PAM (such as the
# passwd command) should therefore be configured elsewhere. Refer to
# /etc/pam.d/system-auth for more information.
#

# *REQUIRED*
#   Directory where mailboxes reside, _or_ name of file, relative to the
#   home directory.  If you _do_ define both, MAIL_DIR takes precedence.
#   QMAIL_DIR is for Qmail
#
#QMAIL_DIR	Maildir
MAIL_DIR	/var/spool/mail
#MAIL_FILE	.mail

# Password aging controls:
#
#	PASS_MAX_DAYS	Maximum number of days a password may be used.
#	PASS_MIN_DAYS	Minimum number of days allowed between password changes.
#	PASS_MIN_LEN	Minimum acceptable password length.
#	PASS_WARN_AGE	Number of days warning given before a password expires.
#
PASS_MAX_DAYS	99999
PASS_MIN_DAYS	0
PASS_MIN_LEN	5
PASS_WARN_AGE	7

#
# Min/max values for automatic uid selection in useradd
#
UID_MIN                  1000
UID_MAX                 60000
# System accounts
SYS_UID_MIN               201
SYS_UID_MAX               999

#
# Min/max values for automatic gid selection in groupadd
#
GID_MIN                  1000
GID_MAX                 60000
# System accounts
SYS_GID_MIN               201
SYS_GID_MAX               999

#
# If defined, this command is run when removing a user.
# It should remove any at/cron/print jobs etc. owned by
# the user to be removed (passed as the first argument).
#
#USERDEL_CMD	/usr/sbin/userdel_local

#
# If useradd should create home directories for users by default
# On RH systems, we do. This option is overridden with the -m flag on
# useradd command line.
#
CREATE_HOME	yes

# The permission mask is initialized to this value. If not specified, 
# the permission mask will be initialized to 022.
UMASK           077

# This enables userdel to remove user groups if no members exist.
#
USERGROUPS_ENAB yes

# Use SHA512 to encrypt password.
ENCRYPT_METHOD MD5

MD5_CRYPT_ENAB yes
'.
W: oscap:     Entity name 'value' from state (id: 'oval:ssg-state_last_pass_max_days_instance_value:ste:1') not found in item (id: '1237371').
Result  unknown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
productization-issue Issue found in upstream stabilization process. RHEL Red Hat Enterprise Linux product related.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants