CS0-004 — CompTIA CySA+ V4 Cheat Sheet

Cheat sheet: compact, exam-focused reference for CompTIA CySA+ V4 (CS0-004) incident analysis, threat detection, vulnerability management, and security operations.

Use the tables for a quick pre-exam check. Expand a topic’s notes for explanations, examples, and additional distinctions.

Scope and study context

High-Yield Analyst Mindset

Exam situationBest analyst instinct
Alert with incomplete evidenceValidate first; do not assume compromise from one indicator.
Active compromise suspectedScope impact, preserve evidence, then contain based on business risk.
Vulnerability backlogPrioritize by exploitability, exposure, asset criticality, and compensating controls.
Noisy SIEM ruleTune with context, thresholds, allowlists, and better fields; do not disable blindly.
User reports phishingPreserve headers, URLs, attachment hashes, sender details, and affected recipients.
Possible data breachEscalate through incident process; involve legal/privacy/compliance as required by policy.
Malware on endpointIsolate or contain, collect volatile/evidence data if required, then eradicate.
Cloud alertCheck identity activity, resource changes, network exposure, keys/secrets, and audit logs.
Executive reportSummarize impact, risk, business actions, and timeline; avoid tool-only details.
Technical reportInclude evidence, queries, hashes, IOCs, affected assets, timeline, and remediation.

This is IT Mastery review support and is not affiliated with CompTIA.

ItemDetail
Vendor/providerCompTIA
Official exam titleCompTIA CySA+ V4 (CS0-004)
Official exam codeCS0-004
Candidate focusCybersecurity analysis, detection, vulnerability management, incident response, communication, and operational security
Best use of this pageQuick concept refresh before IT Mastery practice and original practice questions

SOC Triage Workflow

    flowchart TD
	    A[Alert or report] --> B[Validate signal]
	    B --> C{True positive?}
	    C -- No --> D[Close as false positive or benign true positive]
	    C -- Yes --> E[Classify severity]
	    E --> F[Scope users, hosts, data, and time window]
	    F --> G{Active threat?}
	    G -- Yes --> H[Contain according to playbook]
	    G -- No --> I[Preserve evidence and continue analysis]
	    H --> J[Eradicate root cause]
	    I --> J
	    J --> K[Recover and monitor]
	    K --> L[Lessons learned, tuning, report]
Notes and examples

Triage Questions

QuestionWhy it mattersEvidence sources
What triggered the alert?Identifies detection logic and possible blind spots.SIEM rule, EDR alert, IDS signature, user report
Is the activity expected?Separates malicious behavior from admin or business activity.Change tickets, asset owner, maintenance windows
Who is involved?Determines account risk and possible identity compromise.IAM logs, VPN logs, SSO logs, directory logs
Which assets are involved?Drives severity and containment priority.CMDB, EDR inventory, vulnerability scanner
What is the earliest known activity?Establishes timeline and dwell time.SIEM searches, endpoint telemetry, logs
Is the threat still active?Determines urgency of containment.EDR process tree, network sessions, active logins
What data or systems are at risk?Supports impact assessment and escalation.DLP, database logs, file access, cloud storage logs
What changed recently?Helps identify root cause.Patch logs, deployment logs, IAM changes, firewall changes

Severity and Priority Decision Points

FactorRaises severityLowers severity
Asset criticalityDomain controller, production database, identity provider, payment systemTest host, isolated lab, non-sensitive asset
ExposureInternet-facing, remote access, public cloud resourceInternal-only with strong segmentation
ExploitabilityKnown exploited vulnerability, working exploit, active exploitationTheoretical issue, strong compensating control
PrivilegeAdmin/root/service account involvedLow-privilege account with limited access
ScopeMultiple users, hosts, sites, tenants, or business unitsSingle contained endpoint
Data impactRegulated, confidential, financial, customer, or credentialsPublic data only
PersistenceNew service, scheduled task, startup item, cloud access keyOne failed attempt, blocked by control
Business impactOutage, fraud, ransomware, data lossBlocked scan or benign policy violation
Notes and examples

Common Severity Trap

TrapBetter exam answer
Treating every malware alert as criticalDetermine asset value, spread, privilege, and active behavior.
Prioritizing only by CVSSCombine CVSS with exploitability, exposure, asset criticality, and threat intelligence.
Closing alert because user is an adminValidate whether admin behavior matches expected source, time, and change record.
Ignoring failed loginsLook for patterns: password spraying, impossible travel, disabled accounts, distributed sources.
Assuming blocked equals harmlessBlocked attempts can indicate targeting and may require threat hunting or tuning.

Incident Response Phases

PhaseAnalyst tasksOutputs
PreparationPlaybooks, logging, baselines, contacts, access, lab toolsRunbooks, escalation matrix, collection procedures
Detection and analysisValidate, classify, correlate, scope, preserve evidenceTimeline, indicators, impacted assets
ContainmentShort-term and long-term containment based on riskIsolated hosts, blocked IOCs, disabled accounts
EradicationRemove malware, close vulnerability, rotate secrets, remove persistenceClean systems, patched weakness, reset credentials
RecoveryRestore services, monitor for recurrence, validate integrityRecovered systems, heightened monitoring
Post-incident activityLessons learned, metrics, control improvements, reportingFinal report, rule tuning, backlog actions
Notes and examples

Containment Choices

ScenarioLikely containmentWatch for
Single infected workstationNetwork isolate via EDR or VLAN quarantineDo not destroy evidence before collection if forensics is required.
Compromised accountDisable account, revoke sessions/tokens, reset credentialsCheck for MFA changes, forwarding rules, OAuth grants.
Web shell on serverRemove from load balancer or restrict accessPreserve web logs, file timestamps, process data.
Active ransomware spreadIsolate segments, disable lateral movement paths, block C2Coordinate with business continuity and backups.
Leaked API keyRevoke/rotate key, review usage, search repositoriesRotation alone is not enough; determine abuse.
Malicious domain/IPBlock at DNS, proxy, firewall, EDRValidate collateral impact and use time-bound blocks if needed.
Public cloud storage exposureRemove public access, review object access logsIdentify downloaded data and misconfiguration source.

Response phase decision path

    flowchart TD
	    A[Alert or report received] --> B{Is activity validated?}
	    B -- No --> C[Collect more evidence]
	    C --> B
	    B -- Yes --> D{Is harm ongoing?}
	    D -- Yes --> E[Contain spread or access]
	    D -- No --> F[Scope affected systems and data]
	    E --> F
	    F --> G[Eradicate root cause]
	    G --> H[Recover and monitor]
	    H --> I[Lessons learned and reporting]

Incident response phase reminders

PhaseAnalyst focusCommon mistake
PreparationPlaybooks, contacts, tools, training, loggingWaiting until incident to define roles
Detection and analysisValidate, scope, classify, prioritizeDeclaring breach from one weak signal
ContainmentLimit damage and spreadTaking systems offline without considering business impact
EradicationRemove malware, persistence, compromised accountsMissing root cause
RecoveryRestore services and monitorReconnecting before validating clean state
Lessons learnedImprove controls and processSkipping documentation after recovery

Containment choices

SituationLikely containment
Malware on one workstationIsolate host via EDR or network control
Compromised user accountDisable account, revoke sessions/tokens, reset credentials
Leaked API keyRevoke key, rotate secrets, review access logs
Ransomware spreadingSegment network, isolate affected hosts, disable propagation paths
Malicious email campaignQuarantine messages, block sender/domain/URL, search mailboxes
Web app attackWAF rule, disable vulnerable function, patch app
Cloud storage exposureRemove public access, review object access logs
Insider data theftPreserve evidence, restrict access, involve appropriate stakeholders

Incident classification clues

Incident typeEvidence to look for
PhishingEmail headers, links, attachments, sender domain, user clicks
MalwareHashes, process tree, persistence, network beacons
RansomwareFile extension changes, ransom note, encryption activity
Credential compromiseImpossible travel, MFA fatigue, new devices, token abuse
Data exfiltrationLarge outbound transfer, unusual destination, sensitive file access
Web application attackInjection strings, abnormal parameters, WAF alerts, error spikes
DDoSTraffic volume, many sources, service degradation
Insider threatUnusual access, bulk downloads, policy violations, timing
Cloud compromiseNew keys, role changes, unusual API calls, public resources

Incident response traps

  • Trap: “Delete malware first.” Better answer: isolate, collect evidence if needed, then eradicate.
  • Trap: “Power off every system.” Better answer: consider volatile evidence, business impact, and containment goals.
  • Trap: “Notify everyone immediately with unverified claims.” Better answer: communicate confirmed facts, impact, actions, and uncertainty.
  • Trap: “Restore from backup before root cause analysis.” Better answer: ensure the restored environment will not be reinfected.
  • Trap: “Close after service restoration.” Better answer: monitor, document, and hold lessons learned.

Evidence Preservation and Chain of Custody

