STE WILLIAMS

Evasion Techniques And Sneaky DBAs

Oct
08

Evasion techniques.

No, not the type you find with SQLi, rather the type that database administrators like to use on security people. Yes, DBA’s know that most security people don’t know jack about databases. It takes years to know the in’s and out’s of complex relational platforms. Security folks are simply unaware of what security controls are possible and what the downsides might be. The administrators can choose to tell any fable or omit whatever information they choose; the security team will be none the wiser. I get it.

From the DBA’s perspective, why introduce security measures that make your job harder for the nebulous benefit of better security? So they omit capabilities from discussions. Or skew the difficulty of implementing security controls, or talk of “de-stabilizing” the database, or performance impact or something similar.

I had one such discussion with a security practitioner last week. There were three specific capabilities with the database that he wanted — user identities in the audit trail, segregation of admin roles, and data encryption — and the DBAs said they could not provide. Respectively, the reasons were “It can’t be done,” “The database does not support that,” and “It’s a performance problem.” The problem is none of these statements are true: In fact, they are all rather easy to do.

Since the database was Oracle, let’s get a bit more specific:

User ID and Connection Pooling:

When you use the connection pooling option for Oracle, you establish a bunch of connections to the database before you need them. The benefit is that you get a connection to the database, fast, without the timely authentication process. The downside is that these pools are set up under a generic service account user. And if you use audit trails to track activity, all activity is performed under the generic account, so you have no idea who did what. However, there is a client_id setting in the network connection string. If you add one or two lines of code to the application, you can — without performance impact or reliability issue — ties the real user ID to the event.

Segregation of Admin Duties

Oracle did a great thing with version 11 in that they made it possible to divvy up admin roles on a database. For example, the account for making backups could be different from the account for adding users, which could be different from the account which applies patches, and so on. So you knew which DBA did what. The downside is it requires DBAs log in with different credentials to do these tasks, but the upside is that a single compromised account does not have total ownership of the database. It takes a little work to set up, and it annoys DBAs for the first year or so, but entirely possible.

Disk Encryption

Oracle offers disk encryption as an add-on package to the database. which is seamless to database services and requires no code changes. Several third-party commercial vendors offer disk-level encryption that is also seamless to database operations. And I can say from personal experience that these options are very fast, with typically less than five percent performance overhead worst case. And as long as you use a good key management server, pretty secure. It’s as simple as setting an environment variable to turn in on, so it’s not complicated.

I can’t blame DBAs for being sneaky as they just want to keep their lives less complicated, but a handful of simple security controls goes a long way towards keeping databases secure.

Adrian Lane is an analyst/CTO with Securosis LLC, an independent security analyst firm. Special to Dark Reading.

Article source: http://www.darkreading.com/database/evasion-techniques-and-sneaky-dbas/240162364

Comments

Comments are closed.