# [MED] Rego 102: Combining queries with AND/OR and custom messages

**Source:** Snyk
**Published:** 2023-11-09
**Article:** https://snyk.io/blog/rego-for-beginners-part-2/

## Threat Profile

Snyk Blog In this article
Written by Jasper Van der Jeugt 
Becki Lee 
November 9, 2023
0 mins read This blog post series offers a gentle introduction to Rego, the policy language from the creators of the Open Policy Agent (OPA) engine. If you’re a beginner and want to get started with writing Rego policy as code, you’re in the right place.
In this three-part series, we’ll go over the following:
Part 1: Rego for beginners: Introduction to Rego 
Part 2 (this part!): Intermediate Rego syntax
Part 3…

## Indicators of Compromise (high-fidelity only)

- _No high-fidelity IOCs in the RSS summary._ If the source publishes a technical write-up with defanged IOCs in the body, those would be picked up automatically on the next pipeline run.

## MITRE ATT&CK Techniques

- _Narrative-keyword inference returned no technique mappings; review article for ATT&CK relevance manually._

## Kill chain phases observed

_(none detected from narrative keywords)_

## Recommended hunts

_No actionable hunts can be derived from the RSS summary alone. The article may still warrant manual review — open the source link for actor attribution, IOCs in the body, and TTP detail._


## Why this matters

Severity classified as **MED** based on: 0 use case(s) fired, 0 technique(s) inferred. Read the full article for actor attribution, tooling details, and any defanged IOCs in the body that aren't visible in the RSS summary.
