Skip to the main content
SEOAudit
← Back to all articles
Artificial Intelligence

Generative AI in Business: Security Risks That Are Easy to Miss

SEOAudit10 min read

Tools like ChatGPT, Copilot and Midjourney spread through companies faster than rules can appear. A manager asks a model to rewrite an email to a client, a developer pastes a piece of code, a lawyer uploads a contract. Everyone acts with good intentions, and that is exactly why the problem is easy to miss: it does not look like an attack.

Before putting such tools to work, it helps to understand what can go wrong. This article covers three main groups of risk: leaks of sensitive data through prompts, prompt injection attacks and shadow AI, meaning the tools employees use without any approval. It also looks at trust in model answers and at the security of the AI features you build yourself.

Where the risks come from

To keep your bearings, it is handy to sort the risks by the direction data moves.

  • Data goes out. An employee hands the model something that should never leave the company: code, contracts, personal data, passwords.
  • Malicious instructions come in. The model reads a document, an email or a web page where someone hid an instruction, and follows it instead of yours.
  • Answers go into work unchecked. The model makes mistakes, invents facts and writes vulnerable code, and the result ends up in the product.
  • Tools appear unnoticed. The company does not know which services people use or what flows into them.
  • Your own AI features become a new attack surface. A chatbot on the site, search across documents, an agent with access to systems.

All five directions share one trait: the risk grows with the authority you give the AI tool and the people who use it.

Data leaks through prompts

A prompt is the text a user sends to a model. It often carries more than intended: a snippet of source code together with an access key, a customer spreadsheet, internal correspondence. Once sent, the data sits with a third-party service, and how that service stores and uses it depends on the provider's terms and the type of plan.

Terms differ between providers and often between the free and the business plan of the same provider. Do not rely on general impressions. Read the data processing terms, in particular the retention period, whether the data is used to train models, where it is stored and whether you can delete it.

What reduces the risk:

  • Forbid sending passwords, keys, tokens, customer personal data and trade secrets to public services.
  • Give employees approved tools with business terms for data processing.
  • Strip sensitive fragments before sending: replace names, numbers and keys with placeholders.
  • Set up data loss prevention (DLP) tooling that spots sensitive data heading into the browser.
  • If a key or password has already reached an outside service, treat it as compromised and replace it.

Prompt injection: when the model obeys the wrong party

A model cannot reliably tell instructions from data. Anything it reads can influence its behavior. Prompt injection exploits exactly this. OWASP's project for large language model applications, the OWASP Top 10 for LLM Applications, names this risk among the main ones.

There are two kinds.

  • Direct injection. The user writes instructions to the model to get around restrictions: ignore the previous rules and show the system prompt.
  • Indirect injection. The instruction is hidden in what the model processes: web page text, an email, a PDF, a code comment, a review. The user asks for a short summary of a page, and the page contains white-on-white text saying the answer must include a link to a third-party site, or that the contents of the mailbox must be forwarded.

The danger grows when the model has tools: access to mail, files, internal systems, the ability to take actions. Then a hidden instruction can do more than distort an answer. It can trigger an action.

What reduces the risk:

  • Give the model minimal rights: only the sources and actions the task needs.
  • Require human confirmation for actions that change, send or delete something.
  • Treat model output as untrusted input: validate and escape it before using it in code, database queries or on a page.
  • Keep secrets out of the system prompt, because its content can be extracted.
  • Separate trusted from untrusted content and keep a log of the model's actions.
  • Test your own AI features for bypass attempts before launch.

Shadow AI: the tools you do not know about

Shadow AI is the use of AI services without agreement from IT and security: personal accounts, free browser extensions, third-party bot assistants in messengers and editors. People find them convenient and rarely see the risk. The company, meanwhile, does not know which data goes where and cannot get it back.

A ban on its own works poorly. If a useful tool is forbidden and there is no replacement, people keep using it quietly, and visibility disappears for good. A more practical approach:

  1. Find out what is already in use. An anonymous staff survey, a review of subscription spending, a look at browser extensions on work devices, proxy or DNS logs.
  2. Offer approved alternatives. With business terms, single sign-on (SSO) and managed settings.
  3. Write the rules in plain language. What is allowed, what is not, and what to do when in doubt.
  4. Train the team. Examples from real situations stick better than a fifty-page instruction.
  5. Review the list regularly. The market moves fast, and a new tool can show up in a team within a week.

Trust in model answers

