ChatGPT Prompts for Cybersecurity: 12 for Defensive Work
12 ChatGPT prompts for cybersecurity defenders: log triage, suspicious email review, STRIDE threat models, incident updates, hardening checklists and policies.

ChatGPT prompts for cybersecurity work best for defenders: triaging logs you paste, sketching threat models, drafting incident updates and policies, and planning hardening, all on systems you are responsible for. The 12 prompts below are grouped by those defensive jobs. Redact secrets and customer data before you paste anything, and follow your organization's incident response plan.
For a full SSH log triage with a timeline, severity call, containment steps and an escalation note, use the security log triage prompt for SSH timelines and next steps.
Triage and investigation
1. Auth log triage
Here are redacted auth log lines from [system] [paste]. Normal access is [describe]. Build a timeline, give a severity with the reason, and list read-only checks to run next.
2. Suspicious email review
Here are the headers and body of a reported email, with personal data removed [paste]. List the warning signs, what to check (sender domain, SPF, DKIM and DMARC results, link targets), and a short reply for the employee who reported it.
3. Alert explanation
Our monitoring raised this alert [paste]. Explain in plain words what it means, the common harmless causes, the common malicious causes, and what evidence would tell them apart.
Threat modeling and design
4. STRIDE threat model
Here is a description of our feature and data flow [paste]. Walk through STRIDE (spoofing, tampering, repudiation, information disclosure, denial of service, elevation of privilege) and list threats and mitigations for each component.
5. Secure design review questions
We are building [feature] that handles [data type]. Give me the security questions to answer in the design review, grouped by authentication, authorization, data storage, logging and third parties.
Incident response
6. Incident status update
From these facts [paste], write a short internal incident update: what happened, what we know, what we do not know yet, actions taken and the next update time. No speculation.
7. Incident timeline from notes
Turn these responder notes and chat snippets [paste] into a timeline with times, actions, and who did them. Mark any gap in time or missing owner.
8. Post-incident review agenda
Draft a blameless post-incident review agenda for [incident], with questions on detection, response, communication and follow-up actions with owners.
Policy, training and hardening
9. Hardening checklist
Give me a hardening checklist for [system, for example an Ubuntu web server with SSH]. For each item, say how to verify it is in place without changing anything.
10. Policy draft in plain language
Draft a one-page [policy, for example password and MFA] policy for a [size] company in plain language, with who it applies to, the rules, exceptions and how to ask for help.
11. Phishing awareness micro-lesson
Write a 5 minute phishing awareness lesson for [audience] with three realistic warning signs, what to do when unsure, and a two-question check at the end.
12. Small business security priorities
We are a [size] business using [tools]. Our current setup is [MFA, backups, updates, admin accounts]. Rank the five security fixes that matter most for us and how to check each one is done.
Worked example: a midnight SSH login
In the prompt's sample, a company web server shows 37 failed password attempts from one IP, then a successful password login to the backup account at 02:21, although password login was supposed to be off. The output rates it high severity, says the logs cannot show what the session did, preserves evidence before blocking the IP and locking the account, lists read-only checks for sudo use and new SSH keys, and drafts the escalation note the company's 1 hour rule requires.
Safe use of AI in security work
- Before you paste logs into a consumer AI tool, redact or anonymize real production IP addresses, hostnames, usernames and secrets. Replace public IPs with documentation ranges such as 192.0.2.x, 198.51.100.x or 203.0.113.x, or with private RFC 1918 addresses.
- Use these prompts only on systems and data you are authorized to work on, and only for defensive analysis.
- Verify every command before you run it, read-only checks first. Do not apply an AI-suggested firewall or blocklist rule until you have confirmed it will not lock out admins or other legitimate access.
- Legal and notification duties depend on your jurisdiction and contracts; involve your legal or compliance team.
PromptDig is not a security vendor or incident-response firm, and is not affiliated with OpenAI.
Related on PromptDig
For code-level reviews, see the Claude Code prompts for security and the Claude Code security review prompt. For pipelines, see the ChatGPT prompts for DevOps engineers and the CI/CD pipeline review prompt. More in the Coding hub, browse all prompts, or share your own security prompt.