-
Notifications
You must be signed in to change notification settings - Fork 745
rsyslog_remote_loghost: support Rainer Script in OVAL #13274
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
rsyslog_remote_loghost: support Rainer Script in OVAL #13274
Conversation
This datastream diff is auto generated by the check Click here to see the full diffNew content has different text for rule 'xccdf_org.ssgproject.content_rule_rsyslog_remote_loghost'.
--- xccdf_org.ssgproject.content_rule_rsyslog_remote_loghost
+++ xccdf_org.ssgproject.content_rule_rsyslog_remote_loghost
@@ -19,13 +19,22 @@
*.* @'xccdf_org.ssgproject.content_value_rsyslog_remote_loghost_address'
+Or in RainerScript:
+*.* action(type="omfwd" ... target="'xccdf_org.ssgproject.content_value_rsyslog_remote_loghost_address'" protocol="udp")
+
To use TCP for log message delivery:
*.* @@'xccdf_org.ssgproject.content_value_rsyslog_remote_loghost_address'
+Or in RainerScript:
+*.* action(type="omfwd" ... target="'xccdf_org.ssgproject.content_value_rsyslog_remote_loghost_address'" protocol="tcp")
+
To use RELP for log message delivery:
*.* :omrelp:'xccdf_org.ssgproject.content_value_rsyslog_remote_loghost_address'
+
+Or in RainerScript:
+*.* action(type="omfwd" ... target="'xccdf_org.ssgproject.content_value_rsyslog_remote_loghost_address'" protocol="relp")
There must be a resolvable DNS CNAME or Alias record set to "'xccdf_org.ssgproject.content_value_rsyslog_remote_loghost_address'" for logs to be sent correctly to the centralized logging utility.
@@ -44,6 +53,9 @@
$ActionQueueSaveOnShutdown on
$ActionResumeRetryCount -1
+Or if using Rainer Script syntax, it could be:
+*.* action(type="omfwd" queue.type="linkedlist" queue.filename="example_fwd" action.resumeRetryCount="-1" queue.saveOnShutdown="on" target="example.com" port="30514" protocol="tcp")
+
[reference]:
1
OVAL for rule 'xccdf_org.ssgproject.content_rule_rsyslog_remote_loghost' differs.
--- oval:ssg-rsyslog_remote_loghost:def:1
+++ oval:ssg-rsyslog_remote_loghost:def:1
@@ -1,3 +1,5 @@
criteria OR
criterion oval:ssg-test_remote_rsyslog_conf:tst:1
criterion oval:ssg-test_remote_rsyslog_d:tst:1
+criterion oval:ssg-test_remote_rsyslog_conf_rainer:tst:1
+criterion oval:ssg-test_remote_rsyslog_d_rainer:tst:1
OCIL for rule 'xccdf_org.ssgproject.content_rule_rsyslog_remote_loghost' differs.
--- ocil:ssg-rsyslog_remote_loghost_ocil:questionnaire:1
+++ ocil:ssg-rsyslog_remot
8000
e_loghost_ocil:questionnaire:1
@@ -2,9 +2,15 @@
/etc/rsyslog.conf.
If using UDP, a line similar to the following should be present:
*.* @
+or
+*.* action(type="omfwd" ... target="" protocol="udp")
If using TCP, a line similar to the following should be present:
*.* @@
+or
+*.* action(type="omfwd" ... target="" protocol="tcp")
If using RELP, a line similar to the following should be present:
*.* :omrelp:
+or
+*.* action(type="omfwd" ... target="" protocol="relp")
Is it the case that no evidence that the audit logs are being off-loaded to another system or media?
|
Code Climate has analyzed commit 79cd474 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 61.9% (0.0% change). View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TSs have run locally and pass:
jcerny@fedora:~/work/git/scap-security-guide (pr/13274)$ python3 tests/automatus.py rule --libvirt qemu:///system ssgts_rhel10 rsyslog_remote_loghost
Setting console output to log level INFO
INFO - The base image option has not been specified, choosing libvirt-based test environment.
INFO - Logging into /home/jcerny/work/git/scap-security-guide/logs/rule-custom-2025-04-02-1606/test_suite.log
INFO - xccdf_org.ssgproject.content_rule_rsyslog_remote_loghost
INFO - Script line_commented.fail.sh using profile (all) OK
INFO - Script line_not_there.fail.sh using profile (all) OK
INFO - Script remote_configured.pass.sh using profile (all) OK
INFO - Script remote_configured_rainer.pass.sh using profile (all) OK
jcerny@fedora:~/work/git/scap-security-guide (pr/13274)$ python3 tests/automatus.py rule --libvirt qemu:///system ssgts_rhel10 --remediate-using ansible rsyslog_remote_loghost
Setting console output to log level INFO
INFO - The base image option has not been specified, choosing libvirt-based test environment.
INFO - Logging into /home/jcerny/work/git/scap-security-guide/logs/rule-custom-2025-04-02-1607/test_suite.log
INFO - xccdf_org.ssgproject.content_rule_rsyslog_remote_loghost
INFO - Script line_commented.fail.sh using profile (all) OK
INFO - Script line_not_there.fail.sh using profile (all) OK
INFO - Script remote_configured.pass.sh using profile (all) OK
INFO - Script remote_configured_rainer.pass.sh using profile (all) OK
Description:
Rationale:
fixes: OPENSCAP-5467
Review Hints: