1200
627
Written by
Simon Jackson
Simon bring more than 20 years of experience in cloud architecture, networking, infrastructure design. He holds a BSC in Physics from Lancaster University and a postgraduate Master's programme in Cloud Computing from Caltech CMTE as well as holds the globally respected CISSP certification. His academic and professional background spans Microsoft Azure, Amazon Web Services (AWS) and Google Cloud Platform (GCP), underpinned by a strong focus on AI, DevOps and Automation.
Introduction: When Prompts Stop Attacks
In March 2025, a major UK financial institution narrowly avoided a multi-million-pound ransomware attack. The difference? A SOC analyst used a well-crafted prompt with their AI assistant to spot lateral movement in logs that would have otherwise gone unnoticed. As AI becomes a core part of cyber defence, prompt engineering is no longer a “nice to have” – it’s essential.
What Is Prompt Engineering (and Why Does It Matter)?
Prompt engineering is the art and science of communicating with AI tools to get the most accurate, actionable, and secure results. In cyber security, this means:
- Detecting threats faster
- Reducing false positives
- Automating incident response
- Staying ahead of attackers who are also using AI
According to the UK National Cyber Security Centre (NCSC), over 70% of UK critical infrastructure organisations now use AI-driven tools for threat intelligence and SOC automation (NCSC, 2025). ENISA reports similar adoption across the EU, and attackers are not far behind: AI-generated phishing and ransomware are on the rise (ENISA TL, 2025).
Real-World Scenario: The Analyst’s Prompt
Imagine you’re a security analyst. You receive an alert about suspicious outbound traffic. Instead of sifting through thousands of log lines, you prompt your AI assistant:
“List all failed SSH login attempts from external IPs in the last 24 hours.”
Within seconds, you have a focused report. You follow up:
“Summarise any lateral movement patterns using MITRE ATT&CK TTPs.”
The AI highlights a potential breach path. You’re able to escalate and contain the threat—minutes, not hours, after the initial alert.
The Prompt Engineering Checklist for Security Teams
- Be Clear and Specific
- Specify timeframes, data sources, and output format.
- Provide Context
- Reference frameworks (e.g., MITRE ATT&CK, NIST, ENISA).
- Think Security-First
- Never include sensitive data in prompts; use anonymised examples.
- Iterate and Refine
- Test, review, and improve prompts based on results and feedback.
- Document and Share
- Build a prompt library for your team.
Common Mistakes (and How to Avoid Them)
- Vague prompts: “Show me threats.” → Instead: “List all failed admin logins from 1–7 January 2026.”
- Overly broad requests: “Summarise all logs.” → Instead: “Summarise all logs flagged as suspicious by the Secure Email Gateway since 1 January 2026.”
- Ignoring context: Always specify the system, timeframe, and threat model.
- Not reviewing output: Always check AI results for accuracy and completeness.
Key Facts and Latest Research
- 74% of UK public sector organisations report improved threat detection with AI (NCSC, 2025).
- 64% of large EU enterprises have integrated AI into their security operations (ENISA, 2025).
- 38% of EU enterprises experienced at least one AI-powered phishing attempt in 2025 (ENISA, 2025).
- 59% of CISOs plan to invest in prompt engineering training by 2027 (Gartner, 2026).
- The average cost of a data breach in the UK reached £3.4 million in 2025 (IBM Security, 2025).
- 41% of breaches in 2026 involved some form of AI-generated attack (Verizon DBIR, 2026).
- ENISA reports a 200% increase in AI-powered ransomware campaigns across Europe between 2024 and 2026 (ENISA, 2026).
- 1 in 5 UK businesses suffered a successful phishing attack in the past year (UK Government Cyber Security Breaches Survey, 2025).
Actionable Prompts for Security Operations
- “Identify any lateral movement patterns in the last 7 days using MITRE ATT&CK TTPs.”
- “Summarise all emails flagged as suspicious by the Secure Email Gateway since 1 January 2026.”
- “Generate a step-by-step containment plan for a detected ransomware attack.”
- “List all critical CVEs affecting our Windows servers, with remediation steps.”
The Future: Why Every Security Team Needs Prompt Engineering
AI is now a core part of cyber defence in the UK, EU, and globally. Attackers are using it, and so must we. Prompt engineering is the bridge between human expertise and AI power. By mastering it, you’ll:
- Detect threats faster
- Respond more effectively
- Reduce analyst fatigue
- Stay ahead of evolving threats
Start building your prompt engineering skills today—your organisation’s security may depend on it.