def rule(event):
    if all(
        [
            "/cgi-bin/jarrewrite.sh" in event.deep_get("cs-uri-query", default=""),
            any(
                [
                    ":;" in event.deep_get("cs-user-agent", default=""),
                    "() {" in event.deep_get("cs-user-agent", default=""),
                    "/bin/bash -c" in event.deep_get("cs-user-agent", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
