import json


def rule(event):
    if all(
        [
            "bash -c /bin/bash" in json.dumps(event.to_dict()),
            "&/dev/tcp/" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
