Reverse proxies, WAF, database firewalls, Database Activity Monitoring, data classification, DLP, database governance, and Mobile Device Management — protecting data wherever it travels.
Data-centric security focuses on protecting information assets wherever they reside — in databases, traversing networks, on endpoints, and on mobile devices. This is the final GDSA domain, covering the complete data protection stack from WAF to MDM.
Data Protection Architecture — Defense-in-Depth View
Internet
→
WAF / Reverse Proxy
→
Application Server
→
DB Firewall
→
Database + DAM
Endpoint DLP
+
Network DLP
+
Cloud DLP / CASB
→
Data Classification Policy
Each layer provides complementary protection. Gaps in any layer are covered by adjacent controls.
Data Classification Tiers
Public
Information approved for public release. Marketing materials, public website content, press releases. No access restrictions needed.
Internal / Internal Use Only
General business information not for public. Internal policies, org charts, non-sensitive project plans. Employees only, no external sharing without approval.
Confidential
Sensitive business data. Customer data, financial reports, HR data, contracts. Need-to-know basis, encrypted at rest and in transit, logging required.
Inline (reverse proxy mode): All traffic passes through WAF. Full inspection and blocking capability. Adds latency. Fail-open (bypass) or fail-closed (block all) configuration.
Out-of-band (passive): WAF receives a copy of traffic (SPAN port). Monitoring only — cannot block. Useful for initial baseline before enforcement.
Cloud-based: Cloudflare, AWS WAF, Akamai. Traffic routed through provider's WAF infrastructure. No on-premises hardware.
WAF Rule Types:
Signature-based: Matches known attack patterns (SQLi, XSS payloads). OWASP Core Rule Set (CRS) provides signature library for ModSecurity and compatible WAFs.
Positive security model (whitelist): Only allow valid inputs matching defined patterns. Reject everything else. Lower FP rate but high maintenance — must define all valid inputs.
Anomaly scoring: Multiple rule matches accumulate a score. Block when threshold exceeded. Reduces false positives vs blocking on individual rule match.
Database Firewall Architecture: Sits inline between application servers and database servers. Inspects SQL traffic at the protocol level — parses actual SQL statements, not just HTTP.
What Database Firewalls Block:
DROP TABLE, TRUNCATE — schema destruction commands
EXEC xp_cmdshell — SQL Server OS command execution
UNION SELECT-based SQL injection patterns
Unauthorized stored procedure calls
Queries not matching the approved whitelist of query patterns
Why DB Firewall + WAF Are Complementary:
WAF protects the HTTP tier — inspects incoming HTTP requests for SQLi patterns
DB Firewall protects the database tier — inspects actual SQL at the database protocol level
Second-order SQL injection: attacker stores payload via normal (WAF-passing) input. Later, application reads that data and constructs a query — the stored payload executes. WAF saw clean input; DB Firewall sees the resulting malicious SQL query.
Blind SQLi: may not contain obvious SQL keywords in HTTP request; manifests as unusual query patterns at DB level
Supported Database Protocols: MySQL (3306), Microsoft SQL Server (1433), Oracle (1521), PostgreSQL (5432), MongoDB wire protocol. Protocol parsing is deep — understands database-specific extensions.
Products: Imperva SecureSphere, GreenSQL, Oracle Audit Vault and Database Firewall (AVDF), IBM Guardium.
Query Whitelisting: Learn normal application query patterns over baseline period. Block any query not matching approved patterns. Extremely effective but operationally complex — application code changes require whitelist updates.
Network-based: Sniffs database traffic via SPAN port or network tap. No impact on database performance. Cannot see encrypted database connections or localhost connections.
Agent-based: Lightweight agent installed on database server. Captures all activity including local connections (DBA from localhost, stored procedures). Higher coverage but agent maintenance required.
What DAM Captures (Per Query):
Full SQL statement text
User account that executed it (database user + OS user + hostname)
Source IP address and application name
Timestamp and database name/schema
Result: rows returned, rows affected
Execution duration
Key Detection Scenarios (Exam-Tested):
Off-hours DBA access: DBA connecting at 2 AM from personal workstation
Bulk data extraction: SELECT * FROM customers returns 500,000 rows — exfiltration indicator
Schema changes: DROP TABLE, ALTER TABLE outside change window
Failed authentication attempts: brute force against database accounts
Privilege escalation: regular user suddenly using DBA-level commands
SQL injection reaching database: suspicious UNION SELECT, comment injection patterns in query text
Independence from Native Database Audit Logs (Critical Exam Point): DBAs can: disable database auditing, truncate audit logs, grant themselves AUDIT privileges to hide their own actions. DAM is deployed independently — DBAs cannot modify or delete DAM records. Provides immutable audit trail. This independence is why DAM satisfies compliance requirements (PCI DSS Requirement 10.2, SOX, HIPAA).
UEBA Integration: Baseline each DBA's normal query patterns (hours, database objects accessed, query types). Alert when behavior deviates — same DBA accessing HR tables they've never queried before is anomalous even if technically authorized.
Real-time Blocking: Some DAM products can block queries in real-time (effectively acting as a DB firewall). Adds latency — only enable for high-risk queries. Products: Imperva, IBM Guardium with blocking enabled.
4. Data Discovery, Classification, and DLP+
Data Discovery (Must Come First):
Scan structured (databases, spreadsheets), unstructured (file servers, SharePoint, email archives, cloud storage), and semi-structured (JSON, XML, log files) data stores for sensitive content
Content inspection: regex patterns for SSN (XXX-XX-XXXX), credit card numbers (Luhn algorithm validation), passport numbers, IBAN, SWIFT codes, medical record identifiers
Document fingerprinting: exact-match known sensitive documents even if renamed or partially modified
ML-based classification: Microsoft Purview, Google Cloud DLP, Varonis — classify documents by content context, not just pattern matching
Data flow mapping: where does sensitive data travel? Which applications, services, and users touch it?
GDPR Article 30 Record of Processing Activities (RoPA) — requires documenting all processing of personal data
DLP Deployment Modes:
Network DLP: Deployed at email gateway and web proxy. Inspects outbound traffic for sensitive data patterns. Example policy: block email with credit card numbers to external recipients. Requires SSL inspection for HTTPS. Cannot stop USB exfiltration.
Endpoint DLP: Agent on workstation monitors: clipboard operations (copying sensitive data), USB drive writes, printing (optical character recognition), local application actions, cloud sync client uploads. Stops USB-based exfiltration that never traverses the network. Cannot inspect traffic from devices without the agent.
Cloud DLP: Microsoft Purview, Google Cloud DLP API, Netskope, Zscaler. Native integration with cloud storage (OneDrive, SharePoint, Google Drive, Box). No agent required for cloud-native inspection.
CASB (Cloud Access Security Broker): Visibility and control over all SaaS application usage. Detects shadow IT (Dropbox, personal Gmail, etc.). Enforces DLP policies in cloud apps. Modes: API-based (native integration with sanctioned apps) or proxy-based (intercepts all SaaS traffic). Products: Netskope, McAfee MVISION Cloud, Microsoft Defender for Cloud Apps.
DLP Policy Components: (1) Content identifier — what to detect (credit card pattern, specific document, keyword). (2) Conditions — where/who/when (email to external, USB write, specific user group). (3) Action — block, alert, encrypt, quarantine, require business justification.
The Luhn Algorithm: Mathematical checksum formula for validating credit card numbers. DLP uses Luhn validation to reduce false positives — a random 16-digit number usually fails Luhn check; a real credit card number passes. Dramatically reduces FP rate in DLP credit card detection.
5. Database Governance — Least Privilege, Encryption, and Compliance+
Database Account Types and Least Privilege:
Application accounts: Only SELECT/INSERT/UPDATE/DELETE on specific tables required by the application. No DDL (CREATE/ALTER/DROP) permissions. No access to audit tables. Connection from application server IPs only.
Read-only reporting accounts: SELECT only on reporting views/tables. Used by BI tools, reports. No data modification.
DBA accounts: Full access — carefully controlled. Should not be used for routine operations. JIT access. MFA required. All actions logged by DAM.
Quarterly review of all database accounts — disable unused accounts (dormant accounts are backdoors).
Separation of Duties (Critical Exam Point):
DBA has full access to database — can read all data, modify records, delete audit logs
DBAs cannot self-audit: they have incentive and ability to cover unauthorized actions in their own logs
DAM provides independent monitoring that DBAs cannot modify — satisfies separation of duties requirement
Principle: no single person should both perform a sensitive action AND control the audit of that action
Sensitive Data in Non-Production Environments:
Data masking: Replace real sensitive values with realistic fake values. "John Smith SSN 123-45-6789" → "Jane Doe SSN 987-65-4321". Preserves data format and referential integrity. Test applications work correctly with masked data. Static masking (at copy time) vs dynamic masking (real-time for specific users).
Anonymization: Irreversibly transform data so individuals cannot be re-identified. Stronger than masking for regulatory purposes. Cannot reconstruct original data. GDPR: properly anonymized data no longer subject to GDPR requirements.
Never use production PII/PHI/PCI data in development/test environments without masking — compliance violation in most frameworks.
Database Encryption:
TDE (Transparent Data Encryption): Encrypts database files (.mdf, .ldf), backups, and temp files at the OS level. Transparent to applications — no code changes. Protects against: storage theft, unencrypted backup exposure, decommissioned disk theft. Does NOT protect against: authorized user query access, SQL injection (data is decrypted for authorized queries).
Column-level encryption: Encrypt specific high-sensitivity columns (SSN, credit card, health data). Application-level — application decrypts for authorized users only. Protects even against DBA access. Higher performance overhead.
Key management: Use HSM (Hardware Security Module) for master key storage. AWS KMS, Azure Key Vault, Thales HSM. Separate key management from data management (DBAs shouldn't hold encryption keys).
6. Mobile Device Management and Data Protection on Mobile+
MDM vs MAM (Critical Exam Distinction):
MDM (Mobile Device Management): Manages the entire device. Policies: screen lock timeout, passcode complexity, full disk encryption enforcement, remote wipe, device compliance (jailbreak/root detection), certificate deployment, VPN configuration, app management (whitelist/blacklist). Requires full enrollment — user privacy concern on personal devices.
MAM (Mobile Application Management): Manages only corporate applications — no visibility into personal apps or data. Creates a secure container on the device for corporate apps (email, calendar, Teams). Personal apps outside the container are unaffected. Corporate data stays within managed container. Ideal for BYOD — employee privacy maintained. Products: Microsoft Intune MAM, VMware Workspace ONE, MobileIron.
BYOD Security Challenges and Solutions:
Employee resistance to MDM on personal devices: use MAM instead. "I don't want my employer to wipe my personal iPhone" — MAM solves this by only wiping corporate apps/data container, not personal data.
Samsung Knox: hardware-level containerization on Samsung devices. Separate work profile with encrypted storage, isolated from personal apps.
iOS Managed Open In: iOS policy that restricts data sharing between managed (corporate) and unmanaged (personal) apps. Corporate email attachments cannot be opened in personal apps.
MDM Capabilities (Memorize):
Enforce disk encryption (FileVault, BitLocker, iOS/Android native encryption)
Enforce screen lock and passcode complexity
Remote wipe — selective (corporate data only) or full device wipe for lost/stolen devices
Certificate deployment — push client certificates for 802.1X Wi-Fi authentication
VPN profile deployment — enforce corporate VPN on device
Jailbreak/root detection — detect compromised device state
Conditional Access (Identity + Device): Intune + Azure AD / Entra ID: deny access to corporate resources from non-enrolled or non-compliant devices. Policy: "User must be authenticated AND device must be enrolled in MDM AND device must be compliant (patch level, encryption, no jailbreak) to access Exchange Online." Single control that enforces both identity and device health requirements.
Enterprise App Store: Internal app distribution — apps undergo security review before deployment. Users install approved apps from enterprise catalog. Prevents sideloading of unauthorized apps on corporate devices.
7. CASB, Cloud DLP, and Data Governance Frameworks+
CASB Architecture:
Sits between users and cloud services — visibility and control over SaaS/IaaS/PaaS usage
API mode: Direct API integration with sanctioned SaaS apps (M365, Salesforce, Box). Retrospective scanning of stored data. Cannot inspect traffic in real time but no proxy latency. Best for data-at-rest discovery.
Proxy mode (forward/reverse): Inline inspection of traffic. Real-time blocking. Forward proxy intercepts user requests to cloud. Reverse proxy intercepts cloud app requests to users.
Four pillars: Visibility (shadow IT discovery), Compliance (DLP policies in cloud), Data Security (encryption, rights management), Threat Protection (malware in cloud storage).
Shadow IT Discovery: CASB analyzes firewall/proxy logs to identify all cloud services in use — not just sanctioned ones. Common finding: hundreds of cloud services employees use without IT approval. Risk assessment per service (compliance certifications, data residency, breach history). Block high-risk services, allow low-risk with monitoring.
Data Governance Frameworks:
GDPR: EU regulation. Legal basis for processing, right to erasure, data minimization, 72-hour breach notification. RoPA (Record of Processing Activities). Data Protection Impact Assessment (DPIA) for high-risk processing.
HIPAA: US healthcare. PHI (Protected Health Information). Technical safeguards: encryption, audit controls, automatic logoff, unique user ID. Administrative safeguards: risk assessment, workforce training, access authorization.
PCI DSS: Payment card industry. 12 requirements. Cardholder Data Environment (CDE) scope reduction. Requirement 10: audit logging. Requirement 6: WAF required for internet-facing applications or code review. Tokenization reduces scope.
Data Retention and Disposal: Retention schedules based on legal/regulatory requirements (GDPR: not longer than necessary; SOX: 7 years for financial records). Secure disposal: NIST 800-88 media sanitization — overwrite (software), degaussing (magnetic), physical destruction (shredding). Certificates of destruction for audit.
Exam Readiness Checklist
Track your Domain 6 preparation — the final domain before your GDSA exam.
Progress0 / 17
✓
ExamKnow WAF vs traditional firewall — Layer 7 vs Layer 3/4, what each can and cannot detect
✓
ConceptUnderstand OWASP Top 10 categories and which WAF rules address each attack type
ExamDistinguish MDM vs MAM — full device management vs corporate app container (BYOD solution)
✓
ConceptUnderstand conditional access for mobile — deny unmanaged or non-compliant device access
✓
PracticeLab: Configure ModSecurity with OWASP CRS, test against DVWA SQLi and XSS attacks
✓
ExamKnow CASB — visibility over shadow IT, API vs proxy mode, four pillars (visibility/compliance/data/threat)
Quick Reference
Tables, classification definitions, and code for rapid Domain 6 review.
OWASP Top 10 and WAF Coverage
OWASP Risk
Attack Method
WAF Defense
Additional Control
A01: Broken Access Control
IDOR, forced browsing
Limited — URL pattern rules
Application-level authorization
A03: Injection (SQLi)
SQL injection, command injection
Yes — signature + positive model rules
Parameterized queries, DB firewall
A07: XSS
Reflected, stored, DOM XSS
Yes — script/event injection blocking
Content Security Policy (CSP)
A05: Security Misconfiguration
Exposed admin pages, verbose errors
Partial — block known admin paths
Hardening, CSPM
A06: Vulnerable Components
Exploit known CVEs in libraries
Virtual patching for known CVEs
SCA scanning, patching
A02: Cryptographic Failures
Force HTTP, weak TLS
No
Enforce HTTPS, TLS policy
A10: SSRF
Request to internal services
Partial — block internal IP patterns
Restrict outbound, IMDS protection
DLP Deployment Modes Comparison
Mode
Deployment Point
What It Stops
Blind Spot
Products
Network DLP
Email gateway, web proxy
Email exfil, web upload, cloud sync over proxy
USB, encrypted direct upload, unmanaged devices
Symantec DLP, Forcepoint, Proofpoint
Endpoint DLP
Agent on workstation
USB writes, clipboard, printing, local apps
Devices without agent, traffic not logged locally
Microsoft Purview, Digital Guardian, Code42
Cloud DLP
Native cloud APIs
Cloud storage uploads, cloud app sharing
Unmanaged personal accounts, non-integrated apps
Microsoft Purview, Google Cloud DLP, Netskope
CASB
API or proxy to cloud
Shadow IT, SaaS DLP, cloud app control
Non-web protocols, local network file shares
Netskope, Defender for Cloud Apps, Zscaler
Database Security Controls Comparison
Control
What It Does
DBA Bypass?
Real-time Blocking
Native DB audit log
Logs queries to DB audit tables
Yes — DBA can disable/truncate
No
Database Firewall
Inspects SQL at protocol level, blocks unauthorized queries
If inline — hard to bypass
Yes — inline blocking
DAM (network-based)
Captures all DB traffic, generates immutable audit
No — independent of DB
Typically no (alert only)
DAM (agent-based)
Captures all activity including local connections
No — independent of DB
Some products yes
TDE
Encrypts database files at rest
N/A — transparent to authorized users
N/A
Column encryption
Encrypts specific columns — app-level
Protects against DBA access
N/A
MDM vs MAM Comparison
Attribute
MDM
MAM
Scope
Full device — all apps and data
Corporate apps only — work container
Best for
Corporate-owned devices
BYOD — personal devices with work apps
Remote wipe
Full device wipe
Corporate container wipe only
Personal app visibility
Yes — full device management
No — personal apps invisible
Employee privacy
Limited — employer manages device
High — personal data untouched
Enrollment resistance
High (BYOD) — "my personal phone"
Low — only work apps managed
Corporate data isolation
Full device policy
Container prevents personal app access to corporate data
Products
Intune, Jamf, VMware Workspace ONE MDM
Intune APP, Workspace ONE MAM, MobileIron
ModSecurity WAF and Database Account Configuration
# ModSecurity OWASP CRS — Enable and configure
# In nginx.conf or apache httpd.conf:
SecRuleEngine On # Detection + blocking (was: DetectionOnly)
SecRequestBodyAccess On # Inspect request body
SecResponseBodyAccess On # Inspect response body
# Anomaly scoring thresholds
SecAction "id:900110,phase:1,pass,t:none,setvar:tx.inbound_anomaly_score_threshold=5"
SecAction "id:900200,phase:1,pass,t:none,setvar:tx.outbound_anomaly_score_threshold=4"
# Custom rule — block SQL comment patterns
SecRule ARGS "@contains --" \
"id:100001,phase:2,block,msg:'SQL Comment Injection Detected'"
# Database Account Privilege Matrix (SQL)
-- Application read/write account
CREATE USER 'appuser'@'10.0.1.%' IDENTIFIED BY '...';
GRANT SELECT, INSERT, UPDATE ON appdb.orders TO 'appuser'@'10.0.1.%';
GRANT SELECT, INSERT, UPDATE ON appdb.customers TO 'appuser'@'10.0.1.%';
-- Note: NO DELETE, NO DROP, NO TRUNCATE, NO GRANT
-- Read-only reporting account
CREATE USER 'reporter'@'10.0.2.%' IDENTIFIED BY '...';
GRANT SELECT ON appdb.* TO 'reporter'@'10.0.2.%';
-- Data masking example (SQL)
-- Non-production copy: mask SSN column
UPDATE customers
SET ssn = CONCAT(
LPAD(FLOOR(RAND()*900)+100, 3, '0'), '-',
LPAD(FLOOR(RAND()*90)+10, 2, '0'), '-',
LPAD(FLOOR(RAND()*9000)+1000, 4, '0')
);
Practice Quiz — Data-Centric Security & Governance
Scenario-based questions covering all Domain 6 exam objectives.
0/6
Questions Answered
Q1. A WAF blocks SQL injection in user input. An attacker stores a malicious SQL payload in a comment field (passes WAF as normal text). Later, another user views their profile — the stored payload executes via a database query. Why does the WAF miss this second-order injection?
Second-order injection stores the payload via a legitimate-looking initial request that passes WAF inspection. The malicious SQL is stored in the database as data. Later, when the application retrieves that data and incorporates it into a query without sanitization, the SQL executes. The WAF never sees the second query — it's internal application-to-database. A database firewall watching SQL at the database tier would detect the anomalous query pattern. Parameterized queries in the application are the root-cause fix.
Q2. A database administrator directly queries the customer PII table from an unmonitored workstation at 2 AM, extracting 100,000 customer records. Which control generates the highest-fidelity alert for this scenario?
DAM is specifically designed for this scenario. It captures: who (DBA user + workstation hostname), what (SELECT * FROM customers — 100,000 rows returned), when (2 AM — off-hours), and from where (unmonitored workstation). DAM is independent of the database's own audit logs that the DBA could disable. Network DLP might catch the exfiltration if data leaves via email/web, but the query itself (pre-exfiltration) is what DAM catches. SIEM correlation relies on logs that DBAs can modify.
Q3. An employee with a personal iPhone wants access to corporate email but refuses full MDM enrollment. Which control provides corporate data protection without managing the employee's personal device?
MAM manages only corporate applications via a secure container — corporate email and data are isolated within the managed work container. Personal apps outside the container cannot access corporate data (iOS Managed Open In, Android work profile). The employee's personal photos, messages, and apps are completely untouched. This balances corporate data protection with employee privacy. Refusing access reduces productivity and may violate contractual obligations; VPN only protects in-transit data, not at-rest corporate data on the device.
Q4. Before deploying DLP policies, a data classification policy requires all documents to be labeled. What must come first in the implementation sequence?
Data discovery must come first — you cannot classify what you haven't found, and you cannot write effective DLP policies for data whose location and scope you don't know. Discovery tools scan all data stores (file servers, SharePoint, databases, email archives, cloud storage) and identify where sensitive data exists. After discovery, classification can be applied (manually or auto-suggested). After classification, DLP policies can be written to protect classified data. Training and deployment follow. Discovery → Classification → DLP Policy → Training → Enforcement.
Q5. A WAF protects a web application. Penetration testing reveals SQL injection succeeds against the database. What is the most likely architectural gap?
The question states a WAF is deployed and SQL injection still succeeds at the database. The architectural gap is the missing database firewall tier. WAF protects the HTTP layer; a database firewall protects the database protocol layer. Second-order injection, blind SQLi that evades HTTP-level detection, and direct database connections that bypass the application tier are all stopped by a database firewall but not by a WAF alone. Both controls are complementary and should be deployed in defense-in-depth.
Q6. An application database account has full DBA-level privileges. The developer says it's needed for the application to function. What is the security-correct response?
Principle of least privilege for database accounts: analyze exactly what the application's code actually needs — typically SELECT on lookup tables, INSERT/UPDATE on transaction tables. DBA-level access for applications is almost never necessary. If DDL operations are genuinely needed (schema migrations), use stored procedures with definer rights or a separate deployment account that's only active during deployment windows. DBA-level application accounts mean that SQL injection = DBA-level database access. TDE and network isolation don't reduce the privilege scope of the account itself.
10-Day Final Study Plan — Domain 6
Complete coverage of data-centric security with hands-on labs and final exam simulation.
Phase 1 — WAF, Database Security, and Data Classification
Days 1–3
WAF and reverse proxy — deploy DVWA (Damn Vulnerable Web App) in Docker, install ModSecurity with OWASP CRS in front of it, practice SQLi and XSS attacks, observe which are blocked vs bypass WAF, tune rules, test WAF bypass encoding techniques (URL encoding, case variation)
Days 4–5
Database security — review a trial version of ManageEngine DB Audit or configure MySQL native audit logging + general query log, configure minimal-privilege application database accounts, test privilege escalation detection, review TDE implementation steps for SQL Server or MySQL
Phase 2 — DLP, MDM, and Final Exam Preparation
Days 6–7
Data classification and DLP — run a data discovery scan on a test file server (try Varonis free trial or Microsoft Purview trial), define a sample classification policy, configure a simple DLP rule (block email with SSN pattern), test false positive rate and tuning
Days 8–10
MDM and mobile security — configure Microsoft Intune MAM policy for iOS/Android (free 30-day trial), test conditional access blocking unmanaged device access to Exchange Online, complete all 6 GDSA domain checklists, run 40+ practice questions full exam simulation, review all five common mistakes per domain
All-Domain Final Exam Checklist
Cross-Domain Concepts to Review
Defense-in-depth: complementary controls across domains
Separation of duties: applicable in multiple contexts
Implicit deny: networks, WAF, database accounts
Least privilege: IAM, database accounts, OS users
Encryption at rest AND in transit: multiple domains
Audit logging independence: NSM, DAM, CloudTrail
Last-Day Review Topics
NIDS vs NIPS placement (D3)
SPA mechanism with fwknop (D4)
Shared responsibility IaaS/PaaS/SaaS (D5)
DAM independence from native DB logs (D6)
MDM vs MAM for BYOD (D6)
SPF/DKIM/DMARC flow (D3)
Common Exam Mistakes
Data security misconceptions that frequently cost points on Domain 6 questions.
1
Thinking WAF alone prevents all SQL injection. WAF inspects the HTTP request layer. Second-order injection, stored procedures, blind SQLi with non-standard payloads, and direct database connections that bypass the application tier all evade the WAF. A database firewall is the required complementary control at the database tier. Both controls are necessary.
2
Relying on native database logs for compliance instead of DAM. DBAs have the ability to: disable auditing, grant themselves AUDIT privileges, truncate audit tables, modify stored procedures that write to audit tables. Native database logs provide evidence the DBA cannot reasonably need to be trusted to maintain. DAM is independent and immutable — audit logs that DBAs cannot alter are required for most compliance frameworks including PCI DSS Req 10, SOX, and HIPAA.
3
Confusing network DLP with endpoint DLP — assuming one covers the other. Network DLP completely misses USB-based data exfiltration (data never traverses the network). Endpoint DLP completely misses data exfiltration via cloud upload from a device that doesn't have the DLP agent installed (unmanaged devices, contractor laptops). Both are required for comprehensive data loss prevention.
4
Deploying full MDM on BYOD without a MAM alternative. Employees strongly resist MDM on personal devices — legitimate concern about employer monitoring personal messages, photos, and location. Forcing MDM on BYOD often results in employees not enrolling and corporate data remaining unprotected. MAM is the practical BYOD solution: only corporate apps are managed, personal data is untouched, employees enroll willingly.
5
Treating data classification as a one-time project. Data is created continuously — new files, emails, databases, cloud storage are added daily. A one-time classification project will have stale results within weeks. Automated discovery and classification tools must run continuously, with new data automatically classified based on content patterns and context, not just initially tagged by users.
Frequently Asked Questions — Domain 6
Common questions about data-centric security concepts.
What is the OWASP ModSecurity Core Rule Set and how is it used with a WAF?+
The OWASP ModSecurity Core Rule Set (CRS) is an open-source set of WAF rules designed to protect web applications against the OWASP Top 10 and other common web attacks. It's maintained by OWASP and compatible with ModSecurity (open-source WAF module for Apache/nginx/IIS) and several commercial WAF products. The CRS uses an anomaly scoring model: each matching rule adds to a transaction's anomaly score; when the score exceeds a configured threshold, the transaction is blocked. This reduces false positives compared to blocking on any single rule match. Implementation: (1) Install ModSecurity module for your web server. (2) Download CRS from GitHub (coreruleset.org). (3) Configure crs-setup.conf (anomaly threshold, exclusions). (4) Start in detection mode (SecRuleEngine DetectionOnly) — log violations but don't block. (5) Review logs for false positives and create rule exclusions for legitimate traffic. (6) Switch to blocking mode (SecRuleEngine On). (7) Ongoing maintenance: tune exclusions as application changes, update CRS when new releases contain improved rules.
How does TDE (Transparent Data Encryption) work and what does it protect against?+
TDE encrypts database files at the OS/filesystem level — data files (.mdf), transaction logs (.ldf), and backups are all encrypted. The encryption/decryption happens transparently: applications and authorized users query the database normally without any changes. The database engine handles encryption at the page level when writing to disk and decryption when reading into memory. SQL Server TDE uses a hierarchy: Database Encryption Key (DEK) encrypted by a certificate, stored in the master database, protected by the Service Master Key (SMK) or an EKM/HSM. What TDE protects against: (1) Physical theft of storage media — database files are encrypted and useless without the encryption key and running database. (2) Unauthorized backup restoration — encrypted backups cannot be restored without the certificate. (3) Decommissioned disk disposal — drives remain encrypted. What TDE does NOT protect against: (1) Authorized user queries — encryption is transparent, authorized queries see plaintext data. (2) SQL injection attacks — the database engine decrypts data for all authorized queries. (3) Memory scraping — data in RAM is decrypted. For protection against DBA snooping, use column-level encryption or Azure Always Encrypted (client-side encryption).
What is a CASB and when is it needed?+
CASB (Cloud Access Security Broker) is a security product that sits between users and cloud services, providing visibility and control over cloud application usage. It's needed when: (1) Shadow IT is a concern — employees using unapproved cloud services (personal Dropbox, WhatsApp, consumer Gmail) to transfer work data. Without CASB, IT has no visibility into what cloud services are in use. (2) DLP policies need to extend to cloud applications — prevent users from uploading confidential documents to personal OneDrive or Box. (3) Compliance requires knowing where sensitive data resides — CASB API mode scans cloud storage for PII, financial data, IP. (4) Malware in cloud storage — malicious files uploaded to sanctioned cloud apps (SharePoint, Box) could infect collaborators. CASB scans for malware in cloud storage. When you don't need CASB: small organizations with strict device management and no cloud app usage beyond one or two monitored SaaS platforms may not benefit. Deployment modes: API (retrospective scanning of existing cloud data, no latency, no agent), forward proxy (inline real-time inspection of all cloud traffic, requires client config or endpoint agent), reverse proxy (for managed apps on managed devices, no agent required). Products: Netskope (market leader), Microsoft Defender for Cloud Apps (strong M365 integration), Zscaler (inline proxy model), McAfee/Trellix MVISION Cloud.
What is data masking and how does it differ from anonymization?+
Data masking replaces real sensitive values with realistic but fictional substitute values while preserving the data format and referential integrity. Example: SSN "123-45-6789" → "987-65-4321" (still looks like an SSN, still passes format validation). Credit card "4111111111111111" → "5555555555554444" (different card number, still passes Luhn check). Purpose: development and testing environments can use realistic-looking data without real customer information. Two types: (1) Static masking: creates a masked copy of the database at a point in time (for dev/test environments). (2) Dynamic masking: masks data in real-time based on user role — DBA sees real data, reporting user sees masked values. Anonymization goes further: irreversibly transforms data so that individuals cannot be re-identified even by combining with other datasets. Techniques: generalization (exact age → age range), suppression (remove identifying fields), perturbation (add random noise to numerical data), k-anonymity (ensure each record is indistinguishable from k-1 others). Key difference: masked data can potentially be re-linked to individuals if the masking mapping is known. Properly anonymized data cannot. GDPR: properly anonymized data is no longer personal data and falls outside GDPR scope. Masked data is still personal data under GDPR.
Why is separation of duties critical in database administration?+
Separation of duties (SoD) in database administration means that the people who perform sensitive database operations should not control the audit of those operations. DBAs have full access to: all data in all tables, audit log tables (can delete or modify entries), auditing configuration (can disable auditing), stored procedures (can modify procedures that write to audit tables). Without SoD, a malicious or compromised DBA could: query sensitive customer data and delete those queries from the audit log, make unauthorized schema changes and hide them, copy/exfiltrate data with no evidence. DAM (Database Activity Monitoring) deployed independently of the database enforces SoD: DAM records all DBA activity to a separate system that the DBA has no access to modify. Compliance frameworks requiring SoD in database governance: PCI DSS Requirement 10.2 (audit logging), SOX Section 404 (IT general controls), HIPAA Technical Safeguard — Audit Controls. Practical implementation: DAM system controlled by security team, not DBA team. DBA and security team manager report to different executives. Quarterly DBA access review performed by security team, not IT management.
What is the Luhn algorithm and why is it used in DLP?+
The Luhn algorithm (mod 10 algorithm) is a simple checksum formula used to validate credit card numbers, IMEI numbers, and some national identification numbers. It works by: (1) Starting from the rightmost digit, double every second digit from right to left. (2) If doubling results in a number > 9, subtract 9. (3) Sum all resulting digits. (4) If the total modulo 10 equals 0, the number is valid. All major credit card networks (Visa, Mastercard, Amex, Discover) use Luhn-valid card numbers. Why it matters for DLP: Without Luhn validation, DLP credit card detection must match any 16-digit number pattern — this produces enormous false positive rates (bank account numbers, product IDs, tracking numbers are all 16 digits). With Luhn validation: a random 16-digit number has roughly a 10% chance of passing Luhn check by accident. Real credit card numbers always pass. DLP can add Luhn validation as a condition: "16-digit number that matches Luhn check" = likely credit card. This reduces FP rates by approximately 90% for credit card detection. PCI DSS DLP requirement: detect and prevent transmission of primary account numbers (PANs) — Luhn validation is standard practice in PCI-compliant DLP implementations.
How does MAM containerization prevent data leakage on BYOD devices?+
MAM creates a secure, isolated container (work profile) on the device that wraps corporate applications and their data. The container enforces data boundaries: (1) Managed Open In (iOS): corporate email attachments opened in the managed Outlook app cannot be forwarded to personal apps (iCloud Drive, personal Dropbox, personal Mail). The OS enforces this at the file sharing API level. (2) Android Work Profile: corporate apps run in a separate user profile with separate keystore, separate app storage, separate clipboard (copy-paste between work and personal apps can be blocked). (3) Clipboard protection: copy/paste from corporate apps to personal apps can be blocked — prevents copying confidential email content to personal notes app. (4) Screenshot prevention: corporate apps can set flags preventing screenshots from being sent to personal apps. (5) Document sharing: corporate Word/Excel documents in the container cannot be shared to personal OneDrive or other personal apps. (6) Remote selective wipe: if employee leaves or device is reported lost, IT can wipe only the corporate container — all personal data (photos, personal messages, personal apps) is completely untouched. This addresses the main BYOD concern: "I don't want my employer to wipe my personal phone." With MAM, they only wipe the corporate container.
What compliance frameworks require database activity monitoring?+
PCI DSS: Requirement 10.2 requires specific audit log events for all components in the Cardholder Data Environment. Required events: all access to cardholder data, all actions by root/admin, all access to audit trails, invalid logical access attempts, use of identification/authentication mechanisms, initialization/stopping of audit logs, creation/deletion of system-level objects. DAM is the standard control for capturing database-level events that native logging may miss or DBAs may modify. Requirement 10.5 requires protecting audit logs from modification — DAM's independent storage satisfies this. SOX (Sarbanes-Oxley): IT General Controls include access to program and data controls. Database access must be logged and reviewed. DBAs with ability to modify financial data require independent monitoring. HIPAA: Technical Safeguard — Audit Controls (§164.312(b)): implement hardware, software, and/or procedural mechanisms that record and examine activity in information systems that contain or use ePHI. DAM satisfies this for database systems containing patient records. Independent monitoring of DBA access to PHI is required. GDPR: Article 32 requires appropriate technical measures for ongoing confidentiality, integrity, and availability of systems. Article 5(1)(f) requires integrity and confidentiality — DAM provides evidence that access controls and integrity are maintained. DAM logs can demonstrate data protection measures in a GDPR audit.
GDSA Exam Preparation Complete — All 6 Domains
You have covered all six GDSA domains. Review, practice, and schedule your exam.