aaP_sagarkumarsahu60 With in a minute you installed panel and got attack? Without knowing the proper context, what security mechanism u implemented. How can we say that aapanel is the culprit.
Did you hardened the vps before installing anything?
Did you configured iptables or ufw?
Did you used fail2 ban to secure your server?
Did you disabled password login and used ssh only mode with password disabled?
Ddo you had WAF in place for blocking bad guys?