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

V1r2 #37

Merged
merged 60 commits into from
May 21, 2024
Merged

V1r2 #37

merged 60 commits into from
May 21, 2024

Conversation

wdower
Copy link
Contributor

@wdower wdower commented Apr 4, 2024

Initializing profile repo at v1r2.

Signed-off-by: wdower <will@dower.dev>
Signed-off-by: wdower <will@dower.dev>
…ta not run yet)

Signed-off-by: wdower <will@dower.dev>
Signed-off-by: wdower <will@dower.dev>
@wdower wdower self-assigned this Apr 4, 2024
Signed-off-by: wdower <will@dower.dev>
Signed-off-by: wdower <will@dower.dev>
wdower and others added 19 commits April 10, 2024 22:41
Signed-off-by: wdower <will@dower.dev>
Signed-off-by: wdower <will@dower.dev>
Signed-off-by: wdower <will@dower.dev>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <will@dower.dev>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
… use (can add keys to the hash for other file mode checks later

Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
…Y have the 'is_router' caveat if that caveat is explicitly described in the check text

Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: Aaron Lippold <lippold@gmail.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
@wdower wdower requested a review from Amndeep7 May 6, 2024 17:15
.github/workflows/lint-profile.yml Show resolved Hide resolved
.github/workflows/verify-container.yml Outdated Show resolved Hide resolved
.github/workflows/verify-container.yml Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
controls/SV-257800.rb Show resolved Hide resolved
controls/SV-257800.rb Outdated Show resolved Hide resolved
controls/SV-257803.rb Outdated Show resolved Hide resolved
controls/SV-257803.rb Show resolved Hide resolved
controls/SV-257809.rb Outdated Show resolved Hide resolved
controls/SV-257811.rb Outdated Show resolved Hide resolved
controls/SV-257811.rb Outdated Show resolved Hide resolved
.github/workflows/verify-container.yml Show resolved Hide resolved
controls/SV-257814.rb Show resolved Hide resolved
controls/SV-257816.rb Outdated Show resolved Hide resolved
controls/SV-257817.rb Outdated Show resolved Hide resolved
controls/SV-257817.rb Outdated Show resolved Hide resolved
controls/SV-257818.rb Outdated Show resolved Hide resolved
controls/SV-257843.rb Outdated Show resolved Hide resolved
controls/SV-257844.rb Show resolved Hide resolved
controls/SV-257847.rb Show resolved Hide resolved
controls/SV-257848.rb Outdated Show resolved Hide resolved
controls/SV-257850.rb Show resolved Hide resolved
wdower added 7 commits May 7, 2024 19:00
…, bumped upload-artifact version, removed unneeded pipeline step

Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
… in 257937

Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
… name conflicts

Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
controls/SV-257867.rb Show resolved Hide resolved
controls/SV-257867.rb Show resolved Hide resolved
controls/SV-257869.rb Outdated Show resolved Hide resolved
controls/SV-257869.rb Show resolved Hide resolved
controls/SV-257879.rb Outdated Show resolved Hide resolved
controls/SV-257882.rb Show resolved Hide resolved
controls/SV-257887.rb Outdated Show resolved Hide resolved
inspec.yml Outdated Show resolved Hide resolved
inspec.yml Show resolved Hide resolved
controls/SV-257889.rb Show resolved Hide resolved
wdower and others added 3 commits May 15, 2024 15:12
…h, adding some caveat inputs for network settings that need to be enabled

Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Co-authored-by: Amndeep Singh Mann <me@asm.works>
}

parameter = 'kernel.core_pattern'
value = 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
value = 1
value = "|/bin/false"

controls/SV-257843.rb Outdated Show resolved Hide resolved
controls/SV-257843.rb Outdated Show resolved Hide resolved
!virtualization.system.eql?('docker')
}

exempt_home_users = input('exempt_home_users')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input naming is inconsistent - sometimes 'exempt' vs 'exemptions' and having that keyword at the beginning or end of the name (beginning here, others have it at the end)

