From 93e2c3a899ae3f7c3e79d365768ae6b640f6b842 Mon Sep 17 00:00:00 2001 From: Brad Crawford <34108612+furi0us333@users.noreply.github.com> Date: Fri, 5 Jul 2024 16:46:30 -0500 Subject: [PATCH] Create suspicious_url.rego --- suspicious_url.rego | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 suspicious_url.rego diff --git a/suspicious_url.rego b/suspicious_url.rego new file mode 100644 index 0000000..256cbf1 --- /dev/null +++ b/suspicious_url.rego @@ -0,0 +1,14 @@ +# METADATA +# title: Suspicious URL References +# description: | +# Returns a violation if the package references sites uncommon to legitimate software + +package policy.v1 + +import rego.v1 + +# Suspicious URL reference +deny contains issue if { + some issue in data.issues + issue.tag == "MM0028" +}