It is a violation of US law to consume BYO alcohol in the US on a commercial aircraft or onboard a US flag carrier in international airspace. 14 CFR 121.575
§ 121.575 alcoholic beverages: (a) No person may drink any alcoholic beverage aboard an aircraft unless the certificate holder operating the aircraft has served that beverage to him.