Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2529 Näkymät

I was running Odoo v16 on AWS EC2 Ubuntu 22 Server. Someone hacked into Odoo and has changed the Database name to ''kYaZsHyN" and has deleted all the tables from the Database(I tried to check using psql command, got 'Did not find any relations')


The perpetrator has executed alot of GET,HEAD requests for sensitive paths, some of the log lines below:

2024-05-27 03:51:23,236 3253 INFO migration-uat werkzeug: 172.31.31.136 - - [27/May/2024 03:51:23] "GET /webmaster/.git/config HTTP/1.0" 404 - 3 0.002 0.006

2024-05-27 03:51:23,484 3250 INFO migration-uat werkzeug: 172.31.31.136 - - [27/May/2024 03:51:23] "GET /us/.git/config HTTP/1.0" 404 - 3 0.002 0.006

2024-05-27 03:51:24,100 3251 INFO migration-uat werkzeug: 172.31.31.136 - - [27/May/2024 03:51:24] "GET /ecommerce/.git/config HTTP/1.0" 404 - 3 0.002 0.006

2024-05-27 03:51:24,442 3251 INFO migration-uat werkzeug: 172.31.31.136 - - [27/May/2024 03:51:24] "GET /usa/.git/config HTTP/1.0" 404 - 3 0.002 0.006


They have also executed a lot of sql queries. Unfortunately I did not close the database/manager path. Did they exploit the database manager?

How did the perpetrator get access? I would love to hear tips to prevent this in the future.

Avatar
Hylkää
Paras vastaus

I'd be glad to help you recover from this Odoo security breach and prevent future incidents. Here's a comprehensive response combining the best aspects of previous suggestions and addressing identified issues:

Immediate Actions:

  1. Isolate the Server: Immediately shut down your Odoo server on AWS EC2 to prevent further damage and data exfiltration.
  2. Secure the Database: If you haven't already, disable the Odoo database manager interface to prevent further unauthorized access. Refer to Odoo documentation (https://www.odoo.com/security).
  3. Consider conducting security audits periodically to identify and address vulnerabilities.
  4. Network Security:
    • Restrict access to your Odoo server using security groups on AWS EC2. Only allow access from trusted IP addresses.
    • Monitor network activity for suspicious traffic patterns.
  5. Odoo-Specific Measures:
    • Disable the Odoo database manager interface unless absolutely necessary.
    • Limit user permissions to the minimum necessary based on their roles.
    • Consider using Odoo security modules for additional protection.
  6. User Awareness:
    • Train your users on cybersecurity best practices, including phishing awareness.
    • Educate them on the importance of strong passwords and not clicking suspicious links.
  7. Incident Response Plan:
    • Develop a clear incident response plan to define steps to take in case of a security breach. This includes procedures for identification, containment, eradication, recovery, and reporting.
  8. Security Considerations:
    • Employ a security scanning tool to identify potential vulnerabilities in your environment.
    • Explore web application firewalls (WAF) for additional protection against web-based attacks.

By implementing these recommendations, you can significantly strengthen your Odoo security posture and prevent similar incidents in the future.

Additional Considerations:

  • Data Breach Reporting: Depending on the nature of your data and local regulations, you might be required to report the breach to relevant authorities.
  • Professional Assistance: If you're dealing with a complex attack, consider seeking assistance from qualified security professionals to investigate the incident and implement comprehensive security measures.

Remember, security is an ongoing process. Regularly monitor your systems and stay updated on the latest threats and vulnerabilities to maintain a robust security posture.


Avatar
Hylkää
Tekijä

Thank you very much for the suggestions

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
heinäk. 25
487
0
kesäk. 25
458
4
heinäk. 25
1856
1
heinäk. 25
1085
1
huhtik. 25
1055