Lunduke
News • Science & Tech
The creator of UNIX built a Trojan Horse which let him log in to any UNIX machine.
And nobody knew about it for years.
May 05, 2024
post photo preview

Back in 1984, the Association for Computing Machinery presented Ken Thompson with a “Turing Award” for his many contributions to the world of computing.

And for good reason.

Ken worked on Multics, co-created UNIX, created multiple programming languages (Bon and B — which directly led to C), co-created the Plan 9 operating system, UTF-8, and on and on.  If anyone deserves an award for advancing computing... it's Ken Thompson.

But we’re not here today to talk about those extraordinary contributions to computing.

No, sir.

We’re here to talk… about his acceptance speech.

Because that speech revealed a truly fascinatin computer virus that Thompson had created years earlier… for the C compiler.  One which gave him a backdoor into UNIX itself.

The Speech

He titled his speech “Reflections on Trusting Trust”, and the basic premise is this:

“To what extent should one trust a statement that a program is free of Trojan horses? Perhaps it is more important to trust the people who wrote the software.”

To prove his point, Ken told the tale of how he had — years earlier — created what was, essentially, a computer virus that infected the C compiler (cc) and the UNIX login program.

Seriously.

This is real.

Ken could gain control of most UNIX systems

It worked, essentially, like this:

Ken modified cc (the C compiler on UNIX systems) so that — only when it was compiling UNIX’s “login” program — it would inject a small “backdoor” (into “login”) that would allow him to log in as any user on the system if he used a predefined “password”.

Which is, obviously, a pretty big security hole.

However…

That sort of "universall password" code would be likely to be found during even a rudimentary code review of the C compiler. Or, heck, even by any casual programmer who happened upon that section of the code.

What Ken did next was… devious.

Hiding his UNIX backdoor

He needed to make sure that, should anyone find his nefarious code in “cc”… that his backdoor would live on.

So he then added functionality to “cc” so that it would detect if it was compiling itself (because the C compiler was compiled… in the C compiler)… and insert code into the compiler that would add… itself.

Which means…

Even if the source code is removed from “cc” project… the code (for adding both the login backdoor and the “keep adding this to the C compiler” bits) would get “invisibly” injected into “cc” every time it got compiled by an already infected build of the compiler.

So… as long as there was an unbroken chain of using the C compiler from that point onward, the UNIX login backdoor was unlikely to be effectively removed.

Brutal.

According to Thompson:

“The actual bug I planted in the compiler would match code in the UNIX "login" command. The replacement code would miscompile the login command so that it would accept either the intended encrypted password or a particular known password. Thus if this code were installed in binary and the binary were used to compile the login command, I could log into that system as any user.”

The Moral of the story

As Ken Thompson put it…

“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.) No amount of source-level verification or scrutiny will protect you from using untrusted code. In demonstrating the possibility of this kind of attack, I picked on the C compiler. I could have picked on any program-handling program such as an assembler, a loader, or even hardware microcode. As the level of program gets lower, these bugs will be harder and harder to detect. A well installed microcode bug will be almost impossible to detect.”

Did this make it out into the wild?

I know what you're thinking.  "Is this code still out there?  How many systems were impacted by this?"

What we know: This bit of naughty code was released to at least one machine (used by a UNIX support group). This has been confirmed by Ken, himself.

However, it is believed that the code went no further than that machine.

But... do we know for sure?

Do we actually have a high level of confidence that the modified “cc” and “login” went no further than that support group UNIX box?

No. No, we do not.

In fact, according to Eric S. Raymond

“[I have] heard two separate reports that suggest that the crocked login did make it out of Bell Labs, notably to BBN, and that it enabled at least one late-night login across the network by someone using the login name “kt”.”

BBN.  That's Raytheon.  A critical DARPA researcher -- one which was instrumental in the early days of ARPANET.  A huge amount of software came out of BBN.  Heck, even the first Text Adventure game came from there.

If UNIX machines at Raytheon BBN were infected... the possibility of infected versions of those files making it to other sites is incredibly high.

Truly wild

Which leads to a (rather amusing, and mildly terrifying) bit of historical trivia:

Ken Thompson — one of the co-creators of UNIX — intentionally created a trojan horse that infected both the C compiler and the “login” program of UNIX systems.

What’s more… it went undetected for years.  We wouldn't even have known about it, if he hadn't told us he created it.

And we truly have no clue how widespread that trojan became.

community logo
Join the Lunduke Community
To read more articles like this, sign up and join my community today
22
What else you may like…
Videos
Podcasts
Posts
Articles
CachyOS Censors "Radicals" Opposed to Age Verification

In response to concerns about Age Verification features in SystemD, the CachyOS team says, "If you don’t want to use SystemD find another distribution," tells users to "STOP being radical".

More from The Lunduke Journal:
https://lunduke.com/

00:24:55
Michigan OS Age Verification Law Supported by Democrats & Republicans

Michigan's proposed Age Verification law would apply to all Operating Systems (including Linux), and would require commercial Age Verification.

More from The Lunduke Journal:
https://lunduke.com/

00:10:52
Slackware Says No to Age Verification, But Fedora Linux Says Yes

Two very different reactions to Age Verification. One says, "I doubt these laws would survive a challenge." While the other says, "It's a matter of hopefully, just adopting a standard API."

More from The Lunduke Journal:
https://lunduke.com/

00:14:19
November 22, 2023
The futility of Ad-Blockers

Ads are filling the entirety of the Web -- websites, podcasts, YouTube videos, etc. -- at an increasing rate. Prices for those ad placements are plummeting. Consumers are desperate to use ad-blockers to make the web palatable. Google (and others) are desperate to break and block ad-blockers. All of which results in... more ads and lower pay for creators.

It's a fascinatingly annoying cycle. And there's only one viable way out of it.

Looking for the Podcast RSS feed or other links? Check here:
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

The futility of Ad-Blockers
November 21, 2023
openSUSE says "No Lunduke allowed!"

Those in power with openSUSE make it clear they will not allow me anywhere near anything related to the openSUSE project. Ever. For any reason.

Well, that settles that, then! Guess I won't be contributing to openSUSE! 🤣

Looking for the Podcast RSS feed or other links?
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

openSUSE says "No Lunduke allowed!"
September 13, 2023
"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044

This episode is free for all to enjoy and share.

Be sure to subscribe here at Lunduke.Locals.com to get all shows & articles (including interviews with other amazing nerds).

"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044
Heads up: Errors uploading videos to Locals

Locals seems to be having some issues today (stats not loading, video uploads erroring out), so today's shows may be delayed on Locals until they sort that out.

All the other platforms have the latest show:

https://lunduke.com/

When is the last we had "Funny Pictures" and Tech Memes here on Locals.com?
💾
@Lunduke @BigCoder ... Do you feel up to posting a "Best 10" or Memes by the "Baker's Dozen"?

post photo preview

As seen on X.com (under @Lunduke thread)...
💥

post photo preview
Lifetime Wall Number 6, Plus How to Access MP4s & Forum

A few quick reminders for all of you amazing Lunduke Journal subscribers:

First: If you have any kind of payed subscription (Monthly, Yearly, or Lifetime) there are a bunch of cool perks available to you. MP4 Downloads, PDF eBooks, and access to the Lunduke Journal Forum. All the details on how to gain access to everything is right here.

Enjoy.

Second: At the end of this next week I’ll be unveiling “Lifetime Subscriber Wall of Shame” number Six at the end of all new Lunduke Journal videos.

 

At that same time I will be updating and permanently locking down Walls 1 through 5.

If you are already a Lifetime Subscriber, and would like to be added to the new Wall number 6 (or to one of the couple remaining spots on Walls 4 and 5), email me (bryan at lunduke.com) with how you would like your name to be displayed (full name, first name only, nick name… any way you like).

  1. CRT Linux Pico Wall: Full

  2. DOS Word Wall: Full

  3. Win 3.11 Notepad Wall: Full

  4. MacOS 9 Wall: 2 Spots Left

  5. PalmOS Wall: 1 Spot Left

  6. Mystery Wall: Open

Those final spots on the MacOS and PalmOS Walls are first come first served. The first people to request those spots get them.

Everyone else will roll over into Wall 6. Which is a secret, retro computer platform. You’ll dig it.

If you have already contacted me regarding being added to one of these walls (or changing the way your name is displayed), I’ve already got you on the list for the changes later this next week.

If you don’t already have a Lifetime Subscription, grab one and get yourself on the wall.

It’s pretty sweet.

-Lunduke

Read full Article
February 12, 2026
4th Wall Almost Full, $89 Lifetime Deal Ends Very Soon

Woo-hoo! The 4th Lunduke Journal Lifetime Subscriber Wall of Shame Awesomeness is almost full!

  • That means that, within the next day or two, the massively discounted Lifetime Subscriptions will go back to their normal price. So if you wanted to snag the $89 / $99 Lifetime Sub (instead of paying $300), now’s your last chance.

  • If you are already a Lifetime Subscriber and want to be added to the 4th (or the start of the 5th) wall, email me (bryan at lunduke.com). There are only a couple of spots left on Wall 4.

  • The new Lifetime Wall designs are locked and loaded, and will make their grand debut at the end of all new shows starting either Friday or Monday.

I also wanted to take a moment to thank all of the non-Lifetime Subscribers. The Lifetime Subs may get a little extra attention at the end of the shows… but every subscriber (Monthly & Yearly) helps to make this work possible.

All of you rule.

-Lunduke

Read full Article
February 08, 2026
79 Million Views in 6 Months for The Lunduke Journal

Welcome to February, all of you amazing nerds!

January was a fun month for The Lunduke Journal (thanks to all of you). For those interested in a little Inside Baseball, I’ve pulled together some stats and charts below.

The short version: Great month. Crazy news stories. Solid growth. Can’t complain!

Revamped Lifetime Wall

Oh! And the “Lifetime Subscriber Wall” is getting a “retro” facelift.

This is what the four Lifetime Walls currently look like:

 

Once that 4th Wall is filled (a little over 75% of the way there as of this morning), I’ll be introducing the new designs (for all the walls) along with the starting of Wall Number 5.

Each Wall now has its own, distinct look and theme. Very Retro Computer-y. You’re going to dig it.

To make that “Wall Number 5” get here as fast as possible, I’ve gone ahead an reinstated the “$89 Lifetime Subscriber” deal. But only until Wall Number 4 is full.

Want to be on the Wall? If you don’t have a Lifetime Subscription, grab one. If you already have one, email me (bryan at lunduke.com) to let me know how you want your name to be displayed.

Once Wall 4 is full, the Super-Mega-Ultra Discounted Lifetime Subscription goes back to regular price. And, the next day, the new Lifetime Wall design appears at the end of new shows.

At the current rate, I expect that to happen in the next couple days.

Stats for January, 2026

Now let’s look at the stats for January.

Can’t lie. I’m pleased.

  • 30 new shows (just shy of one new show every day)

  • 15.2 Million views (including podcast downloads)

  • 2,326 new subscribers

The most popular story of January, 2026:

Taking a high level view: This means that, in the last 6 months (Aug ‘25 - Jan ‘26), The Lunduke Journal has had:

  • 79.4 Million views

  • 21,694 new subscribers

Bonkers, right?

Here’s a chart of “views” for last 6 months:

Image
 

The long-term trend continues to be solidly upward, with February (in the first 7 days, so far) currently tracking slightly ahead of January.

For those interested in the specific platforms: The Lunduke Journal is seeing the most growth on X and the Audio Podcast.

Here’s a combined subscriber chart for January (up 2,326 subscribers from the month prior):

Image
 

Wild. It is truly amazing to me how widely these stories are spreading nowadays.

Over 15 million. In one month.

These are numbers that most of the big, “Main Stream” Tech Journalists could only dream of.

The reach of The Lunduke Journal, thanks to all of you, is now wildly exceeding any other publication I have ever worked with.

Even though most “Main Stream” Tech Journalists are refusing to cover some of the biggest stories in Tech… those stories are still getting out there.

They are being seen. Far and wide.

Thanks to all of you.

-Lunduke

Read full Article
See More
Available on mobile and TV devices
google store google store app store app store
google store google store app tv store app tv store amazon store amazon store roku store roku store
Powered by Locals