ConceptExam relevance
IntegrityHash evidence and avoid modifying originals.
Chain of custodyDocument who collected, handled, transferred, and stored evidence.
Volatile dataMemory, network connections, logged-in users, running processes; collect early if required.
Order of volatilityPrioritize data most likely to disappear first.
Time synchronizationUse consistent timestamps and time zones; NTP issues can distort timelines.
Forensic imageBit-level copy for deeper analysis or legal preservation.
Write blockerPrevents modification of source media during acquisition.
Evidence logRecords date/time, collector, system, method, hash, storage location, purpose.

Log and Telemetry Source Matrix

SourceBest for detectingKey fields to inspect
SIEMCross-source correlation, timelines, rule alertsTime, host, user, event type, source, destination
EDR/XDRMalware, process chains, lateral movement, persistenceProcess, parent process, command line, hash, user
Windows Security logsLogons, privilege use, account changesEvent ID, logon type, SID, username, workstation
SysmonProcess creation, network connections, file changesEvent ID, image, command line, hash, parent image
Linux auth logsSSH access, sudo usage, authentication failuresUser, source IP, TTY, command
Web server logsWeb attacks, scanning, exploitation attemptsURI, method, status, user agent, source IP
DNS logsC2, tunneling, malware callbacks, DGAQuery, response, record type, entropy, NXDOMAIN rate
Proxy/SWG logsWeb access, downloads, blocked URLsURL, category, action, user, bytes
Firewall logsNetwork flows, denied traffic, policy hitsSource/destination, port, protocol, action
IDS/IPSExploit signatures, suspicious trafficSignature, severity, packet metadata
NetFlowBeaconing, exfiltration volume, lateral movement5-tuple, bytes, packets, duration
VPN logsRemote access, impossible travel, suspicious geolocationUser, IP, device, MFA result, duration
IAM/SSO logsAccount takeover, risky sign-ins, MFA eventsUser, app, result, IP, device, token events
Email gatewayPhishing, malware attachments, spoofingSender, SPF/DKIM/DMARC, URLs, attachment hash
DLPData movement and policy violationsUser, file, data type, destination, action
Cloud audit logsAPI actions, resource changes, identity misusePrincipal, action, resource, source IP, result
Container logsRuntime behavior, image pulls, orchestration eventsImage, namespace, pod/container, command
WAF logsWeb app attacks and blocked requestsRule, URI, payload, source, action

Windows Event IDs Commonly Seen in Analysis

Event IDMeaningAnalyst use
4624Successful logonIdentify access time, account, logon type, source.
4625Failed logonDetect brute force, spraying, invalid account attempts.
4634LogoffSession timeline support.
4648Explicit credentials usedLateral movement or run-as behavior.
4672Special privileges assignedAdmin-level logon clue.
4688Process creationCommand execution and process lineage.
4697Service installedPersistence or admin software deployment.
4720User account createdUnauthorized account creation.
4726User account deletedAnti-forensics or admin change.
4728 / 4732User added to privileged groupPrivilege escalation.
4740Account locked outBrute force or user issue.
4768 / 4769Kerberos ticket activityKerberos authentication and service ticket analysis.
4776NTLM authenticationLegacy auth and lateral movement clues.
1102Audit log clearedStrong anti-forensics indicator.

Sysmon Event IDs Commonly Seen in Analysis

Event IDMeaningAnalyst use
1Process creationCommand line, parent process, executable path.
3Network connectionProcess-to-network mapping.
7Image loadedDLL loading and suspicious libraries.
8Create remote threadInjection and lateral movement clue.
10Process accessCredential dumping or process tampering.
11File createdDropped payloads or staged tools.
12-14Registry object/value changesPersistence and configuration changes.
15File stream createdAlternate data streams.
22DNS queryProcess-level DNS investigation.

Linux and macOS Artifact Reference

ArtifactPlatformWhat it can show
/var/log/auth.log or /var/log/secureLinuxSSH, sudo, authentication events
~/.bash_historyLinuxUser command history, if not cleared
/etc/passwd, /etc/shadow, /etc/sudoersLinuxAccount and privilege changes
crontab, /etc/cron*LinuxScheduled persistence
systemctl service filesLinuxService-based persistence
journalctlLinuxSystemd logs and service events
last, lastlog, whoLinuxLogin history and active users
LaunchAgents / LaunchDaemonsmacOSPersistence
Unified logsmacOSSystem and application events
Keychain access eventsmacOSCredential access clues

Network Analysis Cheat Sheet

Common Ports and Protocols

PortProtocolAnalyst significance
20/21FTPCleartext file transfer, credential exposure
22SSH/SFTPRemote administration, tunneling, brute force
23TelnetInsecure remote access
25SMTPMail transfer, spam, phishing infrastructure
53DNSResolution, tunneling, C2, exfiltration
67/68DHCPAddress assignment, rogue DHCP clues
80HTTPWeb traffic, exploit delivery
88KerberosAD authentication
110/143POP3/IMAPEmail retrieval
123NTPTime synchronization, amplification abuse
135/139/445RPC/NetBIOS/SMBWindows lateral movement, file sharing
389/636LDAP/LDAPSDirectory queries and authentication
443HTTPSEncrypted web, C2, API traffic
514SyslogCentralized logging
587SMTP submissionUser mail submission
993/995IMAPS/POP3SSecure email retrieval
1433MS SQL ServerDatabase access
1521Oracle DBDatabase access
3306MySQL/MariaDBDatabase access
3389RDPRemote desktop, brute force, lateral movement
5432PostgreSQLDatabase access
5900VNCRemote control
5985/5986WinRMWindows remote management
6379RedisExposed cache/data store risk
8080/8443Alternate HTTP/HTTPSProxies, admin panels, web apps
Notes and examples

TCP Flags

FlagMeaningAnalyst clue
SYNStart connectionSYN flood or scanning if high volume.
SYN-ACKServer responseConfirms open service.
ACKAcknowledgmentSeen in established sessions.
FINGraceful closeFIN scans may evade simple detection.
RSTResetClosed port, refused connection, or interrupted session.
PSHPush dataData transfer clue.
URGUrgentRare; suspicious in scans or evasive traffic.

Suspicious Network Patterns

PatternPossible meaning
Many ports on one hostPort scan
One port across many hostsService sweep
Regular outbound connectionsBeaconing
High DNS query entropyDGA or tunneling
Many NXDOMAIN responsesDGA, typo-squatting checks, misconfig
Large outbound upload to unusual locationExfiltration
SMB/RDP from workstation to many peersLateral movement
New outbound traffic from server segmentCompromise or misconfiguration
TLS to rare domain with self-signed certMalware C2 or test system
HTTP POST bursts after archive creationPossible staged exfiltration

Packet and flow interpretation

ObservationPossible interpretation
SYN packets to many portsPort scan
SYN packets to many hosts on same portService sweep
Large outbound HTTPS to unknown hostPossible exfiltration or normal cloud use
Repeated DNS TXT queriesPossible DNS tunneling
ICMP traffic with abnormal payload sizePossible tunneling or testing
SMB connections between workstationsPossible lateral movement
Beaconing at fixed intervalsPossible command-and-control
TLS to rare domain shortly after malware executionSuspicious outbound callback

Common ports and services

Port/protocolServiceAnalyst note
22/TCPSSHAdmin access; watch brute force and exposed keys
25/TCPSMTPMail transfer; abuse and spoofing concerns
53/UDP/TCPDNSTunneling, DGA, suspicious lookups
80/TCPHTTPWeb traffic; inspect where unencrypted
443/TCPHTTPSEncrypted web traffic; use metadata and endpoint logs
445/TCPSMBWindows file sharing; lateral movement risk
3389/TCPRDPRemote access; high-value target
389/636LDAP/LDAPSDirectory services
1433/TCPMS SQLDatabase exposure risk
3306/TCPMySQLDatabase exposure risk
5432/TCPPostgreSQLDatabase exposure risk

Network control selection

NeedControl
Block known bad trafficFirewall, proxy, DNS filtering
Detect suspicious network activityIDS, NDR, SIEM correlation
Stop malicious traffic inlineIPS, WAF, secure web gateway
Separate sensitive systemsSegmentation, VLANs, ACLs, microsegmentation
Secure remote accessVPN, ZTNA, MFA, conditional access
Protect web applicationsWAF, secure coding, patching
Limit outbound exfiltrationEgress filtering, DLP, proxy controls

Threat Intelligence Reference

TermMeaningExam use
IOCObservable indicator such as IP, domain, URL, hashFast blocking and matching; often short-lived.
IOAIndicator of attack behaviorMore durable than atomic IOCs.
TTPTactics, techniques, and proceduresMaps adversary behavior to detection and controls.
CampaignCoordinated activity over timeHelps cluster related incidents.
ActorIndividual or group behind activityAttribution is usually low confidence unless supported.
EnrichmentAdding context to raw indicatorReputation, WHOIS, geolocation, passive DNS, sandbox.
ConfidenceDegree of trust in intelligencePrevents overreaction to weak indicators.
RelevanceFit to your environmentHigh-confidence intel may still be irrelevant.
TimelinessFreshness of intelOld IP/domain IOCs may be stale.
STIXStructured format for threat intelligenceSharing and machine-readable context.
TAXIITransport mechanism for threat intel sharingAutomated exchange of STIX data.
Notes and examples

Intelligence Source Types

