634 points · by obi1kenobi · 4y ago · 295 comments
The virus looks for a Delphi installation, modifies the SysConst.pas file, which is the source code of a part of the standard library and compiles it. After that, every program compiled by that Delphi installation will contain the virus.
The virus does nothing else, it is therefore harmless if you don't have Delphi installed.
It resulted in many software vendors releasing infected executables without realizing it, sometimes claiming false positives. After all, the executable was not tampered with, the compiler was.
The key thing about the Karger–Thompson attack — the thing that makes it so scary — is that all your source code can be absolutely clean, you can recompile the compiler from clean source code, and you're still compromised.
But if you recompiled the Delphi compiler from an infected installation...
What made it as horrifying as it was at the time was the closed nature of compilers, and the increasing unfamiliarity with what actual machine code looked like, and the non-existence of tooling to help recerse actual runtime behavior.
Popping in a hidden 'hunter2' login handler is still going to require hiding/deriving/comparing against that state/hash/input on that machine. That extra cruft is going to stick out.
Whether anyone can be bothered to dig into it is another question. Theoretically speaking though, all computation is human reading or writing, just implemented with circuits.
But I think the situation now, relative to then, is precisely the opposite of what you state. The C compiler Thompson backdoored was distributed as source code under a fairly liberal (but non-transferable) license; its compiled form was only a few tens of thousands of instructions, including all the libraries it was linked with; the people it was distributed to were very familiar with the machine code; and single-stepping through machine code was a common way to debug problems. An old boss of mine had his first system administrator job about that time; his first task as a sysadmin, as I recall it, was to port a program written in assembly language to the operating system they were using.
By comparison, today, many people use compilers they don't even have source code for; GCC and clang are tens of millions of instructions; many programmers even in C, C++, and other such low-level languages don't know assembly; most programmers work in high-level languages like Python, Java, or JS, and those have even less familiarity with assembly; and there are some eight orders of magnitude more useless computation being carried out in which such a backdoor could hide.
Quick googling tells me this happened in August, 2009... which was 13 years ago. Quomodo fugit tempus!
https://www.mail-archive.com/cryptography-digest@senator-bed...
https://groups.google.com/g/sci.crypt/c/PybcCHi9u6s/m/b-7U1y...
btw is there any public archive of ~old usenet (say, through 1999)? I was trying to remember things I learned from on alt.2600 but groups.google.com says it's "banned".
Unfortunately the completer archives that people had (magtapes etc) got donated to dejanews (which later became google groups) or Google directly. This was about 20 years ago when Google was seen as a safe place to put that stuff.
We know better now
The archive.org alt.2600.mbox covers only 2002-2013. Maybe after google gets broken up, we'll discover that this data is still preserved, and can be liberated. We can dream.
Just wondering if there's a good way to programmatically search "old" records like these.
fyi: the self reproducing cpp was installed on OUR machine and we enticed the unix support group
but without quotes. I know it's quixotic but I kind of wish altavista was still working (now yahoo owns the domain name).> If one reads the original paper, one only finds a description of this attack as a thought experiment, leading one to conclude that any claim of a real-world attack by Thompson was an urban myth due to exaggeration.
This is true although Thompson gives some tantalizing hints in the paper.
In the introduction, he writes " I would like to present to you the cutest program I ever wrote." So he definitely wrote it and at least played around with it.
Later on in the "Moral" section, he writes "The moral is obvious. You can't trust code that you did not totally create yourself. (Especially code from companies that employ people like me.)"
This appears to be an admission but not quite strong or direct enough to validate he implemented and used the Trojan horse so it is great to read this post.
[1] https://csrc.nist.gov/csrc/media/publications/conference-pap...
> However, in 1995, Usenet poster Jay Ashworth, citing personal communications with Ken Thompson, provided strong evidence of the existence of a real-world experiment of this attack. Unfortunately, the full Usenet message is missing on the web. There are only quoted snippets of this Usenet post circulated around various blogs, reducing its authenticity.
> In 2021, I’ve rediscovered the full Usenet message after a search effort in multiple Usenet archives. My success was partial - it was still a repost by someone else, and I was unable to find the original message. However, this repost contains the full Usenet message, including complete headers and message body, with the poster name and its Message-ID, establishing the authenticity of the post beyond reasonable doubts.
I just want to further call attention to this. We have the unspoken notion, an assumption that digital materials, once 'written' will remain forever.
And, for a short-term 'forever' this is true. Not so for longer 'forever', as the loss of the original Usenet post, despite replicated across many systems, demonstrates.
There needs to be bottom-up and top-down pressure for open data standards and also a re-thinking of digital ownership rather than digital licensing. We think people don't care, but the engineers who build these systems are a tiny minority, we only need to convince them to refuse to build walled gardens.
https://web.archive.org/web/20220121041452/https://www.nytim...
"I copied this page from the ACM, in fear that it would someday turn stale."
[1] https://web.archive.org/web/20080111144410/http://cm.bell-la...
Very cool to watch, indeed.
Perhaps we should go ahead and have a few hundred thousand emails printed with a special lasting ink on velum to pass it on to our successors ("Codex Electronicus"). On reflection, my own inbox is perhaps rather too nerdy - it would introduce a strong selection bias to posterity's view about us.
Do you have any evidence for this? Even assuming it’s true, doesn’t the volume of podcast/YouTube/email/facebook/HN posts more than make up for it?
Example: In my experience "The chad was good" and various jokes around "hanging chads" and "pregnant chads" still sometimes land with people who remember the 2000 election and Charlie's Angles, but anyone a little younger misses it.
Now I'm curious how many jokes in an episode of "John Oliver" or Southpark land even a year or two after the episode airs.
I run into this problem not just when watching old shows, but also when watching contemporary TV developed in other countries. Usually it's references to proper nouns I've never heard of, and I do often look those up, but even once you know what or who something was sometimes you'd have to be willing to go deep into various rabbit holes to really understand it.
Hello future people!
https://bootstrappable.org/ https://reproducible-builds.org/
This would probably be a bit more difficult to pull off. If someone did pull it off, fully reproducible builds ought to make it readily detectable at least in the absence of some extreme rootkit contortions.
It's a valid question and has deep philosophical implications. Unfortunately, mathematicians are not tech workers, so they were not impressed, and closed the question as off-topic. I personally think the main reason resposible for the lack of enthusiasm from mathematicians is that formal methods are rarely used in our society, and mathematicians in general (with the exception of logicians) also do not really value formal axiomatic systems as the something especially important for setting a standard of truth. If formal methods are used in decision and policymaking in the far future, the picture will be different. Nevertheless, right now, malicious proofs are just a hypothetical thought experiment.
https://mathoverflow.net/questions/63816/consequences-of-tec...
First, the proofs were verified by a separate prover that was itself independently formally verified.
Second, the proofs were manually verified by multiple people. Once you know how to read first order logic notation (which is easier to learn than most programming languages), it's not hard to verify the steps by hand. The paper walks through the key parts.
For more details see the paper :-).
) we enticed the "unix support group"
) (precursor to usl) to pick it up
) from us by advertising some
) non-backward compatible feature."The more there are, the harder it would be to successfully execute this attack for any length of time.
However, it could and certainly has been done in specific targeted cases I bet.
https://dwheeler.com/trusting-trust/
This is an automatic process: you compile each compiler with the others a few times and compare the outputs. At the end it gives a criterion to decide which compilers contain trojan horses.
I'm the author of the DDC dissertation at https://dwheeler.com/trusting-trust/
If I understand you correctly, that doesn't counter DDC, as long as the system being generated is being covered by DDC.
If you're worrying about inserting code into "unused spaces" in the file that people typically call the "compiler", the solution is to check the compiler with DDC - that guarantees (given certain assumptions) that all of the executable can be explained by the source code. The source code could have malicious code, but developers know how to review source code.
If you're worrying about inserting code into "unused spaces" in other files of the larger system, the paper explains how to counter that too. Basically, treat the entire system as the "compiler" & regenerate it. More work, but now you've squeezed that out.
There's even a counter-example in the DDC paper. The tcc compiler had a subtle bug where 2 bytes were "free" (not controlled by the compilation process). That's because it was storing a 10-byte floating point value into a 12-byte memory area, leaving 2 bytes uncontrolled. DDC immediately detected a problem. DDC can detect 1 bit of difference. There's no "uncontrolled free space" for whatever is being verified by the DDC process.
Unlike most computer stuff, there's a mathematical proof in the DDC paper. If the assumptions hold, the conclusions necessarily follow. Attackers must take steps to invalidate at least one of the assumptions for the conclusion to fail. Of course, nothing is perfect - if an attacker subverts an assumption, then the defender can't rely on the conclusion. But the defender can take steps to make the assumptions true.
... if, of course, you also knew you could trust your examining tools, including the firmware and hardware. You can't provably do that unless you assembled the entire thing from transistor gates (and even then, you're still accepting somebody else's assertions about electron behavior in that material.) So at some point you have to just decide that there's some level of operations that you do trust.
That's exactly the point - a sufficiently deep supply chain attack can avoid detection just because no one bothers to look that deep.
These message keywords cracked me up.
How can we be sure that Ken (working for Google) didn't infect the toolchain used for Chrome to propagate that legend?
Then again, perhaps he also infected all those fancy PCB & IC supply toolchains…
EDIT: just kidding - no "chrome-headless-c++ -c firefox.o firefox.cpp" (yet).
It does not.
There is no shared code between Firefox and Chrome. They use completely different rendering engines with independent histories (Chrome uses Blink originated from WebKit originated from KHTML, Firefox uses Gecko originated from Netscape originated from Mosaic).
The only shared component is that Firefox utilizes public APIs for Google SafeBrowsing.
Disclaimer: ex-Mozillian
ELI5: are you really sure that when you work on Firefox source code from VS Code, that what ends up in the saved file and what gets committed to Git is what you actually see on screen?
[1] https://en.wikipedia.org/wiki/G%C3%B6del%27s_incompleteness_...
All the other theorems (Gödel, Church, Tarski, Turing) are basically the same if you squint your eyes hard enough.
) writing to news just causes more
) misunderstandings in the future. there
) is no way to win.
Pretty amazing insight!
Old-timers like Ken Thompson clearly have understood the nature of a social network since a long time ago.
Although Ken Thompson is responsible for popularising the idea through his Turing award speech in 1984.
Edit: Ken Thompson mentions the paper in the acknowledgements of his Turing award speech.
""" Acknowledgment. I first read of the possibility of such a Trojan horse in an Air Force critique [4] of the security of an early implementation of Multics. I cannot find a more specific reference to this document. I would appreciate it if anyone who can supply this reference would let me know. """
Always neat to have lost sources show up eventually. Librarians rule.
Can someone cooler/younger tell me: Is this the hand-off to the new generation, or is there a meta-meme I missed?
Too old for this shxt: 80-col formatted plaintext
Greybeards: LaTeX-generated PostScript
Modern professionals: HTML doc with default browser stylesheet
Kids These Days: Anime girl sidebarI don't think so. This was the default GNU style in the 90s, but even they started using CSS at some point.
Definitely my preference, but too old? They will have to pry my keyboard from my dead hands.
I don't know if the screenshot was doctored, or if the Amazon recommendation engine found a real cluster of customers who are interested in both programming books and programming socks. In any case, I suppose it doesn't really matter because when people spread funny memes ironically it's only a matter of time before people join in sincerely without the irony.
In short the answer to your question is "both".
Notice that an anime girl holding a programming book is in itself a (mild) subversion of gender roles. The stereotypical programmer is male, and the stereotypical programmer is not cute.
...I think I like it
I was originally going to say "Hey, just do you" but then I totally get that feeling of "I'm into X just because I like it but for some stupid reason X signifies Y which I really don't care for" and it sucks.
> I kinda like it, and kinda wish it was just totally cool to have a waifu on my site too without having to lean into irony or identity to "justify" it against this cringe instinct.
it's only once you accept that you are cringe, that you are are free to become truly based.
"anime is trash... and so am I"
Yet here I am with a random username. I do also have a public professional website though.
If you are browsing in dark mode, there is no background image. You have to switch to light mode to see it.
So I guess we now know the heathens who drive in light mode ಠ_ಠ
Back then, me and friends spent an insane amount of time on reverse engineering a Japanese file sharing app so that we could build our own server version (like Deluge nowadays) and then we built our own IRC server and our own XDCC download bots so that we could get Anime raws onto a university server and then recode them to make download over ISDN (64kb/s) feasible.
Also, a lot of the Animes featured socially awkward nerd guys who by accident stumbled into their own harem...
With that context, posters of Anime girls together with nerd stuff sold extremely well at Connichi (a big Anime convention in Germany). A friend of mine (who's now CTO of a C++ dev shop) even bought a wax printer so that we could make really high quality A3 posters.
So I guess it's an in-joke for Europeans born in the 80s.
[edit] Oh, right, I should explain what Furcadia is. It's apparently based on Multi-User Dungeon type technology, but has a graphical frontend and was driven by user-generated content. Essentially, it was Habbo Hotel for furries, four years before Habbo Hotel even existed.
The loop continues.
Combine with a greater acceptance of non-traditional personal identities, and you get professionals using anime and furry avatars and decorations. Practically speaking, it's not really any more or less professional than O'Reilly using animals to create an identity for its programming book covers (so long as you're not wearing a fursuit or sailor moon leotard to work).
What's risqué in OP's picture?
I'm in my mid 30's. I started blogging about cryptography and security under my furry handle (and with blog posts adorned with furry art) at the start of the pandemic.
It gave me something to do that was both productive and fun.
In at least one case I know of, by being so outrageously competent that they know it won't hurt their ability to get a job.
What exactly is embarrassing about this?
Suppose it's challenging why having an anime character next to a blurb of text is embarrassing.
https://en.wikipedia.org/wiki/Itasha
A lot of these people tend to be quite isolated from society in general, so they end up losing their sense of embarrassment entirely. Doing things that other people find weird or that make other people uncomfortable ends up becoming a sort of hobby for them (and often becomes their personality entirely) since they effectively have nothing to lose over it.
Proof: https://www.jwz.org/blog/2021/01/i-told-you-so-2021-edition/
I'm friends with the both on steam and they are both very very very into gaming (like 4-5 hours a day at least) so I always thought it was related to that somehow.
What happened? Anime and furry fandom became more socially acceptable across contexts. Why? Probably because of the ridiculous degree to which we are connected online and the way this has eroded our ability to segregate identities. A lot of people you have seen online have always been huge losers, but many of them are more open to flagrantly displaying it now.
Is this good? Dunno. I think making some of these subcultures more mainstream can suck for the subcultures themselves. I've never found it all that off-putting personally, but that could just be a reflection of my own biases as a long-time online loser.
What you call a "flagrantly display", I call a typical, progressive break from meaningless social conventions. People like cute drawings and post them on their websites, so what? And I think it provides good visibility to those communities to demonstrate the skilled and creative people that inhabit it.
I realize now this attitude may seem unnecessarily self-deprecating, though. Oh well.
#footer, .footer { display: none !important; }
Userstyle to remove the image from this site: @-moz-document domain("niconiconi.neocities.org") {
body {
background-image: none !important;
}
#footer {
display: none !important;
}
} <footer id="footer">
<img id="footer-image" src="/img/niconiconi.png" width="0%" />
</footer> @media (min-width: 770px)
body {
...
background-image: url(/img/niconiconi.png);
...
}
And on mobile you see that footer @media (min-width: 770px)
#footer-image {
width: 0%;
}@jstanley discovered that it's only visible when browsing in light mode.
What do you mean?
S–Should we tell him?
Nevxnjn Uvzr vf abg n tvey
(Insert balloon boy meme of the conspiracy theory guy at his bulletin board)
Of course, the Russians would probably be justified in wondering the same thing about a programming language created in the United States.
Now I want to have a closer look at S/360 and S/370 system tapes… ;-)