def rule(event):
    if all(
        [
            "Win32_NTEventlogFile" in event.deep_get("ScriptBlockText", default=""),
            any(
                [
                    ".BackupEventlog(" in event.deep_get("ScriptBlockText", default=""),
                    ".ChangeSecurityPermissions(" in event.deep_get("ScriptBlockText", default=""),
                    ".ChangeSecurityPermissionsEx("
                    in event.deep_get("ScriptBlockText", default=""),
                    ".ClearEventLog(" in event.deep_get("ScriptBlockText", default=""),
                    ".Delete(" in event.deep_get("ScriptBlockText", default=""),
                    ".DeleteEx(" in event.deep_get("ScriptBlockText", default=""),
                    ".Rename(" in event.deep_get("ScriptBlockText", default=""),
                    ".TakeOwnerShip(" in event.deep_get("ScriptBlockText", default=""),
                    ".TakeOwnerShipEx(" in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
