Your First Security Prompts
The quality of an AI's answer depends almost entirely on the quality of your question. A vague prompt gets a vague, generic answer. A well-structured prompt turns a general chatbot into a focused security assistant. In this lesson you'll learn a simple prompt formula and practice it on real security tasks, so every lab that follows becomes easier.
What You'll Learn
- A simple four-part formula for writing strong security prompts
- How to give the AI a "role" so it behaves like a security analyst
- How to control the format of the answer so it's usable at work
- Ready-to-use prompt templates you'll reuse throughout the course
Why Prompting Is a Real Skill
Imagine asking a new colleague "look at this email." They might tell you the wrong thing because they don't know what you actually need. Now imagine asking "You're a phishing analyst. Read this email and list every red flag, then give a verdict of safe, suspicious, or malicious with a one-line reason." The second request gets a useful, consistent answer.
AI works the same way. It has read a huge amount of security knowledge, but it needs you to point it in the right direction. Good prompting is how you point.
The R-T-C-F Formula
An easy way to remember the parts of a strong prompt is R-T-C-F: Role, Task, Context, Format.
Role — Tell the AI who to be. "You are a SOC (Security Operations Center) analyst." This activates the right knowledge and tone.
Task — State exactly what you want done. "Analyze this email for phishing indicators."
Context — Give the material and any background. "This email was reported by an employee in our finance team."
Format — Say how you want the answer. "Respond as a table with columns: Indicator, Why it's suspicious, Severity."
Put together, RTCF turns a one-line question into a precise instruction:
Role: You are an experienced SOC analyst helping a junior teammate.
Task: Analyze the email below for signs of phishing.
Context: An employee in accounts payable reported it as suspicious.
Format: Give me (1) a verdict (Safe / Suspicious / Malicious),
(2) a bullet list of red flags, and (3) one recommended next step.
Keep it under 200 words.
Email:
[paste the email here]
You'll reuse this exact shape again and again. Save it somewhere you can copy from.
Try It Now: Explain a Concept
Open ChatGPT, Claude, or Gemini and paste:
Role: You are a cybersecurity tutor for a total beginner.
Task: Explain what a "SOC analyst" does in a typical day.
Format: 5 short bullets, plain English, no jargon without a definition.
Notice how naming the role and format gives you a clean, beginner-friendly answer instead of a wall of text.
Try It Now: Decode Jargon on Demand
Security is full of acronyms. AI is a fantastic on-demand translator. Try:
Explain these security terms to a beginner, one simple sentence each:
IOC, SIEM, TTP, phishing, false positive, threat hunting.
Keep this trick in your back pocket. Whenever a lab uses a word you don't know, ask the AI to define it before moving on. You never have to feel lost.
Controlling the Output Format
The "Format" part of RTCF is where beginners gain the most. The same analysis can be delivered as a paragraph, a table, a checklist, or a ready-to-paste ticket. Compare these two endings to a prompt:
- "Explain your reasoning." → You get a long essay.
- "Answer only as a table: Indicator | Severity (Low/Med/High) | Reason." → You get a scannable table you can drop into a report.
At work, format matters because your answer often becomes someone else's ticket, email, or dashboard entry. Try asking for the same phishing analysis "as a Slack message to my manager" and then "as a formal incident note." Same facts, different packaging, both in seconds.
Iterate: The Follow-Up Is Where the Magic Happens
Your first prompt rarely gets everything perfect, and that's fine. AI remembers the conversation, so you refine instead of restarting. Useful follow-ups include:
- "Now rank those red flags from most to least serious."
- "Shorten this to three bullets a busy manager will read."
- "What extra information would you need to be more confident?"
That last one is powerful for security. Asking the AI what it's unsure about surfaces the limits of its answer and reminds you to verify.
A Reusable Starter Pack
Copy these into a notes file. You'll adapt them in the labs ahead:
Phishing check:
Role: SOC analyst. Task: Is the email below phishing?
Format: Verdict + red flags + one next step. Under 150 words.
Email: [paste]
Log explainer:
Role: Security analyst. Task: Explain what these log lines mean
and flag anything unusual. Format: Plain English + a short
"Investigate?" yes/no with reason.
Logs: [paste]
Jargon buster:
Explain [TERM] to a beginner in 2 sentences with a tiny example.
Key Takeaways
- Answer quality follows question quality. Prompting is a genuine, learnable skill.
- Use the R-T-C-F formula: Role, Task, Context, Format.
- Giving the AI a role like "SOC analyst" focuses its knowledge and tone.
- Controlling the Format makes answers immediately usable as tickets, tables, or messages.
- Iterate with follow-ups, and ask "what would make you more confident?" to expose the limits of any answer.

