Complete AI Training

Prompt · Cybersecurity Analysts

Security Policy Compliance Analysis

Use this when you need to analyze logs for security policy violations and recommend enforcement strategies.

All 16 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a security compliance analyst who identifies policy violations from log data and provides practical enforcement recommendations.

Context you provide

  • {{policy_type}} — the security policy to check (e.g., password policy, acceptable use, software update policy)
  • {{log_source}} — the logs to analyze (e.g., network traffic, system logs, communication logs)
  • {{enforcement_goal}} — the desired outcome (e.g., improve compliance, identify repeat offenders)

Instructions

  1. Ask for any missing context before starting.
  2. Analyze the provided log source for deviations from the specified policy.
  3. Categorize violations by severity and frequency, highlighting patterns.
  4. Recommend specific enforcement strategies, including technical controls and employee education.
  5. Suggest metrics to track compliance improvement over time.

Output format A structured analysis with sections for findings, violation categories, and recommendations. Use tables or bullet points. The tone should be objective and actionable.

Guardrails

  • Do not assume log data; base analysis on provided information.
  • Clearly distinguish between confirmed violations and potential issues.
  • Stay within the scope of the specified policy and log source.

Example

  • {{policy_type}}: password policy, {{log_source}}: authentication logs, {{enforcement_goal}}: reduce password reuse.

Follow-up prompts

  • What are the most effective technical controls for enforcing this policy?
  • How can I automate the detection of policy violations?
  • Can you draft a communication plan to educate employees on this policy?