Skip to content

Commit e7725e2

Browse files
committed
fix[baclend]: solve sintax problems in rules
1 parent c196ac7 commit e7725e2

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

backend/src/main/java/com/park/utmstack/service/DefinitionSyncService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ private Set<Long> syncFilters() {
9393
Optional<UtmDataTypes> dataTypeEntity = dataTypesRepository.findOneByDataType(dataTypeStr.toLowerCase());
9494

9595
String moduleName = null;
96-
if (dataTypeEntity.isPresent() && dataTypeEntity.get().getModule() != null) {
96+
if ("generic".equalsIgnoreCase(dataTypeStr)) {
97+
moduleName = "GENERIC";
98+
} else if (dataTypeEntity.isPresent() && dataTypeEntity.get().getModule() != null) {
9799
moduleName = dataTypeEntity.get().getModule().getModuleName().toString();
98100
}
99101

rules/crowdstrike/multiple_authentication_failures_(possible_brute_force_attack).yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ where: >
1515
equals("log.metadataEventType", "AuthActivityAuditEvent") &&
1616
equals("log.eventSuccess", false) &&
1717
exists("origin.ip")
18-
correlation:
19-
- indexPattern: v11-log-crowdstrike
18+
afterEvents:
19+
- indexPattern: v11-log-crowdstrike-*
2020
within: now-15m
2121
count: 5
2222
with:

rules/netflow/netflow_icmp_tunnel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
dataTypes:
44
- netflow
5-
name: ICMP Tunneling Detection
5+
name: ICMP Tunneling Detection via NetFlow
66
impact:
77
confidentiality: 3
88
integrity: 2

rules/nids/suricata/icmp_tunneling_detection.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
dataTypes:
44
- suricata
5-
name: ICMP Tunneling Detection
5+
name: ICMP Tunneling Detection via Suricata
66
impact:
77
confidentiality: 3
88
integrity: 2

0 commit comments

Comments
 (0)