import json


def rule(event):
    if any(
        [
            "%24%7B%28%23a%3D%40" in json.dumps(event.to_dict()),
            "${(#a=@" in json.dumps(event.to_dict()),
            "%24%7B%40java" in json.dumps(event.to_dict()),
            "${@java" in json.dumps(event.to_dict()),
            "u0022java" in json.dumps(event.to_dict()),
            "%2F%24%7B%23" in json.dumps(event.to_dict()),
            "/${#" in json.dumps(event.to_dict()),
            "new+java." in json.dumps(event.to_dict()),
            "getRuntime().exec(" in json.dumps(event.to_dict()),
            "getRuntime%28%29.exec%28" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
