Trust Me Bro
This is talk 5 of 5 in my Rock Talk Security Series:
"Trust me bro" - a common argument you'll see on internet forums.
Have you ever heard the phrase "Only the paranoid survive"?
I agree that it's good to be cautious, but I take issue with the word paranoid. When you're paranoid, you go down some real tin-foil hat type rabbit holes. As we learned in Mission UnPossible and What's in YOUR Threat Model?, DoD Level Security and Threat Modeling implicitly discourage tin-foil hats.
Which brings us to the concept of trust. Everything in security, whether it is cyber security, information security, or physical security, is based on a bedrock of trust. You can't have security without trust.
When we think about mathematics and logic, they're based on axioms - foundational statements that we just accept as true. For example, so much of math is built upon the axiom that 1+1=2. That's the axiom that is the foundation for multiplication, subtraction, and division, which in turn are what algebra is built on, upon which calculus is built.
In security, the things that we trust are our axioms. But unlike math and logic, in security we might all have different axioms depending on who we are.
Let me give you an example: let's take this code. This is the source code for hello world. Now let's compile it. Now let's run it.
#include <stdio.h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}
$ gcc hello.c -o hello
$ ./hello
Hello, world!
Do we trust this code? Do we think the author of the code was attempting anything malicious?
Do we trust the executable? How do we know the compiler wasn't inserting malicious code? Maybe this compiler is written in such a way that every executable it makes is loaded with code to mine bitcoin?
You might say "oh, that compiler, that's GCC, that's tried and true, open source, we know there's nothing bad in it". But what compiler was the GCC source code compiled with - and do we trust that? Bottomless tin-foil hat rabbit hole. Unless you are going to physically gather all of the raw natural resources yourself, assemble your own computation device from scratch, smelting all the metals for the wires and semiconductors, and write all of the code on that particular hardware yourself, there's no way to be 100% sure of your software. At some point, we just have to trust.
But let's look at some less contrived examples.
We're all taught to only use websites that begin with https and to avoid http sites. The reasoning is that the s in https means "secure" and that it uses something called "certificates". But what makes this secure? Some might say "oh, encryption is what makes it secure". Okay, there is some truth to that, but things don't end there. Let's suppose we're logging into our bank. Let's call it MoneyBank.com.
When we enter our login information, we trust that it is encrypted and securely sent to MoneyBank.com. But how do we know MoneyBank.com is the real site? That is, how do we know that an attacker hasn't tampered with our DNS server? How can we trust that MoneyBank.com is the real MoneyBank.com?
When we buy a piece of art, let's say an original Picasso painting, we want to have confidence that we're buying an original piece and not a forgery. Rare paintings usually come with a Certificate of Authenticity. That certificate gives you confidence that the painting is original and not a forgery. The Certificate of Authenticity is issued by an art appraiser who has the expertise and skill to inspect the art and tell the difference between a real and a fake. And why do we trust the art appraiser? Usually, we just do. That is where our chain of trust ends. That is our axiom, our foundation. Now, there are corrupt appraisers out there who will issue fraudulent certificates of authenticity, but we more or less trust that this doesn't happen, or that these people eventually get caught, go to prison, etc... so we trust that the chain of trust is trustworthy.
https works in a similar way. When we open MoneyBank.com, we trust that it is the real site and not a fake because the site gives us a Certificate of Authenticity as part of the https handshake. That certificate of authenticity was given to them by a Certificate Authority. Certificate Authorities are 3rd-party authenticators whom we trust implicitly.
These certificates are known as X.509 certificates. It is not important that you know what X.509 stands for, but if you ever see that term used, that's what it means. And the certificates are nothing more than text files with encrypted values. Here's an example. And this whole framework of certificates and Certificate Authorities is known as PKI: Public Key Infrastructure.
Example: the certificate for example.com, as text (first few lines), then decoded.
-----BEGIN CERTIFICATE-----
MIID5jCCA42gAwIBAgIQAe7mqrtSHV4U/DFf2ZhWkDAKBggqhkjOPQQDAjBRMQsw
CQYDVQQGEwJVUzEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMSgwJgYDVQQDDB9D
bG91ZGZsYXJlIFRMUyBJc3N1aW5nIEVDQyBDQSAzMB4XDTI2MDkyNjIyNDkxMVoX
...
-----END CERTIFICATE-----
Subject: CN=example.com
Also valid: example.com, *.example.com
Issuer: C=US, O=SSL Corporation, CN=Cloudflare TLS Issuing ECC CA 3
Valid: Sep 26 2026 to Dec 25 2026
Public key: ECDSA, 256-bit (NIST P-256)
Signature: ecdsa-with-SHA256, by the issuer
In our daily personal lives, the only Certificate Authorities that we interact with are companies that act as Certificate Authorities as part of their business model. However, in our professional lives, it's not uncommon for large organizations to have internal CAs.
Many large companies perform what amounts to a man-in-the-middle attack on all of their employees' web browsing. Now, for work-related stuff that's probably not a problem. But let's say that you log into your personal email or personal bank to check your balance while on your work computer. I would discourage you from doing that, because it's good to keep personal and professional separate, but let's say that you did. Maybe you log into your Amazon account to order something for the office. Your employer now has your login information - you trust them not to abuse that.
Now let's look more specifically at a software team. We consider our software to be proprietary information. Our source code is meant to be confidential. Our devices' administrator and BIOS passwords are kept safe from the rest of the world. But there are people on the team who have access to those things. We trust our associates to not steal those and sell them to our competitors.
Security mechanisms, such as locks and encryption and certificates and digital signatures and good coding practices and firewalls and VPNs, and all those other good things.... are all critical components of information and cyber security. But at the end of the day, they are all built upon the bedrock of trust. For each of these things, if you're trying to dig deeper to understand how they *really* work, if you go down the rabbit hole deep enough, that's where you'll end up.
More edits coming.