mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 17:22:50 +01:00
chg: add other log
This commit is contained in:
8
WELA.ps1
8
WELA.ps1
@@ -201,7 +201,7 @@ function AuditLogSetting {
|
|||||||
$channels = @("Application")
|
$channels = @("Application")
|
||||||
$enabled = $true
|
$enabled = $true
|
||||||
$rules = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
$rules = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
||||||
$rules | ForEach-Object { $_.applicable = $enabled }
|
$rules = ApplyRules -enabled $enabled -rules $all_rules -guid $guid
|
||||||
$auditResult += [WELA]::New(
|
$auditResult += [WELA]::New(
|
||||||
"Application",
|
"Application",
|
||||||
"",
|
"",
|
||||||
@@ -219,7 +219,7 @@ function AuditLogSetting {
|
|||||||
$channels = @("Microsoft-Windows-AppLocker/MSI and Script")
|
$channels = @("Microsoft-Windows-AppLocker/MSI and Script")
|
||||||
$enabled = $true
|
$enabled = $true
|
||||||
$rules = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
$rules = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
||||||
$rules | ForEach-Object { $_.applicable = $enabled }
|
$rules = ApplyRules -enabled $enabled -rules $all_rules -guid $guid
|
||||||
$auditResult += [WELA]::New(
|
$auditResult += [WELA]::New(
|
||||||
"AppLocker",
|
"AppLocker",
|
||||||
"",
|
"",
|
||||||
@@ -237,7 +237,7 @@ function AuditLogSetting {
|
|||||||
$channels = @("Microsoft-Windows-Bits-Client/Operational")
|
$channels = @("Microsoft-Windows-Bits-Client/Operational")
|
||||||
$enabled = $true
|
$enabled = $true
|
||||||
$rules = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
$rules = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
||||||
$rules | ForEach-Object { $_.applicable = $enabled }
|
$rules = ApplyRules -enabled $enabled -rules $all_rules -guid $guid
|
||||||
$auditResult += [WELA]::New(
|
$auditResult += [WELA]::New(
|
||||||
"Bits-Client Operational",
|
"Bits-Client Operational",
|
||||||
"",
|
"",
|
||||||
@@ -255,7 +255,7 @@ function AuditLogSetting {
|
|||||||
$channels = @("Microsoft-Windows-CodeIntegrity/Operational")
|
$channels = @("Microsoft-Windows-CodeIntegrity/Operational")
|
||||||
$enabled = $true
|
$enabled = $true
|
||||||
$rules = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
$rules = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
||||||
$rules | ForEach-Object { $_.applicable = $enabled }
|
$rules = ApplyRules -enabled $enabled -rules $all_rules -guid $guid
|
||||||
$auditResult += [WELA]::New(
|
$auditResult += [WELA]::New(
|
||||||
"CodeIntegrity Operational",
|
"CodeIntegrity Operational",
|
||||||
"",
|
"",
|
||||||
|
|||||||
Reference in New Issue
Block a user