def rule(event):
    if all(
        [
            event.deep_get("eventType", default="") == "user.session.start",
            event.deep_get("securityContext", "isProxy", default="") == "true",
        ]
    ):
        return True
    return False
