Blog

  • Patching Discipline: Boring, Scheduled, and the Reason Systems Stay Safe

    Read enough breach write-ups and a pattern emerges that is almost embarrassing. Most compromises do not use some brand-new, unknown flaw. They use a flaw that was already known, already fixed by the vendor, and already sitting in an update the victim had not installed yet. The gap between “a fix exists” and “the fix is installed” is where attackers live. Patching discipline is the unglamorous habit of keeping that gap small.

    Why the Gap Is So Dangerous

    When a vendor releases a security update, they are also, unavoidably, publishing a map. Attackers study updates to figure out exactly what was broken, and working attacks against the flaw often follow quickly — sometimes within days. That means the moment a fix is announced, every unpatched system becomes a known target with a known weakness. Waiting a month to install updates is not caution. It is leaving a documented door unlocked during the exact weeks when the most people are trying the handle.

    This is also why “it still works fine” is not an argument. A system with an unpatched flaw works perfectly — right up until it works for somebody else.

    The Legitimate Worry, and How To Handle It

    To be fair, the fear behind slow patching is real. Updates occasionally break things, and anybody who has had a routine update take down a machine they needed has learned to be careful. I run servers other people depend on, and I do not install blindly either. But the answer to that fear is process, not delay. It looks like this: turn on automatic updates where the risk of breakage is low — phones, browsers, and most desktop software belong in this category for nearly everybody. For servers and business systems, schedule updates on a rhythm, keep backups current so a bad update is recoverable, and roll the update to one machine before the fleet when you can. A bad update you can roll back is a nuisance. An exploited flaw you cannot un-exploit is a breach.

    Do Not Forget the Forgotten Things

    Patching discipline fails most often at the edges: the router that never gets updated, the old laptop that comes out twice a year, the plugin on a website that nobody remembers installing, the smart device that has not had new firmware since it was unboxed. Attackers love these precisely because nobody is watching them. Once in a while, take an inventory — every device and program that connects to your network — and ask of each one: is it still supported, is it current, and if it can never be updated again, should it still be connected at all? Unsupported software that faces the internet is not a tool anymore. It is an exposure.

    What To Do

    Turn on automatic updates for your phone, your computer’s operating system, and your browser today. Put a recurring reminder — monthly is a reasonable rhythm — to check the things that do not update themselves: router firmware, website software and plugins, and any server you run. Keep backups current so you never have to choose between safety and stability. None of this is exciting, and that is the point. Security is mostly not genius defenses. It is chores done on schedule, and patching is the chore that matters most.

  • Linux File Permissions, Explained Without the Headache

    Everybody who starts working with Linux hits the same wall early: a file refuses to open, a script refuses to run, or a web page throws a permission error, and the answer is a string of letters like rwxr-xr– that looks like a code from a spy movie. It is not complicated once somebody explains it in plain words, so here it is the way I wish somebody had explained it to me.

    Three Questions, Three Audiences

    Every file and folder on a Linux system answers three questions. Can it be read — opened and looked at? Can it be written — changed, saved, or deleted? And can it be executed — run as a program, or in the case of a folder, entered and looked inside?

    Those three questions get asked separately for three audiences. First, the owner: the one user account the file belongs to. Second, the group: a named set of users who share some access. Third, everyone else: literally any other account on the machine. So a file’s permissions are nine answers — read, write, execute, for owner, group, and everyone else — and that string of letters is just those nine answers written in order. When you see rwxr-xr–, you are looking at an owner who can do everything, a group that can read and run but not change, and everyone else who can only read.

    Why It Is Built This Way

    This system exists because Linux was designed from the start for many users sharing one machine, where your files had to be protected from other people’s accidents and curiosity. That design turned out to be just as valuable on a server with only one human user, because the machine itself runs as many different accounts. Your web server runs as one account, your database as another, and permissions are what keep a flaw in one program from becoming a flaw in everything. A website that gets hacked is bad. A website that gets hacked and can also read every other site’s files, because permissions were left wide open, is a catastrophe. Permissions are the walls between rooms in the same house.

    The Mistake Everybody Makes

    The most common beginner move — I made it myself — is fixing a permission error by opening the file up to everybody completely. It works, in the sense that the error goes away. It also works in the sense that leaving your front door off its hinges fixes a lost key. On a shared or internet-facing machine, that habit quietly removes the walls that limit damage when something goes wrong.

    The better habit is asking two questions before changing anything: who actually needs access to this, and what is the least access that lets them do the job? A file a web server only needs to read should be readable and nothing more. A script only you run should belong to you and answer to nobody else. Nine times out of ten the correct fix is narrower than the error makes you want to make it.

    Where I Land

    Permissions are not bureaucracy the system puts in your way. They are the simplest, oldest security tool Linux has, and they are working on every file on every server I run, all day, whether I think about them or not. Learn to read the nine letters and you understand who can touch what on the whole machine at a glance. That is a lot of understanding for nine characters.

  • Backups Are the Only Ransomware Plan That Always Works

    Ransomware is the attack that encrypts everything on a computer or a network and demands payment for the key. Businesses pay, hospitals pay, and plenty of ordinary people lose every photo and document they own. There is a lot of advice about preventing it, and prevention matters. But there is exactly one measure that decides whether a ransomware attack is a catastrophe or an inconvenience, and it is not prevention. It is whether you have backups the attack cannot reach.

    Why Prevention Alone Is Not a Plan

    Every defense can fail. Antivirus misses new variants. A patch gets skipped. Somebody clicks the wrong attachment on a tired afternoon — and ransomware groups know all of this, which is why they aim at people and not just software. If your entire plan is “it will not get in,” then the day it gets in, you have no plan at all. Worse, modern ransomware does not just encrypt your files and wait. Attackers commonly steal copies first and threaten to publish them, and they actively hunt for backups on the network to delete or encrypt before they announce themselves. A backup the attackers can reach is not a backup. It is just another file waiting to be locked.

    What a Real Backup Setup Looks Like

    The old rule in this business is called 3-2-1: keep three copies of anything that matters, on two different kinds of storage, with one copy somewhere else entirely. In plain terms for a household or a small business: the files on your computer, a copy on an external drive or a home storage box, and a copy in cloud storage or on a drive kept at a different location.

    The critical detail is the offline or disconnected copy. An external drive that stays plugged in all the time will be found and encrypted along with everything else. A drive you plug in, back up to, and unplug is safe from anything that happens to the network in between. Cloud backup services earn their keep here too, as long as the service keeps older versions of files — because a backup that instantly mirrors encrypted files has faithfully backed up your disaster. Version history is what lets you go back to before the attack, not just to the attack itself.

    Test the Restore, Not Just the Backup

    The most common backup failure is not a missing backup. It is a backup that was never actually working — a job that failed silently months ago, a drive that filled up, files that turn out to be corrupt when you finally need them. The only way to know a backup works is to restore something from it. Pick a file, delete a copy of it on purpose, and get it back from the backup. Do that every so often. A backup you have never tested is a hope, not a plan.

    What To Do

    Decide what you cannot afford to lose — for most people that is photos, documents, and financial records — and make sure it exists in three places, one of them disconnected or in a versioned cloud service. Automate what you can so it does not depend on your memory, keep one copy the network cannot reach, and test a restore now and then. Do that, and ransomware becomes a bad week instead of the end of your files. That is the whole secret: not keeping them out forever, which nobody can promise, but making sure that when they get in, they find they are holding nothing you need.

  • How a Zip File Squeezes a Document Without Losing a Single Word

    Take a long document, zip it, and the file might come out half its original size — sometimes much smaller. Unzip it, and you get back the original document exactly, every word and every space, nothing approximated and nothing thrown away. That sounds like a magic trick, because squeezing something down usually means removing part of it. File compression does something cleverer. It does not remove information. It removes waste.

    Files Are Full of Repetition

    The key insight is that ordinary files are padded with redundancy. English text uses the same words constantly — the, and, of — and the same letters in the same combinations. A file stored the plain way spends the same amount of space on the thousandth “the” as it did on the first one, as if each were a surprise. Images repeat colors across whole regions. Documents repeat formatting, spacing, and structure. Plain storage pays full price for every repetition. Compression is the business of noticing the repetition and refusing to pay for it twice.

    Trick One: Shorter Codes for Common Things

    The first trick is to rewrite the file in a kind of shorthand. Instead of giving every symbol the same fixed amount of space, you give the common ones very short codes and let the rare ones be longer. The letter “e” might get a tiny code; an unusual symbol gets a long one. Since the common symbols vastly outnumber the rare ones, the total comes out smaller — the same principle behind Morse code, where the most common letter in English is a single dot. Nothing is lost in this trick, because the shorthand is exact: a table built for that particular file says precisely which code stands for which symbol, and the decoder follows it back perfectly.

    Trick Two: Pointing Instead of Repeating

    The second trick is even more powerful. When the compressor finds a stretch of data it has already seen — a word, a phrase, a run of identical values — it does not write the stretch out again. It writes a small pointer instead: in effect, “same as back there, this long.” A document that uses the same phrase two hundred times stores it once and points at it a hundred and ninety-nine times. This is why text compresses so well and why already-compressed files barely shrink at all: a file that has had its repetition squeezed out has nothing left for the second pass to find. It is also why a photograph and a page of text behave so differently — text is repetition all the way down.

    Real compression formats combine both tricks: first the pointing pass collapses the repeats, then the shorthand pass squeezes what remains. Zip is the household name, but the same two ideas sit underneath nearly every lossless format in use.

    Lossless Versus Lossy — and Why the Difference Matters

    Everything above is lossless compression: the original comes back bit for bit, which is the only acceptable behavior for documents, programs, and data. There is a second family, lossy compression, used for photos, music, and video, which does throw information away — the details human eyes and ears are least likely to miss — and gets far smaller files in exchange. That trade is fine for a photograph. It would be unacceptable for a contract, a spreadsheet, or a program, where changing even one character changes the meaning. Knowing which family a format belongs to tells you whether “compressed” means “smaller and identical” or “smaller and close enough.”

    Why This Matters to You

    Compression is one of those invisible technologies holding up everything else. Backups fit because of it. Downloads are fast because of it. The storage you do not have to buy is bought by it. And the principle is worth keeping even outside of computers: most information people drown in is repetition wearing a new coat. The zip file’s whole trick is refusing to store the same thing twice — a discipline that works on more than data.

  • How to Spot a Phishing Message Before It Spots You

    Most break-ins do not start with a hacker defeating fancy technology. They start with a message — an email, a text, sometimes a call — that convinces a person to hand over the keys themselves. That is phishing, and it works not because people are careless, but because the messages are built by professionals who study exactly what makes people act without checking. Here is how to check anyway.

    The Feeling Is the Tell

    Nearly every phishing message runs on urgency or fear. Your account will be closed. A payment failed. A package is being held. Someone logged in from a strange place. The details change; the pressure does not, and the pressure is the point. A message that makes your heart beat faster is a message designed to get you to click before you think. Real companies with real problems can wait ten minutes while you verify. Phishing cannot — its whole design depends on you not stopping.

    So the first defense is a habit, not a tool: any message that demands immediate action through a link gets verified through a different door. Do not use the link, the button, or the phone number in the message. Open the company’s app, or type the address you already know into your browser, or call the number on the back of your card. If the problem is real, it will be waiting for you there. If it is not there, there was never a problem.

    The Technical Tells

    Look at the sender’s actual address, not the display name. A message can call itself anything at all — the name shown means nothing. The address after it is what counts, and phishing addresses are usually close-but-wrong: a company name with an extra letter, a hyphen, or a domain that belongs to some unrelated service. On a phone, where addresses are often hidden, press and hold or tap the sender to reveal the full address before you trust anything.

    Links deserve the same suspicion. The text of a link can say anything; where it actually goes is a separate thing. Hovering on a computer, or long-pressing on a phone, shows the real destination. A link claiming to be your bank that points somewhere with the bank’s name buried in a long string of other words is a fake. And attachments are the oldest trick of all: an unexpected invoice, shipping label, or document from somebody you were not expecting one from should be treated as hostile until proven otherwise.

    The Newer Tricks

    Phishing is no longer just email. Text messages about deliveries and tolls are constant now. Messages through social media from a friend’s hijacked account asking for help or money are common. And voice phishing — a call claiming to be your bank’s fraud department — has gotten good enough that the caller ID itself can be faked. The defense is the same across all of them: the channel that contacted you is not proof of anything. Hang up, close the message, and reach the company or the person through a route you chose.

    What To Do

    Slow down on any message that pressures you. Verify through your own route, never the message’s links or numbers. Check the real sender address and the real link destination. And if you do slip — everybody is one tired evening away from slipping — act fast: change the password from a clean device, turn on two-factor authentication, and call the institution. Speed after a mistake matters almost as much as avoiding the mistake. The phishers’ whole business is your hurry. Refusing to hurry is most of the defense.

  • Cash, Credit, and Knowing Where the Money Went

    Ask most people what they spent last month and you will get a shrug, a rough guess, and then a number that is lower than the truth. I know because I have been that person. Money rarely leaves in one big dramatic payment. It leaves in small ones — a subscription here, a convenience purchase there, fees nobody remembers agreeing to — and small leaks are the hardest kind to see.

    The Case for Plastic and Apps

    There is a real argument for running your life on cards and apps, and it is not just convenience. A card leaves a record of everything, automatically. At the end of the month the statement tells you exactly where the money went, sorted and dated, without you writing down a thing. Credit cards also offer protection cash never will: a stolen card can be cancelled and fraudulent charges disputed, while stolen cash is simply gone. And used carefully — paid off in full — a card builds a credit history that matters when you need a loan, an apartment, or sometimes even a job.

    The Case for Cash

    The cash argument is about feel. Handing over physical money registers in a way tapping a card does not. When the wallet is empty, the spending stops — not because an app sent a warning, but because there is nothing left to hand over. People who switch to cash for their everyday spending often find they spend less without trying very hard, simply because every purchase became a decision again instead of a reflex. Cash also works when the network does not, never charges a fee for the privilege of using it, and asks nothing about you.

    The Angle Nobody Mentions

    Here is the part I think matters more than the cash-versus-card debate: neither one fixes anything by itself. I have watched people go all-cash and still end the month broke, because the leak was not the payment method — it was the dozen small commitments they had stopped noticing. And I have seen people with meticulous budgeting apps stay broke too, because tracking money you have already spent is not the same as deciding about it before you spend it. The record only helps if you read it, and the envelope only helps if what is outside the envelope stays unspent.

    The other quiet angle is subscriptions and automatic payments. They are designed to be forgotten. Each one is small enough to wave off, and together they can add up to a car payment. Whatever method you use, the single most valuable habit I know is sitting down once in a while and listing every recurring charge you have — every one — and asking whether you would sign up for it again today at that price. The ones you would not are found money.

    The Practical Takeaway

    Use the card for the record and the protection, pay it in full, and read the statement like it is a report about somebody you are responsible for — because it is. Keep some cash for the spending categories that tend to run away from you, because physical limits work on human beings in a way notifications do not. And audit your recurring charges a few times a year. Knowing where the money went is not the whole job, but it is the first step of it, and most people skip it for years at a time.

  • Two-Factor Authentication: The Second Lock That Stops Most Break-Ins

    If a password manager is the first security upgrade I recommend, two-factor authentication is the second — and on your most important accounts, it might matter even more. It is the difference between a stolen password being an emergency and a stolen password being a dead end for the person who stole it.

    What It Is, in Plain Words

    Two-factor authentication means a login needs two different kinds of proof. The first is something you know: your password. The second is something you have: usually your phone, which either receives a code or generates one in an app that changes every few seconds. An attacker who steals or guesses your password still cannot get in, because they do not have the second thing. And a stranger who finds your phone cannot get in either, because they do not know the password. Each factor covers the other’s weakness.

    You have probably already used it without thinking about it — a bank texting you a code before a transfer, for instance. The point of this article is that you should not wait for services to force it on you. Turn it on yourself, everywhere it is offered, starting with the accounts that would hurt most to lose.

    Not All Second Factors Are Equal

    Codes sent by text message are the weakest form, because phone numbers can be hijacked — a criminal who convinces or tricks a carrier into moving your number to their SIM card receives your codes. It is better than nothing by a wide margin, and if text is all a service offers, use it. But where you have the choice, an authenticator app is stronger: the codes are generated on your device from a shared secret, never travel over the phone network, and cannot be intercepted by taking over your number.

    Stronger still are hardware security keys — small physical devices you plug in or tap — which are extremely hard to fool because they respond only to the real website, not a lookalike. For most people, an authenticator app is the right balance. For the accounts that guard everything else, like your primary email, a hardware key is worth considering.

    The Two Mistakes That Undo It

    The first mistake is approving a prompt you did not start. Some attacks work by spamming a victim with approval requests until they tap yes just to make it stop, or by calling and talking them into reading a code aloud. The rule is absolute: a code or approval is only ever entered by you, on a login you started, on the site you navigated to yourself. Nobody legitimate will ever call and ask for one.

    The second mistake is skipping the backup codes. When you enable two-factor, services offer one-time recovery codes for the day your phone is lost or broken. Save them somewhere safe and offline — printed, in a drawer, is fine. Losing your phone without them can mean a long fight to prove an account is yours.

    What To Do

    Start with your primary email account, because email is the master key — password resets for nearly everything else flow through it. Then your bank and financial accounts, then your password manager itself, then social media. Use an authenticator app where you can, save the recovery codes somewhere physical, and treat any unexpected code prompt as a warning sign, not a nuisance. A password can be stolen in ways you will never see. The second lock is what makes that theft worthless.

  • The Minimum Wage Fight, Argued Honestly From Both Sides

    Few arguments in American politics have run as long as the one over the minimum wage. The federal floor has sat at $7.25 an hour for years while states and cities have gone their own way, some much higher, some not at all. Both sides talk about this like the answer is obvious. I do not think it is, so here is each side’s strongest case as I understand it, and then where I land.

    The Case for Raising It

    The strongest argument for a higher minimum wage is straightforward: full-time work should cover the basics of living. Rent, food, gas, and insurance have all climbed while the federal floor has not moved, so a person can work forty hours a week and still fall behind on necessities. Supporters argue that is not a functioning labor market — that is the public quietly subsidizing low-wage employers through food assistance and other programs that fill the gap.

    Supporters also argue the money does not disappear. Low-wage workers spend nearly everything they earn, and they spend it locally — at the grocery store, the gas station, the diner. Raising their pay puts money straight into the small businesses that critics worry about, through the front door, as customers. And they point to states and cities that raised their floors and did not see the wave of closures that was predicted, arguing the feared disaster mostly did not arrive.

    The Case Against Raising It

    The strongest argument against is about who actually pays. A small business running on thin margins — a diner, a hardware store, a small-town shop — does not have a pile of profit to absorb higher labor costs. Owners in that position say the math gives them three choices: raise prices, cut hours, or cut staff. None of those help the worker the law was meant to help, and the first one raises prices on the same low-income customers everyone is worried about.

    Critics also point out that a national number cannot fit a national economy. A wage that is modest in an expensive coastal city can be a heavy lift in a rural county where the cost of living is far lower and small employers are already scarce. They argue a high federal floor hits hardest exactly where jobs are fewest, and that it prices out the youngest and least experienced workers — teenagers and first-job seekers — whose real need is a way in, not a higher wall around the jobs that exist.

    Where I Land

    I land closer to the state-and-local side of this. The cost of living in Opelika is not the cost of living in San Francisco, and I do not trust one number set in Washington to fit both. States and cities raising their own floors, where voters can see the results and answer for them, seems to me the honest way to run the experiment — and it is already happening.

    But I will give the other side this much: a floor that never moves while everything else does is not a serious position either. If a state keeps a minimum, it ought to revisit it on a schedule and argue about real numbers in the open, instead of letting inflation do the deciding by default. Work should pay enough to live on, and employers should be able to stay open. Any honest answer has to hold both of those at once — and anybody who tells you only one of them matters is selling you something.

  • A Password Manager Is the First Security Upgrade I Recommend to Anybody

    When somebody asks me what one thing they should do to be safer online, I do not start with antivirus or anything exotic. I tell them to get a password manager and use it for everything. It is not the most exciting advice I give, but it fixes the single most common way ordinary people get their accounts taken over — and it fixes it completely.

    The Problem It Actually Solves

    The average person has more accounts than they can honestly count, and a human brain cannot hold a different strong password for every one of them. So people do the only thing they can: they reuse. The same password, or a couple of variations, ends up protecting email, banking, shopping, and social media alike.

    That reuse is the real danger. When some website you signed up for years ago gets breached — and breaches of stored customer data are routine news — the stolen email and password pairs get tried automatically against the big services. Attackers call it credential stuffing, and it works because of reuse. Your password can be long, clever, and never guessed, and it will still fall if some forgotten forum stored it badly and lost it. The one breach you never hear about becomes the key to everything else.

    What the Manager Does

    A password manager is a vault: it stores a different, long, randomly generated password for every account you have, and you remember only one master password that unlocks the vault. The manager fills in logins for you, generates new passwords that no human would ever think of — and that no human has to remember — and warns you when a site you use shows up in a known breach.

    The result is that reuse disappears. Every account has its own key, so a breach at one site is a nuisance — you change that one password — instead of a skeleton key to your whole life.

    The Objections, Answered Honestly

    The first objection is always the same: isn’t putting all my passwords in one place risky? It is a fair question. The answer is that the vault is encrypted with your master password, and a reputable manager cannot read your passwords itself — if you lose the master password, even the company cannot recover the vault for you, which tells you how the encryption actually works. One strong, unique master password, protected by two-factor authentication, guarding a hundred strong unique passwords is a far safer position than a hundred accounts guarded by three passwords you rotate.

    The second objection is effort. Moving your accounts into a manager takes an afternoon of logging in and changing passwords. That is real. But it is a one-time afternoon, and you can do it gradually — start with email and banking, the accounts that matter most, and add the rest as you use them.

    What To Do

    Pick a reputable password manager, set a long master password you have never used anywhere else — a few ordinary words strung together is both strong and memorable — and turn on two-factor authentication for the vault itself. Move your email and financial accounts first, letting the manager generate fresh passwords for each. Then work through the rest as they come up. Of everything on this site’s security list, this is the step with the best ratio of effort to protection, and it is the one I would do today.

  • SSH Keys Explained: A Lock on the Server, a Key in Your Pocket

    Almost every server I run is set up the same way: you cannot log in with a password at all. That surprises people the first time they hear it. Passwords feel like the normal way to prove who you are, and turning them off sounds like leaving the door open. It is the opposite. The servers use SSH keys instead, and once you understand what a key pair actually is, you will see why it is stronger than any password you could type.

    Two Halves of One Key

    An SSH key is really two files that belong together. The public key goes on the server, in a file attached to your account. The private key stays on your own computer and never travels. The two are mathematically linked: what one half can prove, only the other half can answer. When you connect, the server uses your public key to pose a challenge that only the matching private key can solve. Your computer solves it without ever sending the private key itself across the network.

    The comparison I use with people is a padlock and a key. You can hand out copies of the padlock to every server you own — it does not matter who sees it, because a padlock by itself opens nothing. The key that opens it stays in your pocket. A password, by contrast, is a secret you have to hand over, in effect, every time you log in, and anything that passes across a network or sits in a login prompt can be guessed, phished, or brute-forced by a machine trying thousands of combinations a minute.

    Why This Beats Passwords in Practice

    The first reason is guessing. Automated bots sweep the internet constantly, trying common passwords against any server that will listen. A key is not a word or a phrase a human picked; it is a long string of effectively random data. There is no dictionary for it and no shortcut to guessing it.

    The second reason is reuse. People reuse passwords — everybody knows it, and most people still do it somewhere. If one site leaks your password, every account where you used the same one is exposed. A private key is used for one purpose and lives in one place. There is nothing to reuse and nothing for a leaked database to give away.

    The third reason is discipline. When password login is switched off entirely, a whole class of attacks simply stops working. It does not matter how weak a password might have been, because the server will not accept one from anybody, including you.

    The Honest Trade-Offs

    Keys are not magic, and I will not pretend otherwise. If somebody steals your private key file, they have your key — the same as a copied house key. That is why the private key itself can be protected with a passphrase, so the file alone is not enough. It is also why you guard the machine the key lives on.

    The other trade-off is convenience at the start. Generating a key pair and installing the public half on a server takes a few minutes of setup that a password does not. And if you lose your only private key with password login disabled, you can lock yourself out and need console access to get back in. The fix for that is simple: keep a backup of the key somewhere safe, the same way you would keep a spare house key.

    Where I Land

    For anything that faces the internet, keys with password login disabled is the setup I trust, and it is the setup I use. Passwords made sense when logging in meant a person at a keyboard. These days the thing knocking on your server’s door is usually a script, and a script cannot guess its way past a key. A few minutes of setup buys you a door that only opens for the person holding the right key — and that is the whole point of a lock.