def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("/bin/bash"),
            not event.deep_get("DestinationIp", default="") in ["127.0.0.1", "0.0.0.0"],
        ]
    ):
        return True
    return False