SourceStrengthLimitation
Internal telemetryHighly relevant to environmentMay lack external context.
ISAC/ISAO sharingSector-specificVaries by sector and participation.
Vendor feedsOperationally usefulCan be noisy or overlapping.
Open-source intelligenceAccessible and broadRequires validation.
Government advisoriesAuthoritative for campaigns and critical issuesMay be high level or delayed.
Dark web monitoringCan reveal credential/data exposureRequires careful validation and legal handling.
HoneypotsUseful attacker behavior dataMay not represent production targeting.

Intelligence types

TypeFocusExample use
StrategicBusiness-level threat trendsExecutive risk planning
OperationalCampaigns, adversary objectives, target sectorsPrepare defenses for likely attacks
TacticalTTPs and behaviorsImprove detections and playbooks
TechnicalIOCs such as IPs, hashes, domainsBlock, search, enrich alerts

IOC versus TTP

ItemMeaningDurability
IP addressInfrastructure indicatorOften short-lived
DomainC2, phishing, or staging indicatorCan change quickly
File hashExact file matchBreaks if file changes
URLSpecific web resourceUseful but often temporary
Registry keyHost persistence clueMore durable than hash
Process behaviorExecution patternMore durable
Attack techniqueAdversary methodMost useful for detection engineering

Threat intel quality checks

Before acting on threat intelligence, ask:

  • Is it relevant to your industry, geography, technology stack, or users?
  • Is it timely, or is it stale?
  • Is the source reliable?
  • Is the confidence level clear?
  • Can the indicator cause collateral damage if blocked?
  • Does it support detection, prevention, hunting, or executive reporting?
  • Has it been correlated with internal telemetry?

Common formats and tools

ItemPurpose
STIXStructured threat intelligence representation
TAXIISharing transport for threat intelligence
YARAFile/content pattern matching, often malware-focused
SigmaGeneric SIEM detection rule format
Snort/Suricata rulesNetwork detection signatures
ATT&CK-style mappingOrganizing adversary tactics and techniques
Threat feedsExternal indicators for enrichment and blocking

Frameworks and Models

Framework/modelUse it forKey exam distinction
MITRE ATT&CKMapping tactics and techniquesBehavior-oriented; useful for detection gaps.
Cyber Kill ChainAttack lifecycle from recon to actionsLinear model; good for explaining progression.
Diamond ModelAdversary, capability, infrastructure, victimGood for pivoting relationships.
Pyramid of PainValue of disrupting different indicatorsHashes are easy to change; TTPs are harder.
CVEUnique vulnerability identifierNames the weakness, not the risk by itself.
CVSSSeverity scoring frameworkUseful input, not the only prioritization factor.
EPSSExploit likelihood estimateHelps prioritize based on probability of exploitation.
KEV catalog conceptKnown exploited vulnerabilitiesPrioritize when relevant to your assets.
NIST CSF conceptIdentify, Protect, Detect, Respond, RecoverHigh-level program framework.
CIS Controls conceptPrioritized safeguardsControl selection and maturity improvement.

Indicator Durability

Indicator typeExampleDurabilityBest use
HashSHA-256 of malwareLowExact file detection
IP addressC2 IPLowShort-term blocking and scoping
DomainMalicious domainLow/mediumDNS/proxy detection
URL pathExploit or payload URLMediumWeb/proxy detection
File pathSuspicious executable pathMediumHost hunting
Registry keyRun key persistenceMediumEndpoint detection
MutexMalware family artifactMediumMalware clustering
Command lineLOLBin misuse patternHighBehavioral detection
TechniqueCredential dumping via LSASS accessHighDurable detection engineering

Attack Pattern Reference

AttackCommon cluesPrimary evidenceDefensive response
PhishingSpoofed sender, urgent language, malicious URL/attachmentEmail headers, gateway logs, URL sandbox, attachment hashQuarantine, block indicators, user notification, credential reset if clicked
Business email compromiseMailbox rules, unusual payment request, changed banking detailsMailbox audit, login history, forwarding rulesDisable forwarding, reset credentials, review financial process
Password sprayingMany usernames, few attempts each, common passwordsIAM, VPN, AD logsBlock source, enforce MFA, lockout tuning, user awareness
Credential stuffingKnown leaked credentials, many services attemptedWAF, IAM, proxy logsMFA, bot controls, credential reset
Brute forceRepeated attempts against one/few accountsAuth logsRate limiting, lockout, IP blocks
Pass-the-hashNTLM use, lateral movement without plaintext passwordWindows logs, EDR, network logsDisable compromised accounts, segment, reduce admin reuse
KerberoastingService ticket requests for SPNs, offline crackingKerberos logs, AD auditRotate service account passwords, use managed service accounts
Web shellUnexpected script file, odd process spawned by web serverWeb logs, file integrity, EDRIsolate server, remove shell, patch app
SQL injectionSuspicious query strings, database errorsWAF, web logs, DB logsParameterized queries, WAF tuning, patch code
XSSScript payload in input/outputWeb logs, app logs, reportsOutput encoding, input validation, CSP
SSRFServer requests internal metadata or internal URLsApp logs, cloud logs, proxy logsEgress controls, metadata protections, input validation
RansomwareFile renames, ransom note, mass encryption, shadow copy deletionEDR, file server logs, process treeIsolate, preserve evidence, restore from clean backups
CryptojackingHigh CPU, mining pool connectionsEDR, DNS/proxy, cloud billing anomalyKill workload, remove miner, fix exposed service
Data exfiltrationLarge outbound transfer, compression, unusual destinationDLP, proxy, NetFlow, cloud logsContain, determine data set, notify stakeholders
Insider misuseAccess outside role, unusual downloads, policy violationDLP, IAM, file access logsInvestigate with HR/legal per policy
Supply chain compromiseTrusted update or dependency behaves maliciouslyEDR, package logs, CI/CD logsPin/verify packages, rotate secrets, rebuild from trusted source

Malware and Endpoint Clues

BehaviorPossible technique
Office app spawns PowerShellMalicious macro or phishing payload
PowerShell with encoded commandObfuscation or fileless execution
rundll32, regsvr32, mshta, wmic unusual usageLiving-off-the-land execution
New scheduled taskPersistence
New service with random namePersistence or remote execution
LSASS memory accessCredential dumping
Security tool disabledDefense evasion
Log cleared after admin logonAnti-forensics
Archive created before outbound uploadExfiltration staging
Process injects into browser/system processDefense evasion or credential theft
Unexpected outbound TLS from serverC2 or unauthorized integration
Notes and examples

Living-off-the-Land Binaries to Recognize

ToolNormal useSuspicious use
PowerShellAdministration and automationEncoded commands, download cradle, hidden window
WMI/WMICRemote managementRemote process execution across many hosts
PsExecAdmin remote executionLateral movement with reused admin credentials
CertutilCertificate utilityDownloading/encoding payloads
Regsvr32Register DLLsScriptlet execution from remote URL
Rundll32Execute DLL functionsUnknown DLL from temp/user path
MshtaRun HTML applicationsRemote script execution
Bitsadmin/BITSBackground transferStealthy payload download
SchtasksScheduled tasksPersistence at logon/startup
Net.exeWindows network/admin toolUser/group changes, share discovery

Vulnerability Management Workflow

    flowchart TD
	    A[Asset inventory] --> B[Scan or assess]
	    B --> C[Validate findings]
	    C --> D[Prioritize risk]
	    D --> E[Assign remediation owner]
	    E --> F[Patch, configure, isolate, or accept]
	    F --> G[Rescan and verify]
	    G --> H[Report metrics and exceptions]
	    H --> A
Notes and examples

Vulnerability Terms

TermMeaningExam distinction
VulnerabilityWeakness that could be exploitedNot the same as an exploit or threat.
ThreatPotential cause of harmActor, event, or condition.
RiskLikelihood and impact of a threat exploiting a vulnerabilityDrives prioritization.
ExposureReachability or accessibility of weaknessInternet-facing exposure raises urgency.
ExploitCode or method to take advantage of a vulnerabilityPublic exploit changes priority.
PatchVendor update correcting weaknessPreferred when feasible and tested.
MitigationReduces risk without fully removing weaknessUseful when patching is delayed.
Compensating controlAlternate control that reduces riskMust be documented and monitored.
ExceptionApproved deviation from policyRequires owner, justification, expiration.
False positiveFinding is not actually presentValidate before closing.
False negativeScanner missed a real issueDangerous; improve coverage and credentials.
Credentialed scanAuthenticated assessmentMore accurate, deeper configuration visibility.
Uncredentialed scanExternal view without credentialsShows attacker-visible exposure but less detail.
Agent-based scanLocal agent reports postureUseful for roaming endpoints.
Passive scanObserves traffic/assets without probingLower disruption, less complete.

Prioritization Inputs

InputWhy it matters
Asset criticalityCritical assets have higher business impact.
Data classificationSensitive data increases impact.
Internet exposureEasier attacker access.
Exploit availabilityRaises likelihood.
Active exploitationStrong urgency signal.
Authentication requiredMay lower likelihood but not eliminate risk.
Privileges requiredAffects attack feasibility.
Attack complexityLower complexity usually higher priority.
Compensating controlsSegmentation, WAF, EDR, hardening may reduce risk.
Business constraintsMaintenance windows and uptime affect remediation plan.
Age of findingLong-open issues indicate process weakness.
Vulnerability chainingMedium issues can combine into high risk.

