Skip to content

Instantly share code, notes, and snippets.

@Olvikolvi
Olvikolvi / cleanup.sh
Last active December 23, 2020 17:07 — forked from itskenny0/cleanup.sh
Cleanup script for salt minions affected by recent CVE exploitation - https://saltexploit.com - https://github.com/saltstack/salt/issues/57057
#!/bin/bash
## Executing this script is not a guarantee for a secure host!
## This script is a collection of the junk I have found on my hosts and what
## the SaltStack community gave as input. We have seen this attack evolve.
## Please have a very close look at your systems and consider reinstalling them
## to be absolutely sure you are free of malware.
# fix syslog
if [ -z /var/log/syslog ]; then rm /var/log/syslog; fi
service rsyslog restart