Could you theoretically run a business using AWS infrastructure, in complete secrecy from Amazon?

Wondering how these popular piracy sites exist, such as real-debrid.com. With seemingly very solid infrastructure, yet they’re up and running without issue.

Could you theoretically (maybe with file-system encryption and enforced HTTP SSL) host services within AWS in secrecy from Amazon themselves? Is it allowed, maybe if it is free-to-use? What if you’re not doing anything illegal, can Amazon still at any point look into your infrastructure to see what you’re doing?

I fear Amazon reserves the right to look into what you’re doing from the hypervisor host level, but I’m really not sure what the rules are.. I’m curious for privacy reasons too, not nefarious.


Related discussions:

Silk Road and The Pirate Bay were/are run from rented VPS’s that their hosts presumably didn’t/don’t know about.

Amazon most certainly has the technical capability to look at anything you’re doing as long as it’s not encrypted with a key they don’t have access to.

From Section 3.2 of the Customer Agreement:

3.2 Data Privacy. You may specify the AWS regions in which Your Content will be stored. You consent to the storage of Your Content in, and transfer of Your Content into, the AWS regions you select. We will not access or use Your Content except as necessary to maintain or provide the Service Offerings, or as necessary to comply with the law or a binding order of a governmental body. We will not (a) disclose Your Content to any government or third party or (b) subject to Section 3.3, move Your Content from the AWS regions selected by you; except in each case as necessary to comply with the law or a binding order of a governmental body. Unless it would violate the law or a binding order of a governmental body, we will give you notice of any legal requirement or order referred to in this Section 3.2. We will only use your Account Information in accordance with the Privacy Policy, and you consent to such usage. The Privacy Policy does not apply to Your Content.

This implies that they won’t look at what you’re doing unless a regulatory or judicial body asks them to do so.

However, if you think about it, they don’t really charge you for what you do with the resources but rather, how much of their resources you actually use. In other words, if you want to run a cryptomining scheme, you’re free to do so as long as a) no government is going to ask them to shut you down and b) they get their fair cut.

That’s what section 3.3 is about:

3.3 Service Attributes. To provide billing and administration services, we may process Service Attributes in the AWS region(s) where you use the Service Offerings and the AWS regions in the United States. To provide you with support services initiated by you and investigate fraud, abuse or violations of this Agreement, we may process Service Attributes where we maintain our support and investigation personnel.

If you use 500 EC2 instances as part of your cryptomining scheme and consume a petabyte’s worth of bandwidth every month, you can’t hide that you consume those resources. They will look for that and they will look at what those servers are actually doing in order to verify that you are at least running virtual machine images on those instances all in the name of making sure you’re billed correctly.

A good analogy is that you’ve bought a warehouse. The tax authorities know you own/lease that warehouse. The department of public roads knows that you’re driving heavy trucks up to the loading docks at all hours of the day based on the wear and tear of the streets. The police know that you’re operating heavy machinery based on the noise complaints they’ve received. The local EPA runs tests on your water discharge and knows you’re handling certain chemicals. As long as you’re playing by the rules, they don’t really care what’s really going on inside that warehouse. As soon as any of these factors become suspicious, they can get a warrant and look inside.

I wouldn’t say that you can run a business in complete secrecy but you can run that business in such a way that they don’t feel the need to probe any deeper.

The TLDR summary of what I just wrote…

A well architected eCommerce site that serves a few thousand concurrent application users, won’t trigger any alarms simply by existing. There would be no reason for Amazon to look more closely at what that site actually sells, as long as no one complains and as long as the site pays its bills.

Thanks, very interesting and I liked the analogy.

Amazon most certainly has the technical capability to look at anything you’re doing as long as it’s not encrypted with a key they don’t have access to.

Does that mean KMS? Could/would Amazon take your KMS setup to decrypt EBS storage? Or why not just snapshot the instance’s memory, run it in isolation and somehow get root? I get how “encryption at rest” could work, maybe by using your own private keys - not KMS, but isn’t it very trivial for them to inspect a running instance?

What if I have CloudFlare in front of an EC2 hosted site, and Firewall lock it down so any traffic not tunneled through CloudFlare is denied… And enforce HTTPS & disk encryption… Then it would practically impossible to know what is going on, without snapshotting the memory and rooting it somehow?

This sounds very blackhat, but I’m a bit paranoid and like to fully understand my privacy.

That’s correct. You can also use Kms with customer managed keys, and AWS would have meta-information about your activity, but could not decrypt your data at rest or in transit.

this is an interesting question, especially as some users scrape amazon to price data. I always wondered if amazon would get mad if you were sraping amazon website from amazon aws

I know Silk Road rented their own physical servers, so there was nothing VPS about them. The Pirate Bay was probably the same way because they were a really busy site and running a really busy site off a VPS is just dumb.

Okay, so worked on the abuse team years ago. Lemme give you some deets.

