def rule(event):
    if all(
        [
            "accepteula" in event.deep_get("CommandLine", default=""),
            " -u " in event.deep_get("CommandLine", default=""),
            " -p " in event.deep_get("CommandLine", default=""),
            " \\\\" in event.deep_get("CommandLine", default=""),
            not any(
                [
                    "\\\\localhost" in event.deep_get("CommandLine", default=""),
                    "\\\\127." in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
