SAN FRANCISCO — Uber Technologies Inc. has used software to evade law enforcement and public officials in cities where the company faced opposition from regulators, The New York Times reported Friday, and legal ethics professionals said the company may be steering into the wrong lane.

While the program may not be illegal, ethics professionals said, it does appear to skirt ethical standards. And if in-house counsel approved the program knowing that Uber would use it to break the law, then disbarment could be in store for the lawyers who signed off on it, they said. The New York Times report said Uber’s legal department, led by general counsel Salle Yoo, approved use of the program.