Skip to content

Commit 5a15552

Browse files
authored
Merge pull request #163 from UncoderIO/gis-case-insensitive-sigma-mapping
Gis case insensitive sigma mapping
2 parents 8b77550 + 6f1173b commit 5a15552

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

uncoder-core/app/translator/mappings/platforms/palo_alto_cortex/dns.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ field_mapping:
1111
dns_query_name: xdm.network.dns.dns_question.name
1212
QueryName: xdm.network.dns.dns_question.name
1313
query: xdm.network.dns.dns_question.name
14-
dns-record-type: xdm.network.dns.dns_question.type
14+
dns-record-type: xdm.network.dns.dns_question.type

uncoder-core/app/translator/mappings/platforms/qradar/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ field_mapping:
7575
EventSeverity: EventSeverity
7676
Source:
7777
- Source
78-
- source
78+
- source

uncoder-core/app/translator/platforms/sigma/mapping.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ def __init__(
1919
def is_suitable(
2020
self, service: Optional[list[str]], product: Optional[list[str]], category: Optional[list[str]]
2121
) -> bool:
22-
product_match = set(product or []).issubset(self.products) if product else False
23-
category_match = set(category or []).issubset(self.categories) if category else False
24-
service_match = set(service or []).issubset(self.services) if service else False
22+
product_match = set(product_.lower() for product_ in product or []).issubset(self.products) if product else False
23+
category_match = set(category_.lower() for category_ in category or []).issubset(self.categories) if category else False
24+
service_match = set(service_.lower() for service_ in service or [] or []).issubset(self.services) if service else False
2525
if not product and not service:
2626
return category_match
2727
return product_match and service_match or product_match and category_match

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy