def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") in [11, 12],
            any(
                [
                    event.deep_get("ProcessPath", default="").endswith("\\MpCmdRun.exe"),
                    event.deep_get("ProcessPath", default="").endswith("\\NisSrv.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
