-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PRTG Integration, YAML configs, optimizations and bug fixes.
Add prtg output, YAML configs, retries for content retrieval, auto subscription, example configs. Merge AuditLogSubscriber into AuditLogCollector executable with --interactive-subscription. Refactor AuditLogCollector.py and add some optimizations.
- Loading branch information
Showing
21 changed files
with
831 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
collect: # Settings determining which audit logs to collect and how to do it | ||
contentTypes: | ||
Audit.General: True | ||
Audit.AzureActiveDirectory: True | ||
Audit.Exchange: True | ||
Audit.SharePoint: True | ||
DLP.All: True | ||
skipKnownLogs: True | ||
resume: True | ||
output: | ||
azureLogAnalytics: | ||
enabled: True | ||
workspaceId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | ||
sharedKey: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
collect: | ||
contentTypes: | ||
Audit.General: True | ||
Audit.AzureActiveDirectory: True | ||
Audit.Exchange: True | ||
Audit.SharePoint: True | ||
DLP.All: True | ||
skipKnownLogs: True | ||
resume: True | ||
output: | ||
file: | ||
enabled: True | ||
path: 'output.txt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
collect: | ||
contentTypes: | ||
Audit.General: True | ||
Audit.AzureActiveDirectory: True | ||
Audit.SharePoint: True | ||
skipKnownLogs: True | ||
resume: True | ||
# Collect logs concerning spoofing prevention in Audit.General, deleted files from Audit.SharePoint | ||
# and login failures from Audit.AzureActiveDirectory | ||
filter: | ||
Audit.General: | ||
Policy: Spoof | ||
Audit.AzureActiveDirectory: | ||
Operation: UserLoginFailed | ||
Audit.SharePoint: | ||
Operation: FileDeleted | ||
# Output only to file | ||
output: | ||
file: | ||
enabled: True | ||
path: 'output.txt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
log: # Log settings. Debug will severely decrease performance | ||
path: 'collector.log' | ||
debug: False | ||
collect: # Settings determining which audit logs to collect and how to do it | ||
contentTypes: | ||
Audit.General: True | ||
Audit.AzureActiveDirectory: True | ||
Audit.Exchange: True | ||
Audit.SharePoint: True | ||
DLP.All: True | ||
maxThreads: 50 | ||
retries: 3 # Times to retry retrieving a content blob if it fails | ||
retryCooldown: 3 # Seconds to wait before retrying retrieving a content blob | ||
autoSubscribe: True # Automatically subscribe to collected content types. Never unsubscribes from anything. | ||
skipKnownLogs: True # Remember retrieved log ID's, don't collect them twice | ||
resume: True # Remember last run time, resume collecting from there next run | ||
hoursToCollect: 24 # Look back this many hours for audit logs (can be overwritten by resume) | ||
filter: # Only logs that match ALL filters for a content type are collected. Leave empty to collect all | ||
Audit.General: | ||
Audit.AzureActiveDirectory: | ||
Audit.Exchange: | ||
Audit.SharePoint: | ||
DLP.All: | ||
output: | ||
file: | ||
enabled: False | ||
path: 'output.txt' | ||
azureLogAnalytics: | ||
enabled: False | ||
workspaceId: | ||
sharedKey: | ||
graylog: | ||
enabled: False | ||
address: | ||
port: | ||
prtg: | ||
enabled: False | ||
channels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
collect: | ||
contentTypes: | ||
Audit.General: True | ||
Audit.AzureActiveDirectory: True | ||
Audit.Exchange: True | ||
Audit.SharePoint: True | ||
DLP.All: True | ||
skipKnownLogs: True | ||
resume: True | ||
output: | ||
graylog: | ||
enabled: False | ||
address: 172.16.1.1 | ||
port: 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
collect: | ||
contentTypes: | ||
Audit.General: True | ||
Audit.AzureActiveDirectory: True | ||
Audit.SharePoint: True | ||
skipKnownLogs: False # Take all logs each time to count the number of active filter hits each interval | ||
resume: False # Take all logs each time to count the number of active filter hits each interval | ||
hoursToCollect: 1 # Period over which to alert, e.g. failed AAD logins over the last hour | ||
# The PRTG output defines channels which have filters associated to them. The output of the channel will be | ||
# the number of hits on the filter. E.g. filter for failed AAD logins on a "Failed AAD logins" channel. | ||
output: | ||
prtg: | ||
enabled: True | ||
channels: | ||
- name: Deleted Sharepoint files | ||
filters: | ||
Audit.SharePoint: | ||
Operation: FileDeleted | ||
- name: Failed Azure AD logins | ||
filters: | ||
Audit.AzureActiveDirectory: | ||
Operation: UserLoginFailed | ||
- name: Spoof attempts prevented | ||
filters: | ||
Audit.General: | ||
Policy: Spoof |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.