import json


def rule(event):
    if any(
        [
            "unexpected internal error" in json.dumps(event.to_dict()),
            "unknown or unsupported key type" in json.dumps(event.to_dict()),
            "invalid certificate signing key" in json.dumps(event.to_dict()),
            "invalid elliptic curve value" in json.dumps(event.to_dict()),
            "incorrect signature" in json.dumps(event.to_dict()),
            "error in libcrypto" in json.dumps(event.to_dict()),
            "unexpected bytes remain after decoding" in json.dumps(event.to_dict()),
            "fatal: buffer_get_string: bad string" in json.dumps(event.to_dict()),
            "Local: crc32 compensation attack" in json.dumps(event.to_dict()),
            "bad client public DH value" in json.dumps(event.to_dict()),
            "Corrupted MAC on input" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
