Jump to content
Nytro

Domain Fronting with Meterpreter

Recommended Posts

Domain Fronting with Meterpreter

Posted on November 30, 2017

 

Domain Fronting is a technique that is typically used for censorship evasion. It relies on popular Content Delivery Networks (CDNs) such as Amazon’s CloudFront to mask traffic origins. By changing the HTTP Host header, the CDN will happily route us to the correct server. Red Teams have been using this technique for hiding C2 traffic by using high reputation redirectors.

For more information on Domain Fronting, please refer to this whitepaper

Setting up CloudFront

Log in to AWS, and navigate to CloudFront. You will need a domain name that you own, or acquired for free from a registrar like Freenom. Once you are logged into AWS, click Create Distribution. The Origin Domain Name will be the domain that you own. You also need to match origin protocol policy (HTTP/HTTPs), so that CloudFront routes both types of traffic to you.

 

Origin Settings

 

Under Default Cache Behavior Settings, we need to tweak a few settings so that the CDN caches as little traffic as possible.

  1. Allow all HTTP methods possible.
  2. Set Cache Based on Selected Request Headers to All.
  3. For Forward Cookies, also select All.
  4. For Query String Forwarding and Caching, select Forward all, cache based on all.

 

Articol complet: https://bitrot.sh/post/30-11-2017-domain-fronting-with-meterpreter/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...