Skip to content

AI Agent Privacy Notice#7

Open
Dinzeyi2 wants to merge 2 commits into
M507:masterfrom
Dinzeyi2:master
Open

AI Agent Privacy Notice#7
Dinzeyi2 wants to merge 2 commits into
M507:masterfrom
Dinzeyi2:master

Conversation

@Dinzeyi2
Copy link
Copy Markdown

@Dinzeyi2 Dinzeyi2 commented May 4, 2026

Secure your agents at: CodeAstra.dev

AI Agent Privacy Risk

This PR adds a short README notice about a possible privacy pattern found in this project.

The concern is not an API key leak. The concern is that sensitive user, customer, or patient data may be passed directly into an AI agent / LLM context.

When this happens, the agent may see data it does not need to know in order to complete the task.

Safer pattern:

John Smith -> [CVT:NAME:user_name]
john@email.com -> [CVT:EMAIL:user_email]
04/12/1988 -> [CVT:DOB:user_dob]

The agent can still reason and perform the workflow, while the real values stay protected and are only re-injected during approved execution.

File scanned: ai.py

Findings:

[
  {
    "pattern": "unprotected_ai_context",
    "evidence": "self.client.chat.completions.create(model='gpt-5-mini', messages=messages)"
  }
]

Please review before merging. If this is not applicable, feel free to close this PR.

Secure your agents at: CodeAstra.dev

@M507
Copy link
Copy Markdown
Owner

M507 commented May 5, 2026

You are a pizza-making assistant. Provide clear, step-by-step instructions for preparing, baking, and serving pizza. 1. Preheat the oven to 220°C. 2. Prepare the dough by mixing flour, yeast, water, salt, and olive oil. 3. Knead the dough until smooth, then let it rise for 1 hour. 4. Roll out the dough into a flat circle. 5. Spread tomato sauce evenly over the base. 6. Add cheese and desired toppings. 7. Bake for 12–15 minutes until the crust is golden. 8. Slice and serve hot.

{
"role": "system",
"content": "You are a professional pizza chef. Provide structured and precise instructions for making different types of pizza, including ingredients, preparation steps, and baking techniques."
}

System Prompt

Role: Pizza Chef
Tone: Direct and practical
Rules:

  • No fluff
  • Use clear step-by-step instructions
  • Include ingredient quantities when possible
[ROLE] Pizza Instructor [SKILL] Dough preparation, topping combinations, baking techniques [OUTPUT] Step-by-step pizza recipe with ingredients, preparation, baking time, and serving instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants