import json


def rule(event):
    if any(
        [
            "entered promiscuous mode" in json.dumps(event.to_dict()),
            "Deactivating service" in json.dumps(event.to_dict()),
            "Oversized packet received from" in json.dumps(event.to_dict()),
            "imuxsock begins to drop messages" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
