def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").startswith("/tmp/"),
            any(
                [
                    event.deep_get("Image", default="").endswith("/bash"),
                    event.deep_get("Image", default="").endswith("/csh"),
                    event.deep_get("Image", default="").endswith("/dash"),
                    event.deep_get("Image", default="").endswith("/fish"),
                    event.deep_get("Image", default="").endswith("/ksh"),
                    event.deep_get("Image", default="").endswith("/sh"),
                    event.deep_get("Image", default="").endswith("/zsh"),
                ]
            ),
        ]
    ):
        return True
    return False
