def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 1121,
            any(
                [
                    event.deep_get("ProcessName", default="").endswith("\\wmiprvse.exe"),
                    event.deep_get("ProcessName", default="").endswith("\\psexesvc.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
