<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BlueGecko Denmark</title>
	<atom:link href="https://bluegecko.dk/tag/dbms_fga-add_policy/feed/" rel="self" type="application/rss+xml" />
	<link>https://bluegecko.dk</link>
	<description>Your remote dba</description>
	<lastBuildDate>Mon, 02 Jun 2014 07:04:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.2</generator>
	<item>
		<title>Oracle Fine Grained Audit &#8211; who have queried confidential data</title>
		<link>https://bluegecko.dk/fga/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fga</link>
					<comments>https://bluegecko.dk/fga/#respond</comments>
		
		<dc:creator><![CDATA[Dimitri van de Ven]]></dc:creator>
		<pubDate>Mon, 02 Jun 2014 07:04:58 +0000</pubDate>
				<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[DBMS_FGA]]></category>
		<category><![CDATA[dbms_fga.add_policy]]></category>
		<category><![CDATA[FGA]]></category>
		<category><![CDATA[Fine Grained Audit]]></category>
		<category><![CDATA[NETS]]></category>
		<category><![CDATA[Oracle FGA]]></category>
		<category><![CDATA[SE & HØR]]></category>
		<category><![CDATA[Se og Hør]]></category>
		<guid isPermaLink="false">http://www.bluegecko.dk/?p=3749</guid>

					<description><![CDATA[The need for more sophisticated controls on access to sensitive data is becoming increasingly important as organizations address emerging security requirements around data consolidation, privacy and compliance. There are many examples of data breaches which have been perpetrated using stolen credentials, SQL injection or by insiders who are authorized to access the system and its [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>The need for more sophisticated controls on access to sensitive data is becoming increasingly important as organizations address emerging security requirements around data consolidation, privacy and compliance. There are many examples of data breaches which have been perpetrated using stolen credentials, SQL injection or by insiders who are authorized to access the system and its data. Currently, hot topic news in Denmark is, where a popular week-magazine received sensitive information about famous people, from a highly trusted person, working for the Nordic provider of payment card transactions. Unfortunately this incident is not unique and happens far too often. Securing data requires a defense-in-depth approach. Both technical and administrative employees need to be involved to prevent and monitor unauthorized access to sensitive data.</p>
<p>This blog will discuss Oracle database security feature, Fine Grained Audit (FGA), that may help to discover unauthorized access of confidential data with the right setup.</p>
<p>With FGA, it is possible to create audit policies, that records if a user viewed (selected) data from a specific table or table column. Audit records include information about the operation that was audited, the user performing the operation, and the time of the operation. Audit trail records created by FGA can be captured and analyzed in Oracle Audit Vault and Database Firewall, automatically alerting the security team about possible malicious activity.</p>
<p>In next simple example, I will show how FGA can help to monitor unauthorized access of confidential data:</p>
<table style="width: 656px; height: 1700px;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="background-color: #779293;">
<td valign="top" width="45"></td>
<td valign="top" width="607"><span style="color: #ffffff;"><b>Fine Grained Audit example<br />
</b></span></td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>1</b></td>
<td valign="top" width="607"><strong>Create user schema XXBANK:</strong></p>
<p>sqlplus sys/xxx as sysdba<br />
SQL&gt; CREATE USER XXBANK IDENTIFIED BY xxbank;<br />
SQL&gt; GRANT CONNECT TO XXBANK;<br />
SQL&gt; GRANT DBA to XXBANK;<br />
SQL&gt; exit;</td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>2</b></td>
<td valign="top" width="607"><strong>Create table XXBANK.TRANSAKTIONS and insert some rows:</strong></p>
<p>sqlplus sys/xxx as sysdba<br />
SQL&gt; create table XXBANK.TRANSACTIONS<br />
(<br />
TRANSACTION_ID number,<br />
TRANSACTION_TIME timestamp,<br />
TRANSACTION_PLACE varchar2(40),<br />
CREDIT_CARD_NUMBER varchar2(16),<br />
CREDIT_CARD_HOLDER_NAME varchar2(30) not null,<br />
PAYMENT_AMOUNT number,<br />
primary key (TRANSACTION_ID)<br />
);</p>
<p>SQL&gt; insert into XXBANK.TRANSACTIONS values (1,to_timestamp(&#8217;02-APR-2014 10:45&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;MC Donalds, Slagelse, DK&#8217;, &#8216;4599123466991234&#8217;,&#8217;Prins Henrik&#8217;, 55.50);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (2,to_timestamp(&#8217;02-APR-2014 15:10&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Seven Eleven, KBH Vesterbro, DK&#8217;, &#8216;4510432145456789&#8217;,&#8217;Henrik Qvortrup&#8217;, 35.00);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (3,to_timestamp(&#8217;02-APR-2014 22:30&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Mefisto, Aarhus, DK&#8217;, &#8216;3311345666772468&#8217;,&#8217;Bubber&#8217;, 225.00);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (4,to_timestamp(&#8217;03-APR-2014 03:10&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Hanky Panky Bar, KBH Vesterbro, DK&#8217;, &#8216;4510432145456789&#8217;,&#8217;Henrik Qvortrup&#8217;, 1050.00);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (5,to_timestamp(&#8217;03-APR-2014 08:30&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Burger King, Strøget KBH, DK&#8217;, &#8216;4599123466991234&#8217;,&#8217;Prins Henrik&#8217;, 70.50);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (6,to_timestamp(&#8217;03-APR-2014 12:30&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Psykologcentret, KBH, DK&#8217;, &#8216;3311345666772468&#8217;,&#8217;Bubber&#8217;, 512.75);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (7,to_timestamp(&#8217;03-APR-2014 16:39&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Starbucks, Toronto, Canada&#8217;, &#8216;4444362255449385&#8217;,&#8217;Prins Joachim&#8217;, 125.45);<br />
SQL&gt; insert into XXBANK.TRANSACTIONS values (8,to_timestamp(&#8217;04-APR-2014 10:17&#8242;,&#8217;DD-MON-YYYY HH24:MI&#8217;), &#8216;Fona, Valby, DK&#8217;, &#8216;4444123573596612&#8217;,&#8217;Bo Henriksen&#8217;, 10000.00);<br />
SQL&gt; commit;<br />
SQL&gt; exit;</td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><strong>3</strong></td>
<td valign="top" width="607"><strong>Create an FGA policy on table XXBANK.TRANSACTIONS:</strong></p>
<p>sqlplus sys/xxx as sysdba<br />
SQL&gt; begin<br />
dbms_fga.add_policy (<br />
object_schema=&gt;&#8217;XXBANK&#8217;,<br />
object_name=&gt;&#8217;TRANSACTIONS&#8217;,<br />
policy_name=&gt;&#8217;TRANSACTIONS_ACCESS&#8217;<br />
);<br />
end;<br />
/<br />
SQL&gt; exit</td>
</tr>
<tr style="background-color: #def2f3;">
<td valign="top" width="45"><b>4</b></td>
<td valign="top" width="607"><strong>Do some sql-queries on sensitive data:</strong></p>
<p><strong>User APPS is looking at transactions done by members of the royal family:</strong></p>
<p>sqlplus apps/xxx<br />
SQL&gt; select * from XXBANK.TRANSACTIONS where lower(CREDIT_CARD_HOLDER_NAME) like &#8216;%prins%&#8217;;</p>
<p>TRANSACTION_ID TRANSACTION_TIME<br />
&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
TRANSACTION_PLACE CREDIT_CARD_NUMB CREDIT_CARD_HOLDER_NAME PAYMENT_AMOUNT<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8211;<br />
1 02-APR-14 10.45.00.000000 AM<br />
MC Donalds, Slagelse, DK 4599123466991234 Prins Henrik 55.55</p>
<p>5 03-APR-14 08.30.00.000000 AM<br />
Burger King, Strøget KBH, DK 4599123466991234 Prins Henrik 70.50</p>
<p>7 03-APR-14 04.39.00.000000 PM<br />
Starbucks, Toronto, Canada 4444362255449385 Prins Joachim 125.45</p>
<p>SQL&gt; exit</p>
<p><strong>User EMPLOYEE_1 is looking at transactions done by Bubber:</strong></p>
<p>sqlplus employee_1/xxx<br />
SQL&gt; select to_char(TRANSACTION_TIME,&#8217;DD-MON-YYYY HH24:MI&#8217;) &#8220;Time&#8221;, TRANSACTION_PLACE from XXBANK.TRANSACTIONS where lower(CREDIT_CARD_HOLDER_NAME) like &#8216;%bubber%&#8217;;</p>
<p>Time TRANSACTION_PLACE<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
02-APR-2014 22:30 Mefisto, Aarhus, DK<br />
03-APR-2014 12:30 Psykologcentret, KBH, DK</p>
<p>SQL&gt; exit</td>
</tr>
<tr style="background-color: #bbe5e6;">
<td valign="top" width="45"><b>5</b></td>
<td valign="top" width="607"><strong>Check who has viewed sensitive information in the TRANSACTIONS table:</strong></p>
<p>sqlplus sys/xxx as sysdba<br />
SQL&gt; set linesize 200<br />
SQL&gt; set pages 200<br />
SQL&gt; column TS format A20<br />
SQL&gt; column db_user format A10<br />
SQL&gt; column os_user format A10<br />
SQL&gt; column object_schema format A8<br />
SQL&gt; column sql_text format A150<br />
SQL&gt; select to_char(timestamp,&#8217;DD-MON-YYYY HH24:MI&#8217;) &#8220;TS&#8221;, db_user, os_user, object_schema, object_name, sql_text from dba_fga_audit_trail;</p>
<p>TS DB_USER OS_USER OBJECT_S<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8211;<br />
OBJECT_NAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
SQL_TEXT<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
01-MAY-2014 07:25 APPS oracle XXBANK<br />
TRANSACTIONS<br />
select * from XXBANK.TRANSACTIONS where lower(CREDIT_CARD_HOLDER_NAME) like &#8216;%prins%&#8217;</p>
<p>01-MAY-2014 08:08 EMPLOYEE_1 oracle XXBANK<br />
TRANSACTIONS<br />
select to_char(TRANSACTION_TIME,&#8217;DD-MON-YYYY HH24:MI&#8217;) &#8220;Time&#8221;, TRANSACTION_PLACE from XXBANK.TRANSACTIONS where lower(CREDIT_CARD_HOLDER_NAME) like &#8216;%bubber%&#8217;</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/fga/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 41/70 objects using disk
Page Caching using disk: enhanced 

Served from: bluegecko.dk @ 2026-10-17 00:19:35 by W3 Total Cache
-->