Technical Discussion
  >> Security Related Issues


Register (or login) on our website and you will not see this ad.


Pages in this thread: 1 | 2 | [3] | (show all)   Print Thread
Standard User camieabz
(sensei) Fri 27-Nov-20 11:37:49
Print Post

Re: Zyxel Security Log Attack?


[re: jabuzzard] [link to this post]
 
In reply to a post by jabuzzard:
Another important trick is to have your firewall/router/server rate limit connection attempts, especially if the connection is unsuccessful. Apart from anything else it can free up a surprising amount of bandwidth on your connection.


Also disable guest access, limit number of wifi users to a realistic limit and so on. All sensible little tweaks that can't hurt.
Standard User caffn8me
(eat-sleep-adslguide) Fri 27-Nov-20 17:09:42
Print Post

Re: Zyxel Security Log Attack?


[re: jabuzzard] [link to this post]
 
In reply to a post by jabuzzard:
Further unfortunately the manufactures of most consumer grade routers are appallingly bad at supplying any updates and if they do generally for a couple of years at most.
The Home Router Security Report 2020 [pdf] makes interesting reading.

Sarah

--
If I can't drink my bowl of coffee three times daily, then in my torment, I will shrivel up like a piece of roast goat

Spiders on coffee - Badass spiders on drugs
Standard User jchamier
(eat-sleep-adslguide) Fri 27-Nov-20 19:48:34
Print Post

Re: Zyxel Security Log Attack?


[re: caffn8me] [link to this post]
 
In reply to a post by caffn8me:
The Home Router Security Report 2020 [pdf] makes interesting reading.
Thank you, it certainly does!

21 years of broadband connectivity since 1999 trial - Live BQM


Register (or login) on our website and you will not see this ad.

Standard User Natty
(learned) Mon 29-Nov-21 04:16:30
Print Post

Re: Zyxel Security Log Attack?


[re: Natty] [link to this post]
 
Its been a while & im still with Vodafone fibre. The attacks still happen intermittently so i put my firewall on maximum setting & unticked all unnecessary ports accept HTTPS & ping on WAN as i run a TBB monitor Remote Management UPnP is disabled.

I have also upgraded my routers firmware which are very few from Zyxel considering its cost Zyxel XMG3927-B50A Firmware

They appear to be using DDoS attacks, (i have ticked Dos Protection Blocking in security). At first it was Ping Of Death where putting my firewall on high appeared to make them change to another attack below. The attacks are happening less so far.

# Time Facility Level Category Messages
1 Nov 27 17:09:17 kern alert attack kernel: SYN_FLOODING ATTACK:IN=ppp1.3 OUT= MAC= SRC=141.98.82.22 DST= *. *. *. * LEN=40 TOS=0x00 PREC=0x00 TTL=243 ID=123 PROTO=TCP SPT=65532 DPT=3398 WINDOW=1024 RES=0x00 SYN URGP=0 MARK=0x8000000
2 Nov 27 17:09:17 kern alert attack kernel: SYN_FLOODING ATTACK:IN=ppp1.3 OUT= MAC= SRC=141.98.82.22 DST= *. *. *. * LEN=40 TOS=0x00 PREC=0x00 TTL=243 ID=123 PROTO=TCP SPT=65532 DPT=33398 WINDOW=1024 RES=0x00 SYN URGP=0 MARK=0x8000000
3 Nov 27 17:03:02 kern alert attack kernel: UDP PORT SCAN ATTACK:IN=ppp1.3 OUT= MAC= SRC=103.145.13.153 DST= *. *. *. * LEN=430 TOS=0x00 PREC=0x00 TTL=52 ID=10361 DF PROTO=UDP SPT=5260 DPT=5564 LEN=410 MARK=0x8000000
4 Nov 27 17:03:02 kern alert attack kernel: UDP_FLOODING ATTACK:IN=ppp1.3 OUT= MAC= SRC=103.145.13.153 DST= *. *. *. * LEN=430 TOS=0x00 PREC=0x00 TTL=52 ID=10311 DF PROTO=UDP SPT=5260 DPT=5261 LEN=410 MARK=0x8000000

Vodafone Superfast 2
Zyxel XMG3927-B50A Router

