Bewerken

Delen via


Create effective prompts

As with any Microsoft Copilot, a prompt refers to the text-based, natural language input you provide in the prompt bar that instructs Copilot for Security to generate a response. The quality of the response that Copilot for Security returns depends in large part on the quality of the prompt used. In general, a well-crafted prompt with clear and specific inputs leads to more useful responses by Copilot for Security.

Watch the following video to learn more about creating effective prompts:

To see the different ways you can create prompts in Copilot for Security, read Prompting in Copilot for Security.

Elements of an effective prompt

Effective prompts give Copilot for Security adequate and useful parameters to generate a valuable response. Security analysts or researchers should include the following elements when writing a prompt.

  • Goal - specific, security-related information that you need
  • Context - why you need this information or how you plan to use it
  • Expectations - format or target audience you want the response tailored to
  • Source - known information, data sources, or plugins Copilot for Security should use

List of available promptbooks

Every good prompt should have a goal. Whether it comes in the form of instructions or questions, it should indicate what you want out of your current session.

For Copilot for Security, context can mean such information as the time frame, or that you plan to use the response for a report. Expectations can include whether you want the response to be in a table format, a list of action steps, a summary, or even a diagram. Source might be useful in specifying which Microsoft plugins you're referring to, if needed. Some plugins require more context to work effectively or supporting plugins to ensure a response when initial responses fail.

Other prompting tips

Some things to remember when coming up with your own prompts:

  • Be specific, clear, and concise as much as you can about what you want to achieve. You can always start simply with your first prompt, but as you get more familiar with Copilot for Security, include more details following the elements of an effective prompt.

    • Basic prompt: Pearl Sleet actor
    • Better prompt: Can you give me information about Pearl Sleet activity, including a list of known indicators of compromise and tools, tactics, and procedures (TTPs)?
  • Iterate. Subsequent prompts are typically needed to either clarify what you need further, or try other versions of a prompt to get closer to what you're looking for. Like all LLM-based systems, Copilot for Security can respond to the same prompt in slightly different ways.

  • Provide necessary context to narrow down where Copilot for Security looks for data.

    • Basic prompt: Summarize incident 15134.
    • Better prompt: Summarize incident 15134 in Microsoft Defender XDR into a paragraph that I can submit to my manager and create a list of entities involved.
  • Give positive instructions instead of "what not to do". Copilot for Security is geared toward action, so telling it what you want it to do for exceptions is more productive.

    • Basic prompt: Give me a list of unmanaged devices in my network.
    • Better prompt: Give me a list of high-risk unmanaged devices in my network. If they're named "test", remove them from the list.
  • Directly address Copilot for Security as "You", as in, "You should ..." or "You must ...", as this is more effective than referring to it as a model or assistant.

​While these guidelines can help you get started in creating prompts, it’s important to note that you’re not limited to forming prompts following the structure of the previous examples. What’s great about Copilot for Security is that it's designed to respond to questions or instructions made in your own words (that is, using natural language).

You have the flexibility to adapt these guidelines to your specific needs.

Watch the following video to learn more about creating better prompts: