def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\nltest.exe"),
                    event.deep_get("OriginalFileName", default="") == "nltestrk.exe",
                ]
            ),
            any(
                [
                    all(
                        [
                            "server" in event.deep_get("CommandLine", default=""),
                            "query" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            "/user" in event.deep_get("CommandLine", default=""),
                            "all_trusts" in event.deep_get("CommandLine", default=""),
                            "dclist:" in event.deep_get("CommandLine", default=""),
                            "dnsgetdc:" in event.deep_get("CommandLine", default=""),
                            "domain_trusts" in event.deep_get("CommandLine", default=""),
                            "dsgetdc:" in event.deep_get("CommandLine", default=""),
                            "parentdomain" in event.deep_get("CommandLine", default=""),
                            "trusted_domains" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