Edited by Natty (Mon 29-Nov-21 04:30:16)

Standard User majika2007
(member) Wed 21-Dec-22 18:59:32
Print Post

Re: Zyxel Security Log Attack?


[re: Natty] [link to this post]
 
Hi @Natty,

Having ICMP WAN based Ping makes you visible to attackers "Scanners" Maybe re-evaluate if this is sensible for your network?

By the sounds of this its some person(s) who are attempting to "Brute-force" their way into your switch/router, to allow them them to ultimately gain root. (or some dns-rebind attack or dns-hijacking attack or just use your network as part of a larger DDoS system)

I am unfamiliar with your specific device, However, I am very familiar with this issue and techniques employed to both exploit and mitigate against such attack..

You may want to decide if you wish to do IP-based rules Firewall blocking method. [See below IP-Based Method] OR
You could do the <static routes> method.

The Medicine
1) If you can see multiple logins from the SRC=IP Address in your syslog make a note of that IP address.

2) Go do a online whois lookup IP if you have IP address or Hostname if hostname of the offending IP address. You will see something like this Example:

Text
1
23
45
67
89
1011
Domain name:
        atk_domain.tld    Name servers:
        ddns0.atk_domain.tld           127.0.0.1  2607:f740:ffff::1        ddns0.atk_domain.tld
        ddns1.atk_domain.tld           127.0.0.2  2607:f740:ffff:4::1        ddns1.atk_domain.tld
        dns0.atk_domain.tld            172.17.10.10  2620:ff:1000::1        dns0.atk_domain.tld
        dns1.atk_domain.tld            172.17.10.11  2a00:eded:6259::1        dns1.atk_domain.tld

Key parts are the nameserver address (for tracing the PTR records later)
The [email protected] contact email address (you should email and provide AFXR file to hostmaster)
And obviously the IP address(es) linked to the record.

3) You may also want to interrogate the offending attacker's IP using a free to use too called DIG Dig Download (Packaged with BIND9 *Nix DNS)
Here is A Helpful Guide for Windows Dig

We can figure a lot of information out just by simply using the tool called DIG See below: - PTR Records & Using DIG

4) Decide on method to employ. If the Static Route method would suit your needs better use that OR if you think a simpler IP Based Blocking method would work better use that; or maybe you wish to use a combination of both IP and Static_routing to be absolutely certain it will stop the attacks. wink

Note on Static Route Method: -- (README GUIDE - Spiceworks HERE )

Create a new false static route to falsely map Attacker_IP > <interface> <metric> except we give a high metric 99 but lower than other interface(es) which you want to be routable like: PPP or Br0 wlan0 lo0 etc. or something similar to that effect;

This Static route method in effect causes you router to behave as if the attackers IP is basically a node from within your own network which you then (basically) terminate traffic by giving it lower order of importance in your routing table based on the metric int.

This will stop the Attacker from reaching you router and from your router from reaching them.

There are obvious pro's and cons using this method but as a quick measure to stop the active Bruteforce process is cool as it .. lets say that the attacker is hitting you from a IP range that you cannot block completely maybe as it sits inside of a popular CDN/AWS/Azure/Google Cloud IP range which effects some service(s) streaming or otherwise you can isolate the IP not the IP block/ IP range...

Text
1
23
45
6
192.168.1.1/24 <Block_IP Range>
 192.168.1.5 <EViL AttackerIP> <Now Blocked>
 192.168.1.12 <netflix_Service> <Now Blocked> <But may Need>
192.168.1.254 <WWW - You Visit lives here> <Now Blocked>


You see the problem with a Blanket ban of IP Range


IP-Based Firewall Method

- PTR Records & Using DIG
Once you have the IP address you are now able to block either the single offending IP address OR as a more blunt hammer approach Block the complete IP subnet of the perpetrators origin IP address.

If the Attacker is targeting a specific port say tcp_443 or tcp_8443 etc maybe you could isolate it to a single IP and maybe if not stopping the attack you may need to block the whole IP_range/subnet (kind of a blunt hammer approach).

Often these types of attackers switch to a fresh IP after either a reset of their Dynamic-IP or to another server under their control after their previous IP gets blocked by a angry sysop/admin hence, why looking for all the PTR records associated with the IP can show all IP Addresses belonging to the attacker hostname Which you would then know!