controls/SV-257890.rb Outdated Show resolved Hide resolved
@@ -23,4 +23,14 @@
tag 'documentable'
tag cci: ['CCI-000366']
tag nist: ['CM-6 b']
tag 'host', 'container'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tag 'host', 'container'
tag 'host'
tag 'container'

@@ -23,4 +23,14 @@
tag 'documentable'
tag cci: ['CCI-000366']
tag nist: ['CM-6 b']
tag 'host', 'container'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tag 'host', 'container'
tag 'host'
tag 'container'

@@ -23,4 +23,14 @@
tag 'documentable'
tag cci: ['CCI-000366']
tag nist: ['CM-6 b']
tag 'host', 'container'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tag 'host', 'container'
tag 'host'
tag 'container'

@@ -23,4 +23,14 @@
tag 'documentable'
tag cci: ['CCI-000366']
tag nist: ['CM-6 b']
tag 'host', 'container'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tag 'host', 'container'
tag 'host'
tag 'container'

@@ -23,4 +23,10 @@
tag 'documentable'
tag cci: ['CCI-000366']
tag nist: ['CM-6 b']
tag 'host', 'container'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tag 'host', 'container'
tag 'host'
tag 'container'

@@ -23,4 +23,10 @@
tag 'documentable'
tag cci: ['CCI-000366']
tag nist: ['CM-6 b']
tag 'host', 'container'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tag 'host', 'container'
tag 'host'
tag 'container'


describe file('/etc/group') do
it { should exist }
its('group') { should cmp 'root' }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we use the grouped_into function here?

this comment applies to all the controls that are having us (as opposed to presumably the resource) directly do string comparison to check the group

Suggested change
its('group') { should cmp 'root' }
it { should be_grouped_into 'root' }

@@ -23,4 +23,10 @@
tag 'documentable'
tag cci: ['CCI-000366']
tag nist: ['CM-6 b']
tag 'host', 'container'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tag 'host', 'container'
tag 'host'
tag 'container'

@@ -23,4 +23,10 @@
tag 'documentable'
tag cci: ['CCI-000366']
tag nist: ['CM-6 b']
tag 'host', 'container'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tag 'host', 'container'
tag 'host'
tag 'container'

@@ -23,4 +23,10 @@
tag 'documentable'
tag cci: ['CCI-000366']
tag nist: ['CM-6 b']
tag 'host', 'container'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tag 'host', 'container'
tag 'host'
tag 'container'


audit_tools = ['/sbin/auditctl', '/sbin/aureport', '/sbin/ausearch', '/sbin/autrace', '/sbin/auditd', '/sbin/rsyslogd', '/sbin/augenrules']

failing_tools = audit_tools.reject { |at| file(at).owned_by?('root') }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh, I think I like reject better than the filter NOTs that have been happening elsewhere. maybe this could be added as another todo item on the consistency fixes issue?


audit_tools = ['/sbin/auditctl', '/sbin/aureport', '/sbin/ausearch', '/sbin/autrace', '/sbin/auditd', '/sbin/rsyslogd', '/sbin/augenrules']

failing_tools = audit_tools.reject { |at| file(at).group == 'root' }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably still be using the grouped_into func instead of doing a straight string comparison

Suggested change
failing_tools = audit_tools.reject { |at| file(at).group == 'root' }
failing_tools = audit_tools.reject { |at| file(at).grouped_into? 'root' }

@@ -29,4 +29,15 @@
tag 'documentable'
tag cci: ['CCI-000366']
tag nist: ['CM-6 b']
tag 'host', 'container'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tag 'host', 'container'
tag 'host'
tag 'container'

controls/SV-257926.rb Show resolved Hide resolved
controls/SV-257928.rb Show resolved Hide resolved
wdower and others added 11 commits May 17, 2024 15:25
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Co-authored-by: Amndeep Singh Mann <me@asm.works>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
…imdall for an easier time hooking it up with kitchen

Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
…7949

Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
Signed-off-by: wdower <57142072+wdower@users.noreply.github.com>
@wdower wdower merged commit b3e65d8 into main May 21, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants