import json


def rule(event):
    if any(
        [
            "attempt to execute code on stack by" in json.dumps(event.to_dict()),
            "0bin0sh1" in json.dumps(event.to_dict()),
            "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
            in json.dumps(event.to_dict()),
            "stack smashing detected" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
