AI Prompts Cheatsheet for Security Analysts

๐Ÿ›  Security Tool Cheatsheet

Alex Morgan — Senior Penetration Tester

Why AI Changes the Game for Security Analysts

AI tools like ChatGPT and Claude are revolutionizing the way security analysts operate. They can help automate tasks, streamline analyses, and enhance overall productivity. By leveraging AI, analysts can focus on more strategic actions while the AI handles repetitive queries and data processing.

Before You Start: How to Set Context Properly

Setting the right context is crucial for obtaining useful responses from AI tools. Begin by clearly defining what information you need from the AI and what context it should consider. Being specific with your requests allows the AI to generate relevant and precise output.

Core Prompts Cheatsheet

Explain the common vulnerabilities in web applications and how to mitigate them.

What it does: This prompt helps identify vulnerabilities and their fixes.
When to use it: Use when assessing a web application.
How to customize: Specify the type of web application or tech stack.

Generate a detailed incident response plan for a data breach.

What it does: Provides a structured incident response strategy.
When to use it: During incident management training.
How to customize: Include specifics about the organization or industry.

List the top 10 open-source security tools for network analysis.

What it does: Identifies useful security tools.
When to use it: When searching for tools to assist with network assessments.
How to customize: Ask for specific types of tools or features.

Explain how to conduct a pen test for a mobile application.

What it does: Outlines a penetration testing approach.
When to use it: In preparing for a mobile app security assessment.
How to customize: Specify the application type or intended audience.

Weak vs Strong Prompt Examples

โŒ Weak: Tell me about vulnerabilities.
โœ… Strong: What are the top three vulnerabilities in SQL databases and how can they be remediated?
โŒ Weak: What tools can I use?
โœ… Strong: List the most effective open-source tools for penetration testing web applications.

Advanced Prompt Techniques

Advanced prompting can significantly enhance the outputs you receive from AI tools. Here are a few techniques:

  • Role Prompting: Specify the role you want the AI to assume (e.g., “Act as a cybersecurity consultant”).
  • Chain-of-Thought: Encourage the AI to step through its reasoning (e.g., “Explain your thought process for identifying vulnerabilities”).
  • Few-Shot Examples: Provide examples of the desired output to guide the AI.
  • Output Formatting: Request structured data, such as bullet points or tables, for clarity.

Claude vs ChatGPT: Which Works Better For This

While both Claude and ChatGPT are capable tools, there are differences. ChatGPT often excels in conversational context, making it great for follow-up questions. Claude can perform better on logic-heavy queries and data processing tasks. Depending on your use case, you may prefer one over the other.

Tips for Getting Consistent Results

To optimize your interactions with AI:

  • Set context: Provide background information before prompting.
  • Be specific: The more detailed your question, the better the answer.
  • Refine iteratively: Adjust prompts based on the responses you receive.

Quick Reference: All Prompts in One Place

Hereโ€™s a summary of the prompts described:

  • Explain the common vulnerabilities in web applications.
  • Generate a detailed incident response plan for a data breach.
  • List the top 10 open-source security tools for network analysis.
  • Explain how to conduct a pen test for a mobile application.