08 Logging & Monitoring
Logging and monitoring provide visibility into what is happening inside the Cardholder Data Environment (CDE).
Preventive controls such as:
Firewalls
MFA
Least Privilege
Secure Configuration
Vulnerability Managementreduce the likelihood of compromise.
But organizations also need to detect:
Unauthorized Access
Privilege Changes
Suspicious Authentication
Configuration Changes
Security-Control Failures
Potential Cardholder Data AccessA strong PCI logging and monitoring model looks like:
CDE Activity ↓Audit Logs ↓Central Collection ↓Time Synchronization ↓Security Analytics ↓Alerting ↓Review ↓Investigation ↓Incident Response ↓Evidence RetentionThe central question is:
If something suspicious or unauthorized occurs in the CDE, can the organization detect it, determine what happened, identify who performed the activity, investigate it, and retain sufficient evidence?
Learning Objectives
Section titled “Learning Objectives”By the end of this lesson, you will be able to:
-
Explain why logging is important in PCI DSS.
-
Identify important CDE log sources.
-
Understand audit-trail requirements.
-
Identify critical security events.
-
Understand centralized log collection.
-
Understand SIEM integration.
-
Understand daily and periodic log reviews.
-
Understand automated monitoring.
-
Understand alert triage and investigation.
-
Understand privileged-activity monitoring.
-
Understand authentication monitoring.
-
Understand time synchronization.
-
Understand PCI log-retention principles.
-
Protect logs from unauthorized modification.
-
Identify logging coverage gaps.
-
Build a CDE logging inventory.
-
Build a critical-event catalog.
-
Build a monitoring matrix.
-
Test logging and monitoring controls.
-
Collect PCI logging evidence.
-
Maintain continuous monitoring assurance.
1. Why Logging Matters
Section titled “1. Why Logging Matters”Consider:
Payment Database ↓Unauthorized Query ↓PAN ExportWithout logging:
Who accessed it?
When?
From where?
Which account?
What data?
UnknownWith effective logging:
Identity ↓Timestamp ↓Source ↓Action ↓Target ↓Resultcan support investigation.
2. Logging vs Monitoring
Section titled “2. Logging vs Monitoring”These concepts are related but different.
Logging records events.
Event ↓Audit RecordMonitoring analyzes events and identifies activity requiring attention.
Logs ↓Analysis ↓Alert ↓Investigation3. Logging Without Monitoring
Section titled “3. Logging Without Monitoring”Weak:
Millions of Logs ↓Nobody Reviews ThemLogging exists, but security value is limited.
4. Monitoring Without Good Logs
Section titled “4. Monitoring Without Good Logs”Likewise:
SIEM ↓Missing CDE Logsmeans the monitoring platform cannot see important activity.
Strong PCI monitoring therefore requires both:
Complete Logging+Effective Monitoring5. Start With the CDE Asset Inventory
Section titled “5. Start With the CDE Asset Inventory”Use your:
PCI In-Scope Asset Registerto determine what must generate security-relevant logs.
Potential sources include:
Payment Applications
Databases
Servers
Firewalls
Cloud Platforms
Identity Systems
Kubernetes
Security Tools
Administrative Systems6. Build CDE Logging Coverage Register
Section titled “6. Build CDE Logging Coverage Register”Create:
01 CDE Logging Coverage RegisterUse:
| Asset | Log Source | Logging Enabled | Centralized | Owner |
|---|
7. Coverage Target
Section titled “7. Coverage Target”For applicable in-scope systems:
Target:100%A system without required logging can create:
Security Visibility Gap8. Log Source Inventory
Section titled “8. Log Source Inventory”Create:
02 PCI Log Source InventoryUse:
| Log Source | System | Events | Destination | Retention |
|---|
9. Operating System Logs
Section titled “9. Operating System Logs”OS logs may include:
Successful Login
Failed Login
Privilege Escalation
Account Creation
Service Changes
System Errors10. Application Logs
Section titled “10. Application Logs”Payment applications may log:
Authentication
Administrative Changes
Transactions
Application Errors
Security Events
API ActivityApplication logs must be designed carefully to avoid unintentionally recording sensitive payment data.
11. Database Logs
Section titled “11. Database Logs”Database logging can provide visibility into:
Authentication
Administrative Queries
Privilege Changes
Schema Changes
Data Access12. Firewall Logs
Section titled “12. Firewall Logs”Firewalls may record:
Allowed Connections
Blocked Connections
Administrative Changes
VPN Sessions13. Identity Logs
Section titled “13. Identity Logs”Identity platforms may record:
Authentication
MFA
Failed Authentication
Privilege Assignment
User Creation
User Disablement14. Cloud Audit Logs
Section titled “14. Cloud Audit Logs”Cloud environments typically provide management-plane audit logs.
Examples may record:
IAM Changes
Network Changes
Storage Changes
Logging Changes
Resource Creation
Resource Deletion15. Kubernetes Audit Logs
Section titled “15. Kubernetes Audit Logs”For payment workloads in Kubernetes, consider:
API Server Requests
RBAC Changes
Secret Access
Deployment Changes
Administrative Actions16. CI/CD Logs
Section titled “16. CI/CD Logs”If deployment pipelines can modify CDE applications, relevant events may include:
Pipeline Execution
Production Deployment
Approval
Credential Usage
Pipeline Configuration Change17. Security Tool Logs
Section titled “17. Security Tool Logs”Examples:
EDR Alerts
Vulnerability Scanner Events
IDS / IPS Events
WAF Events
DLP Alerts18. Audit Trail Objective
Section titled “18. Audit Trail Objective”A useful audit trail should help answer:
Who?
What?
When?
Where?
Result?19. User Identification
Section titled “19. User Identification”Logs should associate activity with:
Individual Identitywhere applicable.
Weak:
adminshared by multiple people.
Stronger:
alice-adminwith traceable individual accountability.
20. Timestamp
Section titled “20. Timestamp”Logs should include:
Date
Time
Timezone / Standardso events can be reconstructed accurately.
21. Event Type
Section titled “21. Event Type”Examples:
Login
Logout
Privilege Change
Configuration Change
Data Access
Security Alert22. Event Result
Section titled “22. Event Result”Capture:
Success
Failurewhere applicable.
Failed events can be extremely important.
23. Source Information
Section titled “23. Source Information”Useful fields may include:
Source IP
Hostname
Device
Application
Session24. Target Information
Section titled “24. Target Information”Example:
User:alice-admin
Action:DELETE
Target:payment-recorddepending on application logging requirements.
25. Critical Event Catalog
Section titled “25. Critical Event Catalog”Create:
03 PCI Critical Event CatalogUse:
| Event | Source | Severity | Alert Required | Owner |
|---|
26. Critical Authentication Events
Section titled “26. Critical Authentication Events”Examples:
Repeated Failed Login
Privileged Login
Break-Glass Login
Disabled Account Login Attempt
MFA Failure27. Privileged Activity
Section titled “27. Privileged Activity”Monitor:
New Administrator
Privilege Escalation
Role Assignment
Root Usage
Database Admin Activity28. Account Management Events
Section titled “28. Account Management Events”Examples:
Account Created
Account Deleted
Account Enabled
Account Disabled
Password Reset29. Security Control Changes
Section titled “29. Security Control Changes”Monitor attempts to:
Disable Logging
Disable EDR
Change Firewall Rules
Disable MFA
Modify SIEM Configuration30. Logging Control Failure
Section titled “30. Logging Control Failure”Example:
CDE Server ↓Stops Sending LogsThis itself should be treated as a monitoring event.
31. Data Access Events
Section titled “31. Data Access Events”Where applicable, monitor significant access to:
Cardholder Data
Payment Databases
Sensitive Files
Cryptographic Systems32. Application Security Events
Section titled “32. Application Security Events”Examples:
SQL Injection Attempt
Authentication Bypass Attempt
WAF Block
Unauthorized API Request33. Network Events
Section titled “33. Network Events”Examples:
CDE Port Scan
Blocked Corporate-to-CDE Connection
Unauthorized Outbound Connection
Unexpected Remote Access34. Malware Events
Section titled “34. Malware Events”Examples:
Malware Detection
EDR Isolation
Suspicious Process
Credential Dumping35. Centralized Logging
Section titled “35. Centralized Logging”A strong architecture typically sends security-relevant logs to a controlled central platform.
Example:
Payment Application ───┐Database ───────────────┤Firewall ───────────────┤Cloud Platform ─────────┼──→ SIEM / Log PlatformIAM ────────────────────┤Kubernetes ─────────────┤EDR ────────────────────┘36. Why Centralize?
Section titled “36. Why Centralize?”Central collection helps with:
Correlation
Retention
Search
Alerting
Investigation
Protection37. Local Logs Only
Section titled “37. Local Logs Only”Weak:
Attacker Compromises Server ↓Deletes Local LogsIf logs are centrally forwarded:
Server ↓Central Log Platformhistorical evidence may remain available.
38. SIEM
Section titled “38. SIEM”A Security Information and Event Management platform can support:
Centralized Logging
Correlation
Detection Rules
Alerting
Investigation
Dashboards39. Build SIEM Monitoring Matrix
Section titled “39. Build SIEM Monitoring Matrix”Create:
04 SIEM Monitoring MatrixUse:
| Use Case | Source | Detection | Priority | Response |
|---|
40. Detection Use Case — Failed Logins
Section titled “40. Detection Use Case — Failed Logins”Example:
10 Failed Administrative LoginsWithin 5 MinutesAction:
Security Alert41. Detection Use Case — New CDE Administrator
Section titled “41. Detection Use Case — New CDE Administrator”New Privileged Role ↓Alert ↓Validate Approval42. Detection Use Case — Logging Disabled
Section titled “42. Detection Use Case — Logging Disabled”Audit Logging Disabled ↓High-Priority Alert43. Detection Use Case — Firewall Change
Section titled “43. Detection Use Case — Firewall Change”CDE Firewall RuleChanged ↓Validate Change Record44. Detection Use Case — Public Exposure
Section titled “44. Detection Use Case — Public Exposure”Cloud rule changes to:
0.0.0.0/0 →Administrative Portshould receive immediate attention.
45. Detection Use Case — Database Export
Section titled “45. Detection Use Case — Database Export”Example:
Unusual Bulk Query ↓Large Data Exportmay trigger investigation.
46. Log Review
Section titled “46. Log Review”PCI DSS requires organizations to review relevant security logs and events according to applicable requirements.
The goal is:
Important Security Events ↓Actually Reviewednot simply retained.
47. Daily Log Review
Section titled “47. Daily Log Review”High-risk systems and security events may require daily review under applicable PCI DSS requirements.
A practical daily review may include:
Critical Security Alerts
Authentication Events
Privileged Activity
Security-Control Failures
Suspicious CDE Activity48. Automated Review
Section titled “48. Automated Review”Modern environments can automate large portions of review.
Example:
Logs ↓SIEM Detection Rules ↓Alert Queue ↓Analyst ReviewAutomation does not eliminate the need for:
Investigation
Ownership
Escalation49. Build Daily Log Review Register
Section titled “49. Build Daily Log Review Register”Create:
05 Daily Log Review RegisterUse:
| Date | Environment | Reviewer | Alerts | Exceptions | Status |
|---|
50. Daily Review Evidence
Section titled “50. Daily Review Evidence”Evidence should show:
Date
Reviewer
Systems / Alerts Reviewed
Findings
Actions51. Weak Review Evidence
Section titled “51. Weak Review Evidence”Weak:
"Logs reviewed."Strong:
Review Date:15 Aug
Reviewer:Security Analyst
Critical Alerts:8
Investigated:8
Escalated:152. Review Frequency
Section titled “52. Review Frequency”Not every log source necessarily receives identical manual review.
Use applicable PCI requirements plus:
Risk
System Criticality
Monitoring Architectureto establish the review process.
53. Automated Mechanisms
Section titled “53. Automated Mechanisms”Automated mechanisms can improve:
Coverage
Speed
Consistency
Alert Prioritization54. Alert Triage
Section titled “54. Alert Triage”A typical workflow:
Alert ↓Validate ↓Determine Severity ↓Investigate ↓Escalate / Close55. Alert Severity
Section titled “55. Alert Severity”Use standardized categories such as:
Critical
High
Medium
Low56. Critical Alert Example
Section titled “56. Critical Alert Example”Payment Database AdministratorLogs Infrom Unknown Country ↓MFA Challenge ↓Bulk Data QueryPotential severity:
Critical57. False Positive
Section titled “57. False Positive”Some alerts are legitimate.
Example:
New Admin Accountwas created through an approved access request.
Status:
Expected ActivityDocument the validation.
58. Security Investigation Record
Section titled “58. Security Investigation Record”Create:
06 PCI Security Alert Investigation RegisterUse:
| Alert | Source | Severity | Analyst | Result | Incident |
|---|
59. Incident Escalation
Section titled “59. Incident Escalation”When monitoring identifies potential compromise:
Alert ↓Investigation ↓Security Incident ↓Incident Response Process60. Logging Supports Incident Response
Section titled “60. Logging Supports Incident Response”Without historical logs, teams may struggle to answer:
Initial Access?
Affected Accounts?
Systems Touched?
Data Accessed?
Duration?61. Time Synchronization
Section titled “61. Time Synchronization”Logs from different systems must use consistent time.
Example:
Firewall:10:03
Database:10:41
Application:09:55If clocks are inaccurate, event reconstruction becomes difficult.
62. Central Time Source
Section titled “62. Central Time Source”A better model:
Approved Time Source ↓CDE Servers
Network Devices
Databases
Security Systems63. Build Time Synchronization Register
Section titled “63. Build Time Synchronization Register”Create:
07 Time Synchronization RegisterUse:
| System | Time Source | Synchronized | Drift | Owner |
|---|
64. Time Source Security
Section titled “64. Time Source Security”Protect time configuration from unauthorized modification.
Because an attacker could:
Alter Time ↓Confuse Audit Trail65. Time Drift
Section titled “65. Time Drift”Monitor significant differences.
Example:
Allowed:Small Operational Driftversus:
Detected:42-Minute Differencewhich requires investigation.
66. Log Protection
Section titled “66. Log Protection”Logs are security evidence.
They should be protected against:
Unauthorized Modification
Deletion
Tampering
Uncontrolled Access67. Log Access
Section titled “67. Log Access”Use:
Least Privilegefor log platforms.
Typical users may include:
SOC Analysts
Security Administrators
Auditorswith different roles.
68. Separate Log Administration
Section titled “68. Separate Log Administration”Avoid allowing ordinary CDE administrators to freely:
Modify
Deletecentral audit evidence where segregation can be implemented.
69. Immutable / Protected Storage
Section titled “69. Immutable / Protected Storage”Organizations may use:
Write-Once Controls
Immutable Storage
Restricted Deletion
Retention Lockwhere appropriate.
70. Log Integrity
Section titled “70. Log Integrity”Integrity mechanisms can help detect:
Alteration
Deletion
Collection Failure71. Central Log Collector Availability
Section titled “71. Central Log Collector Availability”If the log platform fails:
CDE ↓No Central Logsthe organization needs to detect that failure.
72. Log Ingestion Monitoring
Section titled “72. Log Ingestion Monitoring”Monitor:
Last Event Received
Event Volume
Agent Health
Pipeline Errors73. Logging Coverage Alert
Section titled “73. Logging Coverage Alert”Example:
PAY-DB-01 ↓No Logs for 30 MinutesAlert:
Logging Coverage Failure74. Build Log Health Register
Section titled “74. Build Log Health Register”Create:
08 Log Collection Health RegisterUse:
| Source | Expected | Last Received | Status | Owner |
|---|
75. Log Retention
Section titled “75. Log Retention”PCI DSS v4.x includes specific retention expectations for audit logs.
A commonly required model is:
At Least 12 MonthsTotal Retentionwith:
At Least 3 MonthsImmediately Availablefor analysis, subject to the applicable requirement and assessment scope.
76. Build Log Retention Register
Section titled “76. Build Log Retention Register”Create:
09 Log Retention RegisterUse:
| Log Source | Retention | Immediate Availability | Storage | Owner |
|---|
77. Retention Example
Section titled “77. Retention Example”Firewall Logs ↓3 Months Hot Search ↓9 Additional Months ArchiveTotal:
12 Months78. Retention Failure
Section titled “78. Retention Failure”Required:
12 MonthsActual:
30 DaysResult:
PCI Logging Gap79. Retention vs Availability
Section titled “79. Retention vs Availability”A log may technically exist in an archive but take:
3 Weeksto restore.
That may not meet immediate-availability expectations for the portion of logs required to be readily accessible.
80. Log Storage Capacity
Section titled “80. Log Storage Capacity”Ensure retention design accounts for:
Daily Event Volume
Growth
New Systems
Security Events81. Log Data Minimization
Section titled “81. Log Data Minimization”Logs should provide necessary audit detail without unnecessarily recording:
Full PAN
Authentication Secrets
Sensitive Authentication Data82. PAN in Logs
Section titled “82. PAN in Logs”Example:
Transaction:PAN=4111111111111111This can expand storage risk and PCI scope.
Prefer appropriate:
Masking
Tokenization
Redactiondepending on the logging use case.
83. Never Log Authentication Secrets
Section titled “83. Never Log Authentication Secrets”Avoid logging:
Passwords
CVV
Private Keys
API Secrets84. Application Logging Standard
Section titled “84. Application Logging Standard”Developers should know:
What to Log
What Not to Log
How to Protect Logs85. Build PCI Logging Standard
Section titled “85. Build PCI Logging Standard”Create:
10 PCI Logging & Monitoring StandardInclude:
Scope
Required Events
Log Fields
Collection
Monitoring
Review Frequency
Retention
Protection
Escalation86. Cloud Logging
Section titled “86. Cloud Logging”Cloud CDEs may require visibility into:
Management Events
Authentication
Network Flow
Storage Access
Configuration Changes87. Cloud Audit Log Example
Section titled “87. Cloud Audit Log Example”Administrator ↓Changes Security Group ↓Cloud Audit Event ↓SIEM ↓Alert88. Cloud Logging Gap
Section titled “88. Cloud Logging Gap”Example:
Production Payment Accounthas:
Management Audit Logging DisabledThis is a significant visibility gap.
89. Multi-Account Cloud Logging
Section titled “89. Multi-Account Cloud Logging”A scalable model:
Payment Account ─────┐Security Account ────┤Network Account ─────┼──→ Central Security Logging AccountManagement Account ──┘90. Log Separation
Section titled “90. Log Separation”A dedicated logging/security account may reduce the ability of a compromised workload administrator to destroy audit evidence.
91. Kubernetes Logging
Section titled “91. Kubernetes Logging”Consider:
API Audit Logs
Container Logs
Ingress Logs
Authentication
RBAC Changes92. Kubernetes Example
Section titled “92. Kubernetes Example”User ↓Creates ClusterRoleBinding ↓cluster-adminThis should generate audit evidence and potentially an alert.
93. Container Logs
Section titled “93. Container Logs”Application container logs may be ephemeral.
Without centralized forwarding:
Pod Deleted ↓Logs Lost94. CI/CD Monitoring
Section titled “94. CI/CD Monitoring”Monitor production pipeline activity.
Examples:
Deployment Started
Approval Bypassed
Pipeline Modified
Production Secret Accessed95. Database Activity Monitoring
Section titled “95. Database Activity Monitoring”High-risk databases may warrant monitoring for:
Large PAN Queries
Privilege Changes
Schema Changes
Unusual Access Times96. File Integrity / Change Detection
Section titled “96. File Integrity / Change Detection”Monitoring may also include detection of unauthorized modifications to:
Critical System Files
Configuration
Application Fileswhere applicable to the PCI control design.
97. Monitoring Administrative Actions
Section titled “97. Monitoring Administrative Actions”High-risk activity:
Disable Logging
Change Retention
Delete Log Index
Change SIEM Ruleshould itself be logged and monitored.
98. Monitoring Security Rule Changes
Section titled “98. Monitoring Security Rule Changes”Example:
SIEM Detection Disabled ↓Alertusing independent control paths where practical.
99. Third-Party Monitoring
Section titled “99. Third-Party Monitoring”If a managed security provider performs monitoring:
Organization +Provider =Monitoring ResponsibilityDocument exactly:
Who Reviews?
Who Investigates?
Who Escalates?
Who Retains Evidence?100. Build Monitoring Responsibility Matrix
Section titled “100. Build Monitoring Responsibility Matrix”Create:
11 PCI Monitoring Responsibility MatrixUse:
| Activity | Internal SOC | Provider | System Owner |
|---|
101. Monitoring SLA
Section titled “101. Monitoring SLA”Define response expectations.
Example:
| Severity | Initial Review |
|---|---|
| Critical | Immediate |
| High | 30 Minutes |
| Medium | 4 Hours |
| Low | Next Business Day |
Actual targets should align with organizational incident procedures and risk.
102. Alert Aging
Section titled “102. Alert Aging”Track:
Unassigned Alerts
Open High Alerts
Overdue Investigations103. Monitoring Dashboard
Section titled “103. Monitoring Dashboard”Track:
| Metric | Target |
|---|---|
| CDE Logging Coverage | 100% |
| Critical Alerts Reviewed | 100% |
| Daily Reviews Completed | 100% |
| Log Sources Healthy | 100% |
| Time Synchronization | 100% |
| Required Retention Met | 100% |
104. Logging KPI
Section titled “104. Logging KPI”Example:
Percentage of in-scope CDE systemssending required logsto centralized monitoringTarget:
100%105. Monitoring KPI
Section titled “105. Monitoring KPI”Example:
Percentage of required PCI security alertsreviewed within defined SLA106. Logging KRI
Section titled “106. Logging KRI”Example:
CDE systemsnot reporting to the central SIEMTarget:
0107. Critical Alert KRI
Section titled “107. Critical Alert KRI”Example:
Critical CDE security alertspast investigation SLA108. Retention KRI
Section titled “108. Retention KRI”Example:
PCI log sourcesbelow required retention109. Time Synchronization KRI
Section titled “109. Time Synchronization KRI”Example:
CDE systemswith time drift beyond approved tolerance110. Logging Exception
Section titled “110. Logging Exception”Sometimes a system cannot provide required logging capability.
Create:
12 Logging Exception RegisterUse:
| System | Logging Gap | Risk | Compensating Control | Owner | Expiry |
|---|
111. Exception Example
Section titled “111. Exception Example”Legacy payment appliance:
Cannot Forward Logs to SIEMPossible temporary mitigation:
Local Protected Logging
Frequent Collection
Restricted Administration
Enhanced Network Monitoringwhile replacement is planned.
112. Exceptions Need Expiry
Section titled “112. Exceptions Need Expiry”Do not allow:
Legacy Logging Exception ↓PermanentUse:
Owner
Migration Plan
Expiry
Periodic Review113. Logging Testing
Section titled “113. Logging Testing”A practical control test:
CDE Asset Population ↓Select Sample ↓Generate Event ↓Confirm Local Log ↓Confirm Central Collection ↓Confirm Timestamp ↓Confirm Alert if Required114. Build PCI Logging & Monitoring Testing Checklist
Section titled “114. Build PCI Logging & Monitoring Testing Checklist”Create:
13 PCI Logging & Monitoring Testing ChecklistFor each sampled system:
-
Audit logging enabled.
-
User identity captured.
-
event type captured.
-
timestamp captured.
-
source captured.
-
success/failure captured where applicable.
-
logs centrally collected.
-
log integrity protected.
-
correct retention configured.
-
time synchronized.
-
critical events monitored.
115. Test — Failed Login
Section titled “115. Test — Failed Login”Generate:
Failed Administrative LoginVerify:
System Log ↓SIEM ↓Detection116. Test — Privileged Change
Section titled “116. Test — Privileged Change”Create controlled test:
Add Test Userto Admin GroupVerify:
Privilege Change Logged ↓Alert Generatedif the monitoring use case requires alerting.
117. Test — Logging Disabled
Section titled “117. Test — Logging Disabled”In an approved test environment, simulate:
Logging Agent StopsExpected:
Collection Health Alert118. Test — Firewall Change
Section titled “118. Test — Firewall Change”Approved test:
Firewall Rule ModifiedVerify:
Audit Event
Change Record
Monitoring119. Test — Retention
Section titled “119. Test — Retention”Select log from:
11 Months AgoVerify it can be retrieved if within required retention.
120. Test — Immediate Availability
Section titled “120. Test — Immediate Availability”Select log from:
Previous MonthVerify it is readily available for analysis.
121. Logging Finding — Missing Source
Section titled “121. Logging Finding — Missing Source”Three payment servers do not send operating-system security logs to the central SIEM.
Risk:
CDE ActivityMay Go Undetected122. Logging Finding — Short Retention
Section titled “122. Logging Finding — Short Retention”Database audit logs are retained for only 60 days.
Potential result:
Retention Gap123. Logging Finding — No Review
Section titled “123. Logging Finding — No Review”CDE security logs are collected, but no documented daily review or automated equivalent monitoring process exists for required events.
124. Logging Finding — Time Drift
Section titled “124. Logging Finding — Time Drift”Five network devices differ from the approved time source by more than 30 minutes.
125. Logging Finding — Shared Account
Section titled “125. Logging Finding — Shared Account”Payment database audit logs show all administrator activity under one shared DBA account.
Risk:
Individual Accountability Lost126. Logging Finding — Sensitive Data
Section titled “126. Logging Finding — Sensitive Data”Application-debug logs contain full PAN values.
Potential impact:
Unnecessary CHD Storage
Expanded PCI Scope
Data Exposure Risk127. Logging Finding — SIEM Admin
Section titled “127. Logging Finding — SIEM Admin”CDE administrators can delete security logs from the central monitoring platform without independent approval.
128. Build Logging Gap Register
Section titled “128. Build Logging Gap Register”Create:
14 PCI Logging & Monitoring Gap RegisterUse:
| Gap | System | Risk | Severity | Owner |
|---|
129. Root Cause Example — Missing Logs
Section titled “129. Root Cause Example — Missing Logs”Problem:
3 Payment ServersNot ReportingWhy?
Log Agent Not InstalledWhy?
Servers Built ManuallyRoot cause:
Central logging configuration is not enforced through the approved CDE server baseline.
130. Correction
Section titled “130. Correction”Install Logging Agent131. Corrective Action
Section titled “131. Corrective Action”Update Golden Image
Automatically Validate Log Coverage
Alert on Missing Sources132. Root Cause Example — Short Retention
Section titled “132. Root Cause Example — Short Retention”Problem:
Logs Retained 60 DaysWhy?
Storage Cost ReductionWhy?
PCI Retention RequirementNot Included in SIEM DesignRoot cause:
PCI log-retention requirements were not incorporated into centralized logging architecture.
133. Corrective Action
Section titled “133. Corrective Action”Extend Retention
Add Archive Tier
Monitor Retention Policy134. Root Cause Example — PAN in Logs
Section titled “134. Root Cause Example — PAN in Logs”Problem:
PAN Appears in Debug LogsWhy?
Application Logs Entire Request BodyRoot cause:
Secure software logging standards do not prohibit payment-data logging or enforce redaction.
135. Corrective Action
Section titled “135. Corrective Action”Stop Full Request Logging
Mask / Redact PAN
Delete Unnecessary Historical CHD
Update Coding Standard
Add Automated Testing136. Practical Activity — Build CDE Logging Inventory
Section titled “136. Practical Activity — Build CDE Logging Inventory”Use fictional organization:
CloudShopInclude:
Payment Web
Payment API
Payment Database
Firewall
WAF
Identity Provider
Jump Host
Cloud Platform
Kubernetes
SIEMFor each identify:
Events
Destination
Retention
Owner137. Practical Activity — Build Critical Event Catalog
Section titled “137. Practical Activity — Build Critical Event Catalog”Include at least:
Failed Admin Login
New Administrator
MFA Disabled
Logging Disabled
Firewall Change
Database Export
Malware Alert
CDE Connectivity ViolationAssign severity.
138. Practical Activity — Logging Coverage Review
Section titled “138. Practical Activity — Logging Coverage Review”CDE inventory:
50 AssetsCentral logging:
46 AssetsGap:
4Determine:
Which Systems?
Why Missing?
Risk?
Correction?
Corrective Action?139. Practical Activity — Daily Log Review
Section titled “139. Practical Activity — Daily Log Review”Assume one day generates:
12 High Alerts
55 Medium Alerts
240 Low AlertsPrioritize review and document:
Reviewed
Escalated
Closed
Incident Created140. Practical Activity — Time Synchronization
Section titled “140. Practical Activity — Time Synchronization”Review:
30 CDE SystemsResults:
27 Synchronized
3 Have 20–45 Minute DriftDetermine:
Risk
Root Cause
Correction141. Practical Activity — Retention Review
Section titled “141. Practical Activity — Retention Review”Systems:
Firewall:365 Days
Application:365 Days
Database:60 Days
IAM:400 DaysIdentify the retention gap.
142. Practical Activity — PAN in Logs
Section titled “142. Practical Activity — PAN in Logs”Application log contains:
customer=Alice
pan=4111111111111111
status=approvedDocument:
Immediate Containment
Scope Impact
Data Removal
Root Cause
Corrective Action143. Practical Activity — Build SIEM Monitoring Matrix
Section titled “143. Practical Activity — Build SIEM Monitoring Matrix”Create detection rules for:
New Privileged Account
Repeated Authentication Failure
Logging Disabled
Public CDE Security Group
Unexpected Database Access
Bulk Payment Data Query144. Practical Activity — Test Logging
Section titled “144. Practical Activity — Test Logging”Perform a fictional test:
User:test-admin
Action:Failed LoginExpected:
System Log ↓SIEM ↓Alert ↓Analyst ReviewDocument every step.
145. PCI Logging & Monitoring Checklist
Section titled “145. PCI Logging & Monitoring Checklist”Coverage
Section titled “Coverage”-
All relevant CDE systems identified.
-
log sources inventoried.
-
centralized logging coverage reconciled.
-
missing sources investigated.
Audit Events
Section titled “Audit Events”-
authentication logged.
-
failed authentication logged.
-
privileged activity logged.
-
account changes logged.
-
security-control changes logged.
-
significant data-access events logged where applicable.
Log Content
Section titled “Log Content”-
user identity captured.
-
event type captured.
-
timestamp captured.
-
source captured.
-
result captured.
-
target information captured where applicable.
Central Collection
Section titled “Central Collection”-
logs forwarded centrally.
-
ingestion monitored.
-
missing-source alerts implemented.
-
platform access restricted.
Monitoring
Section titled “Monitoring”-
critical events defined.
-
detection rules established.
-
alert owners assigned.
-
alert severity defined.
-
investigation workflow established.
Review
Section titled “Review”-
required daily reviews performed.
-
automated mechanisms validated.
-
review evidence retained.
-
exceptions documented.
-
approved time sources defined.
-
CDE systems synchronized.
-
time changes restricted.
-
drift monitored.
Retention
Section titled “Retention”-
applicable log-retention requirements met.
-
recent logs immediately available.
-
archived logs recoverable.
-
retention configuration reviewed.
Protection
Section titled “Protection”-
logs protected from unauthorized modification.
-
deletion restricted.
-
privileged log-platform access controlled.
-
integrity monitored.
Sensitive Data
Section titled “Sensitive Data”-
full PAN not unnecessarily logged.
-
SAD not logged.
-
passwords not logged.
-
secrets not logged.
Exceptions
Section titled “Exceptions”-
logging gaps documented.
-
risk assessed.
-
compensating controls documented.
-
owners assigned.
-
expiry defined.
Testing
Section titled “Testing”-
logging tested.
-
central forwarding tested.
-
alerting tested.
-
time synchronization tested.
-
retention tested.
146. Common PCI Logging & Monitoring Mistakes
Section titled “146. Common PCI Logging & Monitoring Mistakes”Mistake 1 — Logs Exist, So Requirement Is Met
Section titled “Mistake 1 — Logs Exist, So Requirement Is Met”Nobody reviews or analyzes them.
Mistake 2 — SIEM Coverage Assumed
Section titled “Mistake 2 — SIEM Coverage Assumed”Some CDE systems are not sending logs.
Mistake 3 — Security-Control Failures Are Not Monitored
Section titled “Mistake 3 — Security-Control Failures Are Not Monitored”Logging stops silently.
Mistake 4 — Authentication Is Logged but Privilege Changes Are Not
Section titled “Mistake 4 — Authentication Is Logged but Privilege Changes Are Not”Administrative risk remains hidden.
Mistake 5 — Logs Retained Too Briefly
Section titled “Mistake 5 — Logs Retained Too Briefly”Historical investigations become impossible.
Mistake 6 — Different System Clocks
Section titled “Mistake 6 — Different System Clocks”Incident timelines cannot be reconstructed reliably.
Mistake 7 — CDE Administrators Can Delete Audit Evidence
Section titled “Mistake 7 — CDE Administrators Can Delete Audit Evidence”Log integrity is weak.
Mistake 8 — Full PAN Appears in Logs
Section titled “Mistake 8 — Full PAN Appears in Logs”Logging itself creates additional CHD exposure.
Mistake 9 — Cloud Control-Plane Logs Are Ignored
Section titled “Mistake 9 — Cloud Control-Plane Logs Are Ignored”Critical configuration changes are invisible.
Mistake 10 — Daily Review Is a Checkbox
Section titled “Mistake 10 — Daily Review Is a Checkbox”No meaningful evidence of analysis exists.
147. Weak Logging Model
Section titled “147. Weak Logging Model”Systems ↓Local Logs ↓Stored Until Disk Fills148. Strong Logging Model
Section titled “148. Strong Logging Model”CDE Systems ↓Security-Relevant Events ↓Centralized Collection ↓Protected Storage ↓Time Synchronization ↓SIEM Analytics ↓Alerting ↓Analyst Review ↓Investigation ↓Incident Response ↓Retention149. GRC Analyst Responsibilities
Section titled “149. GRC Analyst Responsibilities”A GRC professional supporting PCI logging and monitoring may:
-
Maintain the logging standard.
-
Maintain the CDE log-source inventory.
-
Reconcile logging coverage.
-
Maintain the critical-event catalog.
-
Review SIEM monitoring coverage.
-
coordinate daily review evidence.
-
review log-retention configuration.
-
review time-synchronization evidence.
-
track logging exceptions.
-
monitor missing log sources.
-
coordinate logging-control testing.
-
track remediation.
-
maintain evidence.
-
support assessor requests.
GRC connects:
Security Operations
SIEM Engineering
Infrastructure
Cloud
Network
Database Teams
Application Engineering
IAM
DevOps
Incident Response
Assessors150. Logging & Monitoring Maturity Model
Section titled “150. Logging & Monitoring Maturity Model”Level 1 — Local Logging
Section titled “Level 1 — Local Logging”Systems ↓Local Audit FilesLevel 2 — Centralized
Section titled “Level 2 — Centralized”Central Log Platform
Basic ReviewLevel 3 — Monitored
Section titled “Level 3 — Monitored”SIEM
Detection Rules
Alert InvestigationLevel 4 — Automated
Section titled “Level 4 — Automated”Automated Coverage Monitoring
Correlation
SOAR
Policy AlertsLevel 5 — Continuous Security Assurance
Section titled “Level 5 — Continuous Security Assurance”Real-Time Detection
Behavior Analytics
Automated Investigation
Continuous Control Validation151. PCI Logging & Monitoring Mindset
Section titled “151. PCI Logging & Monitoring Mindset”For every CDE system ask:
What events does it log?
Are successful logins visible?
Are failed logins visible?
Are privileged changes visible?
Can we identify the individual user?
Are timestamps accurate?
Where are the logs sent?
Can administrators modify them?
How long are logs retained?
Are recent logs immediately available?
Who reviews them?
Which events trigger alerts?
What happens if logging stops?
Can we detect security-control changes?
Could the logs accidentally contain PAN or secrets?
Can we reconstruct an incident from these records?For every detection rule ask:
What attack or control failureis this designed to detect?For every alert ask:
Who owns the investigation?When these questions can be answered consistently, logging becomes an operational security control rather than simply an audit-evidence repository.
Key Takeaways
Section titled “Key Takeaways”-
Logging records activity; monitoring identifies events that require attention.
-
PCI logging should provide accountability across important CDE activity.
-
Complete CDE log-source coverage is essential.
-
Operating systems, applications, databases, IAM, cloud platforms, network devices, Kubernetes, and security tools may all provide relevant logs.
-
Centralized logging improves correlation, retention, protection, and investigation.
-
Critical events should be explicitly defined and monitored.
-
Required log reviews should be demonstrable rather than informal.
-
Automated monitoring can improve scale but still requires ownership and investigation.
-
Time synchronization is essential for accurate incident reconstruction.
-
Logs should be protected against unauthorized modification and deletion.
-
PCI DSS v4.x commonly requires at least 12 months of audit-log history, with at least three months immediately available for analysis, where the applicable requirement applies.
-
Logging platforms should not unnecessarily store full PAN, SAD, passwords, or secrets.
-
Logging failures themselves should be detected.
-
Cloud, containers, Kubernetes, and CI/CD environments require modern logging strategies.
-
Logging exceptions should be risk assessed, compensated, owned, and time-bound.
-
GRC coordinates logging coverage, evidence, retention, testing, exceptions, and assessor support.
Knowledge Check
Section titled “Knowledge Check”Before continuing, make sure you can answer:
-
What is the difference between logging and monitoring?
-
Why should CDE log coverage be reconciled against the asset inventory?
-
What information should an effective audit trail contain?
-
Why are failed authentication events important?
-
Why should privileged changes be monitored?
-
Why is centralized logging useful?
-
What does a SIEM do?
-
What is a critical-event catalog?
-
Why should logging failures generate alerts?
-
What is the purpose of daily log review?
-
How can automated monitoring support PCI?
-
Why is time synchronization important?
-
How should logs be protected?
-
What are typical PCI DSS log-retention expectations?
-
Why should recent logs remain immediately available?
-
Why is full PAN in application logs a problem?
-
Why are cloud management logs important?
-
Why are Kubernetes audit logs important?
-
How should logging exceptions be managed?
-
What role does GRC play in PCI logging and monitoring?
What’s Next?
Section titled “What’s Next?”➡️ Next: 09 — Security Testing
In the next lesson, you will move from monitoring the CDE into actively validating whether security controls and boundaries can withstand attack.
You will work through:
CDE Scope ↓Internal Vulnerability Scanning ↓External ASV Scanning ↓Application Security Testing ↓Penetration Testing ↓Segmentation Testing ↓Wireless Security Testing ↓Findings ↓Remediation ↓Retesting ↓EvidenceYou will also build practical artifacts including a PCI Security Testing Strategy, PCI Testing Calendar, Penetration Test Scope, Segmentation Test Plan, ASV Scan Tracker, Application Security Testing Register, Wireless Security Review Register, Security Testing Findings Register, Retest Tracker, and PCI Security Testing Evidence Package.