mirror of
https://github.com/Yamato-Security/WELA.git
synced 2026-01-23 16:33:32 +01:00
update
This commit is contained in:
@@ -9,7 +9,6 @@ $filteredOutput | ForEach-Object {
|
||||
$extractedStrings.Add($matches[1])
|
||||
}
|
||||
}
|
||||
Write-Host $extractedStrings
|
||||
|
||||
# Step 2: Read the rules from security_rules.json
|
||||
$jsonFilePath = "./config/security_rules.json"
|
||||
@@ -18,7 +17,7 @@ $jsonContent = Get-Content -Path $jsonFilePath -Raw | ConvertFrom-Json
|
||||
foreach ($rule in $jsonContent) {
|
||||
$rule | Add-Member -MemberType NoteProperty -Name "applicable" -Value $false
|
||||
foreach ($guid in $rule.subcategory_guids) {
|
||||
if ($filteredOutput -contains $guid) {
|
||||
if ($extractedStrings.Contains($guid)) {
|
||||
$rule.applicable = $true
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user