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

DEB822 format not supported in ssg-debian12 . #12509

Open
jwsapienza opened this issue Oct 17, 2024 · 1 comment
Open

DEB822 format not supported in ssg-debian12 . #12509

jwsapienza opened this issue Oct 17, 2024 · 1 comment
Labels
Debian Debian product related. Ubuntu Ubuntu product related.

Comments

@jwsapienza
Copy link

jwsapienza commented Oct 17, 2024

Description of problem:

The regex's for oval:ssg-apt_sources_list_official:def:1 do not support DEB822 format and therefore return a false positive.

 <ind:textfilecontent54_object id="oval:ssg-obj_apt_sources_list_base_official:obj:1" version="1">
          <ind:filepath operation="pattern match">^/etc/apt/sources(.d\/[a-zA-Z0-9]+){0,1}.list$</ind:filepath>
          <ind:pattern operation="pattern match">^deb[\s]+http://[a-z\.]+\.debian\.org/debian[/]?[\s]+bookworm[\s]+main</ind:pattern>
          <ind:instance datatype="int">1</ind:instance>
        </ind:textfilecontent54_object>
        <ind:textfilecontent54_object id="oval:ssg-obj_apt_sources_list_security_official:obj:1" version="1">
          <ind:filepath operation="pattern match">^/etc/apt/sources(.d\/[a-zA-Z0-9]+){0,1}.list$</ind:filepath>
          <ind:pattern operation="pattern match">^deb[\s]+http://security\.debian\.org/debian-security[/]?[\s]+bookworm-security[\s]+main</ind:pattern>
          <ind:instance datatype="int">1</ind:instance>
        </ind:textfilecontent54_object>

SCAP Security Guide Version:

1.7.4

Operating System Version:

Debian 12

Steps to Reproduce:

postgres@3741abc11273:/etc/apt/sources.list.d$ cat debian.sources
Types: deb
# http://snapshot.debian.org/archive/debian/20240812T000000Z
URIs: http://deb.debian.org/debian
Suites: bookworm bookworm-updates
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Types: deb
# http://snapshot.debian.org/archive/debian-security/20240812T000000Z
URIs: http://deb.debian.org/debian-security
Suites: bookworm-security
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Actual Results:

image

Expected Results:

Control should pass since the valid sources are present .

Additional Information/Debugging Steps:

https://wiki.debian.org/SourcesList

@dodys dodys added Debian Debian product related. Ubuntu Ubuntu product related. labels Oct 18, 2024
@dodys
Copy link
Contributor

dodys commented Oct 18, 2024

I'm adding Ubuntu to the labels as well as I imagine this impacts both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Debian Debian product related. Ubuntu Ubuntu product related.
Projects
None yet
Development

No branches or pull requests

2 participants