import re


def rule(event):
    if all(
        [
            event.deep_get("type", default="") == "SYSCALL",
            any(
                [
                    event.deep_get("exe", default="").startswith("/tmp/"),
                    event.deep_get("exe", default="").startswith("/var/www/"),
                    re.match(r"^/home/.*/public_html/.*$", event.deep_get("exe", default="")),
                    event.deep_get("exe", default="").startswith("/usr/local/apache2/"),
                    event.deep_get("exe", default="").startswith("/usr/local/httpd/"),
                    event.deep_get("exe", default="").startswith("/var/apache/"),
                    event.deep_get("exe", default="").startswith("/srv/www/"),
                    event.deep_get("exe", default="").startswith("/home/httpd/html/"),
                    event.deep_get("exe", default="").startswith("/srv/http/"),
                    event.deep_get("exe", default="").startswith("/usr/share/nginx/html/"),
                    event.deep_get("exe", default="").startswith("/var/lib/pgsql/data/"),
                    event.deep_get("exe", default="").startswith("/usr/local/mysql/data/"),
                    event.deep_get("exe", default="").startswith("/var/lib/mysql/"),
                    event.deep_get("exe", default="").startswith("/var/vsftpd/"),
                    event.deep_get("exe", default="").startswith("/etc/bind/"),
                    event.deep_get("exe", default="").startswith("/var/named/"),
                ]
            ),
        ]
    ):
        return True
    return False
