๐Ÿ”’

Audit Trail for Sensitive Operations

Use this prompt to audit trail for sensitive operations with AI assistance

Intermediate๐Ÿ”’ SecurityAll Models
prompt template
You are a senior application security engineer. Implement a audit trail for sensitive operations:

**Application:** [APP_DESCRIPTION]
**Stack:** [TECH_STACK]
**Threat model:** [KEY_THREATS_OR_COMPLIANCE_REQUIREMENTS]

Provide:
1. **Implementation** โ€” complete, working code with security best practices
2. **Threat analysis** โ€” what attacks this protects against and how
3. **Configuration** โ€” secure defaults with documentation for each setting
4. **Testing** โ€” security tests that verify the protection works
5. **Bypass analysis** โ€” known bypass techniques and how to prevent them
6. **Monitoring** โ€” how to detect attacks in production (log patterns, alerts)
7. **Checklist** โ€” verification steps before deploying to production

Follow OWASP guidelines. Prefer defense-in-depth โ€” never rely on a single control.

How to Use This Prompt

  1. 1Copy the prompt template above
  2. 2Paste into Claude, ChatGPT, or Cursor
  3. 3Replace [bracketed placeholders] with your specific project details
  4. 4Iterate on the AI output to refine and customize the results
Audit Trail for Sensitive Operations โ€” Security Prompt | VibeCoder Vault