def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\wbadmin.exe"),
                    event.deep_get("OriginalFileName", default="") == "WBADMIN.EXE",
                ]
            ),
            any(
                [
                    "start" in event.deep_get("CommandLine", default=""),
                    "backup" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    "\\config\\SAM" in event.deep_get("CommandLine", default=""),
                    "\\config\\SECURITY" in event.deep_get("CommandLine", default=""),
                    "\\config\\SYSTEM" in event.deep_get("CommandLine", default=""),
                    "\\Windows\\NTDS\\NTDS.dit" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
