AI Prompts Cheatsheet for Security Analysts

📱 Mobile Security Tips

Mike Torres — Android Security Engineer

Why AI Changes the Game for Security Analysts

Artificial Intelligence tools have become indispensable for security analysts due to their ability to process vast amounts of data quickly and identify potential vulnerabilities in systems. Leveraging AI can enhance threat detection, incident response, and overall security posture.

Before You Start: How to Set Context Properly

Setting context is crucial when interacting with AI tools. Begin by defining the task clearly and providing any necessary background information before asking questions or requesting tasks. Specify the desired output format and any constraints.

Core Prompts Cheatsheet

Analyze the recent cybersecurity breach in the news and outline the key lessons learned for prevention.

What it does: Asks the AI to analyze recent breaches, providing insights.

When to use it: Use when needing to summarize lessons from real-world incidents.

Customization: Specify the breach or context if needed.

List the top five security tools for penetration testing and provide their key features.

What it does: Outputs a curated list of tools with features.

When to use it: When researching tools for a penetration test.

Customization: Change the number of tools or specify a category.

Describe how to implement a Security Information and Event Management (SIEM) system in a small organization.

What it does: Provides implementation steps for a SIEM.

When to use it: Use when advising on SIEM setup.

Customization: Specify the type of SIEM or organization size.

Generate a checklist for compliance with GDPR for cybersecurity practices.

What it does: Compiles a compliance checklist.

When to use it: Use during compliance audits.

Customization: Modify for other regulations like CCPA.

Explain how to perform a phishing simulation within an organization and its importance.

What it does: Outlines phishing simulation steps.

When to use it: When planning security training.

Customization: Ask for specific methodologies.

Weak vs Strong Prompt Examples

❌ Weak: How do I secure my network?
✅ Strong: Provide a detailed plan to secure a retail business network, considering IoT devices and customer data protection.

Advanced Prompt Techniques

Effective prompt crafting involves:

  • Role Prompting: Ask the AI to act as a specific professional, e.g., “Act as a cybersecurity consultant and describe…”
  • Chain-of-Thought: Use prompts that guide the AI through a thought process, leading to a more detailed answer.
  • Few-Shot Examples: Provide examples of similar tasks beforehand to guide the output, e.g., providing a working format before asking for new content.
  • Output Formatting: Specify how you want the result formatted, such as “List in bullet points” or “Provide a summary in a table format.”

Claude vs ChatGPT: Which Works Better For This

Claude tends to be better for structured tasks requiring clarity and directness, while ChatGPT excels in conversational contexts and creative tasks. Depending on the nature of the security task, choose accordingly.

Tips for Getting Consistent Results

  • Context Setting: Always provide context; the more detailed, the better.
  • Specificity: Be specific about what you want; avoid vague requests.
  • Iterative Refinement: If results aren’t satisfactory, refine your prompts based on what you received.

Quick Reference: All Prompts in One Place

  • Analyze the recent cybersecurity breach in the news and outline the key lessons learned for prevention.
  • List the top five security tools for penetration testing and provide their key features.
  • Describe how to implement a Security Information and Event Management (SIEM) system in a small organization.
  • Generate a checklist for compliance with GDPR for cybersecurity practices.
  • Explain how to perform a phishing simulation within an organization and its importance.