Skip to content

fix(azurelinux-release): deny network modules for CIS - #18560

Merged
Christopher Co (christopherco) merged 1 commit into
4.0from
lyrydber/cis-network-module-denylist
Aug 26, 2026
Merged

fix(azurelinux-release): deny network modules for CIS#18560
Christopher Co (christopherco) merged 1 commit into
4.0from
lyrydber/cis-network-module-denylist

Conversation

@corvus-callidus

@corvus-callidus Lynsey Rydberg (corvus-callidus) commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Add a customer-overridable modprobe policy that prevents loading the unused ATM, CAN, TIPC, and SCTP network protocol modules.

Validation

Built and installed on a clean AZL4 Marketplace VM. All four relevant CIS-CAT rules pass.

Addresses AB#22877, AB#22878, AB#22879, AB#22880

Copilot AI balanced review requested due to automatic review settings August 24, 2026 04:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds default CIS hardening to block unused ATM, CAN, TIPC, and SCTP kernel modules.

Changes:

  • Adds and packages a modprobe denylist.
  • Bumps azurelinux-release to release 27.
  • Refreshes generated output and component lock.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
base/comps/azurelinux-release/azurelinux-release.spec Packages the policy and bumps release.
base/comps/azurelinux-release/60-azurelinux-cis-module-denylist.conf Defines module restrictions.
specs/a/azurelinux-release/azurelinux-release.spec Rendered package specification.
specs/a/azurelinux-release/60-azurelinux-cis-module-denylist.conf Rendered policy file.
locks/azurelinux-release.lock Refreshes the component fingerprint.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread base/comps/azurelinux-release/azurelinux-release.spec Outdated
Comment thread specs/a/azurelinux-release/azurelinux-release.spec Outdated
Comment thread specs/a/azurelinux-release/azurelinux-release.spec Outdated
Comment thread base/comps/azurelinux-release/azurelinux-release.spec Outdated
Copilot AI review requested due to automatic review settings August 24, 2026 17:18
@corvus-callidus
Lynsey Rydberg (corvus-callidus) force-pushed the lyrydber/cis-network-module-denylist branch from 3dabdb2 to 97c3df6 Compare August 24, 2026 17:19
@corvus-callidus

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated no new comments.

@corvus-callidus
Lynsey Rydberg (corvus-callidus) force-pushed the lyrydber/cis-network-module-denylist branch from 97c3df6 to 1795a46 Compare August 25, 2026 18:28
@corvus-callidus

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

One question. Rest looks good.

@@ -0,0 +1,14 @@
# Deny unused network protocol modules by default. Administrators can override
# this policy in a later modprobe.d configuration file when a protocol is needed.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

question (blocking): Can a later modprobe.d configuration undo this denylist?

I think kmod uses the first matching install directive , and blacklist entries accumulate, so a later file cannot undo this policy. An administrator can override if they supply /etc/modprobe.d/60-azurelinux-cis-module-denylist.conf so that it shadows this file entirely.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Revised the comment to correct the override instructions.

Install an explicit modprobe policy for the unused ATM, CAN, TIPC, and SCTP network protocol modules.

The vendor policy prevents automatic loading by default while allowing administrators to override it with a same-named file in /etc/modprobe.d.
@corvus-callidus
Lynsey Rydberg (corvus-callidus) force-pushed the lyrydber/cis-network-module-denylist branch from 1795a46 to de43252 Compare August 26, 2026 16:59
Copilot AI review requested due to automatic review settings August 26, 2026 16:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated no new comments.

@corvus-callidus

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

@christopherco
Christopher Co (christopherco) merged commit 76f5100 into 4.0 Aug 26, 2026
11 checks passed
@christopherco
Christopher Co (christopherco) deleted the lyrydber/cis-network-module-denylist branch August 26, 2026 19:52
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.

3 participants