def rule(event):
    if all(
        [
            any(
                [
                    "Get-WmiObject" in event.deep_get("ScriptBlockText", default=""),
                    "gwmi" in event.deep_get("ScriptBlockText", default=""),
                    "Get-CimInstance" in event.deep_get("ScriptBlockText", default=""),
                    "gcim" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
            "Win32_ShadowCopy" in event.deep_get("ScriptBlockText", default=""),
            any(
                [
                    ".Delete()" in event.deep_get("ScriptBlockText", default=""),
                    "Remove-WmiObject" in event.deep_get("ScriptBlockText", default=""),
                    "rwmi" in event.deep_get("ScriptBlockText", default=""),
                    "Remove-CimInstance" in event.deep_get("ScriptBlockText", default=""),
                    "rcim" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
