def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("ParentImage", default="").endswith("/bash"),
                    event.deep_get("Image", default="").endswith("/curl"),
                    any(
                        [
                            "/sys/log.php" in event.deep_get("CommandLine", default=""),
                            "/sys/prepod.php" in event.deep_get("CommandLine", default=""),
                            "/sys/bin/Pods" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    "https://" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    all(
                        [
                            event.deep_get("ParentImage", default="").endswith("/bash"),
                            event.deep_get("Image", default="").endswith("/osacompile"),
                            "/Users/" in event.deep_get("CommandLine", default=""),
                            "/Library/Group Containers/"
                            in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("ParentImage", default="").endswith("/bash"),
                            event.deep_get("Image", default="").endswith("/plutil"),
                            "LSUIElement" in event.deep_get("CommandLine", default=""),
                            "/Users/" in event.deep_get("CommandLine", default=""),
                            "/Library/Group Containers/"
                            in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="").endswith("/zip"),
                            "-r" in event.deep_get("CommandLine", default=""),
                            "/Users/" in event.deep_get("CommandLine", default=""),
                            "/Library/Group Containers/"
                            in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
