Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPN client from EC2, Lambda, etc. #1

Open
andresriancho opened this issue Jul 18, 2019 · 1 comment
Open

VPN client from EC2, Lambda, etc. #1

andresriancho opened this issue Jul 18, 2019 · 1 comment
Assignees

Comments

@andresriancho
Copy link
Owner

andresriancho commented Jul 18, 2019

The initial implementation of vpc-vpn-pivot is starting a VPN server in AWS Client VPN. In order to do that, the compromised AWS credentials require rather uncommon privileges (unless you have *:*).

A great improvement for this tool would be to:

  • Start https://ngrok.com/ on the attacker workstation (this allows the attacker server to be behind a NAT and doesn't require port forwarding at the edge router)
  • Start VPN server in attacker workstation
  • Run VPN client in EC2, Lambda, Fargate, LightSail, etc.
  • Pivot into the target VPC

If the attacker has privileges to create the AWS Client VPN, then the initial method should be used, else:

  • Try to start an EC2 instance in the target VPC with a specific user-data to connect to the VPN
  • Try to run a lambda function that connects to the VPN. This implementation will have the challenge of handling lambda function timeouts.
  • Use Fargate
@andresriancho andresriancho self-assigned this Jul 18, 2019
@andresriancho
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant