Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Perimeter

10/26/2009
10:00 AM
Adrian Lane
Adrian Lane
Commentary
50%
50%

The ABCs Of DAM

Database activity monitoring (DAM) has been the biggest advancement in database security in the past decade. Identity management controls access, and encryption protects data on media, but monitoring verifies usage.

Database activity monitoring (DAM) has been the biggest advancement in database security in the past decade. Identity management controls access, and encryption protects data on media, but monitoring verifies usage.But because of the complexities involved, this is not something you want to try to write yourself. Unlike assessment and auditing, the database does not provide built-in mechanisms for data collection, analysis, and policy enforcement.

DAM captures and records database events, which at a minimum is all Structured Query Language (SQL) activity, in real-time or near real-time, including database administrator activity, across multiple database platforms, and generating alerts on policy violations. DAM products follow a consistent process: collection of the events from the database, analysis of the activity in relation to established policies, and alerting when a policy violation is detected. DAM systems can be deployed as software or an appliance, and will use local agents installed on the database server to collect activity.

Some work in combination with network analysis, but agents are required to collect administrative activity, a necessity for regulatory compliance. What we want to focus on is the analysis because that is what separates DAM from auditing. Monitoring systems are designed to find violations instantly, utilize more advanced inspection techniques, alert, and even block activity. Let's look at how this happens:

Attribute Analysis is the most common technique used in monitoring. Statement attributes like operation type (Select, Update, Insert), the user who issued the statement, the time of day, the columns references, number of records returned or dozens of other items. A common policy is to alert when any users selects more than one customer record at a time, or anyone selecting social security numbers from outside the company after 6:00 pm. When a statement matches the attributes specified, an alert is generated and, with some platforms, the action is blocked.

Statement Analysis/Lexical Detection is the examination of the SQL structure. Examining components such as the where clause, the type and number of parameters, or even the size and type of input data, abnormal activity is detected because the statement just doesn't look right. This is commonly used to detect SQL Injection and buffer overflow attacks.

Behavioral Analysis combines one or both of the above analysis techniques, but augments the comparison with a behavioral profile. The profile is created by monitoring all database activity to establish a common reference for how the database is used. Once created, the behavioral profile is compared to incoming SQL statements, generating an alert if the users session activity is abnormal.

Content Analysis is looking at the data within the statements. This may be used in conjunction with attribute analysis, but the core of the policy is understanding the content that is moving in or out of the database. Credit card numbers or personally identifiable information are two such examples that are restricted for privacy and compliance initiatives.

In my next post, I'll discuss how to apply database activity monitoring to solve problems, and why it's an important advancement for compliance and security.

Adrian Lane is an analyst/CTO with Securosis LLC, an independent security consulting practice. Special to Dark Reading. Adrian Lane is a Security Strategist and brings over 25 years of industry experience to the Securosis team, much of it at the executive level. Adrian specializes in database security, data security, and secure software development. With experience at Ingres, Oracle, and ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Navigating Security in the Cloud
Diya Jolly, Chief Product Officer, Okta,  12/4/2019
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Write a Caption, Win a Starbucks Card! Click Here
Latest Comment: "The security team seem to be taking SiegeWare seriously" 
Current Issue
Navigating the Deluge of Security Data
In this Tech Digest, Dark Reading shares the experiences of some top security practitioners as they navigate volumes of security data. We examine some examples of how enterprises can cull this data to find the clues they need.
Flash Poll
Rethinking Enterprise Data Defense
Rethinking Enterprise Data Defense
Frustrated with recurring intrusions and breaches, cybersecurity professionals are questioning some of the industrys conventional wisdom. Heres a look at what theyre thinking about.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2019-16770
PUBLISHED: 2019-12-05
A poorly-behaved client could use keepalive requests to monopolize Puma's reactor and create a denial of service attack. If more keepalive connections to Puma are opened than there are threads available, additional connections will wait permanently if the attacker sends requests frequently enough.
CVE-2019-19609
PUBLISHED: 2019-12-05
The Strapi framework before 3.0.0-beta.17.8 is vulnerable to Remote Code Execution in the Install and Uninstall Plugin components of the Admin panel, because it does not sanitize the plugin name, and attackers can inject arbitrary shell commands to be executed by the execa function.
CVE-2019-16768
PUBLISHED: 2019-12-05
Exception messages from internal exceptions (like database exception) are wrapped by \Symfony\Component\Security\Core\Exception\AuthenticationServiceException and propagated through the system to UI. Therefore, some internal system information may leak and be visible to the customer. A validation m...
CVE-2012-1105
PUBLISHED: 2019-12-05
An Information Disclosure vulnerability exists in the Jasig Project php-pear-CAS 1.2.2 package in the /tmp directory. The Central Authentication Service client library archives the debug logging file in an insecure manner.
CVE-2019-16769
PUBLISHED: 2019-12-05
Affected versions of this package are vulnerable to Cross-site Scripting (XSS). It does not properly mitigate against unsafe characters in serialized regular expressions. This vulnerability is not affected on Node.js environment since Node.js's implementation of RegExp.prototype.toString() backslash...