import json


def rule(event):
    if any(
        [
            "cat </dev/tcp/" in json.dumps(event.to_dict()),
            "exec 3<>/dev/tcp/" in json.dumps(event.to_dict()),
            "echo >/dev/tcp/" in json.dumps(event.to_dict()),
            "bash -i >& /dev/tcp/" in json.dumps(event.to_dict()),
            "sh -i >& /dev/udp/" in json.dumps(event.to_dict()),
            "0<&196;exec 196<>/dev/tcp/" in json.dumps(event.to_dict()),
            "exec 5<>/dev/tcp/" in json.dumps(event.to_dict()),
            "(sh)0>/dev/tcp/" in json.dumps(event.to_dict()),
            "bash -c 'bash -i >& /dev/tcp/" in json.dumps(event.to_dict()),
            "echo -e '#!/bin/bash\\nbash -i >& /dev/tcp/" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
