def rule(event):
    if all(
        [
            "-u " in event.deep_get("CommandLine", default=""),
            "-p " in event.deep_get("CommandLine", default=""),
            any(
                [
                    "^USER^" in event.deep_get("CommandLine", default=""),
                    "^PASS^" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
