def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("/grep"),
            any(
                [
                    event.deep_get("CommandLine", default="").endswith("aarch64"),
                    event.deep_get("CommandLine", default="").endswith("arm"),
                    event.deep_get("CommandLine", default="").endswith("i386"),
                    event.deep_get("CommandLine", default="").endswith("i686"),
                    event.deep_get("CommandLine", default="").endswith("mips"),
                    event.deep_get("CommandLine", default="").endswith("x86_64"),
                ]
            ),
        ]
    ):
        return True
    return False