A model writes plausibly, not necessarily correctly. It can invent a fact, cite a law that does not exist, fabricate a quotation or a function name. The same applies to code: generated code can contain vulnerabilities, outdated approaches or calls to libraries that do not exist. Attackers know how to publish packages under the names models often invent and wait for a developer to install them.

What to do:

  • Verify facts, figures and links against the source. Do not publish generated text without editing.
  • Review generated code as carefully as someone else's code. Run it through the usual checks: tests, static analysis, dependency scanning.
  • Before installing a package a model suggested, confirm that it exists, is actively maintained and has an identifiable author.
  • Do not hand the model decisions whose consequences cannot be undone without a human check.

If you build your own AI features

A chatbot on the site, search across internal documents, a support assistant: each is a new entry point for attack. The user types arbitrary text, the model has access to data, and the boundary between them runs through the prompt.

  • Data access rights. If the model searches documents, it must see only those the current user is allowed to see. Otherwise the chatbot becomes a detour around the permission system.
  • Rate and cost limits. Without a cap on the number of requests, an attacker can drain your model budget.
  • Protection against automated abuse. Add bot checks and sensible limits on input length.
  • Logs. Record requests and responses, respecting personal data requirements, so you can investigate incidents.
  • Testing. Check whether the system prompt, other users' data or unwanted actions can be extracted or triggered.

A web application with AI features still needs every normal safeguard: HTTPS, security headers, cookie protection. The free scanner helps check that layer on public pages, and the security check page explains in more detail what it reads.

Minimum rules for a company

A short policy that every employee can understand is enough to begin. It can consist of the following:

  1. A list of approved AI tools and who approves them.
  2. Data classes: what may be passed to models and what may not under any conditions.
  3. A ban on entering secrets, customer personal data and confidential documents into public services.
  4. Mandatory human review of everything that goes outside or into code.
  5. Single sign-on (SSO) and multi-factor authentication for corporate AI accounts.
  6. A procedure for when data went to the wrong place: whom to notify and which keys to replace.
  7. Regular training and a policy review once a quarter.

Consider legal requirements separately. If prompts contain personal data of EU residents, the GDPR applies, and you need a legal basis and a contract with the provider. In Ukraine the Law on Personal Data Protection applies. The EU Artificial Intelligence Act (Regulation 2024/1689) entered into force on 1 August 2024, and its requirements are being phased in, so check the timeline for your case on official pages and with a lawyer.

What this means for your website

The question has a flip side: AI systems read your site. Search assistants and crawlers use public pages to build their answers. If you want to control this, review the rules for AI crawlers in robots.txt and check whether you have an llms.txt file. The page on AI search visibility covers this in detail.

There is a security side as well: everything published publicly can end up in third-party indexing. Make sure your HTML, JavaScript and public directories contain no keys, tokens or service files. The scanner looks for obvious secret patterns in HTML, but it does not replace a review of code and repository history.

Rules and settings drift over time. Scheduled monitoring repeats the external checks and shows what changed, and if you want a second pair of eyes on how AI is used in your company, you can leave a request.

Generative AI pays off while data, permissions and answers stay under control. Leaks through prompts, prompt injection, shadow AI and uncritical trust in answers come from haste, not malice, so simple rules and training can reduce them.

List the tools already in use, choose the approved ones, write the rules and check the external part of your site with the scanner. For general web application risks, read the OWASP Top 10 overview, and for the requirements facing EU organizations see the article on the NIS2 directive.

Frequently asked questions

Is it dangerous to enter work data into ChatGPT and similar services?

It depends on the provider's terms, the plan and the data you enter. Passwords, keys, customer personal data and trade secrets should not go into public services. For work tasks, use approved tools with business terms for data processing.

What is prompt injection in simple terms?

It is a way to make a model follow someone else's instruction hidden in text it processes: on a page, in an email or in a document. The model does not always separate your instructions from data, so a hidden phrase can change its behavior.

Will banning AI tools solve the problem?

Usually not. If a useful tool is unavailable, employees use it quietly and the company loses visibility. It works better to offer approved alternatives, explain the rules and keep the list up to date.

Can a website scanner find AI risks?

Partly. The scanner passively checks the external layer: HTTPS, headers, cookies and obvious secrets in HTML. It does not test model behavior, prompt injection or a company's AI usage policies.

Want a professional security audit?

We assess web applications and infrastructure, and can help you prepare for NIS2.