def rule(event):
    if all(
        [
            "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\VolumeCaches\\"
            in event.deep_get("TargetObject", default=""),
            any(
                [
                    all(
                        [
                            "\\Autorun" in event.deep_get("TargetObject", default=""),
                            event.deep_get("Details", default="") == "DWORD (0x00000001)",
                        ]
                    ),
                    all(
                        [
                            any(
                                [
                                    "\\CleanupString" in event.deep_get("TargetObject", default=""),
                                    "\\PreCleanupString"
                                    in event.deep_get("TargetObject", default=""),
                                ]
                            ),
                            any(
                                [
                                    "cmd" in event.deep_get("Details", default=""),
                                    "powershell" in event.deep_get("Details", default=""),
                                    "rundll32" in event.deep_get("Details", default=""),
                                    "mshta" in event.deep_get("Details", default=""),
                                    "cscript" in event.deep_get("Details", default=""),
                                    "wscript" in event.deep_get("Details", default=""),
                                    "wsl" in event.deep_get("Details", default=""),
                                    "\\Users\\Public\\" in event.deep_get("Details", default=""),
                                    "\\Windows\\TEMP\\" in event.deep_get("Details", default=""),
                                    "\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\"
                                    in event.deep_get("Details", default=""),
                                ]
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
