You can find the Agilex Podcast here.
1 Agilex Technologies Podcast (July 26, 2010), viewed July 29, 2010, http://agilex.podbean.com/2010/07/26/migrating-to-more-secure-and-agile-application-infrastructure-with-agilex’-kevin-sheehan/
You can find the Agilex Podcast here.
1 Agilex Technologies Podcast (July 26, 2010), viewed July 29, 2010, http://agilex.podbean.com/2010/07/26/migrating-to-more-secure-and-agile-application-infrastructure-with-agilex’-kevin-sheehan/
Posted by Kevin Sheehan on July 29, 2010 at 04:50 PM in Agilex Technologies, Application Infrastructure, Federal Data Center, Information Security, Modernization, Oracle DB, Oracle Exadata, Virtualization | Permalink | Comments (0) | TrackBack (0)
Reblog
(0)
| | Digg This
| Save to del.icio.us
|
Tweet This!
|
A few weeks back I published a post called Security patching can make you LESS Secure! Redux which reports that upgrading your 10.2.0.3 Oracle database to 10.2.0.4 causes the WKSYS password to be reset to the default value and _trace_files_public to become unset, meaning set to TRUE.
A little more research revealed that the problem lies in the Database Upgrade Assistant or DBUA. If you perform a manual upgrade, neither of the above two issues occurs. The bottom line is that you should never run a blackbox 'assistant' when you can simply run a few scripts. Who knows what that blackbox is doing. In this case, the only thing the DBUA 'assisted' with was making your database less secure.
The manual upgrade is easy and fully documented in the patch readme. After installing the software simply:
SQL> STARTUP UPGRADE
SQL> SPOOL patch.log
SQL> @?/rdbms/admin/catupgrd.sql
SQL> SPOOL OFF
Review the patch.log for issues and then:
SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP
SQL> @?/rdbms/admin/utlrp.sql
You should not need DBUA for these simple tasks.
By the same logic you should consider not running DBCA, the Database Creation Assistant or allow the installer to create a database for you. This is easily scripted for most databases.
Posted by Kevin Sheehan on June 17, 2009 at 07:50 PM in Oracle DB | Permalink | Comments (0) | TrackBack (0)
Reblog
(0)
| | Digg This
| Save to del.icio.us
|
Tweet This!
|
I started off this site in October 2007 with a post talking about how upgrades and patches can really negatively impact the security posture of your infrastructure. Well here it is nearly two years later and the problem persists.
We'll pick on Oracle here but the problem is common among most software vendors. Let's take the recent Oracle Critical Patch Update for April 2009. If you are running a 10.2.0.3 database, you'll have to upgrade to 10.2.0.4 (or higher) to install the patch since 10.2.0.3 is no longer supported.
So far we have identified two issues with the 10.2.0.3 to 10.2.0.4 upgrade. The first item applies only if you have Ultrasearch installed. Installation of Ultrasearch will create a schema called WKSYS. In a properly secured database, this schema should have its default password changed to a strong password and the account should be locked, expired and audited. Assuming your database is so secured, you will find after running the 10.2.0.4 Database Upgrade Assistant, that the WKSYS account is unlocked and the password has been reset to match the name of the account, ouch!
The other issue we have found so far in every 10.2.0.3 to 10.2.0.4 upgrade is that _trace_files_public gets reset to TRUE.
It should be noted that in both cases the upgrade caused the issue. The actual CPU patch had no impact on the database security posture.
We are not yet sure if these issues are generic or platform specfic. We found the issues on Solaris Sparc 64-bit.
The moral of the story is you need to scan your infrastructure after any changes. Again, we recommend AppSentry from Integrigy because we work a lot with the Oracle E-Business Suite where this tool is unmatched. But it works great for plain old Oracle databases as well. See Integrigy's Web Site for details and Stephen Kost's Oracle Security Blog at the same site is always a worthy read.
Posted by Kevin Sheehan on June 04, 2009 at 06:06 PM in Oracle DB | Permalink | Comments (0) | TrackBack (0)
Reblog
(0)
| | Digg This
| Save to del.icio.us
|
Tweet This!
|
If you are running Oracle 10.2.0.2 on Solaris SPARC 64-bit, the January Critical Patch Updates for Database and Middleware Products reports N/A for patch availability. I think this is kind of curious that other versions of Solaris are patched but not this one yet there are patches for this version of Solaris on the previous and next releases of the database. My recommendation would be to upgrade to 10.2.0.3 and then apply the January CPU to make sure your are covered.
Posted by Kevin Sheehan on March 12, 2008 at 11:48 AM in Oracle DB | Permalink | Comments (0) | TrackBack (0)
Reblog
(0)
| | Digg This
| Save to del.icio.us
|
Tweet This!
|
The following is a basic set of hardening guidelines for an Oracle 11g database along with some scripts you may find useful. This list is by no means complete. It does not cover file permissions, authentication controls and user profiles, encryption, grants or auditing but it is a good place to start.
Or perhaps takes Slavic's advice from his comment on this post and start with Oracle's Checklist for Database Security. It gives a broader, though perhaps less detailed view, and covers some of the topics I have left out (for now). Also check out Slavik's Musings on Database Security Blog.
alter system set "__dg_broker_service_names" = '' scope=spfile;
Posted by Kevin Sheehan on December 03, 2007 at 01:33 AM in Oracle DB | Permalink | Comments (4) | TrackBack (0)
Reblog
(0)
| | Digg This
| Save to del.icio.us
|
Tweet This!
|
Let's talk about direct attacks on the database and the single best way to deter them. Such attacks usually need either a direct user connection to the database server (you would never allow such a thing, would you?) or the ability to get to the database server via one of the many ports Oracle enables for different components. On an Oracle 10g Release 2 database there can be upwards of 20 such ports depending on what components are installed and this does no take into account the ports that are used by the operating system on the database server itself. Each of these ports represents a potential attack vector and the single best way to defend against such an attack is to put the database server behind a firewall, and yes, I mean even from trusted users on your intranet.
Of course you can and should change the default port settings but some are not configurable and anyway this is just a minor bit of slight of hand that will not stop someone determined enough to run a port scan (unless of course you had that firewall).
Sure, you should harden the database listener and configure the invited nodes list to allow connections only from trusted servers (hopefully only application servers and not end user workstations). Great, and what about those other 19 ports??? Most of these are ports only an administrator needs but without a firewall they are there for the hacking. In addition to the listener, there are three for Enterprise Manager, three for iSQL*Plus (please don't tell me you installed this component on a production database), three more for Ultrasearch, two for XML DB and five or six more for RAC depending on the operating system, plus a smattering of others.
Is this iron-clad protection - no! Firewalls can be hacked like anything else and SQL injection attacks from the application tier can cause severe damage without directly attacking the database itself from a client. Still, a firewall is the first and best way to prevent direct attacks on your database.
The next best way is to not allow end-users to directly connect to the database server at all but that will remain a topic for the future.
Posted by Kevin Sheehan on October 21, 2007 at 10:59 PM in Oracle DB | Permalink | Comments (0) | TrackBack (0)
Reblog
(0)
| | Digg This
| Save to del.icio.us
|
Tweet This!
|
Life was good. Our Oracle database was locked down. Scott and his infamous feline password were long ago dropped. The listener was harder than the Saturday New York Times crossword. Nessus had nothing on me!
Then along came the Oracle CPU. What, you say, our DB version is no longer supported by the "lifetime support" policy? So we upgrade and we patch and we scan again; fully expecting a clean bill of health.
But while we did manage to patch the vulnerabilities, our DB is no longer locked down. Scott has risen from the dead along with his infamous default password. The listener is now softer than the money running Washington.
The moral: Attempts to make your database a little more secure can make it a lot less secure.
Make sure you scan your Oracle DBs regularly but particularly after any upgrades or patches. Invest in a tool. I like AppSentry from Integrigy because I work a lot with the Oracle E-Business Suite where this tool is unmatched. But it works great for plain old Oracle databases as well. See Integrigy's Web Site for details and Stephen Kost's Oracle Security Blog at the same site is always a worthy read.
Posted by Kevin Sheehan on October 19, 2007 at 06:20 PM in Oracle DB | Permalink | Comments (3) | TrackBack (0)
Reblog
(0)
| | Digg This
| Save to del.icio.us
|
Tweet This!
|