312-39v2 Cheatsheet
Certified SOC Analyst (CSA)
Download free PDFSOC operations and risk
People, process and technology
- A **SOC** continuously monitors, detects, investigates and coordinates response. A **SIEM** supplies telemetry and analytics; effective operations also require trained people, procedures and business context.
- **Tier 1** monitors and triages; **Tier 2** validates, scopes and investigates escalations; **Tier 3** handles advanced analysis and hunting. A **forensic analyst** reconstructs evidence and timelines; a security engineer maintains detection infrastructure.
- The **SOC manager** runs operations and staffing. The **CISO** sets security direction and governance. The **IRT/CSIRT** coordinates complex incident handling; an incident coordinator maintains stakeholder communication and a shared case record.
- A practical workflow is **collect, ingest, validate, document, report and respond**. Update documentation throughout. Escalate with evidence, affected assets, severity, actions already taken and the assistance required.
Operating models and maturity
- An **internal SOC** offers direct control and local expertise but requires staffing and sustained investment. An **outsourced SOC** adds service-provider capability; a **hybrid SOC** shares responsibilities. Define coverage hours, access, escalation and response authority.
- An **MSSP** can provide monitoring and other managed security services. **MDR** emphasizes managed detection, investigation and response. Compare actual service scope, containment authority and service levels rather than relying on the label.
- Keep **hosting location** separate from **management responsibility**: self-hosted or cloud services can each be self-managed, provider-managed or jointly managed. Address data residency, log ownership, privileged access and provider outages.
- Improve **maturity** through repeatable workflows, trained staff, tested playbooks and measurable outcomes before adding complex automation. **SOC-CMM** assesses SOC capability; **SSE-CMM** addresses security engineering process capability.
- Useful measures include detection and response times, backlog age, escalation quality and false-positive rate. **Trend reports** show changes over time; **incident reports** explain a particular event. Dashboards should emphasize actionable priorities.
Risk and alert priority
- **Risk** combines likelihood and consequence. Asset value informs impact; use the organization's defined scoring model and avoid counting the same impact twice. Risk-matrix labels depend on that matrix's thresholds.
- Prioritize **active harm**, sensitive assets, successful access, affected scope and confidence. A blocked attempt may rank below confirmed deletion or exfiltration, but repeated blocks can still reveal an important campaign.
- **PCI DSS** concerns payment account data security; **HIPAA** concerns protected health information in covered US healthcare contexts; **GDPR** concerns personal-data protection. Logging supports compliance alongside access control, retention and operational procedures.
- A **policy** states expectations and authority; a **plan** defines response capability, responsibilities and resources; **procedures/playbooks** specify actions. Measure performance and rehearse cross-team coordination.
Threats and attack recognition
Adversary progression
- The **Cyber Kill Chain** follows reconnaissance, weaponization, delivery, exploitation, installation, command and control, and actions on objectives. Weaponization combines a payload with an exploit; objectives can include theft or disruption.
- An **APT** seeks sustained access. Look for initial entry, persistence, privilege escalation, lateral movement, collection and exfiltration. Attackers can repeat stages; one alert rarely establishes the entire sequence.
- **Persistence** includes scheduled tasks, startup entries, services and registry autoruns. **Defense evasion** includes obfuscation, log clearing and timestamp manipulation. Correlate changes with the responsible process and identity.
- **MITRE ATT&CK** organizes adversary tactics and techniques. **MITRE D3FEND** describes defensive techniques. Map observed behavior to a technique, identify required evidence and select defenses that interrupt it.
Credentials, malware and lateral movement
- **Brute force** tries many guesses; **password spraying** tries a few passwords across many accounts; **credential stuffing** reuses stolen credential pairs. Investigate failed logins followed by success, unusual sources and post-login activity.
- A **dictionary attack** tries candidate words; a **hybrid attack** mutates them with digits or symbols. **Rainbow tables** use precomputed hash chains; unique salts and slow password hashing undermine precomputation.
- **Social engineering** exploits trust, authority or urgency. Executive impersonation and business email compromise can use email plus phone contact. Verify unusual requests through independently known channels.
- **Ransomware** can cause rapid renames, extension changes, high file-write activity and inaccessible files. A **trojan** disguises malicious functionality; a backdoor provides unauthorized access. Confirm with endpoint and network evidence.
- Repeated **network logons**, SMB access, remote execution and unusual administrative tools can indicate lateral movement. Legitimate administration can look similar; correlate user, source, target, timing and process ancestry.
Web attack distinctions
- **SQL injection** changes database query meaning through untrusted input. Use parameterized queries and restricted database permissions. **Command injection** reaches an OS interpreter; prefer safe APIs and avoid constructing shell commands from input.
- **XSS** executes untrusted content in a browser. Use output encoding for the exact HTML, attribute, JavaScript or URL context; sanitize permitted HTML. A matching script or image-tag pattern is a lead, not proof of execution.
- **Directory traversal** uses parent-directory sequences or encoded separators to escape an intended path. Canonicalize paths, enforce an allowed root and use allowlisted file identifiers. **File inclusion** can load unintended local or remote files.
- **Parameter tampering** changes values such as prices or account identifiers. Recalculate trusted values on the server and authorize each requested object. Hidden fields and client-side validation do not establish trust.
- **Session hijacking** steals or reuses a session; **fixation** makes the victim use an attacker-known session ID. Rotate sessions after authentication. **Secure**, **HttpOnly** and **SameSite** cookies address transport, script access and cross-site sending respectively.
Vulnerability and network defenses
- **Vulnerable components** remain exposed after a patch rollback unless another mitigation applies. A known but unpatched flaw is not automatically a zero-day. For an unpatched emerging threat, reduce exposure and add targeted monitoring or compensating controls.
- **Unsafe deserialization** can instantiate dangerous objects or execute code. Prefer simple data formats, validate schemas and restrict allowed types. For **XML**, disable unnecessary external entity resolution and DTD processing; syntax checking alone is insufficient.
- A **DMZ** separates public services from internal assets with restricted flows. A **honeypot** is a monitored decoy; it supplies detection or deception value rather than replacing protection of production systems.
- **DoS/DDoS** exhausts resources; **DHCP starvation** consumes address leases. Rate limits, upstream scrubbing and resilient capacity help with flooding. Source-address validation and ingress/egress filtering reduce spoofing and unauthorized flows.
- **Route blackholing** silently discards selected traffic. **DNS sinkholing** redirects selected domain lookups to a controlled destination. **Web proxies** mediate web access; filtering can block risky destinations. Encrypted payload inspection requires suitable visibility beyond ordinary packet headers.
Logs, telemetry and analysis
Collection and data quality
- **Centralized logging** brings distributed records into a common analysis system. In **push** collection the source sends records; in **pull** collection a collector retrieves them. Agents may collect, buffer or normalize; their capabilities depend on the implementation.
- **Parsing** extracts fields; **normalization** maps them to a common schema; **enrichment** adds context; **correlation** connects related events. Preserve original records so analysts can verify transformed data.
- Synchronize clocks and retain **time zone**, event time and ingestion time. Monitor missing sources, queue depth, parser failures, duplicates and delays. A healthy dashboard does not prove that all required logs are arriving.
- **EPS = event count / seconds**. Size for sustained and peak rates, average record size, retention, indexing and replicas. A **wrapping** circular buffer overwrites old entries; export important records before they roll over.
- Use searchable storage for active investigations and protected archives for long retention. Encrypt logs, restrict access and test retrieval. Define retention and deletion from investigative, business and regulatory requirements.
Syslog and record formats
- A **syslog originator** produces messages; a **relay** receives and forwards them; a collector stores or processes them. Content describes the event, the application handles messages and the transport moves them.
- **UDP syslog** can lose messages without confirmation. TCP improves transport delivery; TLS protects transport confidentiality and peer authentication. Buffers, reconnect handling and end-to-end monitoring still matter.
- Syslog severity runs from **0 emergency**, **1 alert**, **2 critical**, **3 error**, **4 warning**, **5 notice**, **6 informational** to **7 debug**. Lower numbers indicate greater urgency; facility identifies the source category.
- **CSV** stores delimited rows; **JSON** supports named fields and nested data. Delimited and key-value parsing suit predictable formats; **Grok** combines reusable regex patterns for text logs. Handle quoting, escaping and schema changes.
- **Common Log Format** includes client, identity, time, request, status and byte count. **Combined Log Format** adds referrer and user-agent. Extended formats can select more fields; inspect the actual field header before parsing.
Windows audit essentials
- **Security** logs hold configured audit events; **System** logs include OS and service activity; **Application** logs contain application events; **Setup** concerns setup and servicing. Use provider, event ID and message together.
- **4624** means successful logon; **4625** means failed logon; **4634** means logoff; **4740** means account lockout. Logon type **3** is network access and type **10** is RemoteInteractive. A successful logon alone does not establish malicious intent.
- **4688** records process creation when auditing is enabled. Command-line inclusion needs appropriate policy. Investigate parent-child relationships, user, path and arguments; PowerShell bypass flags can occur in both administration and attacks.
- **5140** records network-share access; **5145** records detailed share access checks. **4656** concerns an object-handle request; **4663** records object access; **4657** records registry value modification. Availability depends on audit policy and object auditing settings.
- **4616** records a system-time change; **1102** records Security-log clearing; **7045** in the System log records service installation. Correlate time changes, service paths, users and process activity to assess tampering.
- Configure **Advanced Audit Policy** through local or domain Group Policy and relevant **SACLs** for object access. Windows levels include critical, error, warning, information and verbose; audit success/failure keywords describe audit outcomes.
Host and application evidence
- On Linux, review the **system journal** and configured files under **/var/log**. Kernel firewall events may appear in the journal or kern.log. CUPS access logging commonly uses **/var/log/cups/access_log**; routing and filenames depend on configuration.
- On macOS, **/private/var/log** holds traditional logs; use the **unified logging system** for supported modern events. In IIS, the common default log root is **%SystemDrive%\inetpub\logs\LogFiles**, with site folders such as W3SVC1; verify the configured location.
- **Database audit logs** attribute selected actions to users; **transaction logs** support data recovery and record changes in engine-specific form. Inspect audit, authentication and application records together to investigate unauthorized database activity.
- PostgreSQL's **logging_collector** captures supported server output into log files. Other settings control destinations and which connections, errors or statements are logged; enabling collection alone does not select every event.
- **iptables LOG** records matching traffic and continues rule evaluation; it does not itself drop packets. Rule chain and order determine coverage. Router log filters such as **show logging | include 210** search text, so verify the matched ACL context.
Network and HTTP interpretation
- **Packet capture** reveals packet headers and available payloads; **NetFlow/IPFIX** summarize flows, endpoints, ports, byte counts and timing. Flow records do not supply full payloads. **SNMP** supplies device management metrics; syslog supplies event messages.
- **DNS** links names to addresses; **DHCP** links leases to clients over time; **netstat/ss** shows host sockets. Correlate historical timestamps. IP geolocation describes an observed endpoint and cannot establish the location of a person behind Tor or a proxy.
- HTTP **1xx** is informational, **2xx** successful, **3xx** redirection, **4xx** client error and **5xx** server error. **401** concerns authentication; **403** means forbidden; **404** means not found. Status alone does not confirm exploit success.
- **OPTIONS** can advertise supported methods; **TRACE** echoes a request for diagnostics. Unexpected use can suggest reconnaissance. Web and proxy logs expose request paths, methods and **user-agents**; agent strings are easily spoofed.
- High-entropy or encoded **DNS subdomains**, unusually long labels, TXT/NULL traffic and unexpected volume can suggest tunneling. **DGAs** may produce many unusual domains and failed lookups. Establish a baseline and inspect destination, host process and business purpose.
Patterns, encoding and detection limits
- In **regex**, character classes match allowed characters, braces specify repetition, parentheses group expressions and a pipe expresses alternatives. Escape literal dots. Test case sensitivity and boundaries against both expected and benign records.
- An IPv4-shaped regex can extract four digit groups without validating octets from 0 to 255. **#[A-Fa-f0-9]{6}** matches a six-digit hexadecimal color; add boundaries and a three-digit alternative when required. Extraction is distinct from semantic validation.
- **Percent encoding** represents bytes as % followed by two hexadecimal digits; for example, %2E is a dot and %2F a slash. Encoded traversal or markup can evade naive matching. Normalize consistently and retain raw evidence; Base64 is encoding, not encryption.
- A **signature** matches known content or structure. **Anomaly detection** flags deviation from a baseline; **heuristics** apply suspicious characteristics. A match is a triage lead: validate the context, relevant decoder and actual application behavior.
SIEM detection and automation
Output-driven deployment
- Begin with a **monitoring outcome** tied to business risk, critical assets and a response action. Select feasible use cases using threat relevance, data availability, data quality and compliance needs; collecting everything is not a substitute for detection design.
- Define requirements, identify event sources and **validate their fields and coverage** before writing rules. Then implement correlation logic, test representative benign and malicious scenarios, deploy gradually and assign an owner.
- Build reliable **log management** before advanced analytics: collectors, secure transport, parsing, timestamps, storage and search. Architecture must fit network topology, connectivity, residency, volume and resilience requirements.
- For a detection gap, trace **source generation, collection, ingestion, parsing, rule logic and alert routing**. Check whether auditing was enabled, logs were delayed, fields were absent or the rule's time window and thresholds missed the behavior.
Triage, correlation and tuning
- A **true positive** correctly detects the target condition; a **false positive** flags benign activity. A **false negative** misses the condition; a **true negative** correctly leaves benign activity unflagged. An attack below a simplistic threshold can produce a false negative.
- Correlate failed logins, subsequent success, privilege use and unusual access across **time, user, host and address**. Inspect multiple windows and distributed sources to catch slow guessing or password spraying that a single consecutive-failure threshold misses.
- Add **asset criticality**, HR role, authorized privileges, vulnerability state, network location and threat intelligence. Context helps distinguish expected activity from misuse and reduces low-value investigations without declaring all anomalies harmless.
- Tune thresholds, exceptions and suppression windows using tested evidence. Deduplicate repeated alerts and group related events into cases. Give exceptions owners and review criteria; measure both alert precision and missed-detection risk.
Analytics and automated response
- **UEBA** models user and entity behavior, such as unusual login locations or data transfers. **Machine learning** can identify patterns beyond fixed signatures; **NLP** can help interpret text. These techniques still require quality data, validation and analyst judgment.
- **EDR** supplies endpoint behavior and response. **XDR** combines supported detection domains. A **SIEM** centralizes broader telemetry and correlation; **SOAR** orchestrates enrichment, ticketing, notifications and response across tools.
- A **playbook** defines repeatable investigation and action steps. For suspected account compromise, enrich identity and activity, restrict or disable access as authorized, revoke sessions and investigate scope. Destructive actions need appropriate controls and rollback planning.
- For Microsoft Sentinel, **analytics rules** detect patterns and **playbooks** implement workflows through Azure Logic Apps. Automation can invoke playbooks and update cases; it does not remove the need to validate evidence and response authority.
Cloud SOC visibility
- **CASB** adds visibility and policy enforcement for cloud-service use. **CSPM** identifies posture and configuration risks; **CWPP** focuses on workload protection. Check integration coverage and control scope for each environment.
- **Amazon GuardDuty** produces threat findings using supported AWS telemetry and detection methods. **CloudTrail** records API activity; **VPC Flow Logs** describe network flows; DNS telemetry helps investigate suspicious destinations.
- **AWS Security Hub** centralizes supported findings and posture information; **Macie** focuses on sensitive-data discovery in S3; **AWS Config** tracks resource configuration. These capabilities complement threat detection.
- **Azure Monitor** collects and analyzes supported metrics and logs. **Microsoft Sentinel** adds SIEM and SOAR capabilities. Collect identity, control-plane, workload and network telemetry; cloud hosting does not make visibility automatic.
Threat intelligence and hunting
Intelligence for the audience
- **Strategic intelligence** explains long-term risk, motivations and geopolitical or business implications for leaders. **Operational intelligence** explains campaigns, actors, capabilities, intent and likely attack activity for defenders and responders.
- **Tactical intelligence** describes adversary **TTPs: tactics, techniques and procedures**. **Technical intelligence** supplies observables such as hashes, IP addresses, domains and URLs. Pair short-lived indicators with behavioral context.
- An **IoC** is an observable associated with possible compromise; an **IoA** emphasizes behavior suggesting an attack. A bare indicator list is not complete intelligence: relevance, confidence, context and recommended action make it useful.
- **OSINT** uses publicly available information; **HUMINT** uses human sources. **Counterintelligence** seeks to identify or frustrate adversary intelligence activity and may use controlled deception. Protect sensitive sources and sharing permissions.
Requirements, collection and sharing
- Start with **intelligence requirements**: assets to protect, decisions to support and priority threats. Obtain stakeholder support, then plan sources, personnel, tools and collection frequency. **Tasking** assigns specific collection work and accountability.
- The intelligence cycle covers **direction, collection, processing, analysis, dissemination and feedback**. Remove duplicates, assess source reliability and distinguish observations from assumptions. Revisit requirements as the threat or business changes.
- A **threat intelligence platform** aggregates, normalizes, enriches and manages intelligence. Correlate it with internal telemetry, track confidence and freshness, and expire obsolete indicators to reduce overload and false positives.
- **STIX** represents structured threat intelligence; **TAXII** provides a protocol for exchanging it. Integrations such as Sentinel's TAXII connector ingest supported feeds. Sharing standards do not guarantee that the intelligence is accurate or relevant.
Hypothesis-driven threat hunting
- **Structured hunting** starts from a hypothesis about a technique or behavior, often mapped to ATT&CK. **Unstructured hunting** can start from an indicator; **situational/entity-driven hunting** focuses on a high-risk asset or environmental change.
- Define a hypothesis, identify telemetry, establish normal behavior, query and investigate deviations, then validate findings and respond. Feed useful results into new detections and improved logging; document a negative result and its visibility limits.
- Combine **host artifacts** such as tasks, autoruns, registry changes and process trees with **network artifacts** such as DNS, flows, proxy records and PCAP. Reappearing processes suggest persistence; periodic outbound traffic can suggest beaconing but needs corroboration.
- Pivot through related users, hosts, hashes, domains and time windows to scope activity. Rare-event or frequency analysis can expose outliers, but a large diverse environment needs contextual baselines rather than treating every uncommon event as malicious.
Incident response and evidence
From preparation to lessons learned
- **Preparation** establishes authority, contacts, tools, logging, backups, training and exercises. During detection and analysis, **record, classify, validate, prioritize and assign** the case; update the scope as evidence develops.
- **Containment** limits spread or loss, such as isolating a host or segment and restricting compromised access. **Eradication** removes malware, persistence and exploited weaknesses. **Recovery** rebuilds or restores services, validates safety and increases monitoring.
- **Post-incident review** examines the timeline, impact, root cause, response effectiveness and improvements. Assign owners to corrective actions, update playbooks and test that changes close the original gap.
- The phases overlap: preserve evidence while containing active harm, and continue analysis during recovery. Use an incident manager or coordinator for approvals and communications with IT, legal, HR, business owners and service providers.
Response by incident type
- For **phishing**, retain the message and headers, scope recipients and verify opens, clicks, downloads and credential entry with available evidence. Remove malicious messages, block related infrastructure and investigate affected endpoints and identities.
- For **account compromise**, restrict affected access, revoke sessions and reset compromised credentials after securing the environment. MFA, rate controls and carefully designed lockouts improve protection; account lockout can itself be abused for denial of service.
- For **malware or ransomware**, isolate affected systems and shared-storage paths where needed. Preserve volatile evidence when feasible; powering off destroys RAM evidence. Remove persistence, patch the entry weakness and restore from verified clean backups.
- For **exfiltration**, restrict the offending account, host or transfer path and scope what data left. For **DDoS**, coordinate upstream filtering or scrubbing, rate controls and capacity. Disrupt botnet C2 through authorized providers and responders.
- For **web compromise**, preserve relevant logs and artifacts, restrict exposure, remove malicious changes and repair the vulnerable code or configuration. Test the repaired service and monitor it before restoring full access.
Evidence integrity and malware analysis
- Maintain **chain of custody** from the first collection: evidence identity, collector, time, method, storage, every transfer and each handler. Record time zones and tool details. Compute cryptographic hashes to detect changes and analyze verified copies.
- Collect according to **volatility** and investigative need: RAM, running processes and live connections can disappear; disks and retained logs are less volatile. Secure originals, restrict access and document any unavoidable alteration.
- **Static analysis** inspects hashes, strings, scripts and binary structure without execution. **Disassembly** examines machine instructions; decompilation reconstructs higher-level representations. **Dynamic analysis** observes execution in an isolated, controlled environment.
- **Host integrity monitoring** compares trusted baselines or snapshots for unauthorized changes. Correlate differences with logs and process activity; a changed file can be legitimate. Forensic reconstruction combines endpoint, identity, network and application timelines.
- A forensic lab needs planned capacity, trained staff, appropriate tools and licensing, physical security and protected evidence storage. Reports should distinguish facts from inference and explain scope, methods, impact, actions and remaining uncertainty.