def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("/curl"),
            any(
                [
                    " -A " in event.deep_get("CommandLine", default=""),
                    " --user-agent " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
