def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 854,
            any(
                [
                    any(
                        [
                            ":/Perflogs/" in event.deep_get("Path", default=""),
                            ":/Users/Public/" in event.deep_get("Path", default=""),
                            ":/Windows/Temp/" in event.deep_get("Path", default=""),
                            "/AppdData/Local/Temp/" in event.deep_get("Path", default=""),
                            "/Desktop/" in event.deep_get("Path", default=""),
                            "/Downloads/" in event.deep_get("Path", default=""),
                        ]
                    ),
                    any(
                        [
                            ":\\PerfLogs\\" in event.deep_get("Path", default=""),
                            ":\\Users\\Public\\" in event.deep_get("Path", default=""),
                            ":\\Windows\\Temp\\" in event.deep_get("Path", default=""),
                            "\\AppdData\\Local\\Temp\\" in event.deep_get("Path", default=""),
                            "\\Desktop\\" in event.deep_get("Path", default=""),
                            "\\Downloads\\" in event.deep_get("Path", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