Risk Formula Concepts

\[ \text{Risk} = \text{Likelihood} \times \text{Impact} \]\[ \text{Residual Risk} = \text{Inherent Risk} - \text{Control Effectiveness} \]

Use formulas conceptually. For the exam, the key is usually which factor changes risk and which remediation is most appropriate, not advanced calculation.

Remediation Decision Matrix

Finding typePreferred actionIf immediate fix is not possible
Missing security patchTest and deploy patchIsolate, restrict access, apply virtual patch/WAF rule
Default credentialsChange/remove defaultsDisable service until remediated
Weak cipher/protocolDisable weak option, enforce secure configurationRestrict access and document exception
Public storage bucketRemove public access, apply least privilegeMonitor access and notify data owner
Exposed admin interfaceRestrict by VPN/jump host/allowlistDisable interface or add strong MFA
Unsupported softwareUpgrade or replaceSegment, monitor, document migration plan
SQL injectionFix code with parameterized queriesWAF rule as temporary mitigation
Misconfigured IAMRemove excessive privilegesApply permission boundary/approval workflow
Container image CVERebuild from patched base imageBlock deployment or isolate workload
Insecure secrets storageMove to secrets manager/vaultRotate exposed secrets and remove from repo

Vulnerability lifecycle

    flowchart LR
	    A[Asset inventory] --> B[Discover vulnerabilities]
	    B --> C[Validate findings]
	    C --> D[Prioritize risk]
	    D --> E[Remediate or mitigate]
	    E --> F[Verify fix]
	    F --> G[Report status]
	    G --> A

Prioritization factors

Do not prioritize remediation by scanner severity alone. Combine technical severity with business context.

FactorWhy it matters
Asset criticalityA medium issue on a crown-jewel system may outrank a high issue on a low-value lab host
Internet exposureExternally reachable systems are easier to attack
Exploit availabilityKnown working exploit increases urgency
Active exploitationEvidence of attacks raises priority
Data sensitivitySystems with regulated or confidential data carry higher impact
Privilege requiredNo-auth remote issues are generally more urgent
Compensating controlsWAF, segmentation, EDR, or hardening may reduce immediate risk
Patch complexityDowntime, dependencies, and testing affect remediation planning
Business deadlineCritical operations may require mitigation before patching
Vulnerability ageLong-open findings can indicate process failure

Scanner result interpretation

Finding typeAnalyst caution
Unauthenticated scanFaster and safer but may miss local/package/configuration issues
Authenticated scanMore complete but depends on credential scope and health
Agent-based scanGood for roaming endpoints but requires deployment and maintenance
Network scanFinds exposed services but may not see internal host state
Web app scanUseful for application flaws but can create noise or affect fragile apps
Container image scanFinds package/library issues before deployment
Cloud configuration scanDetects risky permissions, public storage, insecure networking
False positiveValidate before escalating as confirmed risk
False negativeMay occur if scanner lacks access, signatures, or context

Remediation versus mitigation

ActionUse whenExample
RemediationYou can remove the vulnerabilityApply vendor patch
MitigationYou reduce likelihood or impact temporarilyAdd WAF rule, disable service, restrict access
Compensating controlAlternative control provides comparable risk reductionNetwork segmentation around unsupported system
Risk acceptanceBusiness formally accepts residual riskException with owner and review date
Risk transferShift financial/operational impactCyber insurance or outsourced responsibility
AvoidanceStop the risky activityDecommission exposed legacy app

Vulnerability management traps

  • Trap: “Highest CVSS always first.” Better answer: prioritize by exploitability, exposure, asset value, and business impact.
  • Trap: “Patch immediately in production.” Better answer: follow change control, test when appropriate, and use mitigation if urgent.
  • Trap: “Scanner output equals truth.” Better answer: validate critical findings and investigate anomalies.
  • Trap: “Risk accepted forever.” Better answer: exceptions should be documented, owned, justified, and reviewed.
  • Trap: “Remediation complete when ticket closes.” Better answer: verify with rescanning or control validation.

Configuration and Compliance Assessment

Control areaWhat to check
Baseline hardeningSecure build standards, disabled unnecessary services
Patch stateOS, applications, firmware, dependencies
IdentityMFA, privileged accounts, stale accounts, group membership
LoggingRequired audit logs enabled and forwarded
EncryptionData at rest and in transit based on classification
NetworkSegmentation, exposed ports, firewall rules
EndpointEDR status, disk encryption, local admin rights
CloudPublic exposure, IAM policies, audit logs, key rotation
ContainersImage provenance, vulnerabilities, runtime privileges
SecretsNo hardcoded secrets, rotation, vault usage
BackupsBackup success, isolation, restore testing
ExceptionsApproved, time-bound, risk accepted by owner

Detection Engineering Reference

Detection Rule Quality

Rule attributeGood signBad sign
Data sourceReliable logs with needed fieldsMissing or inconsistent telemetry
LogicMaps to adversary behaviorOverly broad keyword matching
ContextUses asset/user criticalitySame severity for all assets
ThresholdBased on baseline and behaviorArbitrary count without tuning
SuppressionReduces known benign noiseHides true positives
TestabilityCan be validated with sample eventsNo test data or expected output
ResponseLinks to playbookNo owner or next action
MaintenanceReviewed after incidents and environment changesStale rule no one owns
Notes and examples

Detection Logic Patterns

PatternExample use
ThresholdMore than normal failed logins in a time window
SequencePhishing click followed by new mailbox rule
Rare eventFirst-time admin login from a country
FrequencyBeacon every fixed interval
CorrelationEDR malware hash plus proxy download
Statistical anomalyUser downloads far more data than baseline
Watchlist matchKnown malicious domain queried
Behavior chainRecon, credential access, lateral movement

False Positive Reduction

TechniqueUse when
Add asset contextAdmin servers or scanners trigger known events.
Add user contextService accounts behave differently than humans.
Tune thresholdsRule fires for normal bursty behavior.
Add maintenance-window suppressionAlerts occur during approved changes.
Allowlist carefullyKnown-good signed tool or scanner is noisy.
Use parent/child process logicSingle process name is too broad.
Require multiple signalsSingle weak IOC creates noise.
Review field normalizationRule misses or misfires due to inconsistent fields.

SIEM and Query Concepts

ConceptMeaning
NormalizationMapping vendor-specific fields to common names.
ParsingExtracting fields from raw log text.
CorrelationConnecting events across sources.
AggregationCounting/grouping events over time.
BaselineExpected activity for comparison.
EnrichmentAdding context such as asset owner or threat reputation.
SuppressionTemporarily hiding known benign matches.
DeduplicationRemoving repeated identical events.
Time windowPeriod used for correlation or thresholding.
Ingestion gapMissing logs that create detection blind spots.
Notes and examples

Vendor-Neutral Query Examples

Failed logins by user and source:

event.category = authentication
AND event.outcome = failure
GROUP BY user.name, source.ip
COUNT >= threshold
WITHIN time_window

Suspicious PowerShell:

process.name = "powershell.exe"
AND (
  process.command_line CONTAINS "-enc"
  OR process.command_line CONTAINS "IEX"
  OR process.command_line CONTAINS "DownloadString"
)

Possible beaconing:

network.direction = outbound
GROUP BY source.host, destination.domain
CALCULATE regular_interval_score, connection_count
FILTER connection_count >= threshold

Mailbox forwarding rule creation:

event.action IN ("New-InboxRule", "Set-InboxRule", "Create forwarding rule")
AND user.type = "human"

Sigma and YARA Recognition

Sigma-Style Detection Skeleton

title: Suspicious Encoded PowerShell
logsource:
  product: windows
  category: process_creation
detection:
  selection:
    Image|endswith: '\powershell.exe'
    CommandLine|contains:
      - '-enc'
      - '-encodedcommand'
  condition: selection
level: high

YARA-Style Malware Matching Skeleton

rule Suspicious_Macro_Dropper_Example
{
    strings:
        $a = "AutoOpen" nocase
        $b = "CreateObject" nocase
        $c = "powershell" nocase
    condition:
        2 of ($a,$b,$c)
}
Tool/languageBest forNot best for
SigmaSIEM-portable log detectionsDeep file content matching
YARAFile and malware pattern matchingNetwork flow correlation
Snort/Suricata ruleNetwork packet/payload detectionHost-only behavior
RegexField extraction and pattern matchingComplex risk context by itself

Email and Phishing Analysis

ArtifactWhat to inspect
From headerDisplay-name spoofing and sender mismatch
Return-PathBounce address and infrastructure
Received headersMail path and originating server clues
Reply-ToBusiness email compromise clue
SPFWhether sending IP is authorized for domain
DKIMWhether message signature validates
DMARCDomain policy alignment for SPF/DKIM
URLsRedirectors, punycode, lookalike domains, tracking
AttachmentsFile type mismatch, macros, archive nesting, hashes
Message-IDOdd format or infrastructure clue
Language/intentUrgency, payment change, credential request

SPF, DKIM, DMARC Distinction

ControlValidatesAnalyst use
SPFSending server is authorized for domainHelps detect spoofed sending infrastructure.
DKIMMessage has valid cryptographic signatureDetects modification and validates signing domain.
DMARCAlignment and policy using SPF/DKIMIndicates how receivers should handle failures.
Notes and examples

Phishing investigation checklist

EvidenceWhat to inspect
HeadersSender path, return-path, received chain
SPF/DKIM/DMARCAuthentication and domain alignment
URLsRedirects, lookalike domains, reputation
AttachmentsHashes, macros, sandbox results
User reportsWho received, clicked, submitted credentials
Mail gateway logsDelivery, quarantine, similar messages
Authentication logsLogin attempts after click
Endpoint telemetryDownloaded payload or script execution

Phishing response actions

  1. Preserve a copy of the message and headers.
  2. Identify all recipients.
  3. Quarantine or remove similar messages.
  4. Block malicious domains, URLs, hashes, or senders where appropriate.
  5. Determine who clicked or submitted credentials.
  6. Reset credentials and revoke sessions for affected users.
  7. Search for payload execution or persistence.
  8. Communicate user guidance without blame.
  9. Update detections and awareness material.

Web Application Attack Clues

AttackExample clueBetter control
SQL injection' OR 1=1--, UNION SELECTParameterized queries, input validation
Reflected XSS<script>alert(1)</script> in requestOutput encoding, CSP
Stored XSSMalicious script persists in comments/profileOutput encoding, sanitization
Command injection; cat /etc/passwd, && whoamiAvoid shell calls, input allowlisting
Directory traversal../../etc/passwdNormalize paths, restrict file access
SSRFRequest to metadata/internal IPEgress filtering, metadata protections
Insecure deserializationSerialized payload causing code executionSafe serialization, signing, validation
File inclusionRemote/local file path in parameterRestrict includes, validate paths
IDORChanging object ID accesses another user dataObject-level authorization checks
CSRFState change from forged requestCSRF tokens, SameSite cookies

IAM and Access Control

ConceptMeaningExam decision point
Least privilegeMinimum permissions requiredPreferred over broad admin rights.
Need to knowAccess only to required informationImportant for sensitive data.
RBACPermissions based on roleGood for stable job functions.
ABACPermissions based on attributesGood for dynamic context such as location/device/data label.
DACOwner controls accessFlexible but less centrally controlled.
MACSystem-enforced labelsHigh-control environments.
PAMControls privileged accessUse for admin credentials, session recording, JIT access.
JIT accessTemporary elevated permissionsReduces standing privilege.
JEAAdmin can perform only specific tasksLimits blast radius.
MFAAdditional authentication factorStrong control against password compromise.
SSOOne login across appsImproves management; increases IdP criticality.
FederationTrust between identity providers and servicesCommon for cloud/SaaS access.
Conditional accessPolicy based on risk/contextDevice, location, MFA, user risk.
Service accountNon-human account for servicesMonitor, least privilege, rotate secrets.
Notes and examples

Authentication and Authorization Protocols

ProtocolPrimary useHigh-yield distinction
SAMLFederated enterprise SSOXML-based assertions, common with SaaS.
OAuth 2.0Delegated authorizationGrants app access; not primarily authentication.
OpenID ConnectAuthentication layer on OAuth 2.0Provides identity tokens.
KerberosDomain authenticationTicket-based; common in Active Directory.
LDAP/LDAPSDirectory queries/authenticationLDAPS encrypts LDAP traffic.
RADIUSNetwork access authenticationCommon for VPN/Wi-Fi AAA.
TACACS+Device administration AAASeparates authentication, authorization, accounting.

Identity attack patterns

PatternClueResponse
Password sprayingFew attempts across many accountsBlock source, enforce MFA, detect low-rate failures
Brute forceMany attempts against one accountLockout policy, source blocking, reset if compromised
MFA fatigueMany push promptsRevoke sessions, educate user, require phishing-resistant MFA where available
Impossible travelLogins from distant locations in short timeValidate user, check VPN/proxy, revoke if suspicious
Privilege escalationNew admin rights or role changesReview change authorization and actor
Token theftValid session from unusual contextRevoke tokens/sessions and investigate endpoint
Service account abuseInteractive login or unusual accessRestrict use, rotate secret, monitor activity

Authentication and federation concepts

ConceptReview point
MFAAdds factor; not all MFA is equally phishing-resistant
SSOCentralizes authentication; compromise can have broad impact
SAMLCommon enterprise federation protocol
OAuth 2.0Authorization framework for delegated access
OpenID ConnectAuthentication layer built on OAuth 2.0
KerberosTicket-based authentication common in Windows domains
Conditional accessPolicy based on user, device, location, risk, app
Least privilegeUsers and services get only necessary access
Privileged access managementControls and monitors high-risk admin access

Identity traps

  • OAuth is not the same as authentication by itself. OpenID Connect provides authentication on top of OAuth.
  • MFA does not eliminate credential risk. Tokens, consent grants, fatigue attacks, and session theft still matter.
  • Service accounts are high risk. They often have broad permissions and weak rotation practices.
  • Disabling an account may not end active sessions. Revoke tokens/sessions when needed.
  • Least privilege must include cloud roles and API permissions, not only local accounts.

Cloud Security Operations

Shared Responsibility

LayerCustomer usually responsible forProvider usually responsible for
IaaSOS, applications, IAM, data, network rules, logging configurationPhysical data center, hardware, virtualization platform
PaaSApplication code, data, IAM, configurationManaged runtime, platform maintenance
SaaSUsers, data, access policies, tenant configurationApplication infrastructure and service operation
Notes and examples

Cloud Security Tool Selection

NeedChoose
Detect risky cloud configurationCSPM
Protect cloud workloads/VMs/containersCWPP
Manage excessive cloud identity permissionsCIEM
Secure SaaS usage and policy enforcementCASB/SSE
Centralize cloud audit eventsCloud-native audit logs into SIEM
Protect secretsSecrets manager/vault
Prevent public storage exposureStorage policy, public access controls, IAM review
Detect anomalous API usageCloud audit log analytics and UEBA
Govern infrastructure changesIaC scanning, policy as code, change control
Protect container imagesImage scanning and trusted registry

Cloud Alert Investigation Checklist

  • Identify the principal: user, role, service account, workload identity.
  • Review action: API call, resource change, policy change, data access, key creation.
  • Check source: IP, geolocation, device, user agent, impossible travel.
  • Determine resource criticality and data classification.
  • Look for privilege escalation: new role, policy attachment, key generation.
  • Search for persistence: access keys, OAuth grants, backdoor roles, new users.
  • Scope lateral activity across accounts, projects, tenants, or subscriptions.
  • Contain by revoking sessions/keys, disabling principal, or restricting resource access.
  • Preserve cloud audit logs before retention or lifecycle rules remove them.

Alert triage decision rule

When a question asks what to do first, decide whether the scenario needs validation, containment, escalation, or preservation.

Scenario clueBest first move
Single alert, no confirmed impactValidate with additional telemetry
Active exfiltration or malware spreadContain affected systems or accounts
Possible legal/regulatory issueFollow incident plan and preserve evidence
Executive asks for statusProvide concise impact, scope, actions, and next update
Known false positive patternTune rule after documenting evidence
Critical system involvedCoordinate with business owner before disruptive action, unless immediate harm requires containment

Telemetry sources to recognize

SourceWhat it helps detectUseful clues
Firewall logsBlocked/allowed connections, scanning, policy violationsSource/destination IP, port, action, rule name
IDS/IPSKnown attack patterns and suspicious trafficSignature ID, severity, packet details
SIEMCorrelated events across toolsTimeline, rule logic, related entities
EDRProcess, file, registry, memory, host behaviorParent-child process chains, hashes, command line
DNS logsC2, tunneling, domain generation, phishingUnusual domains, high entropy, NXDOMAIN spikes
Proxy logsWeb access, downloads, user browsingURL, category, user, user agent
Email gatewayPhishing, malware attachments, spoofingSPF/DKIM/DMARC results, headers, attachment hash
Authentication logsBrute force, impossible travel, privilege abuseFailed logins, MFA prompts, source location
Cloud logsAPI activity, identity use, storage exposureAccess keys, role assumption, object access
NetFlowTraffic patterns without payloadVolume, direction, duration, endpoints
Vulnerability scannerKnown weaknesses and misconfigurationsPlugin ID, severity, proof, affected asset
DLPSensitive data movementData type, user, destination, channel

Log analysis patterns

PatternLikely meaningAnalyst response
Many failed logins followed by successBrute force or password sprayingCheck source, MFA, user behavior, privilege
Login from unusual country plus new devicePossible account compromiseValidate with user, revoke sessions, reset credentials if confirmed
PowerShell with encoded commandSuspicious executionDecode, inspect parent process, isolate if malicious
DNS queries to random-looking domainsPossible DGA or tunnelingCompare threat intel, check endpoint process
Large outbound transfer after privilege escalationPotential exfiltrationContain, preserve logs, identify data scope
New admin account created outside change windowUnauthorized persistenceDisable account, review creator, audit related changes
Web server 500 errors with SQL keywordsPossible SQL injection testingReview WAF/app logs, patch or tune controls
Endpoint beaconing at regular intervalsPossible command-and-controlCorrelate with EDR and network data

Detection quality concepts

ConceptMeaningExam reminder
True positiveAlert correctly identifies malicious or policy-violating activityInvestigate and respond
False positiveAlert fires on benign activityTune carefully, do not ignore blindly
True negativeBenign activity correctly ignoredDesired normal state
False negativeMalicious activity missedMost dangerous detection gap
BaselineKnown normal behaviorNeeded for anomaly detection
CorrelationLinking multiple weak signals into stronger evidenceSIEM use case core concept
EnrichmentAdding context such as asset owner, threat intel, geolocationHelps prioritization
SuppressionReducing repetitive alertsUse only when risk is understood
ThresholdingAlerting after a count, rate, or condition is metAvoid thresholds that are too low or too high

SIEM and query thinking

You do not need to memorize every vendor syntax, but you should understand query logic.

TaskQuery idea
Find brute forceCount failed logins by user/source over time
Find successful login after failuresCorrelate failed events followed by success
Find rare processCompare process name/hash against baseline
Find lateral movementLook for remote logons, admin shares, remote execution
Find exfiltrationLarge outbound transfers to unusual destination
Find privilege escalationNew role/group membership or policy change
Find suspicious PowerShellEncoded commands, download cradle, bypass flags
Find cloud compromiseNew access key, unusual API calls, role assumption, public exposure

Container and Kubernetes Security

AreaWhat to inspect
Image provenanceTrusted registry, signed images, approved base images
Image vulnerabilitiesOutdated packages, vulnerable dependencies
SecretsNo secrets in image layers, environment variables, or repos
Runtime privilegeAvoid privileged containers and host mounts unless required
Network policyRestrict pod-to-pod and egress traffic
Admission controlEnforce policy before deployment
RBACLeast privilege for service accounts
Namespace separationLimit blast radius
LoggingAPI server, audit logs, container stdout/stderr
PersistenceUnexpected deployments, daemonsets, cronjobs
Supply chainCI/CD integrity, dependency pinning, artifact scanning

Security Tool Selection Matrix

Tool/controlBest useCommon trap
SIEMCentral correlation and alertingSIEM is only as good as ingested logs and tuning.
SOARAutomated enrichment and responseAutomating bad logic can amplify mistakes.
EDREndpoint process, malware, responseDoes not replace patching or least privilege.
XDRCross-domain detection and responseStill needs analyst validation.
NDRNetwork behavior detectionEncrypted traffic may limit payload visibility.
IDSDetect suspicious trafficDetection only unless paired with response.
IPSBlock suspicious traffic inlineCan disrupt business if poorly tuned.
WAFWeb attack protectionTemporary mitigation; code flaws still need fixing.
DLPDetect/control sensitive data movementRequires good data classification.
NACControl network admissionAsset identity and exceptions must be maintained.
UEBADetect abnormal user/entity behaviorNeeds baseline and context.
Vulnerability scannerFind known weaknessesFindings require validation and prioritization.
BASTest controls with simulated attacksNot a substitute for remediation.
Deception techLure and detect attackersMust avoid confusing production operations.
MDM/UEMManage endpoints/mobile devicesCoverage gaps weaken enforcement.
PAMProtect privileged accountsDoes not fix excessive privileges by itself.
Backup platformRecovery from deletion/ransomwareMust be isolated and restore-tested.

Cryptography and Data Protection

NeedUseWatch for
Data confidentiality in transitTLSExpired certs, weak protocols, bad hostname validation
Data confidentiality at restDisk/database/object encryptionKey management and access control matter
IntegrityHashing, digital signaturesHash alone does not prove authenticity unless trusted
Authentication/nonrepudiationDigital signatures, certificatesPrivate key protection is critical
Password storageSalted adaptive hashingDo not encrypt passwords for reversible storage
Key storageKMS/HSM/secrets vaultAvoid hardcoded keys and unmanaged copies
Data minimizationCollect/store only needed dataReduces breach impact
TokenizationReplace sensitive value with tokenUseful for payment or sensitive identifiers
MaskingHide part of data in display/logsDoes not always protect underlying storage
DLP/classificationControl sensitive movementNeeds labels and accurate rules

Risk, Governance, and Reporting

Risk Response Options

ResponseMeaningExample
AvoidStop the risky activityDecommission exposed legacy service
MitigateReduce likelihood or impactPatch, segment, add MFA
TransferShift financial/operational impactCyber insurance, outsourced service
AcceptAcknowledge risk with approvalDocument exception with owner and expiration
Notes and examples

Metrics to Recognize

MetricMeaning
MTTDMean time to detect
MTTAMean time to acknowledge
MTTRMean time to respond/restore/remediate, depending on context
Dwell timeTime attacker remains undetected
False positive ratePortion of alerts that are not actionable malicious events
Vulnerability ageHow long a finding has remained open
Patch compliancePercentage of assets meeting patch standard
SLA adherenceWhether response/remediation met defined targets
Control coverageAssets/users/log sources covered by control
Recurrence rateWhether incidents/findings repeat after remediation

Report Audience Matrix

AudienceIncludeAvoid
ExecutivesBusiness impact, risk, decisions needed, trendExcessive raw logs and tool syntax
Technical teamsRoot cause, affected systems, IOCs, remediation stepsVague business-only summaries
Legal/complianceTimeline, data types, preservation status, policy triggersSpeculation beyond evidence
HRUser-related facts when insider or policy issue existsTechnical overload or unapproved disclosure
Customers/partnersApproved impact and action guidanceUnverified details or blame
SOC leadershipMetrics, gaps, tuning, staffing/process needsUnsupported claims

Audience-based reporting

AudienceWantsAvoid
Executive leadershipBusiness impact, risk, timeline, decision neededRaw logs and tool jargon
Technical teamAffected systems, evidence, root cause, fix stepsVague “secure it” statements
Legal/complianceFacts, scope, timeline, evidence handlingSpeculation
Asset ownerOperational impact and remediation planSecurity-only language
Customer/user communicationClear impact and required actionOver-disclosure before facts are confirmed
Incident commanderStatus, blockers, next actionsUnprioritized detail dump

Good security report structure

  1. Executive summary
  2. Scope and methodology
  3. Key findings
  4. Risk rating and business impact
  5. Evidence
  6. Affected assets
  7. Recommended remediation
  8. Compensating controls or exceptions
  9. Validation plan
  10. Appendices for technical detail

Metrics to understand

MetricUse
MTTDMean time to detect
MTTRMean time to respond or recover, depending on context
Dwell timeTime attacker remains undetected
False positive rateDetection quality and analyst workload
Patch complianceRemediation program health
Vulnerability ageBacklog and process risk
Incident count by typeTrend analysis
Phishing click rateAwareness and control effectiveness
Control coverageVisibility and protection gaps

Common Commands and Analyst Utilities

Network and Host Triage

## Active connections and listening services
ss -tulpen
netstat -ano

## DNS investigation
dig example.com
nslookup example.com

## HTTP header and redirect review
curl -I -L https://example.com

## Packet capture
tcpdump -i eth0 host 203.0.113.10 -w capture.pcap

## Hash a file
sha256sum suspicious.bin

## Search logs
grep -i "failed password" /var/log/auth.log
Notes and examples

Windows Triage Examples

## Recent processes
Get-Process | Sort-Object StartTime -Descending

## Local users
Get-LocalUser

## Local administrators
Get-LocalGroupMember Administrators

## Network connections with owning process
Get-NetTCPConnection | Select-Object LocalAddress,LocalPort,RemoteAddress,RemotePort,State,OwningProcess

## Scheduled tasks
Get-ScheduledTask | Where-Object {$_.State -ne "Disabled"}

Nmap Use Cases

## Basic service discovery
nmap -sV 192.0.2.10

## Scan top ports on a subnet
nmap --top-ports 100 192.0.2.0/24

## No ping discovery if hosts block ICMP
nmap -Pn 192.0.2.10
Nmap optionMeaning
-sVService/version detection
-sSSYN scan
-OOS detection
-PnTreat host as up; skip host discovery
-pSpecify ports
--top-portsScan most common ports
-oAOutput in multiple formats

Alert-to-Action Playbook Patterns

AlertFirst checksLikely next action
Malware detectedHost, file hash, process tree, user, network activityIsolate if active; collect evidence; remove malware
Multiple failed VPN loginsUser/source pattern, success after failures, MFA statusBlock source, reset account if success, tune detection
Impossible travelGeo/IP, VPN/proxy, device, recent password changeRevoke session and require MFA/reset if suspicious
New admin accountChange ticket, creator, source host, group membershipDisable if unauthorized; investigate creator
EDR disabledUser/process causing change, policy statusRe-enable, isolate if malicious, investigate tampering
DNS tunnelingQuery length, entropy, volume, domain ageBlock domain, inspect host, hunt similar queries
Web attack blocked by WAFPayload, target URI, source frequencyTune/monitor if blocked; escalate if exploitation succeeded
Public cloud storageResource owner, access logs, data typeRemove public access; assess exposure
DLP exfil alertUser, data type, destination, business justificationContain transfer, notify data owner
Vulnerability scanner critical findingAsset exposure, exploitability, ownerValidate and assign urgent remediation

High-Yield Exam Traps

If the question says…Do not jump to…Prefer…
“The alert fired”Assume incident confirmedValidate with correlated evidence.
“A patch is available”Patch production immediatelyFollow change control unless active critical risk requires emergency process.
“User clicked link”Reimage immediatelyCheck credential submission, payload execution, and mailbox/account activity.
“Firewall blocked traffic”Close ticketDetermine whether it indicates targeting or compromised internal host.
“CVSS is high”Always top priorityConsider exposure, exploit activity, asset value, and compensating controls.
“Hash is malicious”Hunt only by hashAdd behavior, filenames, domains, command lines, and parent process.
“Admin account used”Treat as authorizedValidate source, timing, MFA, ticket, and expected admin path.
“Cloud key created”Ignore if by adminCheck whether expected, then inspect usage and permissions.
“Need legal evidence”Collect casuallyPreserve chain of custody and minimize evidence modification.
“Need to reduce alert noise”Disable the ruleTune, enrich, suppress narrowly, or improve parsing.

Rapid Review Checklist

Before Exam Day

  • Know the difference between alert, event, incident, vulnerability, threat, and risk.
  • Practice choosing between containment, eradication, and recovery actions.
  • Review common Windows, Linux, DNS, web, firewall, IAM, and cloud log clues.
  • Memorize high-value Windows Event IDs for authentication, process creation, account changes, and log clearing.
  • Be able to explain IOC vs TTP, SIEM vs SOAR, EDR vs IDS, CSPM vs CWPP vs CIEM.
  • Review phishing header fields and SPF/DKIM/DMARC distinctions.
  • Practice vulnerability prioritization using exploitability, exposure, criticality, and business impact.
  • Understand when to escalate to legal, privacy, HR, management, or system owners.
  • Read questions for words such as first, best, most likely, next, and primary.

Practical Next Step

Use this Cheat Sheet to identify weak areas, then move into timed CS0-004-style practice questions and scenario-based labs that require you to triage alerts, prioritize vulnerabilities, interpret logs, and choose the best next analyst action.

Notes and examples

Final quick checklist

Before you start a CS0-004 practice set, make sure you can answer these quickly:

  • What evidence confirms an alert is a real incident?
  • What should be contained first: host, account, network path, email, or cloud key?
  • What evidence is volatile and should be preserved early?
  • Which findings deserve priority when scanner severity and business risk differ?
  • Which log source best supports the investigation?
  • What is the difference between remediation, mitigation, and risk acceptance?
  • What should an executive report include?
  • What root cause must be fixed before recovery?
  • What detection should be improved after lessons learned?
  • What answer choice is safest, least disruptive, and aligned with the incident phase?

Next step: start a timed CompTIA CySA+ V4 (CS0-004) topic drill, review every detailed explanation, and turn each missed question into a short decision rule for your final question bank pass.

Last-pass study strategy

For a final review, do not try to reread everything. Focus on decisions.

  1. Read the scenario carefully. Identify the asset, threat, business impact, evidence, and current phase of response.
  2. Separate alert from incident. An alert is a signal; an incident requires validation and impact assessment.
  3. Prioritize by risk, not noise. Severity, exploitability, asset criticality, exposure, and compensating controls matter.
  4. Preserve evidence before destructive actions. Especially in forensic or legal-sensitive scenarios.
  5. Match the tool to the question. Scanner, SIEM, EDR, packet capture, SOAR, DLP, WAF, CASB, IAM logs, cloud-native logs, and forensics tools solve different problems.
  6. Choose the least disruptive effective action. Contain the threat while minimizing business impact.
  7. Answer as an analyst. Communicate clearly, document findings, escalate appropriately, and verify remediation.

High-yield topic map

AreaKnow coldCommon exam trap
Security monitoringLogs, alerts, SIEM correlation, EDR telemetry, network traffic, authentication eventsTreating one alert as proof without corroboration
Detection engineeringSignatures, behavior analytics, baselines, rules, false positives, tuningOver-tuning until true positives disappear
Vulnerability managementScanning, prioritization, remediation, exceptions, validationRanking by CVSS alone without asset context
Threat intelligenceIOCs, TTPs, confidence, relevance, source quality, sharing formatsAssuming every IOC is current or useful
Incident responsePreparation, detection, analysis, containment, eradication, recovery, lessons learnedEradicating before containment or evidence capture
Digital forensicsVolatile data, disk images, hashing, chain of custody, timeline analysisChanging evidence while collecting it
Cloud and hybrid securityIAM, logging, storage exposure, network controls, shared responsibilityAssuming cloud provider secures customer configuration
Application securityInjection, XSS, auth flaws, API abuse, insecure deserialization, SSRFConfusing vulnerability type with remediation
Identity securityMFA, SSO, federation, privilege, conditional access, anomalous login behaviorIgnoring identity as the control plane
ReportingExecutive summary, technical findings, remediation plan, metrics, risk acceptanceGiving executives raw logs instead of business impact

Digital forensics review

Evidence handling basics

ConceptMeaningWhy it matters
Chain of custodyDocumented control of evidenceSupports integrity and admissibility
HashingIntegrity verificationShows evidence was not altered
Forensic imageBit-level copy where appropriatePreserves original media
Write blockerPrevents modification of source mediaProtects evidence
Volatile dataData lost on shutdownMemory, network connections, running processes
Timeline analysisEvent reconstructionHelps determine attack sequence
ScopeSystems, accounts, data, and time period affectedDrives response and reporting
Notes and examples

Order of volatility

Collect the most volatile evidence first when it is safe and appropriate.

More volatileLess volatile
CPU/register/cache stateDisk images
Memory contentsArchived logs
Network connectionsBackups
Running processesPrinted documentation
Logged-in usersLong-term records
Temporary filesHistorical reports

Host artifacts to recognize

ArtifactWhat it can show
Process listSuspicious running programs
Parent-child process treeExecution chain
Command historyUser or attacker actions
Scheduled tasks/cron jobsPersistence
Registry run keysWindows persistence
Services/daemonsAuto-start mechanisms
Prefetch/shimcache/amcache-style artifactsProgram execution evidence
Browser history/downloadsPhishing or drive-by activity
Event logsAuthentication, process, service, policy events
File metadataCreation, modification, access clues
Memory dumpMalware, credentials, network connections

Application and API security review

Common web vulnerabilities

VulnerabilityWhat it meansBetter remediation direction
SQL injectionUser input alters database queryParameterized queries, input validation
Command injectionUser input executes OS commandsAvoid shell execution, sanitize input, least privilege
Cross-site scriptingAttacker script runs in user browserOutput encoding, CSP, input handling
CSRFUser is tricked into submitting authenticated actionAnti-CSRF tokens, SameSite cookies
SSRFServer is tricked into making requestsEgress controls, allowlists, metadata protection
Path traversalAccess files outside intended directoryCanonicalize paths, restrict file access
Insecure deserializationUntrusted object data causes code or logic abuseAvoid unsafe deserialization, integrity checks
Broken access controlUser accesses unauthorized function/dataServer-side authorization checks
Security misconfigurationUnsafe defaults or exposed admin featuresHardening, configuration review
Vulnerable dependencyFlawed third-party componentSCA, patching, dependency management
Notes and examples

API security review

RiskClueControl
Broken object-level authorizationUser can access another user’s object IDEnforce authorization per object
Excessive data exposureAPI returns more fields than neededMinimize response data
Lack of rate limitingAutomated abuse succeedsThrottling and abuse detection
Weak token handlingLong-lived or exposed tokensShort lifetimes, rotation, secure storage
Poor input validationMalformed requests trigger errorsSchema validation and sanitization
Shadow APIsUnknown or undocumented endpointsAPI inventory and gateway controls

Secure SDLC and testing

MethodPurpose
SASTStatic source/code analysis before runtime
DASTDynamic testing of running application
SCAThird-party dependency and license/vulnerability analysis
IASTInstrumented testing during application execution
FuzzingSending malformed inputs to find crashes or flaws
Threat modelingIdentifying design-level risks early
Code reviewHuman review for logic and security flaws
Secrets scanningDetecting hardcoded keys and credentials
CI/CD controlsAutomated security checks in pipelines

Cloud, container, and hybrid security review

Cloud security decision points

ScenarioThink about
Public storage bucketData exposure, access policy, object logs
Overprivileged roleLeast privilege, role assumption, permissions boundary
Leaked access keyRevoke, rotate, find use, check persistence
Public management portSecurity group/network ACL, bastion, ZTNA
Unencrypted data storeEncryption at rest, key management, data sensitivity
Missing logsEnable cloud audit logs before incident
Suspicious API callIdentity, source IP, user agent, role, time
Container escape concernHost hardening, runtime security, patching
Image vulnerabilityRebuild from patched base image
Kubernetes secret exposureRotate secrets, RBAC review, audit logs
Notes and examples

