def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("/rm"),
                    event.deep_get("Image", default="").endswith("/unlink"),
                    event.deep_get("Image", default="").endswith("/shred"),
                ]
            ),
            any(
                [
                    any(
                        [
                            "/.bash_history" in event.deep_get("CommandLine", default=""),
                            "/.zsh_history" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            event.deep_get("CommandLine", default="").endswith("_history"),
                            event.deep_get("CommandLine", default="").endswith(".history"),
                            event.deep_get("CommandLine", default="").endswith("zhistory"),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
