Skip to content

Commit e9be320

Browse files
committed
fix(config,yara): Resolve indentation mess-up and allow systray sender
The default configuration file has a wrong indentation in the Yara scanner section. Address it to comply with the JSON validation schema. Also, allow systray as an additional sender for YARA alerts.
1 parent dffe9b4 commit e9be320

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

configs/fibratus.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -578,27 +578,27 @@ yara:
578578
- string:
579579
namespace:
580580

581-
# Indicates which sender is used to transport the alert generated by scanner
582-
#alert-via: mail
581+
# Indicates which sender is used to transport the alert generated by scanner
582+
#alert-via: mail
583583

584-
# Specifies templates for the alert title and text in Go templating language (https://golang.org/pkg/text/template)
585-
#alert-template:
586-
# title:
587-
# text:
584+
# Specifies templates for the alert title and text in Go templating language (https://golang.org/pkg/text/template)
585+
#alert-template:
586+
# title:
587+
# text:
588588

589-
# Determines when multiple matches of the same string can be avoided when not necessary
590-
#fastscan: true
589+
# Determines when multiple matches of the same string can be avoided when not necessary
590+
#fastscan: true
591591

592-
# Specifies the timeout for the scanner. If the timeout is reached, the scan operation is cancelled
593-
#scan-timeout: 20s
592+
# Specifies the timeout for the scanner. If the timeout is reached, the scan operation is cancelled
593+
#scan-timeout: 20s
594594

595-
# Indicates whether file scanning is disabled. This affects the scan triggered by the image loading events.
596-
#skip-files: true
595+
# Indicates whether file scanning is disabled. This affects the scan triggered by the image loading events.
596+
#skip-files: true
597597

598-
# Contains the list of file names that shouldn't be scanned
599-
#excluded-files:
600-
# - kernel32.dll
598+
# Contains the list of file names that shouldn't be scanned
599+
#excluded-files:
600+
# - kernel32.dll
601601

602-
# Contains the list of the process' image names that shouldn't be scanned
603-
#excluded-procs:
604-
# - System
602+
# Contains the list of the process' image names that shouldn't be scanned
603+
#excluded-procs:
604+
# - System

pkg/config/schema_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ var schema = `
474474
"additionalProperties": false
475475
}]
476476
},
477-
"alert-via": {"type": "string", "enum": ["slack", "mail"]},
477+
"alert-via": {"type": "string", "enum": ["slack", "mail", "systray"]},
478478
"alert-template": {
479479
"type": "object",
480480
"properties": {

0 commit comments

Comments
 (0)