def rule(event):
    if all(
        [
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith(
                                ":\\Windows\\System32\\bash.exe"
                            ),
                            event.deep_get("Image", default="").endswith(
                                ":\\Windows\\SysWOW64\\bash.exe"
                            ),
                        ]
                    ),
                    event.deep_get("OriginalFileName", default="") == "Bash.exe",
                ]
            ),
            not any(
                [
                    any(
                        [
                            "bash.exe -" in event.deep_get("CommandLine", default=""),
                            "bash -" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    event.deep_get("CommandLine", default="") == "",
                    event.deep_get("CommandLine", default="") == "",
                    event.deep_get("CommandLine", default="") in ["bash.exe", "bash"],
                ]
            ),
        ]
    ):
        return True
    return False
