I want to give some of my clients the ability to write files via SFTP, which later I can read from my main server.
Since I'm using EC2, to do so I simply opened an Elastic File System (EFS) and mounted it on two servers: on my main server, which is what I want to protect, and on a new micro server which I don't care about and is used to allow sftp via username and password. The micro server allow SSH connection without keys.
Now assuming the following:
- I have nothing of importance on the micro server.
- I never execute files that I read from the EFS on my main server, its only data files.
- I don't care if different clients override each other's files.
Are there any threats I should worry about? Any possible known attacks?
For example lets say a malicious user somehow take over the micro server completely and have root privileges, can he somehow penetrate the main server via the EFS? Is there any secret data that amazon put on my instance that he can steal? (like my account id, keys, etc..)
If I mess up completely and someone takes over the micro sftp server - is my main server still safe?