This will allow you to be proactively ban/blacklist IP's ahead of any future attacks from this same attacker in the same process..

A PTR record is well-known as the reverse version of an A record. While A record maps the domain name to an IP address, the PTR record maps the IP address to a hostname. So, the PTR record ensures that your IP address officially connects to the host.

So its important to know if the attackers are coming in from a Residential IP range you would see this in the whois lookup or if you see any rdns hostmasks with *.dyn*.* included in it.

Grab all records for hostname:
Text
1
$ dig [hostname] +short


Trace the attackers nameserver
Text
1
$ dig attacker_host.dom +trace

and revers DNS lookup:
Text
1
$ dig +answer -x 127.0.0.1


Once you grab the Attackers IP you get the IP Range then you get the Attackers Nameserver you can then write a script to recursively crawl through each of those IP's inside that range to see any active machines via the PTR records associated with the Hostname.

[.sh|.bat|.ps1 Script pastebin here]
LOOK HERE - Script you may find useful

R&R - Reconnaissance / Research
If you wish to learn about what your network looks like to a potential hacker you could download a tool called netmap
(FYI: there is also a more simpler GUI version for windows users called (Nmap - Zenmap GUI)
** Use this tool to carry out your own in-house Vulnerability scans /infosec monitoring on your own Network IP **

You can then do your own reconnaissance / research into closing these holes in security.

You can also dive into checking for the attackers ASN network number by checking in bgpview.io

Sorry not had time to clean this post up but HTH's

My Broadband Speed Test
BT FTTP 900/110 - BQM grin
VPN STR SpeedTest
Standard User jchamier
(eat-sleep-adslguide) Wed 21-Dec-22 19:20:02
Print Post

Re: Zyxel Security Log Attack?


[re: majika2007] [link to this post]
 
In reply to a post by majika2007:
Having ICMP WAN based Ping makes you visible to attackers "Scanners" Maybe re-evaluate if this is sensible for your network?
Not sure that responding to ICMP ECHO is a security issue. This ‘myth’ was created by ZoneAlarm in the Win98 days, and all it achieved was breaking Path MTU discovery. Attackers using tools such as NMAP don’t care about ICMP ECHO, they’re more likely to do a SYN or UDP scan of an entire network.

Useful tools such as Thinkbroadband’s Quality Monitor only work if you respond to ICMP ECHO.

23 years of broadband connectivity since 1999 trial - Live BQM
Standard User Natty
(learned) Thu 22-Dec-22 03:55:56
Print Post

Re: Zyxel Security Log Attack?


[re: jchamier] [link to this post]
 
Well its been 2 years since i posted. The security log attacks in my router have been ongoing for much of that time via 'DOS' & 'Ping Of Death' attacks but currently theres nothing showing in my logs at the moment. If i am being subjected to hackers then they are failing to compromise the security of my router. I have reached out to Zxyel with the log data & received the following.

Lukas Bohnen (Zyxel Support Campus EMEA)

Dec 27, 2021, 17:23 GMT+1

"Hello

any public IP is being probed, this does not mean that their attacks are successfull.
You can use a port scanner to check for open ports on your public IP. Besides that I did not see any successful attack in the logs.
In addition I pinged your IP and get no reply, so I assume you configured your firewall fine:"

I keep Ping enabled on WAN so i can use the Think Broadband Monitor. I have Dos Protection Blocking enabled & security set to medium. Presumably i have nothing to worry about.

Vodafone Superfast 2
Zyxel XMG3927-B50A Router
Standard User jchamier
(eat-sleep-adslguide) Thu 22-Dec-22 09:06:02
Print Post

Re: Zyxel Security Log Attack?


[re: Natty] [link to this post]
 
In reply to a post by Natty:
I keep Ping enabled on WAN so i can use the Think Broadband Monitor. I have Dos Protection Blocking enabled & security set to medium. Presumably i have nothing to worry about.
I don't use a Zyxel but came to the same conclusion. Somebody named the constant probing as "Internet Background Radiation" as there is nothing one can do about it.

23 years of broadband connectivity since 1999 trial - Live BQM
Pages in this thread: 1 | 2 | [3] | (show all)   Print Thread

Jump to