import json


def rule(event):
    if all(
        [
            event.deep_get("cs-method", default="") == "GET",
            any(
                [
                    "={{" in json.dumps(event.to_dict()),
                    "=%7B%7B" in json.dumps(event.to_dict()),
                    "=${" in json.dumps(event.to_dict()),
                    "=$%7B" in json.dumps(event.to_dict()),
                    "=<%=" in json.dumps(event.to_dict()),
                    "=%3C%25=" in json.dumps(event.to_dict()),
                    "=@(" in json.dumps(event.to_dict()),
                    "freemarker.template.utility.Execute" in json.dumps(event.to_dict()),
                    ".getClass().forName('javax.script.ScriptEngineManager')"
                    in json.dumps(event.to_dict()),
                    "T(org.apache.commons.io.IOUtils)" in json.dumps(event.to_dict()),
                ]
            ),
            not event.deep_get("sc-status", default="") == 404,
        ]
    ):
        return True
    return False