Shared responsibility reminder

In cloud scenarios, the provider and customer share responsibilities, but the customer is commonly responsible for identity configuration, data classification, access policies, workload configuration, and application security. Do not assume the provider fixes insecure customer settings.

Container and Kubernetes clues

ItemSecurity relevance
ImageMay contain vulnerable packages or secrets
RegistryNeeds access control and signing/scanning
RuntimeDetect suspicious container behavior
NamespaceLogical isolation boundary
RBACControls Kubernetes permissions
SecretsMust be protected and rotated
Admission controlEnforces deployment policy
Network policyLimits pod-to-pod communication
Privileged containerHigh risk; may access host resources
Immutable infrastructureRebuild rather than manually patch running instances

Endpoint security review

Malware behavior indicators

BehaviorPossible purpose
Creates scheduled taskPersistence
Modifies registry run keyPersistence
Injects into another processEvasion or privilege abuse
Disables security toolsDefense evasion
Dumps credentialsCredential theft
Scans local networkDiscovery/lateral movement
Connects to rare external domainCommand-and-control
Encrypts many files rapidlyRansomware
Compresses staged filesExfiltration preparation
Deletes shadow copies/backupsRansomware impact maximization
Notes and examples

Endpoint response choices

SituationBest action
Confirmed malware with active C2Isolate endpoint and preserve evidence
Suspicious process but uncertainCollect process, hash, command line, network evidence
Credential theft suspectedReset credentials and revoke sessions after containment planning
Widespread endpoint indicatorHunt across fleet using EDR query
False positive from known admin toolDocument and tune detection carefully
Ransomware indicatorIsolate immediately and protect backups

Data protection and privacy-aware analysis

Data security controls

NeedControl
Protect data at restEncryption, access control, key management
Protect data in transitTLS, VPN, secure protocols
Prevent unauthorized sharingDLP, classification, access reviews
Limit blast radiusLeast privilege, segmentation, token scoping
Detect exfiltrationDLP, proxy logs, cloud access logs, UEBA
Recover from lossBackups, replication, tested restore
Reduce retained riskData minimization and retention controls

Backup and recovery reminders

ConceptReview point
Offline/immutable backupHelps resist ransomware
Restore testingBackup is not useful unless recoverable
Recovery point objectiveAcceptable data loss target
Recovery time objectiveAcceptable downtime target
Golden imageTrusted rebuild source
Clean restoreRestore only after root cause and reinfection risk are addressed

Tool and command quick review

Common analyst tools

Tool/categoryUse
SIEMCorrelation, search, alerting, dashboards
SOARAutomated enrichment and response workflows
EDR/XDREndpoint detection, containment, investigation
NDRNetwork detection and response
Vulnerability scannerFind known vulnerabilities and misconfigurations
Packet analyzerInspect network traffic
SandboxDetonate suspicious files/URLs safely
Forensic suiteImage, preserve, and analyze evidence
Ticketing systemTrack remediation and accountability
GRC platformRisk, compliance, exceptions, reporting
Notes and examples

Command-line recognition

Command/toolTypical use
pingBasic reachability
traceroute/tracertNetwork path
nslookup/digDNS lookup
whoisDomain/IP registration context
netstat/ssNetwork connections and listening ports
ipconfig/ifconfig/ipInterface configuration
routeRouting table
arpLocal neighbor mapping
nmapPort/service discovery
curl/wgetHTTP requests and downloads
tcpdumpPacket capture
Wireshark/tsharkPacket analysis
grep/findstrSearch text/logs
awk/sedText processing
stringsExtract readable strings from binary
sha256sum/Get-FileHashFile integrity/hash
ps/tasklistRunning processes
lsofOpen files and sockets
journalctlLinux system logs
sc/systemctlService management
regWindows registry inspection/modification

“Best tool” examples

Question asks forStrong answer direction
Identify open portsNmap or scanner
Inspect payload detailsPacket capture/Wireshark
Correlate many logsSIEM
Isolate compromised hostEDR or network control
Automate enrichmentSOAR
Identify vulnerable packagesSCA or vulnerability scanner
Detect data leavingDLP, proxy, NetFlow, cloud logs
Verify file integrityHash comparison
Preserve disk evidenceForensic imaging
Analyze suspicious attachment safelySandbox

Scenario decision rules

“First,” “best,” and “next” wording

WordingHow to answer
FIRSTChoose the earliest correct step in the process
BESTChoose the most complete and risk-appropriate action
NEXTContinue from the current phase described
MOST likelyInfer from evidence, not from fear
LEAST likelyEliminate supported options first
MOST secureStrongest control, if operationally reasonable
MOST cost-effectiveAdequate risk reduction with lower complexity
BEST long-termRoot cause fix, not temporary workaround
Notes and examples

High-frequency decision rules

If the scenario says…Prefer…
“Unconfirmed alert”Validate and collect more evidence
“Active compromise”Containment
“Forensic investigation”Preserve evidence and chain of custody
“Critical production service”Coordinate containment with business impact in mind
“Known exploited vulnerability on internet-facing asset”Urgent remediation or mitigation
“Legacy system cannot be patched”Compensating controls and risk documentation
“Many noisy alerts”Tuning, correlation, and prioritization
“Credential compromise”Revoke sessions/tokens, reset credentials, review activity
“Cloud public exposure”Remove public access and review access logs
“Repeat incident”Root cause analysis and control improvement

Common candidate mistakes

Technical mistakes

  • Confusing hashing with encryption. Hashing verifies integrity; encryption protects confidentiality.
  • Confusing encoding with encryption. Encoding is reversible formatting, not security.
  • Treating base64 as a secure protection method.
  • Assuming HTTPS traffic is safe just because it is encrypted.
  • Forgetting that valid credentials can be maliciously used.
  • Assuming MFA stops all account compromise.
  • Choosing eradication before containment during active compromise.
  • Ignoring egress traffic in exfiltration scenarios.
  • Overlooking cloud IAM as the highest-impact control plane.
  • Treating scanner severity as identical to business risk.

Process mistakes

  • Skipping documentation during incidents.
  • Failing to verify remediation.
  • Reporting technical detail without business impact.
  • Closing incidents without lessons learned.
  • Blocking indicators without considering collateral impact.
  • Not involving asset owners for production changes.
  • Failing to preserve chain of custody when evidence may matter.
  • Accepting risk without an owner, justification, or review.

Compact comparison tables

Preventive, detective, corrective

Control typePurposeExamples
PreventiveStop event from happeningMFA, firewall, hardening, secure coding
DetectiveIdentify eventSIEM alert, IDS, audit logs
CorrectiveRestore or fixPatch, restore backup, remove malware
DeterrentDiscourage behaviorWarning banners, policies
CompensatingAlternative protectionSegmentation around unpatchable system
RecoveryReturn to operationBackups, disaster recovery plan
Notes and examples

Signature, anomaly, behavior

Detection typeStrengthWeakness
SignatureGood for known threatsMisses new/modified threats
AnomalyFinds unusual activityCan produce false positives
BehaviorDetects suspicious actions/TTPsRequires context and tuning
HeuristicFlexible pattern-based detectionMay be noisy
Threat intel matchFast enrichmentIndicators may be stale

IDS, IPS, WAF, EDR

ControlPrimary locationMain purpose
IDSNetwork or hostDetect and alert
IPSInline network pathDetect and block
WAFIn front of web appFilter malicious web requests
EDREndpointDetect, investigate, contain host threats
NDRNetworkIdentify suspicious traffic behavior
DLPEndpoint, network, cloudPrevent or detect sensitive data leakage

Mini playbooks

Suspected ransomware

  1. Isolate affected systems.
  2. Protect backups and prevent further spread.
  3. Preserve evidence where possible.
  4. Identify initial access and scope.
  5. Disable compromised accounts.
  6. Remove persistence and malware.
  7. Restore from known-good backups.
  8. Monitor for reinfection.
  9. Document timeline, impact, and lessons learned.

Suspected cloud key compromise

  1. Disable or revoke the exposed key.
  2. Rotate related secrets.
  3. Review API activity for that identity.
  4. Identify created users, roles, policies, compute, storage, or network changes.
  5. Remove unauthorized resources and persistence.
  6. Check data access and exfiltration.
  7. Tighten permissions and add detection.
  8. Document impact and remediation.

Suspected data exfiltration

  1. Confirm unusual transfer or access.
  2. Identify user, system, data type, destination, and time window.
  3. Contain access path without destroying evidence.
  4. Preserve logs and relevant artifacts.
  5. Determine data sensitivity and scope.
  6. Escalate according to incident plan.
  7. Implement corrective controls.
  8. Prepare audience-appropriate reporting.

Suspected phishing credential theft

  1. Analyze email and identify recipients.
  2. Remove message from mailboxes.
  3. Determine who clicked or submitted credentials.
  4. Revoke sessions and reset affected credentials.
  5. Review authentication and mailbox rules.
  6. Search for lateral movement or data access.
  7. Block infrastructure and update detections.
  8. Communicate user guidance.

Put the review into practice

Browse Certification Practice Tests