def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4697,
            "mshta" in event.deep_get("ServiceFileName", default=""),
            "vbscript:createobject" in event.deep_get("ServiceFileName", default=""),
            ".run" in event.deep_get("ServiceFileName", default=""),
            "window.close" in event.deep_get("ServiceFileName", default=""),
        ]
    ):
        return True
    return False
