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)
|
- ルールカウントの一部が正確ではなかった。 (#99) (@fukusuket)
|
||||||
|
- タスクスケジューラのログ設定が正確に報告されていなかった。 (#100 (@fukusuket))
|
||||||
|
|
||||||
## 1.0.0 [2025/05/20] - AUSCERT/SINCON リリース
|
## 1.0.0 [2025/05/20] - AUSCERT/SINCON リリース
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
**Bug Fixes:**
|
**Bug Fixes:**
|
||||||
|
|
||||||
- Some of the rule count was not accurate. (#99) (@fukusuket)
|
- 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
|
## 1.0.0 [2025/05/20] - AUSCERT/SINCON Release
|
||||||
|
|
||||||
|
|||||||
20
WELA.ps1
20
WELA.ps1
@@ -1338,13 +1338,14 @@ function GuideYamatoSecurity
|
|||||||
$guid = ""
|
$guid = ""
|
||||||
$eids = @()
|
$eids = @()
|
||||||
$channels = @("Microsoft-Windows-TaskScheduler/Operational")
|
$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 = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
||||||
$rules | ForEach-Object { $_.applicable = $enabled }
|
$rules | ForEach-Object { $_.applicable = $enabled }
|
||||||
$auditResult += [WELA]::New(
|
$auditResult += [WELA]::New(
|
||||||
"TaskScheduler Operational",
|
"TaskScheduler Operational",
|
||||||
"",
|
"",
|
||||||
"Enabled",
|
$current,
|
||||||
[array]$rules,
|
[array]$rules,
|
||||||
"Enabled",
|
"Enabled",
|
||||||
"Enabled",
|
"Enabled",
|
||||||
@@ -2536,13 +2537,14 @@ function GuideASD {
|
|||||||
$guid = ""
|
$guid = ""
|
||||||
$eids = @()
|
$eids = @()
|
||||||
$channels = @("Microsoft-Windows-TaskScheduler/Operational")
|
$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 = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
||||||
$rules | ForEach-Object { $_.applicable = $enabled }
|
$rules | ForEach-Object { $_.applicable = $enabled }
|
||||||
$auditResult += [WELA]::New(
|
$auditResult += [WELA]::New(
|
||||||
"TaskScheduler Operational",
|
"TaskScheduler Operational",
|
||||||
"",
|
"",
|
||||||
"Enabled",
|
$current,
|
||||||
[array]$rules,
|
[array]$rules,
|
||||||
"Enabled",
|
"Enabled",
|
||||||
"",
|
"",
|
||||||
@@ -3734,13 +3736,14 @@ function GuideMSC {
|
|||||||
$guid = ""
|
$guid = ""
|
||||||
$eids = @()
|
$eids = @()
|
||||||
$channels = @("Microsoft-Windows-TaskScheduler/Operational")
|
$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 = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
||||||
$rules | ForEach-Object { $_.applicable = $enabled }
|
$rules | ForEach-Object { $_.applicable = $enabled }
|
||||||
$auditResult += [WELA]::New(
|
$auditResult += [WELA]::New(
|
||||||
"TaskScheduler Operational",
|
"TaskScheduler Operational",
|
||||||
"",
|
"",
|
||||||
"Enabled",
|
$current,
|
||||||
[array]$rules,
|
[array]$rules,
|
||||||
"Enabled",
|
"Enabled",
|
||||||
"",
|
"",
|
||||||
@@ -4929,13 +4932,14 @@ function GuideMSS {
|
|||||||
$guid = ""
|
$guid = ""
|
||||||
$eids = @()
|
$eids = @()
|
||||||
$channels = @("Microsoft-Windows-TaskScheduler/Operational")
|
$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 = $all_rules | Where-Object { RuleFilter $_ $eids $channels $guid }
|
||||||
$rules | ForEach-Object { $_.applicable = $enabled }
|
$rules | ForEach-Object { $_.applicable = $enabled }
|
||||||
$auditResult += [WELA]::New(
|
$auditResult += [WELA]::New(
|
||||||
"TaskScheduler Operational",
|
"TaskScheduler Operational",
|
||||||
"",
|
"",
|
||||||
"Enabled",
|
$current,
|
||||||
[array]$rules,
|
[array]$rules,
|
||||||
"Enabled",
|
"Enabled",
|
||||||
"",
|
"",
|
||||||
|
|||||||
Reference in New Issue
Block a user