import json


def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("State", default="") == "Stopped",
                    "Sysmon config state changed" in json.dumps(event.to_dict()),
                ]
            ),
            not event.deep_get("State", default="") == "Started",
        ]
    ):
        return True
    return False
