Know Your Enemy Port Scanners Black Hat Community Sharing Brute Force pwd crackers Dictionary Based pwd crackers Network Sniffers De-compilers Debuggers Cracker Tools
Mobile Device – Security Aspect
Mobile – Entry Points
Access to Device
Access to Store-Data
Access to wireless networks
Mobile – Security Practices
Risk Analysis
Make Security policies
Password
Anti-Virus Software
Encryption
Need-to-know Data store
Mobile – Security Practices
Authentication
Perimeter Security
Encryption
Data Encryption – Pocket PC (SQL CE – 128 bit encryption)
App Encryption – .NET CF & High Encryption Pack
Information Service Encryption
Network Encryption
Lock- Down Functionality
Desktop Data Security
Where is Customer’s Data Stored?
Q: Where is the biggest data exposure risk?
SQL
Clients
Documents
Where do customers’ users keep their documents?
User Profile
Outlook, Sharepoint, Desktop, Temp, IE…
per-machine data
Search index, offline file cache, pagefile…
Non-standard locations
… ISV & in-house apps
What is EFS?
Encrypting File System
Privacy of data that goes beyond access control
Protect confidential data on laptops
Configurable approach to data recovery
Integrated with core operating system components
Windows NT File System - NTFS
Crypto API key management
LSA security policy
Transparent and very high performance
What EFS is not…
A way to protect local user credentials
A way to protect data in transit (think IPSec)
A way to protect business transaction documents (think Windows Rights Management)
EFS File Encryption RNG Data decryption field generation (RSA) Data recovery field generation (RSA) DDF DRF User’s public key Recovery agent’s public key in recovery policy Randomly- generated file encryption key (FEK) File encryption (e.g. AES) A quick brown fox jumped... *#$fjda^j u539!3t t389E *&
EFS File Decryption *#$fjda^j u539!3t t389E *& DDF A quick brown fox jumped... DDF extraction (RSA) File decryption (e.g. AES) File encryption key DDF is decrypted using the user’s private key to get the file encryption key DDF contains file encryption key encrypted under user’s public key User’s private key
EFS File Recovery *#$fjda^j u539!3t t389E *& DRF A quick brown fox jumped... DRF extraction (RSA) File decryption (e.g. AES) File encryption key DRF is decrypted using the DRA ’s private key to get the file encryption key DRF contains file encryption key encrypted under DRA ’s public key DRA ’s private key
EFS best practices: recovery
No local Recovery Agents
Prevents data comprise in “stolen laptop” scenario
Prevents out-of-process data recovery… if encrypted data needs to be recovered, it should be an audited operation
Have at least 2 Recovery Agents per domain
Encrypt directories, not files
Ensures that temp files created in process are also encrypted
Prevents data recovery from free space on the file system
Encrypt CSC cache (Offline Files)
Protects temporary files that maybe written during application execution
Document Protection
Windows Rights Management Services (RMS)
Information protection technology that augments security strategies
Users can easily safeguard sensitive information from unauthorized use
Organizations can centrally manage internal information usage policies
Uses RMS Server, RMS Client and RMS-enabled apps
RMS protects information both online and offline, inside and outside of the firewall.
RMS Publishing Flow (“online”) File Recipient File Author RM Server
Author creates a file and defines a set of rights and rules.
Application encrypts file and sends unsigned “publishing license” to RMS; Server signs and returns publishing license.
Author distributes file.
Application renders file and enforces rights.
Recipient clicks file to open, the application calls to RMS which validates the user and the request and issues the “use license”.
Database Server File Server
If I could choose one, which one would I choose when?
EFS – to encrypt all local data files automatically, under my domain account, to minimize risk of offline attack
RMS – to share encrypted files easily among a group of people, or send them encrypted over the wire to any storage medium
Database Security
What are Principals? Principals Permissions Securables Server Role SQL Server Login SQL Server Windows Group Domain User Account Local User Account Windows User Database Role Application Role Group Database
What are Securables? Principals Permissions Securables Files Registry Keys Server Schema Database Server Role SQL Server Login SQL Server Windows Group Domain User Account Local User Account Windows User Database Role Application Role Group Database
What are Permissions? Principals Permissions Securables Files Registry Keys Server Schema Database CREATE ALTER DROP CONTROL CONNECT SELECT EXECUTE UPDATE DELETE INSERT TAKE OWNERSHIP VIEW DEFINITION BACKUP GRANT/REVOKE/DENY ACL Server Role SQL Server Login SQL Server Windows Group Domain User Account Local User Account Windows User Database Role Application Role Group Database
Database Security
Surface Area Reduction
Authentication Mode
Password Policies enforcement
Administrative Privileges
Catalog Security
Encryption
Auditing
Demo …
Summary
Security is integral part of all software
Maximize SQL Security to protect sensitive data
Encryption is cool : Use it carefully though
Understand the password policies of organization
Block standard/un-used default ports
Lastly, Understand all the entry points to your application
Questions ?
Resources
Encrypting File System in Windows XP and Windows Server 2003
0 comments
Post a comment