Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes findings for conmon #286

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions parse-nessus-xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def remediation_plan(vuln):
doomsday
doppler
elasticsearch_exporter
eventgenerator
file.server
firehose_exporter
forwarder-agent
Expand All @@ -118,14 +119,15 @@ def remediation_plan(vuln):
loggregator_trafficcontroller
metrics-agent
metrics-discovery-registrar
metricsforwarder
netmon
nginx
nginx_prometheus
nginx/sbin/nginx
node_exporter
ntp
oauth2.proxy
opt
operator
policy-server
policy-server-internal
prom.scraper
Expand All @@ -139,6 +141,7 @@ def remediation_plan(vuln):
rlp
rlp-gateway
route.emitter
scalingengine
secureproxy
service-discovery-controller
silk-controller
Expand Down Expand Up @@ -205,11 +208,14 @@ def remediation_plan(vuln):
if re.search(rf'/var/vcap/bosh/bin/(bosh-agent|monit)', line):
daemon_count += 1
continue
if re.search(rf'^/var/vcap/data/packages/({DAEMONS})2?/[0-9a-f]+/(s?bin/)?({DAEMONS})(-server|-asg-syncer)?$', line):
if re.search(rf'^/var/vcap/data/packages/({DAEMONS})(2|-attic)?/[0-9a-f]+/(s?bin/)?({DAEMONS})(-server|-asg-syncer)?$', line):
daemon_count += 1
continue
if re.search(rf'^/var/vcap/data/packages/golangapiserver/[0-9a-f]+/api$', line):
daemon_count += 1
continue
# allow java and node for idp, ELK
if re.search(rf'^/var/vcap/data/packages/(elasticsearch|idp|kibana|kibana-platform|openjdk_1.8.0|openjdk-11|uaa)/[/[0-9a-z]+/bin/(java|node)$', line):
if re.search(rf'^/var/vcap/data/packages/(elasticsearch|idp|kibana|kibana-platform|openjdk_1.8.0|openjdk[-_]11(.0)?|openjdk-17|uaa)/[/[0-9a-z]+/bin/(java|node)$', line):
daemon_count += 1
continue
# nats daemons are OK on nats and bosh
Expand Down
Loading