by gregwtmtno · 9y ago · 0 comments
It's a surprisingly urgent problem in a field that enables mass government surveillance, dark patterns, big data aggregation, and cyber warfare.
As an attorney, I wonder if software engineers should consider implementing some kind of rules for professional conduct and an organization to enforce it like the lawyers have.
Case in point: The way Aaron Schwartz was treated. The prosecution seriously overstepped the boundaries of what can be considered ethical behaviour. Even worse, they did it for shady political reasons and personal career considerations.
Thank you for sharing this!
Who are the most successful lawyers? Politicians. Try and think of an unethical one...too many to chose from. Hell, if religious laws don't prevent people from doing horrible things and then justifying it (and they don't), why would a code of conduct help anything?
If the heart of a profession is greed (and tech is or is getting there), then your code of conduct means nothing. You just gotta justify your actions, and tech companies already do that.
"We're changing the world for the better! (But don't mind us if we track, spy, manipulate, and price-gouge you along the way)."
Is that unfair? It feels unfair, but the actions of too many tech companies are deplorable and yet we've got tens of thousands of people working for them. Where do you draw the line? When do you become complicit (someone abuses data because you've built systems which allows and encourages it)?
It's really an argument of social norms, and how do you change those, especially (if like law was at one point), you are the industry to get into to make money? If that is the main reason lots of people get involved (from management on down), how do you build and maintain norms that say that quality and concern for the user comes before all else?
Obama, Clinton(s), Ghandi, Lincoln...none of whom were "successful" lawyers, but they all did just fine in politics.
As to your point about laws/code not preventing horrible things...they often times do. But no one is claiming laws always eradicate behavior (they can and have) that's why we put people on notice and create penalties because we know people violate the laws/rules anyway. Say Bill Clinton lying under oath, he was caught and the only one who disciplined home was the Bar of his home state: totally disbarred him. In other cases, the law itself might be immoral -take the British colonial law against Indian's making salt, and Ghandi violating it and being arrested, even after, as a politician he was able to change the law and the norms.
I think your main point is likely right, but your supporting examples are not. Wikipedia (at https://en.wikipedia.org/wiki/Abraham_Lincoln#Early_career_a...) says:
Lincoln became an able and successful lawyer with a reputation as a formidable adversary during cross-examinations and closing arguments
Likewise, we have https://en.wikipedia.org/wiki/Hillary_Clinton#Later_Arkansas...
She was twice named by The National Law Journal as one of the 100 most influential lawyers in America: in 1988 and in 1991.[123] When Bill Clinton thought about not running again for governor in 1990, Hillary Clinton considered running, but private polls were unfavorable and, in the end, he ran and was re-elected for the final time.[124]
The secret of great fortunes without apparent cause is a crime forgotten, for it was properly done
The key part that people keep omitting is "without apparent cause". If the cause is apparent, there is no need to speculate about possible crimes: just look at the cause and decide if it's criminal or not.
The most public ones, sure. But not necessarily the most successful.
I don't know about that. Judging by OliverJones' post, corrupt lawyers could well be even worse without the formal code of ethics.
Laws don't define ethics. They're only an implementation of justice. It's up to us to decide what's right and what's wrong.
I soon found other employment. It pays less, but I sleep a lot better at night.
I have also noticed, dissapointingly, that some people never seem to ask themseves moral questions. I think a room full of people in suits serves as a heuristic that tells them that someone else has already asked the requisite moral questions. This is partly how you end up with a city of 100,000 expats working for the government of Saudi Arabia, etc. Imagine living there. You could probably go years without anyone ever having a discussion about morality.
For example, he had a hip replacement a couple of years ago and received a handicap placard so he could park in the handicapped designated parking spots. He's much better now and doesn't really need it anymore, but he keeps getting it renewed (I guess they don't really check to make sure you're still "handicapped"). Sure, it's technically legal, but there are probably truly handicapped people (in wheelchairs etc.) that could use those spots much more.
(E.g. following a bad law like Jim Crow laws used to make profit or to exploit people etc).
I can say that the legal code of ethics has some bright lines in it.
If a client gives you funds to hold for some reason, and you put them into your own account, and you get caught doing that, you get disbarred : you lose the right to call yourself a lawyer and/or appear in court for your clients.
If you give another lawyer money to induce him to tell his client to sue your client so you both get fees, you get hauled up before the bar overseers on charges.
If you talk about your clients' business without their permission, you get hauled up on charges.
To say "lawyers are unethical" is to fall prey to the availability heuristic. We all know about scumbag pols who happen to be lawyers.
I think gregwtmnto has a point. If we software people had something like Professional Engineer (PE) registration (civil engineers have that), it would help. Companies gathering sensitive information could ask for a PE to sign off on the security measures. That would serve them as a defense should somebody sue them for damages after a leak.
The same is true for bridge designers. PEs sign off on the designs, after making sure the bolts are strong enough and the pilings are deep enough and all that stuff.
This cyber security subject is near to me; my present (small) company finished our PCI (payment card industry) audit yesterday. We've worked hard to avoid the stupid webdev tricks in Troy's article, and even some not-so-stupid vulnerabilities. These stupid tricks erode confidence in all of us.
Hold my beer. Watch this!
Would you like to know how many companies I have found serious vulnerabilities in which had previous audits for things like PCI and ISO 27001? Their CISOs had cute certifications, too. They could talk all day about what XSS is, what a good business continuity plan looks like, all the different types of "risk treatment"...
I've sat on the other side of an audit, as an internal security engineer for a bank. Our QSA literally said to my team one day, "That sounds great, now can we switch gears and talk about your cyber program?" I like to think we honestly did well on those PCI audits, but I also know that we didn't have to do well. We could bullshit our way through it. And even if you try hard, it has little to no signal. Requiring engineers to know OWASP, or to memorize organizational risk facts doesn't work. Requiring your company to get a third party audit sort of works, if you know what a reputable firm actually looks like. Requiring your company to get third party "network segmentation scans" is a waste of time that will leave you wondering how a company stays in business that reports false positives all over your infra.
The security industry is a rabbit hole of oblivion. Vendors don't know what they're doing. Consulting firms barely know what they're doing. What you suggest will not meaningfully change that. As I repeat time and time again, the most talented and effective individuals I've known in the security industry have no certifications, or reluctantly get them to shut HR up. Some of them never even went to college. You would need to dramatically rethink what an enforcing agency looks like to have effective certifications without allowing them to be the rent-collecting they currently are.
I would be genuinely interested in hearing a concrete proposal for what an effective certification or licensing body would look like and how it would fairly enforce its requirements. If it's a model that could work, then fine; hit reset on the current organizations or dramatically improve their processes. But comparisons to other industries aren't good enough, and thus far the evidence is stacked against it.
I guess part of the problem is the legalistic approach we take to security, in practice. A crude example: to be secure, passwords have to be changed every 90 days. Check.
If the QSA firm finds we're following all the rules, we get certified.
But rules lull us into complacency. Rules give cybercreeps an accurate roadmap of our cyberdefenses. If they know ways around our defenses, we're pwned. So, adhering to the letter of the security regulations, while not actually bad, isn't enough.
Dealing with the OWASP top ten is good. But, if I were a cybercreep, I'd be working on the down-chart problems, OWASP 13, 14, 15 etc.
A related question: How do we frame laws to outlaw corruption among politicians? Laws create loopholes.
As you point out, lots of charlatans and idiots hold themselves out as cybersecurity experts. How do we deal with the problem? My immediate objective is to keep cybercreeps outside my firewall and away from my customers. And if they get in, my objective is to expel them quickly.
I argue that transparency is key. We can only defend against what we can see. The open source movement helps. I argue that a registered professional engineer certification provides at least some transparency about qualifications and ethical motivation, a transparency our industry now lacks.
https://www.troyhunt.com/reckon-youve-seen-some-stupid-secur... https://news.ycombinator.com/item?id=14218270
Snowden probably broke some laws, but we're all better off for it.
Fortunately, most people in tech understand this!
Isn't that a bit of a chicken and egg problem there? The way I see it, the system won't change if those who want change are waiting for the system to change first.
Ha! Show me your mettle.
I don't think I've ever been asked to do anything illegal (to my knowledge) but I've seen tons of things that have been very unethical. No matter what field you are in, if you open your eyes, you'll see what your company does to stay on top, how their lawyers will stretch things and often settle out of court, and how your industry will lobby for laws that do not protect consumers. I've only written about health care because I think that was the most blatant and currently affects the most people:
http://fightthefuture.org/article/returning-to-america-and-t...
You should always leave if you're asked to do something illegal (and luckily that's never happened to me), but even if your company isn't an Uber or Wal-Mart, they're probably still doing something questionable, even if it's just to compete with the bigger players. It is a reality we have to deal with.
I'll say my favourite position was probably the University. I enjoyed working for a place that, although paid a lot less, was less about a product and more about supporting the staff, faculty and students. Don't get me wrong, I still saw a lot of problems and money wasted on stupid stuff, but overall it was a good, non-morally objectionable work environment.
I have known people that do bookkeeping who see transactions that give them pause. Family trips written off as business trips and things like that.
... how's that working out for you guys?
I mean, no offense, but the two professions require roughly the same mental acumen and amount of investment in learning materials (though lawyers go down a more academic path and must pass a bar exam, strictly there is more they "must" master) -- but out of "sleazy lawyer" and "sleazy programmer" which do you hear?
Likely because lawyers must represent their clients - some if whom are sleazy.
But I wouldn't take the ethical standard set by the legal profession as a paragon for other professions to emulate. Obviously it has severe limits.
They are just those outside the mainstream. The fact that those sleazy lawyers win cases should show they perform a valuable service from the ambulance chasers to the corporate defenders.
The general public doesn't hear enough about programmers to have much of an opinion on whether some of them are sleazy or not.
Don't you need to go to law school to become a lawyer in most places? That's a lot of money. You can learn to be a programmer using a cheap laptop and public library WiFi.
It has no teeth and I expect it never will, despite numerous attempts by national bodies to entrench an accounting/legal/medical style of enforceable professional standards.
https://en.wikipedia.org/wiki/Order_of_the_Engineer
In Canada it's known as the Ritual of the Calling of an Engineer.
https://en.wikipedia.org/wiki/Ritual_of_the_Calling_of_an_En...
This is something of a tangent, but I have started to wonder if the push to teach "everyone" to learn to code has resulted in a growing population of software developers who are not acquainted with professional ethics. Does anyone know, does the typical coding bootcamp or hacker school curriculum cover ethics? IIRC, ethics education is part of the accreditation requirements for both computer science and computer engineering programs.
Things got better, in the Western world bridge and building collapses are rare. But software on the other hand - data breaches are a common occurrence, and those who signed off on the weak security are never held accountable.
But legally? That's a whole other can of worms. Giving this document the force of law would just make it easier to shift the blame in a crooked organization onto the people writing its software. At most, I could see affirmation of this document and an oath to abide by it as the basis for membership in a voluntary professional organization.
> diminish quality of life, diminish privacy or harm the environment.
Could you work at a targeted advertising company or at resource extraction (eg mining)?
> Consider issues of physical disabilities, allocation of resources, economic disadvantage and other factors that can diminish access to the benefits of software.
Seems like some economic SJW stuff, and would you break your oath if you didn't add blind accessibility to your GUI?
> 3.03. Identify, define and address ethical, economic, cultural, legal and environmental issues related to work projects.
This seems way outside the scope of a developer, especially if we are speaking of technical and deep fields like health care or finance.
The rest isn't too bad. I often fear things are this would just be used to best people over the head that disagree with "best practices" in the industry or work in unfavored industries.
You're on the right track. These moral codes are supposed to get people thinking whether their acts are really ethical, or just rationalized as such.
If you forgot about maybe ensuring blind accessibility, then you goofed. If you were informed of this issue, and refused to seriously consider the matter, then you broke the code of conduct. If you seriously consider the matter, and decide not to implement blind accessibility after estimating the cost/time for doing so, then you are in agreement with the code.
>> diminish quality of life, diminish privacy or harm the environment. > Could you work at a targeted advertising company or at resource extraction (eg mining)?
Environmental: I would guess the typical example of unethical software engineering is the big VW diesel scandal. As far as I understood, the Bosch engineers who wrote the offending code clearly documented that it is for debug purposes only, and use in production would be unethical and probably illegal. Were these engineers in breach of the code-of-conduct? In my view this depends on whether there is a good debug justification for the code; if not, then they acted unethically by even writing it and should have refused. The code-of-conduct requires them to think about whether such a feature is justified for debug purposes.
Did the VW people who put this into production break the code-of-conduct? Absolutely.
>> 3.03. Identify, define and address ethical, economic, cultural, legal and environmental issues related to work projects. >This seems way outside the scope of a developer, especially if we are speaking of technical and deep fields like health care or finance.
I think that the code-of-conduct just requires that you carefully think about these matters, and accept that your personal ethical responsibility cannot be discharged by "my boss/customer told me to do this".
I love how the existence of whiny college students becomes a shorthand excuse to write off anyone who wouldn't be chosen to appear in a Mentos commercial.
https://cacm.acm.org/magazines/2017/5/216328-listening-to-pr...
We had to study this code in my Computer Science program's ethics course.
A lawyer can be disbarred, and this is easy to enforce because they can't go into a courtroom and defend or prosecute afterwards.
Developers have no equivalent. There is no way to dictate who can and can't work as a developer. Perhaps you could create some sort of agency that every developer needs to be a part of to work, but I don't ever see developers all agreeing to give an organization that much power.
Also, since you mention doctors and lawyers, it is my feeling that many bar associations and state medical boards are more interested in protecting the finances of their senior professionals as well as their own organization than the public that they should be serving. That is not to say that I feel we would be better off without those organizations (certainly not in the short term), but it makes me hesitant to want to see such organizations brought to any more fields.
The software equivalent would be that you can't sign off on code for a safety critical system without proper credentials. Now that doesn't mean you can't write such code, just like the guy swinging the hammer and striking a nail doesn't need to be an engineer.
Here's how that situation is handled on the legal side in the US. Anyone is permitted to practice law for themselves, but to practice law on someone's behalf, you need to be admitted to the bar.
I'm not endorsing it, but I can imagine a situation where anyone can write code on their own, but to get paid to do it, you need a license (subject to ethics rules). Again, I'm not supporting the idea, but it could work that way.
Important caveat: companies must be represented by a licensed attorney. A non-attorney startup founder cannot represent his/her own company in court. This is technically legally compliant with "someone else" since the corporation is a distinct legal entity, but it means that if you can't afford a lawyer (and which of us working slobs can these days?) and someone sues your company you are SOL.
Courts are seeing a massive rise in pro se litigants over the last 15 years, entirely because legal services are stretching to costs that put them outside the reach of non-millionaires.
Law is a great example of the nightmare that software can become if we go overboard on regulation. There was once a time where becoming a self-taught lawyer was not all that different than becoming a self-taught programmer. You could learn just by "reading the law" and shadowing professionals, much like you can learn just by reading (and writing) code today. It was at least partially merit based and some of the best legal minds of the last generation came up this way.
Now, you have to sacrifice 6 years of your life and easily half a million dollars to be allowed to even try to sell legal services, and the market is so flooded with low-end graduates who are stuck in this desperate situation that many of them can't even sell their services anyway, due to the extreme competition in the lower rungs (driven by student desperation to find work to pay down that massive debt and the artificially constrained supply by the ABA's excessive licensing requirements).
http://news.thomasnet.com/imt/2013/07/15/is-a-professional-e...
This idea that all other engineers have a PE is rampant in the software field, but it's just not true.
I don't think it's a good idea to require licensing for most software engineers, but I think this specific concern is not actually a significant issue.
Or he can, as long as he only writes static HTML and not a line of javascript, or he can do that as long as she doesn't pay him even a nickel or a free quilt?
Except we don't have kings anymore but hundreds of thousands f corporations writing the rules to benefit their shareholders who collectively act as the brain.
That's an important point, but even so, not knowing a lot doesn't mean we know nothing. We certainly know that using source control is important, we know some languages, some APIs and some practice are inherently unsafe, and projects using those should implement stringent security audits in particularly vulnerable deployments. They largely don't, and it's hard to argue that this isn't unethical.
I'm just saying it's complicated, and part of that is because we don't really have a good grip on the problem.
Finally, classifying the creation of something as unethical doesn't necessarily entail its use is unethical. An unethically developed cure for cancer would certainly be widely prescribed and used, despite the long history of medical ethics.
I had this issue at a previous job, someone above me wanted access to some info they didn't need for their job and I ended up sending an email saying "As the Jr Developer, I have the authority to tell you to go through HR and prove your business need for this". The problem is that developers are put under IT and that's not exactly perfect.
By that logic, providing legal counsel to any number of federal government departments or agencies is a violation of professional conduct. Which, of course, it is not.
You seem not to admit that possibility in your phrasing.
It's far from obvious that these things are unethical or immoral.
Sure, that's the consensus among a vocal segment of the readership of HN, but I imagine that the security services have no problem finding people who think surveillance and cyber warfare are necessary and patriotic duties, or that adtech companies can find people who think targeted advertising is a glorious expression of efficient free market entrepreneurship.
You will find plenty of lawyers working for the Justice and Defense departments, and also defending tech companies against privacy-related lawsuits.
Or the DoJ lawyers filing uncontested FISA warrants for inappropriate things?
I know! You must mean the federal prosecutors who overcharge as a matter of course to have negotiating leverage for plea deals.
Or maybe the patent trolls? Upstanding folks those are!
Lawyers definitely don't (categorically) do anything besides what their client wants, externalities and ethics be damned.
As an example, look at the Prenda Law guy, who was basically using his status as a lawyer to run a high-tech extortion scam. He's had his license suspended, and will surely be disbarred:
https://arstechnica.com/tech-policy/2016/09/prenda-lawyer-pa...
Or look at Jack Thompson, famous hater of video games, who got disbarred for making "defamatory, false statements and attempted to humiliate, embarrass, harass or intimidate" people:
https://en.wikipedia.org/wiki/Jack_Thompson_(activist)
And of course there are plenty of people who have been disbarred for cheating and abusing clients.
I too would like the legal ethics to be stronger on the "do no harm to society" side. But there's no denying that legal ethics have real teeth. Our industry could learn something from them.
That's not what the post I was responding to was talking about. It was talking about "all immoral or unethical activity", and specifically about surveillance, dark patterns, data aggregation, and cyber warfare.
Lawyers have signed off on all of those behaviors at their organizations (particularly the surveillance and cyber warfare ones). They've done contortions to get them "approved" in contracts. If the lawyers at those organizations okayed it, it's fascicle to pretend engineering ethics would've stopped it.
Further, when talking about "all immoral or unethical activity" it's entirely germain to point out lawyers routinely engage in both without consequence.
tl;dr: Lawyer rules are about professional standards, not conduct. You can represent the devil in his suit to rule the world, you just need to be polite and bill fairly.
Most lawyers don't do bad things because they're decent people. Ethics codes don't stop unethical behavior any more than laws stop crimes. There is some small percentage of the population who will shy away from a crime specifically because of the potential punishment, but most people wouldn't steal or murder regardless of the law. Ditto for lawyers.
Being a decent person is a good start, but that's just not enough. It's a complicated world, and the obvious thing isn't always the right thing. Especially when people are embedded in an economic system that strongly rewards behavior that could easily be ethically dubious.
The rules for professional conduct, and the organization to enforce it for lawyers, did not prevent the NSA/DOJ lawyers from determining that mass surveillance was legal, and could be implemented legally.
In the face of that, what rules for professional conduct and an organization to enforce it like lawyers have, could engineers have implemented that would have prevented those engineers from building that system?
They didn't build the surveillance system, nor did they pass the laws in the first place that would allow for such a system to be legally built.
Regarding the engineers here, it's not black and white. Looking at the ACM code of ethics, #1 is "Software engineers shall act consistently with the public interest." Is building a mass surveillance system "in the public interest?" That's grey. My personal opinion is "no", but I can see the point of view of "Protecting my country from terrorists is in the public interest."
If we're going to look at the NSA surveillance systems, the first place to look is at the legislators. If we want to prevent the government from building such systems, step 0 is to make these systems illegal. That ripples down all the way through this: the lawyers' analysis would have come up negative instead of positive, and it's clearly not in the public interest to build systems that have been democratically-determined to be negative.
Among the various professions that do have an ethical code of conduct, generally speaking lawyers/solicitors are not seen by a large amount of people as being particularly compliant with it.
Now of course it is very possible that it is a wrong perception by the masses, but it is in my opinion quite unlikely that at the moment the argument "engineers lack a code of conduct, they should take lawyers as an example" will gain much popularity.
It just so transparently doesn't work in that field it's hard to even take the proposal as in good faith, since it has to ignore newsmaking and routine behavior. Rather, it comes across as a self-righteous comment: we have ethical standards (even if we routinely don't adhere to them and do terrible things as a matter of course) so clearly those engineers would be better if they were more like us!
The sarcasm likely wasn't constructive, so I'll apologize for that.
Having enforceable rules may improve ethical standards in the field without solving the problem entirely.
I'd also like to point out that I did not propose a solution. I think it should be considered, but I'm a long way from supporting the idea fully. There are a lot of negatives that come with license requirements that attorneys have.
https://www.emptywheel.net/2010/03/09/ronald-rotunda-yoo-sen...