Mac won’t get connected to internet even it has signal
Final solved the issue after tweaking every possible setup in my Mac. Somehow the proxy SOCKS was enabled and by default denying all SSL certifications.

Still don’t know how it was enabled and maybe the malware that I had activated it like another user commented before.

Thanks all by the way for your comments