SV-274524r1143517_rule
V-274524
SRG-APP-000095
SRG-APP-000095-API-001745
CAT II
10
Build or configure the API to audit what type of events occurred.
Verify the API generates audit records of what type of events occurred.
1. Inspect the API’s configuration settings and verify logging is enabled and audit records are being generated for key events such as authentication, authorization, data access, and errors.
2. Make a valid API request and verify successful events are logged.
3. Simulate system errors under specific conditions (e.g., database unavailability, timeout errors, internal exceptions).
4. Check the audit or access logs in the API or logging platform (e.g., AWS CloudWatch, Splunk, ELK stack). Verify that the logs contain entries for the triggered events.
5. Inspect the log entries for the following:
- Event Type: Look for the event’s description or category (e.g., authentication attempt, data access, system error).
If the API does not generate audit records for the type of event, this is a finding.
V-274524
False
SRG-APP-000095-API-001745
Verify the API generates audit records of what type of events occurred.
1. Inspect the API’s configuration settings and verify logging is enabled and audit records are being generated for key events such as authentication, authorization, data access, and errors.
2. Make a valid API request and verify successful events are logged.
3. Simulate system errors under specific conditions (e.g., database unavailability, timeout errors, internal exceptions).
4. Check the audit or access logs in the API or logging platform (e.g., AWS CloudWatch, Splunk, ELK stack). Verify that the logs contain entries for the triggered events.
5. Inspect the log entries for the following:
- Event Type: Look for the event’s description or category (e.g., authentication attempt, data access, system error).
If the API does not generate audit records for the type of event, this is a finding.
M
5703