Published on 4 December 2026
A practical approach to protecting information when working and developing with artificial intelligence.
What Data Are We Exposing When We Use AI?
When we use AI for work or development, the information we provide often includes far more than what we type into a prompt.
A screenshot may reveal customer data. A log file may expose personal identifiers or access tokens. When refining an algorithm, a code snippet could reveal business rules or proprietary logic.
And if we consider that AI assistants integrated into IDEs and autonomous agents can automatically incorporate context, such as project documents, command outputs, repositories, and connected tools (JIRA, Redmine, etc.), we may be providing AI systems with a much broader set of information than we realize.
The goal of this article is to highlight a critical first step: always be aware of what information the AI receives, where that information comes from, and whether you are authorized to share it.
What Does the Law Say?
Artificial intelligence does not change the fundamental rules of data protection.
If the information we submit contains personal data, its use through an AI tool constitutes processing and must comply with the General Data Protection Regulation (GDPR) and Spain's Organic Law 3/2018 on Data Protection and Digital Rights (LOPDGDD). Among other requirements, there must be a defined purpose and a lawful basis for processing, and appropriate security measures must be applied. Principles such as data minimization must also be respected, meaning that only the data strictly necessary for the intended purpose should be used.
The role played by the AI provider is equally important. If the provider processes personal data on behalf of an organization and under its instructions, it will generally act as a data processor. In such cases, the relationship must be governed by the appropriate contractual arrangements, including the safeguards required under Article 28 of the GDPR.
In addition, if data is transferred to or accessible from countries outside the European Economic Area, international data transfer requirements must be assessed to ensure that a valid legal mechanism is in place. It is not enough to look at where the provider's headquarters are located; organizations need to understand where and how the service is actually delivered and where the data is stored.
Having access to information as part of our job does not automatically mean we are free to share it with any tool.
When handling personal data under company procedures and authorizations, we must follow the policies, guidelines, and instructions established by our organizations. This extends to confidentiality commitments with customers and suppliers, as well as cybersecurity requirements.
Source code, technical documentation, and business rules may also contain confidential information or trade secrets. Their protection will depend on the specific circumstances and on the measures adopted by the organization to keep them confidential.
The European AI Act (Regulation (EU) 2024/1689) adds another layer to this framework, but it does not replace the GDPR or national data protection legislation. Each regulation imposes different obligations. Compliance with AI-specific requirements does not exempt organizations from properly protecting personal data, confidential information, or trade secrets.
Practical Steps to Keep Data Under Control
Before using an AI assistant or agent, consider the following:
1. Identify the Information You Are Sending to AI
Review whether the data includes personal information, internal or confidential content, customer code, credentials, passwords, API keys, or other sensitive assets.
Do not forget to assess the files, repositories, and connected tools that the AI system may access automatically.
2. Verify That You Are Using the Right Tools
Use approved corporate AI tools that are authorized for your intended purpose.
Understand the applicable conditions, including:
- Whether data may be used for model training
- Data retention policies
- Third-party access
- Processing and inference locations
For example, model inference could be executed on infrastructure located in the United States or China.
The fact that an AI provider does not use your data for training is not, by itself, sufficient to demonstrate compliance with applicable regulations.
3. Minimize the Context You Provide
Share only what is necessary.
A small code fragment may be enough to solve a problem without exposing an entire application or repository.
Remove credentials and any information unrelated to the task. Whenever possible, use synthetic examples, anonymized datasets, or pseudonymized information.
Review comments, metadata, screenshots, and attachments as well, since sensitive information is often hidden there.
4. Restrict Assistant and Agent Permissions
Configure permissions so assistants and agents can access only the repositories, folders, connectors, and resources they genuinely need.
Understand:
- What context they automatically collect
- Which systems they can access
- What actions they are allowed to execute
This is particularly important when AI systems interact with production environments or business-critical data.
Following these steps will help you answer a series of important questions before exposing information to an AI system:
- Can I share this information?
- Do I need to share all of it?
- Am I using an approved and authorized environment?
And then verify the results afterwards:
- Does the generated response expose sensitive information?
- Has any confidential content been reproduced?
- Does the generated code introduce vulnerabilities or security risks?
Only after these checks should the output be incorporated into a project or business process.
Working effectively with AI requires understanding and controlling the information we make available to it, both the data we explicitly provide and the context accessed through assistants and agents.
Choosing the right environment, minimizing shared data, limiting permissions to what is strictly necessary, and reviewing outputs should become part of our everyday practice when working with AI.





