33 open-source Rego policies encoding NIST 800-53, 800-171, CSF and RMF. Apache 2.0, Rego v1, ready to load into OPA or Enterprise OPA.
33 Rego policy files encoding NIST 800-53, 800-171, CSF and RMF, part of the Rego Policy Libraries — a standalone, dependency-free collection of Open Policy Agent policies for published security and compliance standards. No orchestrator, no agent, no vendor runtime.
git clone https://github.com/ynotbhatc/rego_policy_libraries.git
opa eval -d rego_policy_libraries/frameworks/federal/nist -f pretty 'data'
Or load into a running OPA:
for f in rego_policy_libraries/frameworks/federal/nist/*.rego; do
curl -X PUT --data-binary @"$f" "$OPA/v1/policies/$(basename $f .rego)"
done
Gating a change of state — evaluate a proposed action before it proceeds, and refuse it if it violates the standard. Measuring state — evaluate collected facts about an environment against the standard to produce compliance evidence. The same policy content serves both; only the integration differs.
nist_ai_rmf.rego nist.ai_rmfnist_ai_rmf_main.rego nist.ai_rmf.maindetect.rego nist.csf.detectgovernance.rego nist.csf.governidentify.rego nist.csf.identifynist_csf_main.rego nist.csf.mainaccess_control.rego nist.csf.protectrecover.rego nist.csf.recoverrespond.rego nist.csf.respondsystem_categorization.rego nist.rmf.categorizecui_access_control.rego nist.sp800_171.access_controlnist_800_171_au.rego nist.sp800_171.audit_accountabilitynist_800_171_at.rego nist.sp800_171.awareness_trainingnist_800_171_cm.rego nist.sp800_171.configuration_managementnist_800_171_ia.rego nist.sp800_171.identification_authenticationnist_800_171_ir.rego nist.sp800_171.incident_responsenist_800_171_ma.rego nist.sp800_171.maintenancenist_800_171_mp.rego nist.sp800_171.media_protectionnist_800_171_main.rego nist_800_171.mainnist_800_171_ps.rego nist.sp800_171.personnel_securitynist_800_171_pe.rego nist.sp800_171.physical_protectionnist_800_171_ra.rego nist.sp800_171.risk_assessmentnist_800_171_ca.rego nist.sp800_171.security_assessmentnist_800_171_sc.rego nist.sp800_171.system_communicationsnist_800_171_si.rego nist.sp800_171.system_informationac_controls.rego nist.sp800_53.access_controlau_controls.rego nist.sp800_53.audit_accountabilitycm_controls.rego nist.sp800_53.configuration_managementia_controls.rego nist.sp800_53.identification_authenticationir_controls.rego nist.sp800_53.incident_responsenist_800_53_main.rego nist.sp800_53.mainsc_controls.rego nist.sp800_53.system_communicationssi_controls.rego nist.sp800_53.system_information_integrityTest coverage is published in
COVERAGE.md, and uncovered policies are the best
first contribution — each is small, self-contained, and either passes
opa test or does not. See
CONTRIBUTING.md.