← Lab /Software

Compliance rule coverage varies across Linux vendors and only modestly aligns with CRA requirements

Compliance-as-code rules show uneven vendor coverage and limited agreement when mapped to Cyber Resilience Act requirements

Software arXiv 2 Mar 2026 Measurement Prototype evidence

Published as “Compliance as Code: A Study of Linux Distributions and Beyond”

Why it matters

The study shows that compliance-as-code can provide broad coverage for emerging regulations like the CRA, but practical adoption will need clearer guidance to resolve mapping ambiguities.

Summary

ComplianceAsCode covers 1,504 unique rules derived from 102 guides across 14 releases of five Linux distributions, with Red Hat Enterprise Linux 10 containing about 66% of the rules. Statistical analysis shows significant differences in rule and guide coverage among the distributions, and code snippets are moderately similar (mean cosine similarity 0.53) while rationales are not. Mapping the rules to the EU Cyber Resilience Act’s essential requirements yields only slight inter-rater agreement (Fleiss’ kappa 0.18, Cohen’s kappa 0.15-0.37), indicating interpretation challenges despite broad coverage.

What they found 2

  1. The dataset comprises 102 unique guides and 1,504 unique rules.

    “In total, the dataset contains 102 unique guides that contain 1, 504 unique rules.”

  2. Statistical differences exist between the five Linux distributions in rule and guide coverage.

    “There are statistical differences between the five Linux distributions and their release histories with respect to the coverage of the compliance rules and guides.”

Caveats 5

  • Low inter-rater agreement (kappa 0.18-0.37) undercuts the claim of clear mapping of rules to CRA requirements.
  • Code snippet similarity is only moderate (mean 0.53) and rationale similarity is near zero, suggesting limited reuse of rule logic.
  • The mapping experiment may have been poorly designed, with authors possibly interpreting instructions differently.
  • Generalizability is limited because the study is a single case study of one project.
  • Some controls lack version information or have dead links, affecting completeness.

What’s new here 4

  • First quantitative case study of the ComplianceAsCode project across multiple Linux distributions.
  • Statistical comparison of rule and guide coverage using Kruskal-Wallis tests.
  • Similarity analysis of code snippets versus natural-language rationales with cosine similarity.
  • Empirical mapping of 1,504 concrete compliance rules to the CRA’s essential requirements with inter-rater reliability assessment.