News for hackers. Stuff that matters.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by Signez on Tuesday August 23, 2022 @06:57AM (#32562972)
This excerpt is frightening:

> About half of the company's 500,000 servers run on outdated software that does not support basic security features such as encryption for stored data or regular security updates by vendors

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by jonahbenton on Tuesday August 23, 2022 @07:45AM (#32563383)
The "does not support basic security features such as encryption for stored data" unquoted line of reporting is almost certainly not what Mudge wrote and is likely not literally true.

That 500k servers in Twitter infra are missing patches certainly is true and what was likely in the original was a statement that stored data that should have been encrypted at rest was not, and/or that acceptable standards for data at rest encryption, a relatively rapidly moving freight train, were not maintained.

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by akkartik on Tuesday August 23, 2022 @11:55AM (#32566799)
No need to speculate, thanks to the links provided by mzs at https://news.ycombinator.com/item?id=32562815#32564900

From https://www.washingtonpost.com/technology/interactive/2022/t..., page 6:

"..more than half of Twitter's 500,000 servers are running out-of-date operating systems so out of date that many do not support basic privacy and security features and lack vendor support. More than quarter of the 10,000 employee computers have software updates disabled! More than half of Twitter employees have access to Twitter's production environment -- unheard of in a company the age and importance of Twitter, where nearly all employees have access to systems or data they should not. At Twitter engineers work on live data when building and testing software because Twitter lacks testing and stage environments; work is conducted instead in production and with live data..

"This did not happen overnight. To get where Twitter is today took.. many years.. required repeated downplaying of problems, selective reporting, and leadership ignorance around basic security expectations and practices."

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by hn_throwaway_99 on Tuesday August 23, 2022 @11:50AM (#32566721)
I have discovered that there are vastly different definitions of "encryption for stored data" that can mean critically different things for security.

One definition is "the underlying disk is encrypted". This is true, by default, of virtually all cloud environments these days. But it really only protects you against physical access to the storage media, which actually is far from the top threat.

The other, more useful/meaningful definition, is "we encrypt everything at the application layer before it is placed into the DB, and all decryption requests are logged by user". For example, using an envelope encryption scheme to encrypt data before it is stored in a DB, and upon retrieval decrypting the data with a call to something like KMS. In that environment you can literally give readonly DB access to all your developers and not have to worry about PII being exposed. If hackers somehow got access to your DB, they wouldn't be able to read sensitive data, and if they also managed to get access to your KMS credentials, any attempts to decrypt the data would be tracked and logged.

My point is that when many companies say "we encrypt your data", they are usually just talking about the first thing, but that doesn't really provide that much additional security. The second definition is really what you should be doing.

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by olliej on Tuesday August 23, 2022 @09:28PM (#32573940)
I think the good comparison that people encounter day-to-day is full disk encryption. It's the default on macOS, the only option on iOS, (those are the two platforms I use), and I assume the case on windows and android.

The thing is FDE essentially only protects your data when your machine is powered off. Once your machine is booted and you've logged in any block level encryption ceases to be relevant, because to get to the point of running your machine has to have loaded in the relevant key material to decrypt. From that point on user space code no longer sees a difference between encrypted and decrypted drives. In other words FDE is not relevant is you lose a powered on device (post login if relevant to the platform), and you're the kind of person people are actively targeting (I recall recently? the content of someone's phone or such being dumped by the FBI because they grabbed it while it was being used).

That's why modern OS's have different key classes, there's the lowest level which is just FDE, but you can have higher levels where requesting key material essentially just gives you a handle to that material. Then the OS, or preferably hardware with a much less complex OS, manages those handles and invalidates them according to policy rules. e.g you may want your phone to have access to your address book while your phone is locked, which does not mean you need your call history available as well.

The policies provided by OSs tend to be fairly simple because it's better to have an easy to understand API that is easy to use and hard to screw up than a more "powerful" API that is easy to screw up and hard to use (the latter resulting in people simply not encrypting things at all). e.g iOS/macOS only has the following file protections when you create files: "NSFileProtectionComplete", "NSFileProtectionCompleteUnlessOpen", "NSFileProtectionCompleteUntilFirstUserAuthentication", "NSFileProtectionNone", but they're very easy to understand.[1]

I tried to find the android equivalent but I don't know the terminology that's used and I just get linked to instructions on using AES, so if someone could link the correct doc I'd appreciate it.

[1] https://support.apple.com/guide/security/data-protection-cla... and https://support.apple.com/guide/security/keychain-data-prote...

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by sylens on Tuesday August 23, 2022 @09:03AM (#32564311)
I think it's also important to recognize how much of a "check the box" security control encryption at rest has become for many vendors/GRC teams. A lot of times, the encryption at rest control only has the capability to prevent somebody from physically detaching the disk and trying to mount it with their own machine and access the data that way. In a world where many companies now run their workloads on public cloud providers who keep their hardware in distributed cages in secure datacenters, this isn't the security control many assume it is.

If you're trying to prevent an actor who has gained a foothold on a box/network from seeing plaintext data that is actually in use by the actual production system at that very moment, you're looking for a much stronger type of control - probably some sort of client-side encryption or obfuscation/tokenization

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by physicles on Tuesday August 23, 2022 @11:36PM (#32574719)
Finally, someone points out the emperor has no clothes. When customers first started requesting encryption at rest, it didn’t make any sense to me — the threats it mitigates aren’t worth worrying about if you’re using public cloud.

So it is just a checkbox then.

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by zionic on Tuesday August 23, 2022 @11:34PM (#32574699)
I suspect this will be the norm going forward.

Big tech was taken over by bean counters long ago, the fact that it’s all running on duct tape and popsicle sticks under the hood will come back to bite us when we have a digital Pearl Harbor event.

China will invade Taiwan and the first shot won’t be physical, it will be activating the 30 years of assets they grew in AWS/GCP/cloudfare/level3/AT&T/Etc

Most of their HR/engineering departments are completely retarded. They’ll hire any H1B who passes l33t code that accepts $50k under market rate then give them repo access in a few weeks. Our soulless megacorps are beyond easy to penetrate by hostile intelligence.

The CIA/NSA/FBI, you know the groups who we pay billions per year for and they take half my income to fund will of course not catch any of this.

The FBI is too busy manufacturing domestic terrorist, the NSA is too busy hacking American companies, and the CIA is too busy importing drugs to actually secure our country from foreign attack. Why? Because it’s been so long since we were actually attacked they believe it can’t happen so why not loot Rome in the mean time?

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by rightbyte on Tuesday August 23, 2022 @07:42AM (#32563355)
It is also frightening that they need half a million servers.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by jonahbenton on Tuesday August 23, 2022 @07:46AM (#32563397)
The JVM is a hungry beast.
[dead]
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by UncleMeat on Tuesday August 23, 2022 @08:53AM (#32564183)
An interesting statement in a thread about widespread security weaknesses.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by qualudeheart on Wednesday August 24, 2022 @05:58PM (#32586318)
Security weakness aren’t a problem if you limit yourself to MISRA C techniques. You don’t need modern languages.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by UncleMeat on Thursday August 25, 2022 @09:24AM (#32593382)
We observe very clearly that teams consistently fail to write vuln-free C applications of any meaningful technical or organizational complexity. Following various guidelines empirically does not solve the problem.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by hunter-gatherer on Tuesday August 23, 2022 @08:16AM (#32563712)
C has such a bad wrap with the HN crowd...
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by swores on Tuesday August 23, 2022 @10:15AM (#32565246)
I think a comment of "smart people use <any language>" would be downvoted.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by memling on Tuesday August 23, 2022 @10:08AM (#32565132)
> C has such a bad wrap with the HN crowd...

why?

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by hn_throwaway_99 on Tuesday August 23, 2022 @11:56AM (#32566819)
It really doesn't. After all, many (most?) other languages like Java and JavaScript are implemented primarily in C and/or C++.

Where it gets deserved opprobrium is that it has no memory safety features, and thus inherently contributes to gobs of security vulnerabilities, and there are safer alternatives now, like Rust.

C is basically "portable assembly", and it's rarely the right tool for the job these days.

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by _vdpp on Tuesday August 23, 2022 @04:56PM (#32571396)
Can only patch so many buffer overflows, off-by-one errors, format string vulnerabilities, integer overflows, race conditions, use-after-free errors, etc, before it gets to be a bit tiring. Safer alternatives exist.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by secondcoming on Tuesday August 23, 2022 @07:13AM (#32563098)
Why bother hacking Twitter when it'd be cheaper to bribe an employee to get all the information you want:

> allows too many of its staff access to the platform's central controls and most sensitive information without adequate oversight

It'd be even easier if you find an employee who's on the same political team as you.

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by Mindwipe on Tuesday August 23, 2022 @07:20AM (#32563170)
The likelihood is that bad actors do.

It's one of the reasons I disliked Twitter forcing the use of mobile numbers for 2FA, they're just not sufficiently trustworthy. And I have an account under my real name! If I were a political dissident etc that just feels like an insane idea.

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by vineyardmike on Tuesday August 23, 2022 @07:34PM (#32573039)
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by kerng on Tuesday August 23, 2022 @07:09AM (#32563078)
I wish companies generally would be more transparent - I'd imagine this be the norm at most companies.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by netsharc on Tuesday August 23, 2022 @07:50AM (#32563431)
Just do it the Zuck way: "If you make an FB app, you can read all user's data and their friends' data, but click here to promise that you won't do that and you won't use the data to subvert democracies...".
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by adrianmsmith on Tuesday August 23, 2022 @08:29AM (#32563877)
To be fair this hasn't been the case for many years.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by tppiotrowski on Tuesday August 23, 2022 @07:06AM (#32563049)
I wonder if they're running Ubuntu on 32-bit hardware
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by raverbashing on Tuesday August 23, 2022 @07:15AM (#32563119)
or RHEL 6
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by discodave on Tuesday August 23, 2022 @02:04PM (#32568719)
Hahahaha...

Wait until you hear about the large cloud provider running RHEL5... (I worked at said provider).

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by imron on Tuesday August 23, 2022 @07:44AM (#32563372)
I wish this was a joke. I know of systems running multibillion dollar companies that are still using rhel6.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by taf2 on Tuesday August 23, 2022 @07:27AM (#32563224)
RHEL5 more likely based on when twitter was founded
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by antegamisou on Tuesday August 23, 2022 @07:47AM (#32563404)
Wasn't it them that had a bug that exposed users' passwords in plain text a few years back?
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by sytringy05 on Tuesday August 23, 2022 @08:17PM (#32573405)
I think they were logging them in clear text, so server side, prolly ended up in splunk or elasticsearch.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by encryptluks2 on Tuesday August 23, 2022 @07:44AM (#32563376)
First, servers generally run on operating systems. No one with any serious knowledge would use the phrase run on software. Second, does this guy have any actual tech knowledge at all? He doesn't list what operating system they are running or what security updates he is expecting. It doesn't sound great but I assure you I've probably seen worse on systems used by the literal federal government to conduct official business and store sensitive information on. All government cares about is having remediation plans in place.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by vngzs on Tuesday August 23, 2022 @07:50AM (#32563434)
> Second, does this guy have any actual tech knowledge at all? He doesn't list what operating system they are running or what security updates he is expecting.

"This guy": https://en.wikipedia.org/wiki/Peiter_Zatko

Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by encryptluks2 on Tuesday August 23, 2022 @07:58AM (#32563517)
Then he should be in an even better position to specify what the actual issues are in details and not some abstract garbage. You could summarize the information there as.. "Momma, servers bad. Need encryption. Need updates."
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by koheripbal on Tuesday August 23, 2022 @08:10AM (#32563645)
They are intentionally vague for legal and security reasons.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by encryptluks2 on Tuesday August 23, 2022 @08:29AM (#32563869)
What legal and security reasons exactly?
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by batch12 on Tuesday August 23, 2022 @08:52AM (#32564164)
Publishing a detailed report of infrastructure and specific CVEs would be irresponsible and malicious. If that is off the table the only thing left is ambiguity. Also, the audience is important. They are going for maximum outrage, not glassy eyes.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by nprateem on Tuesday August 23, 2022 @07:42PM (#32573100)
They could probably sue him under his employment contract for breach of confidentiality
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by encryptluks2 on Wednesday August 24, 2022 @04:57AM (#32576678)
We won't know until we see the documents. Right now it is a bunch of basic accusations that don't provide much depth.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by WatchDog on Tuesday August 23, 2022 @08:21AM (#32563771)
Operating systems are software.
Re:Ex-Twitter exec blows the whistle, alleging reckless cybe... by thedougd on Tuesday August 23, 2022 @08:09AM (#32563637)
My first thought was the hypervisor layer.