You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: agent/config/canary.go
+10-10
Original file line number
Diff line number
Diff line change
@@ -6,19 +6,19 @@ import (
6
6
7
7
// Canary configuration
8
8
typeCanarystruct {
9
-
HideFilesbool`toml:"hide-files" comment:"Flag to set to hide files"`
10
-
HideDirectoriesbool`toml:"hide-dirs" comment:"Flag to set to hide directories"`
11
-
SetAuditACLbool`toml:"set-audit-acl" comment:"Set Audit ACL to the canary directories, sub-directories and files to generate File System audit events\n https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-file-system"`
12
-
Directories []string`toml:"directories" comment:"Directories where canary files will be created"`
13
-
Files []string`toml:"files" comment:"Canary files to monitor. Files will be created if not existing"`
14
-
Deletebool`toml:"delete" comment:"Whether to delete or not the canary files when service stops"`
9
+
HideFilesbool`json:"hide-files" toml:"hide-files" comment:"Flag to set to hide files"`
10
+
HideDirectoriesbool`json:"hide-dirs" toml:"hide-dirs" comment:"Flag to set to hide directories"`
11
+
SetAuditACLbool`json:"set-audit-acl" toml:"set-audit-acl" comment:"Set Audit ACL to the canary directories, sub-directories and files to generate File System audit events\n https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-file-system"`
12
+
Directories []string`json:"directories" toml:"directories" comment:"Directories where canary files will be created"`
13
+
Files []string`json:"files" toml:"files" comment:"Canary files to monitor. Files will be created if not existing"`
14
+
Deletebool`json:"delete" toml:"delete" comment:"Whether to delete or not the canary files when service stops"`
Copy file name to clipboardExpand all lines: agent/config/config.go
+35-36
Original file line number
Diff line number
Diff line change
@@ -27,33 +27,33 @@ var (
27
27
)
28
28
29
29
typeActionsstruct {
30
-
AvailableActions []string`toml:"available-actions" commented:"true" comment:"List of available actions (here as a memo for easier configuration, but it is not used in any way by the engine)"`
31
-
Low []string`toml:"low" comment:"Default actions to be taken when event criticality is in [1; 4]"`
32
-
Medium []string`toml:"medium" comment:"Default actions to be taken when event criticality is in [5; 7]"`
33
-
High []string`toml:"high" comment:"Default actions to be taken when event criticality is in [8; 9]"`
34
-
Critical []string`toml:"critical" comment:"Default actions to be taken when event criticality is 10"`
30
+
AvailableActions []string`json:"available-actions" toml:"available-actions" commented:"true" comment:"List of available actions (here as a memo for easier configuration, but it is not used in any way by the engine)"`
31
+
Low []string`json:"low" toml:"low" comment:"Default actions to be taken when event criticality is in [1; 4]"`
32
+
Medium []string`json:"medium" toml:"medium" comment:"Default actions to be taken when event criticality is in [5; 7]"`
33
+
High []string`json:"high" toml:"high" comment:"Default actions to be taken when event criticality is in [8; 9]"`
34
+
Critical []string`json:"critical" toml:"critical" comment:"Default actions to be taken when event criticality is 10"`
35
35
}
36
36
37
37
// Dump structure definition
38
38
typeDumpstruct {
39
-
Dirstring`toml:"dir" comment:"Directory used to store dumps"`
40
-
MaxDumpsint`toml:"max-dumps" comment:"Maximum number of dumps per process"`// maximum number of dump per GUID
DumpUntrackedbool`toml:"dump-untracked" comment:"Dumps untracked process. Untracked processes are missing\n enrichment information and may generate unwanted dumps"`// whether or not we should dump untracked processes, if true it would create many FPs
39
+
Dirstring`json:"dir" toml:"dir" comment:"Directory used to store dumps"`
40
+
MaxDumpsint`json:"max-dumps" toml:"max-dumps" comment:"Maximum number of dumps per process"`// maximum number of dump per GUID
DumpUntrackedbool`json:"dump-untracked" toml:"dump-untracked" comment:"Dumps untracked process. Untracked processes are missing\n enrichment information and may generate unwanted dumps"`// whether or not we should dump untracked processes, if true it would create many FPs
43
43
}
44
44
45
45
// Sysmon holds Sysmon related configuration
46
46
typeSysmonstruct {
47
-
Binstring`toml:"bin" comment:"Path to Sysmon binary"`
48
-
ArchiveDirectorystring`toml:"archive-directory" comment:"Path to Sysmon Archive directory"`
49
-
CleanArchivedbool`toml:"clean-archived" comment:"Delete files older than 5min archived by Sysmon"`
47
+
Binstring`json:"bin" toml:"bin" comment:"Path to Sysmon binary"`
48
+
ArchiveDirectorystring`json:"archive-directory" toml:"archive-directory" comment:"Path to Sysmon Archive directory"`
49
+
CleanArchivedbool`json:"clean-archived" toml:"clean-archived" comment:"Delete files older than 5min archived by Sysmon"`
50
50
}
51
51
52
52
// Rules holds rules configuration
53
53
typeRulesstruct {
54
-
RulesDBstring`toml:"rules-db" comment:"Path to Gene rules database"`
55
-
ContainersDBstring`toml:"containers-db" comment:"Path to Gene rules containers\n (c.f. Gene documentation)"`
56
-
UpdateInterval time.Duration`toml:"update-interval" comment:"Update interval at which rules should be pulled from manager\n NB: only applies if a manager server is configured"`
54
+
RulesDBstring`json:"rules-db" toml:"rules-db" comment:"Path to Gene rules database"`
55
+
ContainersDBstring`json:"containers-db" toml:"containers-db" comment:"Path to Gene rules containers\n (c.f. Gene documentation)"`
56
+
UpdateInterval time.Duration`json:"update-interval" toml:"update-interval" comment:"Update interval at which rules should be pulled from manager\n NB: only applies if a manager server is configured"`
AuditDirs []string`toml:"audit-dirs" comment:"Set Audit ACL to directories, sub-directories and files to generate File System audit events\n https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-file-system)"`
67
+
Enablebool`json:"enable" toml:"enable" comment:"Enable following Audit Policies or not"`
AuditDirs []string`json:"audit-dirs" toml:"audit-dirs" comment:"Set Audit ACL to directories, sub-directories and files to generate File System audit events\n https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-file-system)"`
70
70
}
71
71
72
72
// Configure configures the desired audit policies
@@ -111,23 +111,22 @@ func (c *Audit) Restore() {
111
111
112
112
// Agent structure
113
113
typeAgentstruct {
114
-
//Channels []string `toml:"channels" comment:"Windows log channels to listen to. Either channel names\n can be used (i.e. Microsoft-Windows-Sysmon/Operational) or aliases"`
115
-
DatabasePathstring`toml:"db-path" comment:"Path to local database root directory"`
116
-
CritTreshint`toml:"criticality-treshold" comment:"Dumps/forward only events above criticality threshold\n or filtered events (i.e. Gene filtering rules)"`
117
-
EnableHooksbool`toml:"en-hooks" comment:"Enable enrichment hooks and dump hooks"`
118
-
EnableFilteringbool`toml:"en-filters" comment:"Enable event filtering (log filtered events, not only alerts)\n See documentation: https://github.com/0xrawsec/gene"`
119
-
Logfilestring`toml:"logfile" comment:"Logfile used to log messages generated by the engine"`// for WHIDS log messages (not alerts)
120
-
LogAllbool`toml:"log-all" comment:"Log any incoming event passing through the engine"`// log all events to logfile (used for debugging)
121
-
Endpointbool`toml:"endpoint" comment:"True if current host is the endpoint on which logs are generated\n Example: turn this off if running on a WEC"`
DatabasePathstring`json:"db-path" toml:"db-path" comment:"Path to local database root directory"`
115
+
CritTreshint`json:"criticality-treshold" toml:"criticality-treshold" comment:"Dumps/forward only events above criticality threshold\n or filtered events (i.e. Gene filtering rules)" `
116
+
EnableHooksbool`json:"en-hooks" toml:"en-hooks" comment:"Enable enrichment hooks and dump hooks"`
117
+
EnableFilteringbool`json:"en-filters" toml:"en-filters" comment:"Enable event filtering (log filtered events, not only alerts)\n See documentation: https://github.com/0xrawsec/gene" `
118
+
Logfilestring`json:"logfile" toml:"logfile" comment:"Logfile used to log messages generated by the engine"`// for WHIDS log messages (not alerts)
119
+
LogAllbool`json:"log-all" toml:"log-all" comment:"Log any incoming event passing through the engine" `// log all events to logfile (used for debugging)
120
+
Endpointbool`json:"endpoint" toml:"endpoint" comment:"True if current host is the endpoint on which logs are generated\n Example: turn this off if running on a WEC"`
0 commit comments