def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\bash"),
            any(
                [
                    "id -Gn `" in event.deep_get("CommandLine", default=""),
                    "id -Gn '" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
