Cubis Engineers

Detection and Response

Turn host, identity, network, and application events into alerts a team can act on.

Security operationsIntermediateUpdated Aug 13, 2026monitoringloggingdetectionincident-responseforensics

More logs do not automatically create better detection. Collect events that answer a question, keep enough context to investigate them, and route each alert to someone with authority to act.

Build useful telemetry

SourceEvents worth keepingQuestions it answers
IdentitySign-ins, failures, MFA changes, privilege grantsWho accessed what, from where, and with which privilege?
Linux hostSSH, sudo, service, package, process, file-integrity eventsWhat changed on the host?
NetworkFlow logs, firewall decisions, DNS, load-balancer and proxy logsWhich systems communicated and what was blocked?
ApplicationAuthentication, authorization, admin actions, errorsWhich user or service initiated the action?
Cloud control planeAPI calls, policy changes, key use, snapshot actionsWho changed infrastructure or security controls?

Send security-relevant logs off the server quickly. Synchronize time, restrict log deletion, document retention, and avoid recording secrets, session tokens, full credentials, or unnecessary personal data.

Inspect one Linux host

Terminal
date -Is
uptime
who
last -Fai | head -30
sudo journalctl --since '2 hours ago' -p warning
sudo journalctl -u ssh --since '2 hours ago'
sudo journalctl _COMM=sudo --since '2 hours ago'
sudo ss -tpna
ps -eo user,pid,ppid,lstart,cmd --sort=-lstart | head -40

These commands support triage, not a verdict. Compare results with deployment records, configuration management, expected operators, and the service baseline.

Write alerts as decisions

An actionable alert states:

  • what changed and which detection produced the signal;
  • affected account, host, service, and environment;
  • first and last observed time, count, and relevant baseline;
  • evidence links that do not expose secrets;
  • likely impact and confidence;
  • the first safe check, escalation owner, and containment option.

Examples of useful signals include a new public listener, interactive login by a service account, security logging disabled, a burst of failed logins followed by success, unexpected privilege escalation, or outbound traffic to a destination never used by the service.

Respond in a controlled order

Declare and assign

Name the incident lead, communications owner, operations lead, and evidence owner. Record decisions and times in one shared timeline.

Confirm scope

Identify affected identities, hosts, data, regions, and dependencies. Separate confirmed facts from working hypotheses.

Contain safely

Use the cloud or network control plane to isolate affected systems. Avoid powering off a host when volatile evidence may matter unless safety or ongoing damage requires it.

Remove access

From a known-clean system, revoke sessions, rotate exposed credentials, remove persistence, and close the initial access path.

Recover trust

Rebuild from approved artifacts, restore clean data, validate controls, and monitor the recovered service for recurrence.

Preserve evidence

Record who collected each artifact, when, from where, how its integrity was checked, and every transfer. Follow company policy and legal guidance for packet captures, disk snapshots, memory images, personal data, and communications. Do not run unreviewed cleanup commands that destroy timestamps or logs.

Improve after the incident

A useful review explains impact, timeline, contributing conditions, why safeguards did not prevent or detect the event sooner, and what will change. Give every action an owner, priority, due date, and verification method. Focus on system conditions and decision context rather than blame.

References

On this page