Questionário vinculado ao guia · Difícil Nível

Teste de vazamento de prompt e extração de prompt do sistema

Testa como funciona o vazamento de prompt, como ele difere da injeção de prompt e por que aplicativos seguros mantêm segredos e aplicação fora do prompt do sistema.

Pergunta 1 de 8

Por que não é possível garantir que um prompt do sistema permaneça secreto?

Visualize cada pergunta8 perguntas

As respostas e explicações aparecem conforme você responde ao teste.

  1. Por que não é possível garantir que um prompt do sistema permaneça secreto?
    • System prompts are stored on public servers
    • The model reads it as ordinary text in its context, and keeping it private is only a learned tendency
    • All APIs publish system prompts automatically
    • System prompts are deleted after each message
  2. Como o vazamento imediato difere da injeção imediata?
    • Eles são exatamente a mesma coisa
    • Leaking is about extracting hidden content, while injection is about making the model follow the attacker's instructions
    • Injection only affects images
    • Leaking only happens with open-source models
  3. O que foi revelado no conhecido vazamento do bate-papo Bing em fevereiro de 2023?
    • Microsoft's source code
    • User passwords
    • Instructions including the internal codename Sydney
    • Os dados de treinamento do modelo
  4. Qual abordagem o guia diz ser a maneira mais segura de lidar com uma chave de API que o aplicativo precisa?
    • Put it in the system prompt with a note saying 'keep this secret'
    • Encode it in base64 inside the prompt
    • Keep it in server-side code or a secrets manager and give the model scoped tools
    • Split it across several messages
  5. Por que filtros de saída simples não conseguem estancar um vazamento?
    • Filters slow the model too much to be used
    • Attackers can ask for the prompt paraphrased, translated or extracted a piece at a time
    • Filters only work on images
    • Output filters block all responses
  6. What is the purpose of placing a canary string in a system prompt?
    • To make the model answer faster
    • To detect in logs when the prompt has been leaked
    • To encrypt the prompt
    • To prevent all injection attacks
  7. A support bot's refund limit is written in its prompt and also enforced in the backend. What happens if the prompt leaks?
    • Users can now issue unlimited refunds
    • The rule becomes known but cannot be bypassed because the backend still enforces it
    • The bot shuts down
    • The refund limit is automatically deleted
  8. Which document listed system prompt leakage as its own risk in its 2025 edition?
    • The OWASP Top 10 for LLM Applications
    • O RGPD
    • The HTTP specification
    • The Unicode standard