def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("/grep"),
                    event.deep_get("Image", default="").endswith("/egrep"),
                ]
            ),
            any(
                [
                    "nessusd" in event.deep_get("CommandLine", default=""),
                    "td-agent" in event.deep_get("CommandLine", default=""),
                    "packetbeat" in event.deep_get("CommandLine", default=""),
                    "filebeat" in event.deep_get("CommandLine", default=""),
                    "auditbeat" in event.deep_get("CommandLine", default=""),
                    "osqueryd" in event.deep_get("CommandLine", default=""),
                    "cbagentd" in event.deep_get("CommandLine", default=""),
                    "falcond" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
