cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
wyrm
Level 10
Report Inappropriate Content
Message 1 of 3

Restrict CONNECT ports rule, GET requests and a RAT

Jump to solution

Yesterday, we detected a RAT on one of our endpoints that was connected to a C2 server (all undetectable by McAfee).  The device was connected to 1 IP over port 80 and was sending GET requests to another IP over port 43434.  Since the default port blocking rule in the MWGs is only for CONNECT events, the GET requests were allowed on 43434.

Does anyone know if there is any risk to adding GET commands to the default Restrict CONNECT Ports policy?  Or should I be looking at blocking all traffic where URL.port is not in the Allow CONNECT Ports lists, regardless of the HTTP command?  How would you suggest I handle this?

1 Solution

Accepted Solutions
wyrm
Level 10
Report Inappropriate Content
Message 3 of 3

Re: Restrict CONNECT ports rule, GET requests and a RAT

Jump to solution

All I did to resolve this was take the existing Restrict CONNECT Ports rule and removed the criteria where "command.name equals "CONNECT."  Simple fix that now blocks all non-approved ports.  I'm not sure why this wasn't default.

View solution in original post

2 Replies
smasnizk
Employee
Employee
Report Inappropriate Content
Message 2 of 3

Re: Restrict CONNECT ports rule, GET requests and a RAT

Jump to solution

Hi Wyrm,

 

this idea won't work as simple it might sounds. The Rule Set you're talking about is restricted to "CONNECT" only. If you want to build the same for GET request as well, you can use same criteria but be careful of other services your company might use. You will simply build this over time by allowing some which might be crucial. 

 

If you do have a real world sample including connection traces you can build a rule set for community, other customer could also benefit from it.

 

Regards,

Sergej

Best Regards,
Sergej


If you find this post useful, Please give it a Kudos! Also, Please don't forget to select "Accept as a solution" if this reply resolves your query!
wyrm
Level 10
Report Inappropriate Content
Message 3 of 3

Re: Restrict CONNECT ports rule, GET requests and a RAT

Jump to solution

All I did to resolve this was take the existing Restrict CONNECT Ports rule and removed the criteria where "command.name equals "CONNECT."  Simple fix that now blocks all non-approved ports.  I'm not sure why this wasn't default.

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use our Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from product experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by employees.
Join the Community
Join the Community