Detection, logging and incident response guides
When an environment has no logs, the absence of alerts does not mean everything is fine. It may just mean nobody has noticed the incident yet. The guides on this topic show what to log, where to keep it and how to turn logs into detection.
12 guides on this topic
Once an incident has happened, logs are the only evidence available. If you only enable logging after the first problem, you find out that the retention window starts that day and that nothing is left from the months before to investigate.
The opposite extreme, collecting everything, does not solve it either. Volume without a use case turns into storage cost and alert noise. In practice it works better to pick a few sources with high investigative value, write queries for the questions you will actually ask and only then decide what to centralize in the SIEM.
The guides below are in the order you will need them: log sources come before detection tools, investigation comes next and the response workflow closes the list.
Where to start
If you came here with a specific problem, start with the guide that answers it. The others are right below, grouped by subject.
We do not know what to log
Which log sources have the most investigative value and which question each one helps answer.
Cloud security logsWe are evaluating EDR, XDR or MDR
The real difference between the three acronyms and when each model makes sense.
EDR, XDR and MDRIt just happened. What do we do?
How to contain the incident, preserve the evidence and make the decisions of the first hours.
Incident response on AWS
When it makes sense to bring in outside help
The detection and response service builds this chain in your environment. That includes choosing the sources, writing use cases mapped to MITRE ATT&CK, tuning out noise and agreeing on the response workflow with your team.
- Map of log sources and coverage gaps
- Detection use cases in priority order
- Collection and correlation setup in the SIEM/XDR
- Response playbooks for the most likely incidents
Other topics
- AWS and cloud security
- Penetration testing and application security
- Vulnerability management and prioritization
- Hardening and infrastructure
- LGPD and privacy
- Governance and maturity
Log sources and collection
What to start logging before you need it.
- Logs and incidents
Cloud security logs
What to collect for investigations: CloudTrail, VPC Flow Logs, WAF logs and GuardDuty, with centralization and retention.
Read about cloud security logs 9 min read - Logs and incidents
CloudTrail: auditing and investigation
Set up CloudTrail for reliable auditing: a multi-region trail, data events, log file integrity validation, and encryption.
Read about CloudTrail: auditing and investigation 7 min read - Logs and incidents
VPC Flow Logs
Use network logs for visibility and investigation: accepted and rejected traffic, ENIs and correlation with other logs.
Read about VPC Flow Logs 8 min read - Logs and incidents
ALB and CloudFront logs
Analyze web traffic with a security focus: status codes, IPs, user agents and URIs to detect abuse and anomalies.
Read about ALB and CloudFront logs 9 min read
Detection and monitoring
How to turn logs into alerts that someone will act on.
- Logs and incidents
SIEM and SOC
What a SIEM is, what a SOC does and how use cases and playbooks turn logs into detection and response.
Read about SIEM and SOC 12 min read - Incident response
EDR, XDR and MDR
What threat detection and response is and how EDR, XDR and MDR differ, along with the role of the SIEM and of detection use cases.
Read about EDR, XDR and MDR 11 min read - AWS security
GuardDuty, Security Hub, and Inspector
How to combine threat detection, security posture, and vulnerability management without drowning your team in alerts.
Read about GuardDuty, Security Hub, and Inspector 7 min read - Logs and incidents
CloudWatch Logs Insights
Useful queries for defensive investigation over CloudTrail and other logs: events, source IPs and identities.
Read about CloudWatch Logs Insights 8 min read
Response and recovery
What to do when the alert is confirmed.
- Logs and incidents
Incident response on AWS
First steps when you suspect a compromise: isolate, preserve evidence, contain and communicate without destroying traces.
Read about incident response on AWS 9 min read - Incident response
Ransomware: prevention and response
How to lower the chance of a ransomware attack, contain the damage when it happens and recover operations with protected backups.
Read about ransomware: prevention and response 10 min read - Incident response
Secure backups on AWS
Retention, encryption, cross-account copies and deletion protection so you can recover from incidents and ransomware.
Read about secure backups on AWS 9 min read - LGPD and privacy
Incident response and notifying the ANPD
What to do after a data breach: the three-business-day deadline in ANPD Resolution 15/2024, what to report and how to be ready in advance.
Read about incident response and notifying the ANPD 12 min read
Need help with detection, logging and response?
In the first conversation we learn about your environment and tell you frankly whether we can help, and how. The proposal comes later, in writing, with scope, timeline and deliverables.
Prefer to write? Email [email protected] or reach us on GUARDIASEC's LinkedIn page. No scope defined yet? Ask for scoping guidance.
Please don't send credentials or sensitive data in your first message. See how we handle confidentiality and access