Skip to content
This repository was archived by the owner on Dec 14, 2024. It is now read-only.

feat(addon): Added DHCP CIM Compliance and extractions #282

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Splunk_TA_paloalto/default/eventtypes.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ search = sourcetype=pan_system OR sourcetype=pan:system AND log_subtype="url-fil
search = sourcetype=pan_system OR sourcetype=pan:system description="*config cleared*" AND NOT (log_subtype IN ("routing", "ras", "vpn"))
#tags = change

[pan_dhcp]
search = sourcetype=pan_system OR sourcetype=pan:system AND log_subtype="dhcp"
#tags = network session dhcp

[pan_threat]
search = sourcetype=pan_threat OR sourcetype=pan:threat OR (sourcetype=pan:firewall_cloud AND LogType="THREAT") AND log_subtype != "url" log_subtype != "file"
#tags = ids attack
Expand Down
3 changes: 2 additions & 1 deletion Splunk_TA_paloalto/default/props.conf
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ KV_MODE = none
TIME_PREFIX = ^(?:[^,]*,){6}
MAX_TIMESTAMP_LOOKAHEAD = 32

REPORT-search = extract_system, extract_globalprotect_user, extract_globalprotect_ip, extract_globalprotect_loginip, extract_globalprotect_clientversion, extract_globalprotect_message, extract_general_user, extract_system_alert_src, extract_system_auth
REPORT-search = extract_system, extract_globalprotect_user, extract_globalprotect_ip, extract_globalprotect_loginip, extract_globalprotect_clientversion, extract_globalprotect_message, extract_general_user, extract_system_alert_src, extract_system_auth, extract_pan_dhcp_ip, extract_pan_dhcp_dns, extract_pan_dhcp_mac

FIELDALIAS-virtual_system = vsys as virtual_system
# Field Aliases to map specific fields to the Splunk Common Information Model - Update
Expand All @@ -318,6 +318,7 @@ FIELDALIAS-signature = event_id as signature
FIELDALIAS-src_user = user as src_user
FIELDALIAS-reason = description as reason
FIELDALIAS-body = description as body
FIELDALIAS-dest_nt_host = dest_dns as dest_nt_host
LOOKUP-vendor_info_for_pan_config = pan_vendor_info_lookup sourcetype OUTPUT vendor,product,vendor_product
EVAL-action = case(match(description,"(?i)succeeded"),"success",match(description,"(?i)cleared"),"cleared",match(description,"(?i)GlobalProtect gateway agent message"),"success",match(description,"(?i)Failed"),"failure")
EVAL-app = "Palo Alto Networks Firewall"
Expand Down
5 changes: 5 additions & 0 deletions Splunk_TA_paloalto/default/tags.conf
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,8 @@ alert = enabled

[eventtype=pan_aperture_admin_audit]
authentication = enabled

[eventtype=pan_dhcp]
network = enabled
session = enabled
dhcp = enabled
10 changes: 10 additions & 0 deletions Splunk_TA_paloalto/default/transforms.conf
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,16 @@ REGEX = Client version: (?<agent_version>[^,]+)
SOURCE_KEY = description
REGEX = Message: (?<agent_message>[^,]+)

#### DHCP info extractions
[extract_pan_dhcp_ip]
REGEX = ip (?<dest_ip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})

[extract_pan_dhcp_dns]
REGEX = hostname (?<dest_dns>.+),

[extract_pan_dhcp_mac]
REGEX = mac (?<dest_mac>[a-fA-F0-9]{2}(:[a-fA-F0-9]{2}){5})

#### lookups

[endpoint_actions_lookup]
Expand Down