Merge pull request #555 from mcshooter/addWindowsDefenderProblemDetection

Add windows defender problem detection custom plugin
This commit is contained in:
Kubernetes Prow Robot
2021-05-13 16:20:06 -07:00
committed by GitHub
2 changed files with 31 additions and 0 deletions
@@ -0,0 +1,10 @@
# This plugin checks to see if windows defender detects any threats to the node.
$windowsDefenderThreats = (Get-MpThreat | Where-Object {$_.IsActive -or $_.DidThreatExecute})
if ($windowsDefenderThreats.length -ne 0) {
Write-Host $windowsDefenderThreats
exit 1
} else {
exit 0
}
+21
View File
@@ -0,0 +1,21 @@
{
"plugin": "custom",
"pluginConfig": {
"invoke_interval": "10m",
"timeout": "5s",
"max_output_length": 80,
"concurrency": 3
},
"source": "windows-defender-custom-plugin-monitor",
"metricsReporting": true,
"conditions": [],
"rules": [
{
"type": "temporary",
"reason": "WindowsDefenderThreatsDetected",
"path": "./config/plugin/windows_defender_problem.ps1",
"timeout": "3s"
}
]
}