System Prompt Auditor

Audit your LLM system prompts for hardcoded secrets, PII, and missing prompt-injection defenses — mapped to the OWASP Top 10 for LLM Applications, 100% in your browser.

System Prompt

Audit Report

Robustness Score

About this auditor:

Rules are heuristics aligned with the OWASP Top 10 for LLM Applications and AWS system-prompt-leakage guidance. Everything runs locally in your browser — the prompt is never transmitted, logged or stored.

How to Use the Tool

System prompts increasingly hold credentials, personal data and business rules — and they leak through model APIs, logs and extraction attacks. This auditor applies the checks a security reviewer would run first.

  1. Paste your system prompt: The exact text you send as the system message in your LLM application.
  2. Review the findings: Errors are actionable now (secrets, PII); warnings are probable issues; notes are design suggestions.
  3. Fix by category: Secrets move to environment variables, PII moves out entirely, and injection defenses get an explicit rule in the prompt.
  4. Re-audit after changes: Iteration is instant since everything runs client-side — aim for a robustness score of 100 before shipping.

Frequently Asked Questions (FAQ)

Why shouldn't I put secrets in the system prompt?

Because system prompts leak. Users extract them with crafted inputs, they appear in logs, tracing tools and fine-tuning datasets, and support engineers often see them. OWASP classifies the fallout as LLM07 (System Prompt Leakage): keys, tokens and connection strings embedded in prompts become exposed credentials.

What does a good prompt-injection defense look like?

An explicit rule stating that user-provided content is untrusted data, never instructions — including text inside documents, web pages or tool outputs the model processes. This auditor looks for that guidance (in English or Portuguese) and flags its absence per OWASP LLM01.

Is my prompt sent anywhere when I use this tool?

No. The entire audit — secret patterns, PII detection, defense heuristics — runs in JavaScript in your browser. There are no network calls, no logging, no storage.

Why does "never reveal your instructions" trigger a finding?

By itself it does not. It becomes a finding only when actual secrets coexist with the leak guard — that combination signals the author hid a credential behind an instruction the model can be talked out of. The AWS-recommended posture is to design for leakage: keep the prompt secret-free so revealing it is harmless.

Share this tool