mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 17:22:50 +01:00
Merge pull request #103 from Yamato-Security/100-fix-task-sche-setting
fix: TaskScheduler log audit setting
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
**バグ修正:**
|
||||
|
||||
- ルールカウントの一部が正確ではなかった。 (#99) (@fukusuket)
|
||||
- タスクスケジューラのログ設定が正確に報告されていなかった。 (#100 (@fukusuket))
|
||||
|
||||
## 1.0.0 [2025/05/20] - AUSCERT/SINCON リリース
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
**Bug Fixes:**
|
||||
|
||||
- Some of the rule count was not accurate. (#99) (@fukusuket)
|
||||
- TaskScheduler log settings were not accurately reported. (#100 (@fukusuket))
|
||||
|
||||
## 1.0.0 [2025/05/20] - AUSCERT/SINCON Release
|
||||
|
||||
|
||||
20
WELA.ps1
20
WELA.ps1
@@ -1338,13 +1338,14 @@ function GuideYamatoSecurity
|
||||
$guid = ""
|
||||
$eids = @()
|
||||
$channels = @("Microsoft-Windows-TaskScheduler/Operational")
|
||||
$enabled = $true
|
||||
$enabled = CheckRegistryValue -registryPath "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-TaskScheduler/Operational" -valueName "Enabled" -expectedValue 1
|
||||
$current = if ($enabled) { "Enabled" } else { "Disabled" }
|
||||
$rules = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
||||
$rules | ForEach-Object { $_.applicable = $enabled }
|
||||
$auditResult += [WELA]::New(
|
||||
"TaskScheduler Operational",
|
||||
"",
|
||||
"Enabled",
|
||||
$current,
|
||||
[array]$rules,
|
||||
"Enabled",
|
||||
"Enabled",
|
||||
@@ -2536,13 +2537,14 @@ function GuideASD {
|
||||
$guid = ""
|
||||
$eids = @()
|
||||
$channels = @("Microsoft-Windows-TaskScheduler/Operational")
|
||||
$enabled = $true
|
||||
$enabled = CheckRegistryValue -registryPath "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-TaskScheduler/Operational" -valueName "Enabled" -expectedValue 1
|
||||
$current = if ($enabled) { "Enabled" } else { "Disabled" }
|
||||
$rules = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
||||
$rules | ForEach-Object { $_.applicable = $enabled }
|
||||
$auditResult += [WELA]::New(
|
||||
"TaskScheduler Operational",
|
||||
"",
|
||||
"Enabled",
|
||||
$current,
|
||||
[array]$rules,
|
||||
"Enabled",
|
||||
"",
|
||||
@@ -3734,13 +3736,14 @@ function GuideMSC {
|
||||
$guid = ""
|
||||
$eids = @()
|
||||
$channels = @("Microsoft-Windows-TaskScheduler/Operational")
|
||||
$enabled = $true
|
||||
$enabled = CheckRegistryValue -registryPath "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-TaskScheduler/Operational" -valueName "Enabled" -expectedValue 1
|
||||
$current = if ($enabled) { "Enabled" } else { "Disabled" }
|
||||
$rules = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
||||
$rules | ForEach-Object { $_.applicable = $enabled }
|
||||
$auditResult += [WELA]::New(
|
||||
"TaskScheduler Operational",
|
||||
"",
|
||||
"Enabled",
|
||||
$current,
|
||||
[array]$rules,
|
||||
"Enabled",
|
||||
"",
|
||||
@@ -4929,13 +4932,14 @@ function GuideMSS {
|
||||
$guid = ""
|
||||
$eids = @()
|
||||
$channels = @("Microsoft-Windows-TaskScheduler/Operational")
|
||||
$enabled = $true
|
||||
$enabled = CheckRegistryValue -registryPath "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-TaskScheduler/Operational" -valueName "Enabled" -expectedValue 1
|
||||
$current = if ($enabled) { "Enabled" } else { "Disabled" }
|
||||
$rules = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
||||
$rules | ForEach-Object { $_.applicable = $enabled }
|
||||
$auditResult += [WELA]::New(
|
||||
"TaskScheduler Operational",
|
||||
"",
|
||||
"Enabled",
|
||||
$current,
|
||||
[array]$rules,
|
||||
"Enabled",
|
||||
"",
|
||||
|
||||
Reference in New Issue
Block a user