The UN won’t authorize attacks---its an independent link.
Brandon S. Davis 18. Masters Thesis. “State Cyber Operations and International Law: Russian and Western Approaches.” Graduate Program in Slavic & East European Studies. The Ohio State University. 2018. https://etd.ohiolink.edu/apexprod/rws_etd/send_file/send?accession=osu1523531316393533&disposition=inline
Article 41 permits the use of measures that do not reach the use of force threshold, including “complete or partial interruption of economic relations and of rail, sea, air, postal, telegraphic, radio, and other means of communication, and the severance of diplomatic relations” (United Nations "Charter of the United Nations"). If Article 41 measures are not sufficient or are inadequate, the Security Council may authorize use of force measures by “air, sea, or land forces as may be necessary to maintain or restore international peace and security” (United Nations "Charter of the United Nations").
The likelihood of the Security Council making this determination and authorizing such measures is miniscule for two reasons. First, in the previous decade, the UN Security Council has not considered cyber operations of any type to be a threat to the peace, a breach of peace, or an act of aggression. Secretary General Ban Ki-Moon implored the Security Council at its 6277th meeting in 2010 to consider cybercrimes an emerging threat to international peace. The Security Coucil made no response to the request and cyber operations have not been mentioned in Council meetings related to Article 39 since that date (United Nations "Repertoire of the Practice of the Security Council"). Secondly, three of the most pervasive state cyber actors are permanent members of the Security Council with veto power. China, Russia, and the United States are unlikely to put forth any resolutions that limits their ability to maneuver in cyberspace. As they use cyber operations that become closer and closer to the threshold of the use of force or an armed attack, they will be less likely to specifically name state cyber operations a threat to the peace or an act of aggression.