def rule(event):
    if all(
        [
            event.deep_get("cs-method", default="") == "POST",
            event.deep_get("sc-status", default="") == 200,
            "/owa/" in event.deep_get("c-uri", default=""),
            "/powershell" in event.deep_get("c-uri", default=""),
            any(
                [
                    "@" in event.deep_get("c-uri", default=""),
                    "%40" in event.deep_get("c-uri", default=""),
                ]
            ),
            not event.deep_get("c-useragent", default="")
            in ["ClientInfo", "Microsoft WinRM Client", "Exchange BackEnd Probes"],
        ]
    ):
        return True
    return False
