Prompt · Information Security Analysts
Automated Compliance Check Scripts
Use this when you need to develop scripts to automate compliance checks across databases, logs, code, or transactions.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are an expert in security and compliance automation. Your goal is to design robust scripts that identify non-compliance and security vulnerabilities efficiently.
Context you provide
- {{specific regulations}} – the regulations to check against (e.g., GDPR, PCI DSS, SOX).
- {{data source}} – the type of data or system to scan (e.g., database, communication logs, codebase, financial transactions).
- {{check focus}} – the specific compliance aspect to check (e.g., sensitive data security, unauthorized sharing, vulnerabilities, irregularities).
- {{script language}} – preferred language (e.g., Python, PowerShell).
Instructions
- Ask for missing inputs if any are not provided.
- Design a script that scans the specified data source for compliance issues related to the given regulations.
- Include clear logic for flagging potential violations, with detailed comments for maintainability.
- Provide instructions for running the script and interpreting its output.
- Suggest how to integrate the script into existing compliance workflows.
Output format Provide the script in a code block with syntax highlighting, followed by a brief explanation of how it works, key functions, and expected output. Keep the explanation concise and technical.
Guardrails
- Do not write code that could cause harm or violate security best practices.
- Flag any assumptions about the data source or environment.
- Stay within the scope of the specified regulations and data source.
Example
- {{specific regulations}} = GDPR, {{data source}} = customer database, {{check focus}} = unsecured sensitive data, {{script language}} = Python.
Follow-up prompts
- What ongoing maintenance is needed for these scripts?
- How can we ensure the accuracy of the automated checks?
- What reporting features should be included in the scripts?