Skip to content

Commit

Permalink
Merge pull request #88 from replicatedhq/diamonwiggins/detect-antivirus
Browse files Browse the repository at this point in the history
Add collector and analyzer to detect security tools
  • Loading branch information
diamonwiggins authored Apr 16, 2024
2 parents a53eaad + 684d4f6 commit 9d5873a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions host/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,10 @@ spec:
collectorName: "ps-high-load"
command: "sh"
args: ["-c", "ps -eo s,user,cmd | grep ^[RD] | sort | uniq -c | sort -nbr | head -20"]
- run:
collectorName: "ps-detect-antivirus-and-security-tools"
command: "sh"
args: [-c, "ps -ef | grep -E 'clamav|sophos|esets_daemon|fsav|symantec|mfend|ds_agent|kav|bdagent|s1agent|falcon|illumio' | grep -v grep"]
- filesystemPerformance:
collectorName: filesystem-latency-two-minute-benchmark
timeout: 2m
Expand Down Expand Up @@ -761,3 +765,15 @@ spec:
- pass:
when: "false"
message: "SELinux is disabled as expected"
- textAnalyze:
checkName: "Detect Threat Management and Network Security Tools"
fileName: host-collectors/run-host/ps-detect-antivirus-and-security-tools.txt
regex: '\b(clamav|sophos|esets_daemon|fsav|symantec|mfend|ds_agent|kav|bdagent|s1agent|falcon|illumio)\b'
ignoreIfNoFiles: true
outcomes:
- fail:
when: "true"
message: "Antivirus or Network Security tools detected. These tools can interfere with kubernetes operation."
- pass:
when: "false"
message: "No Antivirus or Network Security tools detected."

0 comments on commit 9d5873a

Please sign in to comment.