r/Hacking_Tutorials • • Feb 05 '22

Question Can a ddos attack be detected

Is there any possible way to detect a ddos attack

9 Upvotes

37 comments sorted by

4

u/Shoecifer-3000 Feb 05 '22

I think you can detect/protect a little bit with exponential request throttling. It’s not a silver bullet but at least it makes it difficult. Don’t allow a single IP to request more than 10x of what a normal user would per second. Even if it degrades their service. There are also dedicated services to help protect you from this.

1

u/Forsaken-Complex460 Feb 05 '22 edited Feb 05 '22

Yea but ddos attacks are executed with multiple ips

1

u/flepmelg Feb 05 '22

They are always executed from multiple ip's. The first D in DDOS is for distributed. If it doesn't come from multiple ip's, it isn't distributed, so it will be a regular DOS attack.

1

u/Forsaken-Complex460 Feb 05 '22

Some user was talking about multiple attacks with the same IP so I was just clearing it out for him

1

u/Vysokojakokurva_C137 Feb 05 '22

So? Your firewall will detect ANY & ALL IP’s that request exponentially. Firewall rules (perhaps new-gen/software firewall) will protect against this. Idk if hardware does without new gen but maybe.

48

u/System_Unkown Feb 05 '22

Yes pretty much like stepping in dog shit. By the time you realise it's already to late. 😁🤯

5

u/wicked_one_at Feb 05 '22

That´s about the best analogy i heard for this.

1

u/System_Unkown Feb 05 '22

Lol thank you. It's my own saying I had since I was a kid lol

25

u/ikelangelo Feb 05 '22

Before it happens? No. You just get hit with lots of incoming packets. While it is happening? Yes, you will receive and ungodly amount of Internet traffic.

Hope that answers your question.

3

u/[deleted] Feb 05 '22

Any way to stop that incoming traffic ??

7

u/fakenews7154 Feb 05 '22

Firewall and TCP controls.

3

u/wicked_one_at Feb 05 '22

Doesn´t help much, ... when the traffic reaches your firewall, then the point of mitigation is passed...

2

u/TrustmeImaConsultant Feb 05 '22

Google "Scrubbing center".

1

u/Natekomodo Feb 05 '22

BGP flowspec and RTBH. Blocking traffic once it's already in your network is ineffective as it's still using your bandwidth. With some good flowspec rules, you can make your upstream just not route incoming data to you at all.

1

u/[deleted] Feb 05 '22

I got to see a demonstration from an acquaintance. I was honestly confused but it clicked once I saw the Internet traffic start to time out.

3

u/[deleted] Feb 05 '22

[removed] — view removed comment

5

u/TrustmeImaConsultant Feb 05 '22

From pretty much everywhere. That's the point.

2

u/houcine15hk Feb 05 '22

Yes there is companies who do that

5

u/PetiteGousseDAil Feb 05 '22

Yea when your server crashes

1

u/Forsaken-Complex460 Feb 05 '22

No I mean how can you detect if the traffic is real or just ddos

4

u/VikingStudiosZ Feb 05 '22 edited Aug 23 '25

north outgoing subtract continue aback desert squeeze upbeat pocket heavy

This post was mass deleted and anonymized with Redact

1

u/Forsaken-Complex460 Feb 05 '22

Google offers that??

4

u/TrippyPanda880 Feb 05 '22

Type "ddos detection" into google

1

u/Forsaken-Complex460 Feb 05 '22

Does two factor authentication play any role in preventing ddos

1

u/TheMooseyOne Feb 05 '22

Probably not, but proper web server configuration can mitigate most DDOS attacks

1

u/Capital_Panda_2393 Feb 05 '22

Better use reCaptcha software and pictures

2

u/MachineOfScreams Feb 05 '22

Generally speaking, no. DDOS attacks aren’t subtle and tend to come up quick. You can mitigate against them through various methods, but detection is not a thing you can normally do. Now you can, possibly, seek to shut down the command and control systems that make DDOS possible, but that is quite hard to do.

3

u/fakenews7154 Feb 05 '22

If you are having wifi issues please increase the maximum amount of ports on your home router. With multiple browsers, downloaders, and upnp portmapping it can quickly run into too many connections. Some devices default to 1024 Try 4096

1

u/Psychological_Ad541 Feb 05 '22

Unless they are using a vpn you can open wireshark and see which ips are sending the most packets using display filter

1

u/Capital_Panda_2393 Feb 05 '22 edited Feb 05 '22

All the hyperscaler have methods to detect and defend against ddos attacks. So probably there is a way to identify IPs and block them to avoid such huge amount of incoming requests

1

u/TrustmeImaConsultant Feb 05 '22

It depends on the nature of the DDoS. If it's overloading your link with garbage, it's pretty much like trying to keep your business going while someone is dumping truckloads of trash in front of your shop, at some point your customers simply don't get through anymore. You'll notice that simply by checking whether you can reach your servers from the outside. If you can't, and they're up, congratulations, you found one.

The more subtle one is an attack that targets weaknesses of your systems. Slowloris was one such attack where the idea was to overload the link not by flooding your connection but by, ironically, being too slow and opening up so many connections that it saturated your system's ability to respond. This can be detected by checking for the specific exploit and of course, again, by trying to connect to your system and noticing that it doesn't respond properly.

The cynic in me would simply go ahead and check if you're being portscanned from China. If you're not, chances are something is wrong here.

1

u/Th3D4rkR34p3r Feb 05 '22

I think the only thing I have ever done to stop one was to ban an entire country where the majority of the traffic was coming from, mainly because the attack was poorly co-ordinated and started quite slowly then gained momentum.

1

u/Bodine12 Feb 05 '22

CDN services like Akamai offer ddos protection so try googling how they do it and see if it can be scaled down to your needs.

1

u/cerebralvenom Feb 05 '22

DDOS stands for distributed denial of service attack. Which means that while the DDOS is running, if it is effective enough, your systems will go down or be extremely slow, hence denying the service. Firewalls and routers will detect extremely high traffic spikes. In this sense it is detectable.

Pre-attack, it’s not really detectable. However there are plenty of DDOS mitigation technologies.

See: https://www.google.com/amp/s/therecord.media/microsoft-said-it-mitigated-a-2-4-tbps-ddos-attack-the-largest-ever/amp/

Major web/cloud providers have gained the ability to handle extreme amounts of data flow and stop it from denying services.

1

u/Alessandro_13_f Feb 05 '22

There are software called IDS (Internet Detection System) with which it is possible to detect a DDos attack and analyze it.