def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\ntdsutil.exe"),
                    event.deep_get("OriginalFileName", default="") == "ntdsutil.exe",
                ]
            ),
            any(
                [
                    all(
                        [
                            "snapshot" in event.deep_get("CommandLine", default=""),
                            "mount " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            "ac" in event.deep_get("CommandLine", default=""),
                            " i" in event.deep_get("CommandLine", default=""),
                            " ntds" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
