KHAGAN AYDIN

Renting a Server by the Hour: What Amazon Just Changed for Security

The server room is becoming something you rent. The responsibility is not.

· 5 min read

In March, Amazon opened a storage service to any developer with a credit card. You send it files over the internet, it keeps them, and you pay fifteen cents a month for each gigabyte, plus twenty cents for each gigabyte you move in or out. No contract and no minimum.

In late August it added the other half: servers. You ask for a machine, it starts within minutes, and you pay ten cents for each hour it runs. When you are done you switch it off and the charge stops. The service is in limited testing, and the machines are modest, but the idea is plain. A bookseller is renting out computers.

Most of what I have read about this is about cost. I want to write about security, because the way we protect systems has assumed, for as long as I have done this work, that we know where the machine is.

What actually changed

Until now, getting a server meant buying one or leasing one. Either way a person ordered hardware, someone put it in a rack, and weeks later it had an address. That delay was annoying. It was also a control. Nothing reached the internet without several people knowing about it.

With these services, a developer can have a running server before the coffee is cold, and a place to put a hundred gigabytes of data without asking anyone. The purchase is small enough to go on an expense report.

So the first security fact is simple. Things can now appear on the internet, holding company data, with no one in security aware of them. The old process that caught this was the purchase order, and the purchase order is gone.

What moves to the provider

Some real work leaves your hands.

  • The building. Doors, guards, cameras, power, cooling, fire. A company the size of Amazon will do these better than most firms do in their own back room.
  • The hardware. Failed disks and dead power supplies are their problem.
  • The network under you. The links and the equipment that carry your traffic to the machine.

For a small company this is an improvement. Many small firms run their one important server in a cupboard with the cleaning supplies.

What does not move

Everything above the hardware is still yours, and this is where I expect the trouble.

The operating system. The machine you rent starts from an image. From that moment, patching it is your job. A rented server that nobody patches is exactly as exposed as an owned one.

What is open to the internet. You decide which ports answer. The service lets you set rules for this, and the rules are only as good as the person who wrote them. A rule that opens everything to everyone takes one line.

Your application. Every flaw in your code comes with you. A database query built from user input is just as injectable on a rented machine.

Who can get in. The whole account, every server and every stored file, is controlled by a pair of keys issued to the account holder. Whoever has those keys can read everything, delete everything and start a hundred machines on your bill. Those keys are now the most valuable secret the company owns, and I expect to find them pasted into scripts, emailed between developers and saved in source code.

The data. Files in the storage service can be private or readable by the world. That is one setting on each item. One wrong setting and a customer list is a public web address.

The new questions

When a client tells me they want to use this, these are the questions I ask. None has a bad answer by nature. Each needs an answer.

  1. What data is going there? Test data and public files are one decision. Customer records are another. Decide before the first upload, not after.
  2. Who holds the account keys, and where are they kept? If the answer is “the developer who signed up,” ask what happens when that person leaves.
  3. Who else is on the hardware? You share physical machines with strangers. The provider keeps customers apart with software. That separation is new, and it has had far less testing by attackers than a locked cage has. For most data this is an acceptable risk. For some it is not.
  4. What happens to data when a machine is switched off? The disk on a rented server does not survive the server. Anything you need must be copied out to storage. People will lose data this way before they lose it to an attacker.
  5. Can you see what happened? On your own network you can capture traffic and read every log. Here you see what the provider chooses to show you. Know what records you will have before you need them.
  6. Where is it, legally? The data sits in a building you cannot name, in a place whose laws may differ from yours. Some contracts and regulations care about that.
  7. How do you leave? If the price changes or the service ends, how long does it take to move out, and in what form do you get your data?

Encrypt before it leaves

One habit answers several of those questions at once. Encrypt sensitive files on your own machine, with a key that stays with you, before sending them to storage. Then a wrong setting, a curious employee at the provider, or a failure in the walls between customers exposes only scrambled data. It costs some convenience. For anything you would not want published, it is worth it.

What I expect to happen

I think this model wins. The price is too good and the speed is too useful, and the physical security is better than what most companies manage alone.

I also think the next few years will bring a particular kind of incident, and it will not be an attack on Amazon. It will be a company that left a storage item public, or a set of account keys found in a place they should never have been, or a test server someone forgot, unpatched, still running and still holding real data.

The provider is taking over the part of security that was about buildings and hardware. The part that was about decisions stays where it always was. Who may reach this, what is on it, who holds the keys, who is watching. Renting the machine does not rent out those answers.