def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("/git"),
            " -p " in event.deep_get("ParentCommandLine", default=""),
            "help" in event.deep_get("ParentCommandLine", default=""),
            any(
                [
                    "bash 0<&1" in event.deep_get("CommandLine", default=""),
                    "dash 0<&1" in event.deep_get("CommandLine", default=""),
                    "sh 0<&1" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
