12 open-source Rego policies encoding IEC 62443 industrial automation and control systems security. Apache 2.0, Rego v1, ready to load into OPA or Enterprise OPA.
12 Rego policy files encoding IEC 62443 industrial automation and control systems security, 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/critical_infrastructure/iec_62443 -f pretty 'data'
Or load into a running OPA:
for f in rego_policy_libraries/frameworks/critical_infrastructure/iec_62443/*.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.
fr1_identification_authentication.rego iec_62443.fr1fr2_use_control.rego iec_62443.fr2fr3_system_integrity.rego iec_62443.fr3fr4_data_confidentiality.rego iec_62443.fr4fr5_restricted_data_flow.rego iec_62443.fr5fr6_timely_response.rego iec_62443.fr6fr7_resource_availability.rego iec_62443.fr7iec_62443_main.rego iec_62443_mainpart2_patch_management.rego iec_62443.part2_3part2_security_management.rego iec_62443.part2_1part2_service_provider.rego iec_62443.part2_4part3_risk_assessment.rego iec_62443.part3_2Test 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.