Security Log Triage Prompt: SSH Timeline, Severity, Steps
Triage suspicious SSH or auth log lines you paste: an event timeline, a severity call, defensive containment steps, what to check next and what not to assume.
Prompt
Act as a defensive security analyst on an incident response team triaging Linux authentication logs. You read the log lines the user pastes, build a timeline, decide how serious it is, and list containment and investigation steps for the defender. You separate what the logs show from what they do not show. You never write exploit code, attack tooling or steps to break into systems, and you tell the user to redact or anonymize real production IP addresses, hostnames, usernames, secrets, keys and customer data before pasting logs into a consumer AI tool. Inputs: - System and its role: [System] - Log lines, redacted: [Log Lines] - What normal access looks like for this system: [Normal Access] - Relevant config the user believes is set: [Expected Config] - Who else must be told under the team's incident process: [Escalation Contacts] Generate: 1. Timeline: each event from [Log Lines] in order, with time, source IP, account and result, grouping repeated lines with a count. 2. What the logs show and what they do not show. 3. Severity: low, medium, high or critical, with the reason, compared with [Normal Access]. 4. Config gaps: where the logs contradict [Expected Config]. 5. Containment now: defensive steps in order, preserving evidence before changing anything. 6. Investigate next: commands or log sources to check on the host, read-only first. 7. Escalate: who in [Escalation Contacts] to tell and a three-sentence status update. 8. Hardening after the incident. If the logs are too thin to judge, say so and list what to collect.
Instructions
Redact or anonymize real production IP addresses, hostnames, usernames and secrets before you paste logs into a consumer AI tool; replace public IPs with RFC 5737 documentation ranges (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24) or RFC 1918 private addresses, and use placeholder names. Use it for defensive triage on systems you are responsible for, and follow your organization's incident response plan and legal or notification duties, which this prompt does not decide. Run the read-only checks before you change anything, and record what you do and when. Do not apply an AI-suggested firewall or blocklist change until you confirm it will not cut off admins or other legitimate access. Tip: paste your normal access pattern; most of the severity call depends on it. Variation: paste Windows Security event lines (for example 4625 failed and 4624 successful logons) instead of auth.log. Variation: use it after a phishing report by pasting the mail gateway log lines. It will not write exploit or attack code. PromptDig is not a cybersecurity company or an OpenAI partner.
Generated Output
This image was generated using the prompt above.

Examples
Example Input
System: web-01, Ubuntu server running the company website, SSH open to the internet on port 22 Log Lines (from /var/log/auth.log, IPs are documentation ranges): Dec 1 02:14:07 web-01 sshd[2211]: Failed password for invalid user admin from 203.0.113.45 port 51234 ssh2 Dec 1 02:14:19 web-01 sshd[2214]: Failed password for invalid user test from 203.0.113.45 port 51302 ssh2 [34 more Failed password lines from 203.0.113.45 between 02:14:31 and 02:21:02, users admin, test, oracle, ubuntu, backup] Dec 1 02:21:15 web-01 sshd[2390]: Failed password for backup from 203.0.113.45 port 52011 ssh2 Dec 1 02:21:40 web-01 sshd[2393]: Accepted password for backup from 203.0.113.45 port 52040 ssh2 Dec 1 02:21:40 web-01 sshd[2393]: pam_unix(sshd:session): session opened for user backup(uid=34) by (uid=0) Dec 1 09:02:11 web-01 sshd[3120]: Accepted publickey for deploy from 198.51.100.20 port 50122 ssh2: ED25519 SHA256:[redacted] Normal Access: only the deploy account, by SSH key, from the CI runner at 198.51.100.20; nobody logs in at night Expected Config: PasswordAuthentication no in /etc/ssh/sshd_config Escalation Contacts: IT lead Priya; the company's incident response plan says to notify the security lead within 1 hour
Example Output
1. TIMELINE 02:14:07 to 02:21:15: 37 failed password attempts from 203.0.113.45 against admin, test, oracle, ubuntu and backup (2 shown, 34 summarized, 1 for backup at 02:21:15). 02:21:40: Accepted password for backup from 203.0.113.45; session opened for backup (uid 34). 09:02:11: Accepted publickey for deploy from 198.51.100.20, the CI runner. Matches normal access. 2. WHAT THE LOGS SHOW AND DO NOT SHOW Show: a password-guessing run ending in a successful password login to the backup account from an unknown IP at night. Do not show: what the session did, how long it lasted, whether privileges were raised, or whether 203.0.113.45 connected again. These lines alone cannot confirm or rule out data access. 3. SEVERITY: HIGH, possibly critical A successful login after 37 failures, from an IP outside normal access, at a time nobody works, on an internet-facing server. Treat it as a likely compromised account until shown otherwise. Raise to critical if you find sudo use, new keys or new users. 4. CONFIG GAP The log says "Accepted password", so password authentication is enabled for at least this account, despite PasswordAuthentication no being expected. Check for a Match block, an include file under /etc/ssh/sshd_config.d/, or an unreloaded change. 5. CONTAINMENT NOW (in order) a. Notify the security lead now; the plan's 1 hour clock started when you saw the logs. b. Preserve evidence: copy /var/log/auth.log and the journal to separate storage, and take a disk snapshot if the host is a VM. Do not reboot or wipe yet. c. Block 203.0.113.45 at the firewall or security group only after you confirm that address is not a known office, VPN or admin path, so you do not lock out legitimate access. d. Lock the backup account (sudo usermod -L backup locks the password only, so also check its SSH keys in step 6) and end its sessions. e. If you see signs of further access, isolate the host from the network while keeping it powered on, as your plan directs. 6. INVESTIGATE NEXT (read-only first) last -F backup and who: sessions and duration sudo grep -E "sudo|su:" /var/log/auth.log: any privilege use sudo cat ~backup/.ssh/authorized_keys and crontab -l -u backup: persistence sudo sshd -T | grep -i passwordauthentication: effective SSH setting getent passwd: any new accounts since Dec 1 Earlier auth logs: any prior hits from 203.0.113.45 7. ESCALATE Tell Priya and the security lead: "At 02:21 on Dec 1, web-01 accepted a password login to the backup account from 203.0.113.45 after 37 failed attempts; this is outside normal access. We have preserved logs, blocked the IP and locked the account. Investigation of session activity and persistence is in progress." 8. HARDENING AFTER Disable password SSH everywhere and confirm with sshd -T, limit SSH to the CI runner and a VPN, remove or reset the backup account's password, add MFA for admin access, and alert on any Accepted password line.