def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("type", default="") == "execve",
                    event.deep_get("a0", default="") == "zip",
                ]
            ),
            all(
                [
                    event.deep_get("type", default="") == "execve",
                    event.deep_get("a0", default="") == "gzip",
                    event.deep_get("a1", default="") == "-k",
                ]
            ),
            all(
                [
                    event.deep_get("type", default="") == "execve",
                    event.deep_get("a0", default="") == "tar",
                    "-c" in event.deep_get("a1", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
