Commit 727dff0b authored by qiuqunfeng's avatar qiuqunfeng
Browse files

Add severity level to WAF detection event in LogConsumerService

This update introduces a severity level of 6 to the generated WAF detection events, enhancing the event context for better categorization and analysis of detected attacks.
parent 491420bb
...@@ -206,6 +206,7 @@ func (s *LogConsumerService) genWafDetectionEvent(wafDetectionMessage model.WafD ...@@ -206,6 +206,7 @@ func (s *LogConsumerService) genWafDetectionEvent(wafDetectionMessage model.WafD
}, },
CreatedAt: attackedLog.AttackTime, CreatedAt: attackedLog.AttackTime,
UpdatedAt: attackedLog.AttackTime, UpdatedAt: attackedLog.AttackTime,
Severity: 6,
Timestamp: time.Now(), Timestamp: time.Now(),
Context: map[string]interface{}{ Context: map[string]interface{}{
"attack_ip": attackedLog.AttackIP, "attack_ip": attackedLog.AttackIP,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment