Webinar demonstrating the tools used in Oracle Database breaches, including Metasploit, Nmap and ODAT, and the signs of their use that show up in the database.
Play the Recording: The Tools Hackers Are Using Against Your Oracle DatabaseOracle databases are targets for attackers after sensitive data, such as credit card numbers and the personally identifiable information used in identity theft. Even though databases are not externally accessible, attackers still reach them: most attacks get through the network perimeter and then look for high-value targets on the internal network.
We review and demonstrate the tools most used in database breaches, including Nmap, Metasploit and ODAT, show the signs of their use in the database, and cover how to prevent and detect such attacks. DBAs and security teams can then test their own databases the way an attacker would and know what to watch for.
Key Points
- Nmap, ODAT, Metasploit, Hydra and Oscanner can all enumerate or brute-force Oracle SIDs and guess passwords, Nmap also finds databases and their versions, and ODAT adds common exploits and operating system attacks.
- Before scanning, attackers look for databases quietly:
tnsnames.orafiles through internal search engines, passwords in code repositories by searching for"alter user" "identified by", and passwords saved in SQL Developer, decrypted on a compromised DBA desktop with the show-me-password-sqldev-jdev extension, since an Nmap scan of port 1521 is very noisy. - In our sample of 120 production databases, mostly SAP, Oracle EBS and PeopleSoft, DBSNMP still had its default password in 52%, OUTLN in 43% and CTXSYS in 32%, so check for default and weak passwords routinely with more than one tool, since
DBA_USERS_WITH_DEFPWDcovers a limited set of accounts with one password each. - Once connected, the attacker escalates privileges through an unpatched vulnerability, and database links spread the compromise: at an organization with about 150 production Oracle databases, we compromised 28 other databases through the database links of the 15 SOX and PCI databases we assessed.
- Our first recommendation is to limit direct database access, with firewalls in front of the data center, network ACLs, TNS invited nodes, Oracle Connection Manager or Oracle Database Firewall and bastion hosts for DBAs, then apply Critical Patch Updates regularly and harden configurations, since patches matter most once an attacker has an account and tries to escalate privileges.
- To detect attacks, audit the 14 foundation security events in the Integrigy Guide to Database Auditing and Logging and feed the listener log, alert log, SYS audit trail, standard audit trail and fine-grained audit records to a central logging and monitoring system; this is traditional auditing (before 12c, or 12c mixed mode), which Oracle desupported in 23ai (now 26ai) in favor of Unified Auditing.