Jump to content

What security checks/pen-tests can be done in an Amazon AWS environment?

Hello, I hope im asking this question in the correct sub-forum. Our office have deployed a few servers at Amazon AWS and we would like to perform some security checks and document them for it to be reported to our management and customers if requested. My experience in cloud computing is pretty slim and I have never done pentests before. I did a lot of research for the past few days and found out this tool Pacu for pen testing amazon S3 buckets. We make use of S3 buckets as well for backup purposes. As I understood from the videos and guides I read about Pacu, this requires a compromised account and security to be poorly configured for u to elevate the privileges of that account. What other tools exist for pen-testing EC2 instances? If there arent any tools I would like to know atleast a checklist of security related things to ensure that the environment is setup for best practices.    

Link to comment
Share on other sites

Link to post
Share on other sites

First, make sure all the tests you do are in accordance with AWS policies - https://aws.amazon.com/security/penetration-testing/

 

AWS EC2 instances are quite secure out-of-the-box. Generally it's the application that's running on the instance, that will be targeted and exploited. Depends if you are willing to pay for the pen-testing. You can look into Metasploit, it includes a large database of vulnerabilities.

 

As for security checks - look over all the IAM permissions that you have assigned to IAM users (as much as necessary, as minimum as possible). Look at all the services that are running on your instances, which are listening to certain ports. Check your firewall rules - do not expose services that do not need access from the Internet. Check your credentials, ensure no password SSH access (only PKI), renew where necessary. 2FA wherever possible (AWS login, maybe even for SSH access). You can search the Internet for more, there are lot of articles for cloud security.

HAL9000: AMD Ryzen 9 3900x | Noctua NH-D15 chromax.black | 32 GB Corsair Vengeance LPX DDR4 3200 MHz | Asus X570 Prime Pro | ASUS TUF 3080 Ti | 1 TB Samsung 970 Evo Plus + 1 TB Crucial MX500 + 6 TB WD RED | Corsair HX1000 | be quiet Pure Base 500DX | LG 34UM95 34" 3440x1440

Hydrogen server: Intel i3-10100 | Cryorig M9i | 64 GB Crucial Ballistix 3200MHz DDR4 | Gigabyte B560M-DS3H | 33 TB of storage | Fractal Design Define R5 | unRAID 6.9.2

Carbon server: Fujitsu PRIMERGY RX100 S7p | Xeon E3-1230 v2 | 16 GB DDR3 ECC | 60 GB Corsair SSD & 250 GB Samsung 850 Pro | Intel i340-T4 | ESXi 6.5.1

Big Mac cluster: 2x Raspberry Pi 2 Model B | 1x Raspberry Pi 3 Model B | 2x Raspberry Pi 3 Model B+

Link to comment
Share on other sites

Link to post
Share on other sites

10 hours ago, jj9987 said:

First, make sure all the tests you do are in accordance with AWS policies - https://aws.amazon.com/security/penetration-testing/

 

AWS EC2 instances are quite secure out-of-the-box. Generally it's the application that's running on the instance, that will be targeted and exploited. Depends if you are willing to pay for the pen-testing. You can look into Metasploit, it includes a large database of vulnerabilities.

 

As for security checks - look over all the IAM permissions that you have assigned to IAM users (as much as necessary, as minimum as possible). Look at all the services that are running on your instances, which are listening to certain ports. Check your firewall rules - do not expose services that do not need access from the Internet. Check your credentials, ensure no password SSH access (only PKI), renew where necessary. 2FA wherever possible (AWS login, maybe even for SSH access). You can search the Internet for more, there are lot of articles for cloud security.

thanks for the details. I will go through them.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×