AWS / Advanced: reliability, security, and governance / Lesson 21
CloudTrail coverage and evidence integrity
Evaluate CloudTrail event coverage, delivery and integrity evidence across an organization.
On this page
Lesson goals
- Separate event selection, delivery and integrity validation.
- Identify scope gaps in an audit evidence claim.
- Design an isolated verification and escalation record.
- Assess CloudTrail selection, delivery, access and retention before interpreting an absent event.
- Distinguish digest presence, scoped integrity validation and completeness of event coverage.
Define the evidence claim
An organization trail can cover member accounts, but its Region and event selection determine what it collects. Define the account, operation, Region and time under investigation. Management and data events are different categories; management events do not prove object-level data coverage. These records are fictional.
Check scope and delivery
This record states expected management-event scope and destination. Compare actual trail settings, enabled Regions, selectors and delivery status in an approved investigation. An empty search can reflect the wrong account, time, selection or failed delivery; it does not prove that an operation never occurred.
account: 111122223333
region: us-east-1
event_class: management
expected_delivery: central-audit-bucket
observation_window: synthetic-hour
These fictional fields define a hypothesis; they do not create a trail or establish that a log arrived.
Distinguish digest from validation
With integrity validation enabled, CloudTrail delivers digest files that support later validation of delivered logs. A digest alone is not a completed validation. Validation concerns delivered files; it does not establish that every desired event category was configured or that every application action was logged.
digest_present: yes
validation_run: no
coverage_of_data_events: not-established
conclusion: evidence-incomplete
A digest may be present while validation and data-event coverage remain unverified.
Investigate a gap carefully
Correlate account, Region, event type and time with selectors, logging state and delivery evidence. Check investigator access and relevant encryption or destination policies. Preserve original evidence and escalate possible integrity or delivery issues; do not delete files merely to make a result look clean.
Verify and document limits
In an authorized lab, perform a controlled operation selected for the trail and locate its delivered record. Validate the relevant files using the documented procedure and retain a sanitized, time-scoped result. Test an excluded event category too. This verifies only the tested configuration and interval.
Define an evidence claim and its scope
A CloudTrail investigation starts with a question about a particular account, Region, time interval, principal, operation and resource. Determine whether the event is a management or data event and whether the selected trail or event data store is configured to collect that type and resource. Organization membership alone is not proof that every desired action is selected, delivered and retained. Write expected coverage before searching, then record the actual configuration and source used by the investigator.
An empty result has several explanations: the operation may not have occurred, or the query may use the wrong account, Region or time, an event may not be selected, delivery may have failed, retention may have expired, or the investigator may lack access. Do not choose among these without evidence. CloudTrail Event history is a separate source with documented limitations; it shows management events rather than object data events. These records are synthetic and do not inspect an AWS account.
Separate selection, delivery and access
Selection defines what a configured trail is intended to record; delivery and storage determine whether the resulting log files reached and remain in the destination. Investigator access is another boundary. A correct selector does not prove successful delivery, and a file in a central bucket does not establish that all accounts, Regions and categories were selected. Record trail identity, account path, enabled Regions, selectors, logging state, destination, delivery status, retention and access for the relevant time.
A delivery error can leave a gap while other periods continue to have logs. Preserve the original evidence and escalate the exact time and scope; do not delete files to make a report appear clean. Correlate safe application and service evidence where authorized, but distinguish it from CloudTrail’s record. A found API event can show a recorded request and response context, not necessarily the complete business outcome or every related application action.
Interpret digest and validation separately
When log file integrity validation is enabled, CloudTrail delivers signed digest files that reference delivered log files and their hashes. Enabling delivery of digests does not itself run validation. A digest’s presence is therefore evidence that a validation input exists, not a successful validation result. The documented validation procedure verifies the digest chain and referenced files within its specified scope; a missing or invalid digest can leave a time range unverifiable. Record the tool result, time range, trail and file scope rather than a bare “integrity passed” label.
A successful validation supports a claim about the delivered files checked, such as their integrity since delivery. It does not prove that a desired data event was selected, that all application activity was logged, or that an absent event never happened. Validation and event coverage are independent questions. Protect log and digest access and retain original files for investigation; these exercises perform no validation command or service call.
Investigate gaps and chain interruptions
Digest files form a chain through references to earlier digests, subject to documented starting and interruption behavior. If integrity validation is disabled, CloudTrail does not produce digests for logs delivered during that disabled interval; later reenabling does not retroactively validate that gap. Delivery problems can also make files temporarily missing, and redelivery can affect the apparent chain while it is in progress. A missing digest is a reason to preserve and investigate evidence, not proof by itself of malicious deletion.
For a fictional hour, compare logging and validation settings, delivery errors, expected digest interval and investigator permissions. If a log hash mismatch is reported by an authorized validation, preserve the result and original evidence and escalate under the incident procedure; do not silently replace the file or assert a cause from the mismatch alone. Keep a clear distinction between what was observed, what the validation supports and what remains unknown.
Design a bounded coverage and integrity test
An authorized isolated test can define a selected management operation and a selected synthetic data operation, record their safe identifiers and times, then verify expected delivery and a documented integrity validation over the relevant files. Include an intentionally excluded category or resource as a negative coverage case without treating its absence as proof that no operation occurred. Check access and encryption at the destination and preserve the exact time range and result.
A test demonstrates only its account, Region, selectors, destination and interval. Repeat or revise it when the organization, resource scope or retention changes. Record owners for delivery failures, validation failures and access gaps, and restrict sensitive event metadata. A static checklist, digest placeholder or fictional result is not an executed test. No trail, event, log file, digest, policy or AWS request is created or queried by the scenarios below.
20 worked examples
1. Unselected data event
Problem: Can this search establish whether the object read occurred?
- The requested object data event is outside the selected category.
- The read remains unknown; document the coverage gap and seek authorized evidence.
trail selection=management events only
question=GetObject on bucket lab
search result=no event
This fictional record makes no AWS request and does not validate any real file.
Expected result: The read remains unknown; document the coverage gap and seek authorized evidence.
Why this result follows: An unselected event cannot support a complete negative audit claim. The conclusion is limited to the stated evidence scope and observations.
2. Wrong account search
Problem: What conclusion can be drawn about account A from this search?
- The search covers account B rather than the target account.
- Activity in A remains unverified until the correct scope is reviewed.
target account=A
search account=B
event type=management
result=no match
This fictional record makes no AWS request and does not validate any real file.
Expected result: Activity in A remains unverified until the correct scope is reviewed.
Why this result follows: Audit search results are bounded by the account queried. The conclusion is limited to the stated evidence scope and observations.
3. Wrong Region search
Problem: Does the empty result establish absence in the target Region?
- The investigation searched a different Region from the target.
- Do not infer absence in eu-west-1 from this result.
target Region=eu-west-1
search Region=us-east-1
result=no match
This fictional record makes no AWS request and does not validate any real file.
Expected result: Do not infer absence in eu-west-1 from this result.
Why this result follows: Region is part of the evidence scope. The conclusion is limited to the stated evidence scope and observations.
4. Wrong time window
Problem: What does the empty search say about the 10:05 operation?
- The requested time is outside the searched interval. Compare the event time with the precise search window before interpreting absence.
- The operation remains unverified by this search.
operation time=10:05 UTC
search window=11:00-12:00 UTC
result=no match
This fictional record makes no AWS request and does not validate any real file.
Expected result: The operation remains unverified by this search.
Why this result follows: A time-bounded query cannot establish activity outside its window. The conclusion is limited to the stated evidence scope and observations.
5. Event history data event
Problem: Can Event history alone answer whether this object read happened?
- Event history shows management events and does not display data events.
- Use an appropriately configured data-event source and other authorized evidence.
source=CloudTrail Event history
question=S3 GetObject data event
result=not shown
This fictional record makes no AWS request and does not validate any real file.
Expected result: Use an appropriately configured data-event source and other authorized evidence.
Why this result follows: The source’s event category limits its evidentiary scope. The conclusion is limited to the stated evidence scope and observations.
6. Selected but delivery failed
Problem: Does selection alone establish delivered evidence for that hour?
- The selector includes the event but delivery failed in the relevant interval.
- Record a delivery gap and investigate the destination and status.
data event selector=bucket lab included
logging=enabled
delivery status=error during 10:00-11:00
This fictional record makes no AWS request and does not validate any real file.
Expected result: Record a delivery gap and investigate the destination and status.
Why this result follows: Selection and successful delivery are separate requirements. The conclusion is limited to the stated evidence scope and observations.
7. Delivered but access denied
Problem: What can the investigator conclude from this record?
- The inventory indicates a file, but the investigator could not read its contents.
- Content and event presence remain unverified; review authorized access.
expected log file=present in destination inventory
investigator read=AccessDenied
file content=not reviewed
This fictional record makes no AWS request and does not validate any real file.
Expected result: Content and event presence remain unverified; review authorized access.
Why this result follows: File existence does not grant an investigator access or reveal its contents. The conclusion is limited to the stated evidence scope and observations.
8. Retention gap
Problem: Does this result establish that the event never occurred?
- The searched destination retains files for less than the elapsed time.
- Treat the requested period as outside this destination’s retained evidence.
event time=90 days ago
trail destination retention=30 days
search today=no file
other archive=unknown
This fictional record makes no AWS request and does not validate any real file.
Expected result: Treat the requested period as outside this destination’s retained evidence.
Why this result follows: Retention bounds what a current search can show. The conclusion is limited to the stated evidence scope and observations.
9. Digest exists, no validation
Problem: Has integrity of the delivered log been established?
- The digest is available as a validation input, but no result is recorded.
- Integrity remains unverified until the documented check is performed.
digest file=present
validation run=not performed
log file=present
This fictional record makes no AWS request and does not validate any real file.
Expected result: Integrity remains unverified until the documented check is performed.
Why this result follows: Digest delivery and validation execution are distinct steps. The conclusion is limited to the stated evidence scope and observations.
10. Validated file, missing coverage
Problem: Does the valid file prove the object read did not occur?
- The validated file has integrity evidence, but the requested data event was not selected.
- The object-read question remains unanswered by that file.
validation=passed for delivered log L
S3 data event selector=disabled
question=object read
This fictional record makes no AWS request and does not validate any real file.
Expected result: The object-read question remains unanswered by that file.
Why this result follows: Integrity of delivered files does not establish event selection completeness. The conclusion is limited to the stated evidence scope and observations.
11. Missing digest
Problem: What integrity claim is supported for the missing interval?
- The documented validation cannot verify that interval without the digest.
- Mark 10:00-11:00 unverifiable and investigate without asserting a cause.
validation result=missing digest for 10:00-11:00
other hours=valid
cause=unknown
This fictional record makes no AWS request and does not validate any real file.
Expected result: Mark 10:00-11:00 unverifiable and investigate without asserting a cause.
Why this result follows: A missing validation input limits the claim for its covered range. The conclusion is limited to the stated evidence scope and observations.
12. Hash mismatch
Problem: How should the mismatch be handled in the incident record?
- The reported mismatch indicates the file does not match its recorded hash.
- Preserve the result and evidence and escalate; do not infer who changed it.
authorized validation result=log L hash mismatch
original file=preserved
cause=unknown
This fictional record makes no AWS request and does not validate any real file.
Expected result: Preserve the result and evidence and escalate; do not infer who changed it.
Why this result follows: An integrity failure is an observation, not attribution of intent. The conclusion is limited to the stated evidence scope and observations.
13. Validation disabled interval
Problem: Does reenabling at 12:00 create digest coverage for the prior interval?
- CloudTrail does not create digests for logs delivered while validation was disabled.
- Mark the disabled interval outside that digest validation coverage.
integrity validation=disabled 10:00-12:00
reenabled=12:00
logs delivered during disabled interval=yes
This fictional record makes no AWS request and does not validate any real file.
Expected result: Mark the disabled interval outside that digest validation coverage.
Why this result follows: Later enablement does not retroactively create the missing digest chain. The conclusion is limited to the stated evidence scope and observations.
14. Temporary redelivery gap
Problem: What should be concluded about the observed chain gap?
- A delivery problem and in-progress redelivery provide a nonmalicious explanation to investigate.
- Preserve the gap and recheck delivery; do not attribute malicious deletion from this alone.
digest delivery error=reported
redelivery=in progress
chain check=gap observed
malicious deletion evidence=none
This fictional record makes no AWS request and does not validate any real file.
Expected result: Preserve the gap and recheck delivery; do not attribute malicious deletion from this alone.
Why this result follows: A missing digest can have multiple causes, including delivery and redelivery. The conclusion is limited to the stated evidence scope and observations.
15. Organization trail account scope
Problem: Does the organization label establish coverage of account C?
- The fixture does not establish C’s actual inclusion and event selection.
- Verify membership, trail scope, delivery and time before a negative claim.
organization trail expected accounts=A,B,C
actual member inclusion evidence=C unknown
central search for C=no result
This fictional record makes no AWS request and does not validate any real file.
Expected result: Verify membership, trail scope, delivery and time before a negative claim.
Why this result follows: An organization trail’s label is not proof of every desired coverage condition. The conclusion is limited to the stated evidence scope and observations.
16. Management event versus data event
Problem: Does the management record establish object-read coverage in the stated synthetic investigation?
- The observed event concerns bucket policy management, not object reads.
- Review the separate data-event selection and delivery.
management event=PutBucketPolicy recorded
object GetObject data selection=unknown
This fictional record makes no AWS request and does not validate any real file.
Expected result: Review the separate data-event selection and delivery.
Why this result follows: Management and data events are different evidence categories. The conclusion is limited to the stated evidence scope and observations.
17. API event versus business outcome
Problem: What business outcome can be asserted from the audit event alone?
- The audit record describes the API boundary, while application and payment results are absent.
- Do not claim booking or payment completion without additional evidence.
CloudTrail event=API request accepted
application booking result=unknown
payment result=unknown
This fictional record makes no AWS request and does not validate any real file.
Expected result: Do not claim booking or payment completion without additional evidence.
Why this result follows: A recorded API request does not prove the full business transaction. The conclusion is limited to the stated evidence scope and observations.
18. Timezone mismatch
Problem: Does the operation time fall within the searched UTC window?
- 12:05 UTC+2 converts to 10:05 UTC.
- The normalized time falls within the window; other coverage still needs review.
operation=12:05 UTC+2
search window=10:00-10:10 UTC
clock accuracy=assumed
This fictional record makes no AWS request and does not validate any real file.
Expected result: The normalized time falls within the window; other coverage still needs review.
Why this result follows: Time-zone normalization is required for a valid time-scope comparison. The conclusion is limited to the stated evidence scope and observations.
19. Negative lab coverage
Problem: What does this negative result demonstrate about the tested selector?
- The tested operation is outside the configured bucket selection.
- The absence is consistent with exclusion in this test; it does not prove no operation occurred.
synthetic operation=GetObject on excluded bucket
trail selector=other bucket only
result=no event
test=authorized isolated lab
This fictional record makes no AWS request and does not validate any real file.
Expected result: The absence is consistent with exclusion in this test; it does not prove no operation occurred.
Why this result follows: A negative coverage test verifies a bounded configuration expectation, not global inactivity. The conclusion is limited to the stated evidence scope and observations.
20. Controlled positive test
Problem: Which parts of the evidence chain have been observed?
- The operation and delivered event are recorded, while integrity validation is missing.
- Delivery is observed for this test; integrity remains unverified.
synthetic management operation=performed in authorized lab
selected trail=enabled
delivered event=found
integrity validation=not yet run
This fictional record makes no AWS request and does not validate any real file.
Expected result: Delivery is observed for this test; integrity remains unverified.
Why this result follows: Operation, delivery and integrity validation are separate observations. The conclusion is limited to the stated evidence scope and observations.
Common errors and fixes
An empty search proves no action occurred
- Why it happens
- The query or event selection may not cover the action.
- How to fix it
- Compare account, Region, time, selectors and delivery.
- Prevent it next time
- Document the expected evidence scope before an incident.
A digest file is called a successful validation
- Why it happens
- Delivery of a digest and verification are separate steps.
- How to fix it
- Run the documented validation in an authorized context.
- Prevent it next time
- Record validation results and time coverage explicitly.
Management event coverage is assumed to include object data events
- Why it happens
- Different event categories have different selection.
- How to fix it
- Review the trail event selectors and the investigation question.
- Prevent it next time
- Test representative coverage and exclusions in a lab.
20 practice exercises
1. An event is missing from a search, but its data-event category was not selected. What can you conclude?
Show hint
Compare the requested event category with the actual selector.
Show worked solution
The search cannot show whether the action occurred. Record the coverage gap and investigate other authorized evidence rather than asserting absence.
An unselected data-event category is outside the trail’s stated coverage, so an empty search cannot establish whether the operation happened. Record account, Region, time and selection gap, then seek other authorized evidence.
Check your solution
- Identify the unselected category.
- Reject absence as proof that the operation did not occur.
2. Digest files exist, but no integrity validation was run. Is integrity established?
Show hint
Separate digest delivery from the validation result.
Show worked solution
No. A digest supports validation; it is not the validation result. Run the documented check and report its time and file scope.
A digest is an input to the documented integrity check, not proof that the check succeeded. Record an authorized validation result with trail, time range and file scope, while keeping event-selection completeness as a separate question.
Check your solution
- Identify the missing validation run.
- Require a scoped validation result.
3. A trail selects management events only; a GetObject data event is absent. Can the search prove the read did not happen?
Show hint
Compare event category with the selector.
Show worked solution
No. The requested data event was not selected, so the search cannot establish whether the read occurred. Record the coverage gap and investigate other authorized evidence, including appropriate data-event selection and delivery for the relevant account and time.
Check your solution
- Identify the unselected data event.
- Reject absence as proof of no read.
4. A target is in account A, but an investigator searches account B and finds no event. What remains unknown?
Show hint
Check the account coordinate first.
Show worked solution
Activity in account A remains unknown because the search covers B. Confirm the exact account, Region, event type, time and investigator access, then review the relevant selected and delivered evidence under authorization.
Check your solution
- Identify the account mismatch.
- Do not infer absence in A.
5. A target operation is in Region A, while the query covers Region B and returns empty. Is the target cleared?
Show hint
A query is bounded by its Region.
Show worked solution
No. The empty result describes the Region B search, not the Region A operation. Verify the correct Region, event selector, delivery and retention window before interpreting absence, and document the scope gap.
Check your solution
- Identify the Region mismatch.
- Leave target activity unverified.
6. An operation occurred at 10:05 UTC, but the search covers 11:00 to 12:00 UTC. What does no result establish?
Show hint
Compare the operation time with the query window.
Show worked solution
The search does not cover 10:05, so its empty result cannot establish whether the operation occurred. Correct the authorized time scope and check clock offsets and delivery coverage before drawing a conclusion.
Check your solution
- Identify the out-of-window operation.
- Require a corrected time scope.
7. CloudTrail Event history shows no S3 GetObject event. Is that source sufficient to prove no object read?
Show hint
Event history has a limited event category.
Show worked solution
No. Event history shows management events and does not display the data event in this scenario. Review a properly configured data-event source and other authorized evidence, including account, Region, time and delivery.
Check your solution
- Identify Event history’s category limitation.
- Reject the no-read claim.
8. The data-event selector includes bucket lab, but delivery reports an error for the incident hour. Is the hour complete?
Show hint
Selection and delivery are separate.
Show worked solution
No. The selector describes intended capture, but the recorded delivery error leaves the hour’s evidence incomplete. Preserve the error and investigate destination policy, delivery status and any redelivery under the approved process.
Check your solution
- Identify the delivery error.
- Mark the hour incomplete.
9. A log object is listed in the central bucket, but the investigator receives AccessDenied reading it. Is its event content known?
Show hint
Existence does not imply read access.
Show worked solution
No. The inventory shows a file but its content was not reviewed. Resolve authorized investigator access and encryption dependencies, then examine the relevant event without assuming that a listed file contains the desired record.
Check your solution
- Identify the access denial.
- Mark event content unverified.
10. A destination retains logs for 30 days, while the investigation asks about an event 90 days ago. What is the limitation?
Show hint
Compare retention with elapsed time.
Show worked solution
The requested period is outside the stated destination retention, so an empty search there cannot prove the event did not occur. Check for other authorized archives and document the coverage and retention gap.
Check your solution
- Identify the 30-day retention limit.
- Do not infer no event from missing older files.
11. Digest files exist, but no validation run is recorded. Has log integrity been established?
Show hint
A digest is an input to validation.
Show worked solution
No. The digest supports a later documented validation but is not the result itself. Perform the check only in an authorized context and record the trail, time range, file scope and actual outcome.
Check your solution
- Identify the missing validation.
- Require a scoped recorded result.
12. A delivered log validates successfully, but the needed object data event was excluded by the selector. Does validation prove no read?
Show hint
Integrity and coverage are independent.
Show worked solution
No. Validation supports integrity of the checked delivered file; it cannot add an event category that was not selected. Document the coverage gap and seek other authorized evidence for the object-read question.
Check your solution
- Identify valid-file scope.
- Identify the excluded event category.
13. Validation reports a missing digest for 10:00 to 11:00, with no known cause. What should the report say?
Show hint
A missing input limits the validated interval.
Show worked solution
Mark that hour unverifiable by the stated validation and preserve the result. Investigate delivery, access and chain status through the approved procedure; do not attribute malicious deletion without additional evidence.
Check your solution
- Identify the affected hour.
- Avoid unsupported attribution.
14. An authorized integrity check reports a hash mismatch for log L. Should the investigator overwrite it with a clean copy?
Show hint
Preserve original evidence and the validation result.
Show worked solution
No. Preserve the original file and result, restrict access and escalate under the incident process. A mismatch indicates an integrity problem for the checked file but does not by itself identify who changed it or why.
Check your solution
- Preserve the original and result.
- Do not infer attribution from the mismatch alone.
15. Integrity validation was disabled from 10:00 to 12:00 and reenabled at noon. Are logs delivered during the gap retroactively covered?
Show hint
CloudTrail does not create digests for the disabled interval.
Show worked solution
No. Reenabling starts subsequent digest coverage but does not retroactively create digests for logs delivered while validation was disabled. Record the interval as a limitation and investigate other authorized evidence as appropriate.
Check your solution
- Identify the disabled interval.
- Reject retroactive digest coverage.
16. A digest delivery error is followed by redelivery in progress and a temporary chain gap. Does the gap prove an attacker deleted a file?
Show hint
Consider documented delivery alternatives.
Show worked solution
No. The observed delivery error and redelivery are possible explanations; the gap alone does not establish malicious action. Preserve the result, monitor the authorized delivery investigation and revalidate the relevant range when appropriate.
Check your solution
- Identify delivery and redelivery evidence.
- Avoid unsupported malicious attribution.
17. An organization trail is expected to include account C, but actual inclusion and selectors are unknown. Is a central empty search conclusive?
Show hint
The organization label does not prove configured coverage.
Show worked solution
No. Verify C’s membership, trail scope, event selectors, Region, delivery and time before interpreting the empty result. Document every unknown and consult other authorized sources instead of asserting that activity did not occur.
Check your solution
- Identify unknown account coverage.
- Require selector and delivery verification.
18. A management event records PutBucketPolicy, but object data-event selection is unknown. Does the record establish GetObject coverage?
Show hint
The events belong to different categories.
Show worked solution
No. The policy-change record is a management event and does not prove that object data events were selected or delivered. Review the relevant data selectors and destination for the investigation window.
Check your solution
- Distinguish management from data events.
- Require separate object-event coverage review.
19. An operation time is 12:05 UTC+2 and a search covers 10:00 to 10:10 UTC. Does the time fit?
Show hint
Normalize both timestamps to UTC.
Show worked solution
Yes. 12:05 UTC+2 equals 10:05 UTC, which falls within the search window. This establishes only the time comparison; verify clock accuracy, account, Region, selection and delivery before concluding the search is complete.
Check your solution
- Convert to 10:05 UTC.
- Retain other coverage checks.
20. A controlled management operation is performed in an authorized lab and its event is delivered, but integrity validation has not run. What is established?
Show hint
Separate operation, delivery and validation.
Show worked solution
The fixture observes the controlled operation and a delivered event for that test, while file integrity remains unverified. Run the documented validation under authorization and record its exact interval and file scope; do not generalize to all accounts or categories.
Check your solution
- Identify observed delivery.
- Mark integrity unverified.
Key takeaways
- Define audit coverage by account, Region, time and event type.
- Delivery, integrity validation and event completeness are distinct.
- Preserve evidence and disclose unverified gaps.
- A negative audit search is meaningful only within verified coverage and time.
- Digest delivery is not a validation result, and validation does not prove event selection completeness.
- Preserve original evidence and report unknown gaps without assigning unsupported causes.