Skip to content
    ← All news

    easyDNS lost its customers' AWS keys. Should any vendor hold yours?

    · Zero Agency

    Share

    Thanksgiving morning. Your DNS provider emails you in capital letters: "PLEASE ROTATE YOUR AWS KEYS IMMEDIATELY."

    You did not lose those keys. You handed them over, maybe years ago, so a dashboard could sync your DNS records. Now someone else has them, and some customers had already seen them used.

    That is what customers of easyDNS got last week. It is also a setup plenty of teams still run with some vendor, somewhere, without thinking about it.

    TL;DR

    • easyDNS says an attacker got into its systems on November 25 and read the AWS keys customers had stored for its Route 53 integration. Customers reported misuse the next morning.
    • About 550 customers had roughly 600 keys stored there, per BleepingComputer.
    • A long-lived access key in a vendor's database is only as safe as that vendor's weakest server.
    • Ask vendors for a cross-account IAM role with an external ID. If they only take keys, give them a key that can touch one hosted zone and nothing else.
    • If you stored a key with easyDNS: rotate it, then read CloudTrail for what the old key did.

    What happened at easyDNS?

    From the company's own breach notice: on the morning of November 26, easyDNS saw an unauthorized login to its AWS account and got reports that some customers' stored keys were being used without permission. By about 5 p.m. ET it had found the entry point, and found that the breach went beyond the keys.

    CEO Mark E. Jeftovic told BleepingComputer that initial access came through an internal monitoring system whose management features let the attacker run commands on a number of servers. That was November 25. Later that day the attacker copied customer database tables and read AWS API keys.

    The numbers in that report: about 550 customers notified first, across roughly 600 customer keys, plus 150 sub-account keys in easyDNS' own AWS account. Around 100,000 active users were notified in total. Password hashes for 28,941 easyMail mailboxes were exposed, and they were unsalted SHA-256. SecurityWeek reported the same picture on December 1.

    One thing easyDNS got right: it told customers to rotate within hours, before it had the full story. That is the correct order. Containment first, explanation later.

    Why is giving a vendor your AWS access key risky?

    Because the key is not tied to the vendor. It is tied to you. Whoever holds the key ID and the secret can call AWS as that IAM user until you deactivate it, unless you added conditions that say otherwise. Most people never do.

    So the vendor's security quietly becomes your security. You cannot see their monitoring system. You cannot patch it. You find out when they email you, or when your bill does.

    The Hacker News notes that in the custom easyRoute53 setup, the customer pastes an access key ID and secret into the control panel so the service can push DNS changes into their AWS account. Nothing exotic. Lots of tools ask for exactly this.

    How bad a stolen key is depends entirely on the policy attached to it. A key that can only edit records in one hosted zone lets an attacker change your DNS. That is still serious: redirected mail, or a fake login page on your own domain. A key someone created with full admin rights "just to get it working" hands over the whole account.

    Our opinion: most teams cannot say, today, which vendors hold their cloud keys. That list is the first thing worth writing down.

    What should you give a vendor instead of an access key?

    A role. AWS's guide to third-party access lays it out: you create an IAM role in your account, allow the vendor's AWS account to assume it, and the vendor gets temporary credentials each time. No permanent secret changes hands.

    Two details make it work:

    1. An external ID. The vendor gives you a unique value, and your role's trust policy requires sts:ExternalId to match it. AWS explains this stops the confused deputy problem, where another customer of the same vendor tricks it into acting on your account.
    2. A narrow permission policy. Same rule as for keys: only the actions and resources the integration actually uses.

    Is a role breach-proof? No. If an attacker controls the vendor's AWS account, they can assume your role too. But a stolen database row is useless on its own, every assumption shows up in your CloudTrail, and you cut access by editing one trust policy. No secret to hunt down.

    AWS's own IAM best practices say to require workloads to use temporary credentials with roles. The same page admits the exception: some third-party clients and vendors not hosted on AWS can only take long-term keys. So what then?

    If a vendor only accepts keys, how do you limit the damage?

    Treat the key as if it will leak, because one day it might.

    • One IAM user per vendor. Never share a key across tools. You want to revoke one integration without breaking five.
    • Scope to the resource. Route 53 policies accept a hosted zone ARN, such as arn:aws:route53:::hostedzone/Z11111112222222333333, as the Route 53 permission examples show. Grant record changes on that zone, not on *.
    • Leave out zone-level actions. A DNS sync tool rarely needs to create or delete hosted zones or change DNSSEC settings.
    • Pin the source IP if the vendor publishes egress IPs. AWS has a deny-unless-from-these-IPs policy you can attach. Know its limit: if the attacker is running commands on the vendor's own servers, as easyDNS says happened here, the requests come from the right IP.
    • Delete what nobody uses. AWS recommends checking access-last-used information before updating or removing keys. The IAM credential report shows when each key last signed a request. A vendor key idle for months should not exist.

    I stored an AWS key with easyDNS. What do I do now?

    In this order:

    1. Rotate. Deactivate and delete the old key. If you still want the integration, create a new key that follows the scoping rules above, not a copy of the old policy. easyDNS took easyRoute53 offline after the breach; its November 30 update expected it back later that day.
    2. Read CloudTrail for the old key. In Event history you can filter by the AWS access key ID. It covers the last 90 days of management events per region, so check every region you use, starting from November 25. Look for IAM users, keys, roles or policies you did not create.
    3. Diff your DNS. Compare each zone to what you expect. A changed MX record or a new subdomain is the quiet version of this attack.
    4. Change your easyMail password if you use it, and anywhere you reused it. The OWASP Password Storage Cheat Sheet calls fast hashes like SHA-256 unsuitable for passwords because attackers can test guesses quickly. easyDNS says it moved easyMail to SHA512-CRYPT with unique salts and 50,000 rounds on November 29. That protects new passwords, not the copies already taken.

    The bigger lesson

    Every integration is a decision about who else can act as you. We made the same point about one GitHub account that could ship to production and about how fast a leaked secret gets used. Cloud keys sitting in a vendor's database are the same problem in a different place.

    Spend an hour this week on the list: every vendor that holds a credential to your cloud, what that credential can do, and whether it could be a role instead. It is boring work. It is also the work that would have made last Thursday a non-event.

    FAQ

    Is it safe to give a SaaS tool my AWS access keys? It works, but the key lives in the vendor's systems and keeps working until you revoke it. Prefer a cross-account role with an external ID. If keys are the only option, scope them to the exact resources the tool needs.

    What is an external ID in AWS? A value a vendor gives each customer, which your role's trust policy requires before the vendor can assume the role. It stops one customer from getting the vendor to act on another customer's account.

    Did easyDNS lose credit card numbers? No, according to its notice. For customers on recurring billing, the last four digits, expiry date, postal code and billing contact details may have been exposed.

    How do I find which vendors hold my AWS keys? Download the IAM credential report and look at every user with an active access key and a recent last-used date. Anything not owned by your own code is a vendor or a person, and each one needs an owner and a reason.

    Share this post