Abuse complaints against EC2 instances and services are handled in volume. Most of them are automated messages from blacklist bots, anti-spider bots, spam traps, honeypots, that kind of business. Most of those are resolved in an automatic fashion with warning emails to account holders. Two thing happen on each report, even automatic ones. One, it starts a check of the CC info used to setup the account. 80% of them are bounced at this stage, as bogus or stolen CC cards. Two, it records the tic against the account. There’s no set limit on the tics; it’s kind of based on traffic. IF it’s a legit account, and IF it doesn’t hit some trigger, the email gives you 24 hrs to respond. If you do, then it’s handled as a service matter. If the traffic is legit, you explain, they flag the account for whitelisting, and it’s done. If you don’t respond, here it’s interesting. They reserve the right to terminate your instance AT WILL. It could be 48 hrs, a week, but at some point, if you don’t respond to the email from abuse they will shut down your instance. Full stop. They don’t “care” so much about what the traffic is…I’ve seen Netflix get DMCA complaints against it from bots. But if you don’t respond, its over.

Worst part of job was when legal came over. Tor gateways, dark net shit, real eye and brain bleach stuff. With a warrant they snapshot your running (based on IP mapping of the complaint, so even behind ELBs) machine tcpdump the traffic and hand it to the (insert alphabet soup acronym here).

AWS isn’t actively perusing the results from calls to port 80 and 443 on every IP address BUT if you’re doing something illegal, then eventually a DMCA notice will come across their digital desk and you’ll get shutdown.

Sites that want to run illegal operations have a few options. First is to rent servers (or VPS or whatever) in countries where the operation is not illegal. For example, Vietnam cares very little about the word “copyright” so you could probably host a site there that has ebooks for download. Harder to do if you’re selling them because you need to find a payment processor that doesn’t mind you selling it. Second option is to design your infrastructure so it’s clustered across multiple providers. This way, if one provider shuts you down, then users are directed to other services via some sort of failover DNS system you have implemented. Third and likely most popular option is to rent servers, run your operation until someone complaints, then move your operation. You might even pilot-light your operation somewhere so you can spin it up at a moment’s notice.

You could be renting servers in the Unites States, and when shutdown for copyright violation, simply hop over to another provider in the United States. Or, simply change your name and billing profile and get new servers at the same datacenter. I spent five years as CEO of a datacenter business and this went on all the time.

Look into CloudHSM, I think that covers keeping your crypto private.

EC2 Instances are just VPS instances provisioned by AWS’ infrastructure. There’s nothing dumb about running a really busy site off a VPS, assuming your provider is able to provide service and you have deployed enough instances to load balance.

TPB is known to be ran off of 21 VPS instances for example: www.datacenterdynamics.com/content-tracks/servers-storage/the-pirate-bay-servers-feature-a-total-of-92-cpu-cores-182-gb-of-ram/89395.fullarticle

I should have made a distinction between AWS and other VPS’s. Technically, AWS is a VPS, but I never think of it that way.

Anyways, I swear I read a website that talked about their hardware infrastructure, but they must have switched over to VM’s when they got raided. It makes perfect sense for them.

I know that Silk Road were physical servers that DPR rented in Iceland. The FBI were able to get a copy of his systems hard drive by taking a drive that was in a mirrored set. DPR, the big dummy, did not have encryption on his drives or even setup the Linux RAID tools to notify him when a drive was removed. He should have been tipped off by a non-failed drive being removed and then being put back in a couple of hours later.

Technically, so is Microsoft Azure, Google Compute Engine, etc. etc.. In the end it really boils down to whether or not the provider is able to provide service, and whether or not you’ve deployed enough. I’d imagine even most reputable non-cloud-esque providers (e.g.: DigitalOcean, Vultr, Linode, etc.) (though, the line is certainly blurring) being able to uphold their end of the bargain. It is when you get to the bottom end of the barrow, where you have flyby hosts that disappears on you that you’d need to worry more about.

A software product whereby you can inject your own keys into the KMS for AWS and Azure is Vormetric by Thales. Not overly expensive and you manage the keys on your side and inject those to the KMS.

popular piracy sites […] such as real-debrid.com

Real-debrid is no more a “piracy site” than torrent protocol or Kodi. There are legitimate uses for all 3.

Yes, you can use all 3 of those to perform piracy, but by that definition, Google (providing search engine and/or browser) and Microsoft (providing your OS) and IBM (providing your hardware) are all complicit in your piracy too

Just out of curiosity what is the control in place if any to prevent any random abuse team member from snapshoting any server at any time?

In reality Amazon has full access to the CPU and Memory if the hardware your instance is running on. With user provided keys they have access to the private key, since otherwise their services could not access your data for you. If you encrypt off-AWS and then send the data you are safe - at which point there isn’t much point in having the data in AWS as you can’t use it. Even if you use ‘bring your on encryption’ on top of EBS volumes (which you can certainly do) AWS could (not that they are likely to) retrieve the keys from the memory of the hardware, or a snapshot of the instance - but they would *really* have to want to.

Given AWS is logging the volumes of traffic that go over all the interfaces (so they can charge you) it’s probably not a stretch to say they could also be capturing the data - and while they hold the keys they *could* decrypt, but you would probably have to do something fairly interesting (at a government level) before they even contemplated getting the legal coverage to do so - let alone technically implement a capture.

Until you provide them the private key so their services can read the data. At which point they can decrypt all they want - and in fact need to in order to provide the service you are paying for.