Palo Alto Networks Cortex XSOAR (Extended Security Orchestration, Automation and Response) is a security automation and incident response platform that enables organizations to integrate security products, automate repetitive security operations, and coordinate incident investigation and remediation through playbooks.
Cortex XSIAM (Extended Security Intelligence and Automation Management) is a cloud-native, AI-driven Security Operations Center (SOC) platform developed by Palo Alto Networks. It combines SIEM, XDR, SOAR, threat intelligence, security analytics, and automated incident response into a unified solution. XSIAM is designed to collect, correlate, and analyze large volumes of security data to detect sophisticated threats, automate investigations, and accelerate incident response—with Cortex XSOAR capabilities built directly into the platform.
Content
1. Issue description
2. Palo Alto NGFW DUG and DAG groups
1. Issue description
2. Palo Alto NGFW DUG and DAG groups
Palo Alto NGFW has a great feature called dynamic address groups (DAG) and dynamic user groups (DUG) that allows IP addresses or users to be tagged based on many criteria and this tag can expire after time.
Strata Cloud Manager (SCM) that is the SaaS based cloud service for managing Prisma Access, Prisma AIRS (AI security protection from things like prompt injections and other AI attacks) and Palo Alto NGFW from a central portal that can replace or work together with Panorama with a plugin and it can also be a hub that redistributes the tags to all other NGFW, by using the Cloud Identity Engine (CIA)
Configure a Redistribution Profile in Strata Cloud Manager
The DUG/DAG feature on it's own can block users/source IP addresses if someone does the same violation and combined with a combination signature that as the time element, it can do it if a user does the same violation couple of times in a minute but still if we want a user/source ip to blocked no matter the violations type just if they do for example 5 violations in minute then we need to feed this tag through REST-API on the firewall from an external system like XSOAR or XSIAM as it is shown in the next points.
3. Cortex XSOAR resolution
After that the built-in playbooks for DUG and DAG can use the NGFW API to tag the source IP and users and then the security policy rules will block - a workflow we will explore in more detail under the XSIAM section in Step 4.
Create the scheduled Job
In XSOAR:
-
-
-
Choose a time-triggered job.
-
Select NGFW - Repeated Violation Detection.
-
You will also need a custom Python automation script to process the logs before triggering the built-in DUG and DAG playbooks—which you can easily generate using an AI tool like ChatGPT.
logs = json.loads(demisto.args()["logs"])
now = datetime.now(timezone.utc)
start = now - timedelta(seconds=60)
counts = defaultdict(int)
for log in logs:
ip = log.get("SourceAddress")
timestamp = log.get("TimeGenerated")
if not ip or not timestamp:
continue
dt = datetime.fromisoformat(
timestamp.replace("Z", "+00:00")
)
if dt.tzinfo is None:
dt = dt.replace(tzinfo=timezone.utc)
if start <= dt <= now:
counts[ip] += 1
# Identify IPs with more than 5 violations
offenders = [
{"ip": ip, "count": count}
for ip, count in counts.items()
if count > 5
]
# Return results to the XSOAR playbook
demisto.results({
"Type": 1,
"ContentsFormat": "json",
"Contents": offenders,
"EntryContext": {
"NGFW.Offenders": offenders
}
})
XSOAR will need to pull the logs maybe every minute and this is not optimal at all so this is where XSIAM comes into the picture.
4. Cortex XSIAM resolution
Cortex XSIAM has the same playbooks as Cortex XSOAR plus it is a full SIEM with AI integrations. The Palo Alto NGFW or Panorama can directly send the logs to XSIAM that will then process the logs using a Correlation Rule that uses the XQL language to build the query that will filter the logs, XSIAM has the same options then to add the tags to the users or source IP and send it to Panorama or the NGFW.
XQL (Cortex Query Language) is a query language developed by Palo Alto Networks for searching, filtering, aggregating, correlating, and analyzing security data within Cortex XSIAM and Cortex XDR. XQL enables security analysts and engineers to investigate threats, identify suspicious behavior, analyze logs, and build custom security detections.
- Palo Alto XSIAM automation window under "Investigation and Response".
- How to integrate XSIAM and Palo Alto NGFW.
- "PAN-OS DAG Configuration" built-in playbook
- "NetSec - Palo Alto Networks DUG - Tag User" built-in playbook
- "PAN-OS - Block IP" built-in playbook.
- "Cortex Assistant" built-in AI tool.
5. XSIAM EDL Cloud Service
External Dynamic Lists (EDLs) are also a great alternative to what I’ve shown above. XSIAM can generate an EDL that firewalls, Panorama, and Prisma Access can directly ingest. (XSOAR used to offer this feature as well, though it is no longer supported.)
Summary
Cortex products add tremendous flexibility when integrated with Panorama, Prisma Access, and Palo Alto Networks NGFWs—unlocking advanced cross-correlation and automated enforcement that aren't possible on the NGFW or Prisma Access alone. Furthermore, Cortex XSIAM natively incorporates Cortex XDR (our endpoint protection, detection, and response agent—which I covered in LIVEcommunity - XDR Isolation Exceptions and Exclusions Use Case - LIVEcommunity - 515583).
This allows you to automatically isolate offending users or source IPs directly on the NGFW or Prisma Access based on endpoint telemetry sent by the XDR agent to XSIAM—ensuring that even if a threat or user bypasses local endpoint controls, they immediately hit a wall at the network perimeter.