def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("Image", default="").endswith("/sh"),
                    "=$(curl " in event.deep_get("CommandLine", default=""),
                    "eval" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("Image", default="").endswith("/curl"),
                    "_intermediate_agent_" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
