-
Notifications
You must be signed in to change notification settings - Fork 710
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
Rule configure_bashrc_tmux is misaligned with DISA #9309
Comments
If I'm not mistaken there was an issue on DISA's SCAP content:
--git a/shared/references/disa-stig-rhel8-v1r5-xccdf-scap.xml b/shared/references/disa-stig-rhel8-v1r5-xccdf-scap.xml
index 1bd2fb7b65..98824cca23 100644
--- a/shared/references/disa-stig-rhel8-v1r5-xccdf-scap.xml
+++ b/shared/references/disa-stig-rhel8-v1r5-xccdf-scap.xml
@@ -15843,7 +15843,7 @@ The sysctl --system command will load settings from all system configuration fil
<textfilecontent54_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:mil.disa.stig.rhel8:obj:19400" version="7">
<path>/etc/profile.d</path>
<filename operation="pattern match">\.sh$</filename>
- <pattern operation="pattern match">^\s*if\s+\[\s*"\$PS1"\s*\];\s+then\s+parent=\$\(ps\s+-o\s+ppid=\s+-p\s+\$\$\)\s+name=\$\(ps\s+-o\s+comm=\s+-p\s+\$parent\)\s+case\s+"\$name"\s+in\s+\(sshd\|login\)\s+exec\s+tmux\s+;;\s+esac\s+fi\s*$</pattern>
+ <pattern operation="pattern match">^\s*if\s+\[\s*"\$PS1"\s*\];\s+then\s+parent=\$\(ps\s+-o\s+ppid=\s+-p\s+\$\$\)\s+name=\$\(ps\s+-o\s+comm=\s+-p\s+\$parent\)\s+case\s+"\$name"\s+in\s+sshd\|login\)\s+exec\s+tmux\s+;;\s+esac\s+fi\s*$</pattern>
<instance datatype="int" operation="greater than or equal">1</instance>
</textfilecontent54_object>
<process58_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:mil.disa.stig.rhel8:obj:19401" version="2"> RHEL-08-020041 (SV-230349r810020_rule) We have sent them a request to fix this. |
This issue can't be fixed on our side, DISA needs to update their content. |
A patch for this was already sent their way a few months ago... |
As of |
As part of the V1R9 STIG update, RHEL-08-020041 now uses |
Description of problem:
Rule xccdf_org.ssgproject.content_rule_configure_bashrc_exec_tmux is misaligned with rule xccdf_mil.disa.stig_rule_SV-230349r833388_rule from the DISA content in disa-stig-rhel8-v1r6-xccdf-scap.xml.
SCAP Security Guide Version:
current upstream as of 2022-08-06 as of HEAD 61b8f59
Operating System Version:
RHEL 8
Steps to Reproduce:
Actual Results:
xccdf_org.ssgproject.content_rule_configure_bashrc_exec_tmux: pass
xccdf_mil.disa.stig_rule_SV-230349r833388_rule: fail
Expected Results:
both rules are same
Additional Information/Debugging Steps:
This problem occurs also with the "STIG with GUI" profile.
Update:
As of RHEL8 STIG V1R9 (automated content V1R8), we moved from
configure_bashrc_exec_tmux
toconfigure_bashrc_tmux
which stopped invokingtmux
witnexec
.But the same typo misalignment on
(sshd|login)
still persists.The text was updated successfully, but these errors were encountered: