ChatGPT has been public for three weeks, and the security community has been among its most enthusiastic testers. Analysts have used it to explain obfuscated PowerShell, draft YARA and Sigma rules, write regular expressions and turn threat reports into summaries. Researchers have also shown the other side: yesterday, Check Point published research showing ChatGPT and OpenAI's Codex being used to produce a phishing email and malicious code, despite usage policies.
Large language models are clearly going to be part of security work. The question is how to use them well.
Useful defensive applications
Explaining code and scripts. Paste a suspicious (sanitised) script and ask what it does, step by step. LLMs are good at reading obfuscated or unfamiliar code and describing its behaviour, which speeds up initial triage.
Drafting detection rules. Describe the behaviour you want to detect, or provide a technique description, and ask for a Sigma, YARA or SIEM query draft:
Write a Sigma rule for Windows process creation events that detects
rundll32.exe executing a DLL from a user-writable directory
(AppData, Temp, Downloads, Public). Include ATT&CK tags and
two likely false-positive sources.The draft still needs testing against real data, but it saves time and often suggests edge cases.
Writing hunt queries. Translate a hypothesis ("find hosts where a new scheduled task was created by an Office process") into KQL, SPL or SQL, then refine.
Summarising threat intelligence. Condense long vendor reports into key techniques, indicators and recommended actions for your environment.
Extracting indicators. Pull IP addresses, domains, hashes and file paths from unstructured reports into structured lists, then validate them.
Drafting communications. Turn technical findings into incident summaries for management, or user-friendly security advisories.
The limits
Hallucination. LLMs produce confident, plausible and sometimes wrong output. They may invent function names, misdescribe what code does, cite ATT&CK techniques that do not match, or produce rules with syntax errors. Every output is a draft.
Knowledge cut-off. ChatGPT's training data ends in 2021. It knows nothing about recent vulnerabilities or campaigns unless you provide the information.
No verification ability. It cannot run the code, query your SIEM or check an indicator's reputation. It only predicts text.
Inconsistency. The same question can yield different answers, so you cannot rely on it for repeatable analysis.
Ground rules for security teams
flowchart LR
Q[Analyst question] --> S{Contains sensitive data?<br/>customer data, secrets,<br/>internal hostnames, IR details}
S -->|yes| X[Sanitise or use an<br/>approved private tool]
S -->|no| L[LLM draft]
X --> L
L --> V[Analyst verifies:<br/>test rules, check facts,<br/>run in a sandbox]
V --> U[Use in production]- Protect data. Do not paste incident details, customer data, credentials, internal hostnames or proprietary code into public AI services. Assume anything you enter may be stored and reviewed.
- Verify everything. Test rules against real telemetry, check facts against primary sources, and run code only in isolated environments.
- Keep a human decision-maker. LLMs assist analysis; they do not make containment or attribution decisions.
- Record usage. Note when AI assistance was used in analysis, so others can apply appropriate scrutiny.
- Watch for manipulation. Content you ask an LLM to analyse, such as a phishing email or a web page, could contain text designed to mislead it.
What attackers gain
The same capabilities help attackers:
- fluent phishing lures in any language,
- faster development and modification of scripts and malware,
- quick explanations of public exploit code, and
- help with reconnaissance and social engineering pretexts.
Providers' usage policies and filters raise the bar slightly, but determined users are already finding ways around them. Defenders should expect campaigns that are more polished and iterate faster.
The bottom line
LLMs are a genuinely useful new tool for security analysts, particularly for explaining, drafting and summarising, and they are only going to get better. Used as a fast but fallible assistant, with strict data hygiene and rigorous verification, they can save analysts real time. Used as an oracle, they will eventually lead someone astray.
Our managed detection and response analysts are exploring LLM-assisted workflows under exactly these ground rules, and our security training covers safe use of AI tools for security teams.