My undergrad Computer Engineering curriculum as far back as the mid 90’s offered a dedicated “social and ethical issues in computing” course, which included not only ethics but the societal issues around hacking, copyright, automation, robots, etc. Do these courses no longer exist? I think tech professionals ought to agree to Do No Harm and be held accountable when they do. Problem is the vague and debatable definition of “harm”.
Every ABET accredited degree (CS and/or CE) has a minimum requirement for ethics courses. The software industry just doesn't have a minimum requirement for accredited degrees (or any degrees at all, for that matter).