Simple ORACLE Data masking using systemtap

In my previous article i showed how we can write a mini database firewall using systemtap.In the second post of this series i will extend the previous script by adding a simple data masking functionality .This is what we are going to achieve :

Capture 1

Capture 3

capture 2

NOTE : This script is only for demonstration purpose so don’t play with it in production !

The basic idea is to add a probe point on the syscall “write” checking for the correct file descriptor “17” (the one used by our target socket “”) before processing and then modifying the buffer with the replacement string (in this case “HATEM” with “*****”).

DOWNLOAD : mini_db_firewall.stp

That’s it  😀

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s