def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("TargetFilename", default="").endswith(
                        "\\Microsoft\\Event Viewer\\RecentViews"
                    ),
                    event.deep_get("TargetFilename", default="").endswith(
                        "\\Microsoft\\EventV~1\\RecentViews"
                    ),
                ]
            ),
            not any(
                [
                    event.deep_get("Image", default="").startswith("C:\\Windows\\System32\\"),
                    event.deep_get("Image", default="").startswith("C:\\Windows\\SysWOW64\\"),
                ]
            ),
        ]
    ):
        return True
    return False
