AI Security and Governance

Security and Data Governance for Enterprise AI: From Threat Modeling to Incident Response

A practical guide to enterprise AI security and data governance, covering data classification, prompt injection, identity, RAG security, red teaming and incident response.

Generative AI has changed the boundaries of software, but it has not removed the principles of responsibility. Sensitive data can be reproduced in prompts, recovery, tools, and reports; The output of the model may also be reliable but unsafe. This article is written for product, security, data and management teams to build a practical plan from data classification and identity to red testing, governance and incident response. Focus on the controls that are visible in the architecture and operations, not the vendor's general promises or a long order.

This guide is written focusing on the practical experience of organizations and its first version will be published in Mehr 1405. The examples are general and should be adapted to the data, regulations and processes of each business.

AI security is different from software security, but not separate

The productive system has the same risks of identity, network and data, and besides that, it faces possible output, command injection and supply chain model. This sounds simple on paper, but in the real world there are several interconnected decisions.

A team may secure the API but trust the retrieved text; As a result, the attacker changes the behavior of the model from within the content without breaking the authentication.

executive decisions

Draw the threat model from user to model, knowledge, tool and output. Maintain classic software controls and evaluate potential decision points separately. To turn this discussion into a decision, the team should write the valid input, consumed output, exception owner, and return path on the same page. When these four things are clear about "AI security is different from software security, but not separate", the difference in perception will be seen before it becomes code and contract.

Take real examples from ordinary, busy days. Data cleaned for presentation typically removes inconsistencies, incomplete input, and exceptions that precisely define the quality of "AI security is different from, but not separate from, software security."

measurement and control

Periodically report asset coverage, threat paths, detected incidents, remediation time and ownerless controls. The report "AI security is different from software security, but not separate" should show trends and subgroups, not just a catchy average. A product, channel, language or type of customer may have a completely different experience within the overall number.

The purchase of artificial intelligence service does not transfer responsibility for security; The organization remains responsible for the data, integration and how the output is used.

The rule of thumb in "AI security is different from software security, but not separate" is that increased discretion comes with increased evidence, limitation, and the ability to stop. A clear owner and revision date helps prevent controls from being forgotten after a product change.

Classification of data before connecting the model

If the organization does not know what data is public, internal, confidential or highly sensitive, it cannot choose the appropriate processing path. This is where the difference between a demo and a stable product usually becomes apparent.

A simple prompt might include the client's name, contract, and internal memo; A combination that is more sensitive than each individual component.

executive decisions

Define data levels, owner, permitted processing location, retention period and masking requirements. Model input must follow the same central policy. In the "Data Classification Before Model Connection" design workshop, follow the path of a normal sample and a failure sample step by step on the board. Specify where data is generated, who has the right to change it, and at what point auto-continuation should stop.

Notes from frontline users are invaluable at this point. They distinguish between a tolerable error and an error that destroys customer trust; The difference that cannot be seen from the technical specifications of "data classification before connecting the model".

measurement and control

Measure the percentage of classified data, sensitive field sent, masking failures, and unowned resources. Set the pass and stop thresholds before seeing the result of Data Classification Before Model Connection. Changing the criteria after seeing the numbers inadvertently leads the team to justify the previous decision.

Post-release tagging is late. The data flow should be clarified before selecting the supplier and designing the architecture.

Shorten the error reporting path to "classify data before binding the model" and show the reporter what happened. A feedback loop that doesn't have an answer will soon be empty of valuable user data.

Minimalism and goal limitation

Only data necessary for a specific purpose should be processed. More context might improve the answer a little, but it increases the scope of disclosure and maintenance. To see the problem, one must look at the user, operation and risk at the same time.

The text of the message may be necessary to summarize the support request, but the customer's complete financial history has no role in the response.

executive decisions

Create an allowable field list for each scenario, remove redundant data before the model and separate secondary uses that require decision. Instead of starting with a list of possibilities, reconstruct a work day from the user's perspective and replace "minimalism and goal constraint" in the same path. If it is not known before and after this point, the new capability will be only a technical island.

Keep a decision journal for "minimalism and goal constraint" and write evidence and assumptions next to each choice. When the outcome changes, the team knows which assumption was wrong and doesn't have to reconstruct history from people's memories.

measurement and control

Monitor data volume per task, percentage of field deleted, secondary usage requests, and oversubscription events. Next to the main indicator of "minimalism and limitation of the goal" put a guard criterion so that the improvement of a goal does not sacrifice quality or trust. Speed ​​without precision and automation without referencing are common examples of incomplete optimization.

The technical ease of sending an entire record should not take the place of business necessity. Minimalism is both a security control and a cost reduction tool.

Think of the controlled stop as part of the "minimalism and target limitation" design, not an admission of failure. A product that can be restrained without damage will be tested faster and more reliably.

Direct and indirect command injection

The user or retrieved content can attempt to change system rules. The OWASP project identifies command injection as one of the main risks for LLM programs. This section is best viewed not as a feature, but as an operational contract.

The malicious command may be in an email, web page, or file attachment and be inserted into the context during recovery without the user having typed it directly.

executive decisions

Separate data and command, keep tool scope limited, validate sensitive output, and include OWASP GenAI Guide in the red test. Make the decision about "injecting direct and indirect instruction" into a rebuttable hypothesis: for which group, under what conditions, and with what sign will we see improvement? This short sentence regulates the scope of the experiment and the subsequent dialogue with the stakeholders.

Don't fill the test with only successful examples. Intentionally include incomplete, inconsistent, outdated, and out-of-scope items so that "direct and indirect command injection" behavior is also visible at the boundaries.

measurement and control

Measure detection rate, attack pass, tool rejected, input channel and time to add sample to regression. Enter the severity of the consequence in the direct and indirect command injection assessment. Ten typographical slips are not the same as one data disclosure or incorrect financial commitment, and the simple average hides the difference.

No prompt provides complete immunity. Effective control must assume that the model is sometimes convinced and contain the effect at the instrument layer.

Register "direct and indirect command injection" exceptions with temporary, owner, and expiration date. The endless exception gradually becomes real architecture, without going through the same level of scrutiny.

Identity management for human, service and agent

Each call must be linked to a traceable identity. A shared account makes it difficult to attribute action and quickly revoke access. This sounds simple on paper, but in the real world there are several interconnected decisions.

If multiple agents work with the same administrator key, it is not possible to tell after the event which stream read or modified the record.

executive decisions

Implement workload identity, short-lived token, least access, environment isolation, and automatic key rotation. Do not enter secrets into the prompt or log. Before building "identity management for human, service and agent", hold a doomsday meeting and suppose six months later the project is declared a failure. Write down possible causes and determine control or early warning signs for effective cases.

Ask users not only to rate; Show the moment they paused, corrected the exit, or went another way. These details on "identity management for human, service and agent" are often more informative than a general survey.

measurement and control

Audit old key, shared account, additional license, failed attempt and access revoked time. Keep the confidence interval and sample size next to the "Identity Management for Human, Service, and Agent" percentages. A small change on a few limited observations may be random and still not a good basis for product development.

Hiding the key in the user interface is not security; The key must be kept on the server side and in the secret management system.

Effective control in "identity management for humans, services and agents" should be as automatic and visible as possible, but not block the way to human decision. Too many and unprioritized alerts wear out the team's attention just as much as no alerts.

RAG security and knowledge base

The recovery system may include a poisoned document, old version, or out-of-access content in the response. Security must be applied before rating. This is where the difference between a demo and a stable product usually becomes apparent.

Even the title or short snippet of the confidential document may appear in the model field if the access filter is after the search.

executive decisions

Scan and verify document entry, keep owner and version, apply permission filter to query and record source of response. The business owner and the technical team must agree on what "complete" means in the RAG Security and Knowledge Base topic. Delivery of the interface or API is not the end; The output should be used in the actual process and the person responsible for its result should be known.

Compare any changes to the previous version on the same sample set. Without this control, improvements in tone in RAG Security and Knowledge Base may come with a loss of accuracy or increase in cost, and may not be seen for a long time.

measurement and control

Measure document ownerless, version conflicts, unauthorized retrieval, citation rate, and document deletion time. Read the result of "RAG Security and Knowledge Base" at the right time. Some improvements are immediate and others, such as reduced callbacks or increased trust, are delayed.

The vector database is not a more secure version of the file server; A fresh copy of data is licensed and life-cycle independent.

Don't just patch the error instance after every RAG security and knowledgebase incident; See what broader class of inputs trigger the same weakness and add that to the regression test.

Model output is also unreliable input

The generated text may contain code, links, instructions or dummy data. Displaying or executing it directly can cause XSS, injection, or malicious behavior. To see the problem, one must look at the user, operation and risk at the same time.

A retrieved string can become active code in the browser if the HTML model is constructed and the application renders without cleanup.

executive decisions

Encode and validate output based on destination, check structured format with schema, and execute code or URL only with whitelist. For "model output is also unreliable input" construct a minimal example that tests only the most important decision. Each additional feature should indicate which uncertainty it reduces; Otherwise, it is better to wait until the next round.

Combine quantitative and qualitative evidence: the graph tells where the drop occurred and the sample review explains why. To understand "the output of the model is also the unreliable input", neither alone gives the complete picture.

measurement and control

Report rejected output, schema error, invalid link, and unsafe display events. Do not remove rejected and incomplete items from the denominator "model output is also unreliable input". Silent removal paints an overly optimistic picture and hides the true capacity of the operation.

Trusting the model based on the brand or language quality does not replace the definitive validation of the software.

Keep the "model output is also unreliable input" document short and to the point. A long and outdated document does not help during an accident; Key decisions, owner contact and return method should be found in minutes.

Privacy in prompts and reports

Prompt, response and trace can duplicate sensitive data multiple times. Logging is useful for troubleshooting, but it itself becomes a risky repository. This section is best viewed not as a feature, but as an operational contract.

A contact number may remain in the entry, summary, error tool, and dashboard visibility of duplicates long after the original record is deleted.

executive decisions

Design pre-registration masking, access levels, short retention, coordinated deletion, and secure sampling. The test environment is separate from the real data. Record the "privacy in prompt and report" rules as much as possible out of people's memory. Source name, version, decision maker and revision date are not administrative details; Those are the things that shorten the path of correction when there is a change or event.

If the actual data is limited, record this limitation and keep the scope of conclusions about "privacy in prompts and reports" small. Synthetic data can increase test coverage, but it does not replace the unpredictable behavior of a real user.

measurement and control

Audit actual retention time, data copies, trace access, deletion success and sensitive fields logged. A periodic review of Privacy in Prompts and Reports must result in a decision: continue, modify, limit, or stop. A watch-only dashboard is not an operational control.

Turning off logging doesn't solve everything and eliminates troubleshooting; The goal is to record the minimum necessary evidence with proper control.

Make the "privacy in prompt and report" trust boundary clear to the user. When one knows where the output of the suggestion is and where the verified fact is, the possibility of misuse and false trust is reduced.

Vendor evaluation and data contract

The organization needs to know where the data is processed, how long it stays, whether it is used for training, and what the obligation is in the event. This sounds simple on paper, but in the real world there are several interconnected decisions.

The vague statement "Your data is safe" does not answer the location of the sub-processor, exit, deletion or model change.

executive decisions

Review the Technical Questionnaire, Data Processing Addendum, Subprocessor List, Incident SLA, Right to Opt-Out and Opt-Out Plan prior to production. To turn this discussion into a decision, the team should write the valid input, consumed output, exception owner, and return path on the same page. When these four things about "Vendor Evaluation and Data Contract" are clear, the perception difference will be seen before it becomes code and contract.

Take real examples from ordinary, busy days. Data cleaned for presentation typically removes inconsistencies, incomplete input, and exceptions that precisely determine the quality of the "Vendor Evaluation and Data Contract."

measurement and control

Record terms coverage, vendor response time, unannounced change, removal test and migration cost. The "Vendor Evaluation and Data Contract" report should show trends and subgroups, not just a catchy average. A product, channel, language or type of customer may have a completely different experience within the overall number.

A security certificate is helpful but does not guarantee your specific architecture and application; The evidence must be adapted to the actual scenario.

The rule of thumb in "Vendor Evaluation and Data Contracts" is that increased authority is accompanied by increased evidence, limitations, and the possibility of termination. A clear owner and revision date helps prevent controls from being forgotten after a product change.

Model and library supply chain

The model, SDK, plugin, container, and dataset can each introduce changes or vulnerabilities. The floating version makes it difficult to reproduce the result. This is where the difference between a demo and a stable product usually becomes apparent.

Automatic SDK updates may change the tool format and cause the agent to silently send a different parameter.

executive decisions

Lock versions, maintain SBOM, check package source and pass update through regression testing path. In the model and library supply chain design workshop, follow the path of a normal sample and a failure sample step by step on the board. Specify where data is generated, who has the right to change it, and at what point auto-continuation should stop.

Notes from frontline users are invaluable at this point. They distinguish between a tolerable error and an error that destroys customer trust; A difference that cannot be seen from the technical specifications of "model supply chain and library".

measurement and control

Monitor old dependency, open vulnerability, model change, repeatable build and patch time. Set the pass and stop thresholds before seeing the Model and Library Supply Chain result. Changing the criteria after seeing the numbers inadvertently leads the team to justify the previous decision.

Dependency lists aren't just for classic software; The name and version of the model and command are also part of the production configuration.

Shorten the error reporting path for Model and Library Supply Chain and show the reporter what happened. A feedback loop that doesn't have an answer will soon be empty of valuable user data.

Separation of test environment and data

Development, evaluation and production should be separate in terms of data, keys and tools. Experimenting with real access can create unwanted effects. To see the problem, one must look at the user, operation and risk at the same time.

A test scenario may send a real message to the client instead of the sandbox because it uses the same tool and production credentials.

executive decisions

Create simulator environment, test account, synthetic data, network limit and clear environment icon. Confirm route configuration transfer. Instead of starting from the feature list, recreate a work day from the user's perspective and replace "Separate environment and test data" in the same path. If it is not known before and after this point, the new capability will be only a technical island.

Keep a decision notebook for "separating the environment and experimental data" and write evidence and hypothesis next to each choice. When the outcome changes, the team knows which assumption was wrong and doesn't have to reconstruct history from people's memories.

measurement and control

Alert the environment call to production, shared key, actual data in test and executed test operation. Next to the main indicator of "separation of environment and test data" put a guard measure so that improving a goal does not sacrifice quality or reliability. Speed ​​without precision and automation without referencing are common examples of incomplete optimization.

Similarity of the environment is necessary for error detection, but similarity should not translate into a borderless sharing of identity and data.

Think of controlled stopping as part of the "separation of environment and test data" design, not an admission of failure. A product that can be restrained without damage will be tested faster and more reliably.

Red test and abuse assessment

A normal quality test does not show what an attacker or prying user is doing. The red test should be multilingual, multi-stage and connected to the tool. This section is best viewed not as a feature, but as an operational contract.

The attack can first build trust, then request data and trigger the tool in the next message; The single message test does not see this chain.

executive decisions

Build injection, command extraction, data disclosure, role bypass, resource consumption, and insecure output scenarios and run them again after modification. Make the decision about the "red test and assessment of abuse" a rebuttable hypothesis: for which group, under what conditions, and with what indication will we see improvement? This short sentence regulates the scope of the experiment and the subsequent dialogue with the stakeholders.

Don't fill the test with only successful examples. Intentionally include incomplete, inconsistent, outdated, and out-of-scope items so that "red-test and abuse-evaluation" behavior is also visible at the boundaries.

measurement and control

Report scenario coverage, severity, attack success rate, remediation time, and defect return. Enter the severity of the consequence in the Red Test and Abuse Assessment. Ten typographical slips are not the same as one data disclosure or incorrect financial commitment, and the simple average hides the difference.

The red test is not a license to damage production. Scope, data and emergency stop must be agreed in advance.

Register "red test and abuse evaluation" exceptions as temporary, with an owner and an expiration date. The endless exception gradually becomes real architecture, without going through the same level of scrutiny.

Restrictions on consumption and economic attacks

An attacker or logic error can consume the token, utility, or call in the loop. Cost and capacity are part of accessibility security. This sounds simple on paper, but in the real world there are several interconnected decisions.

A small request may create a chain of searches and retries and consume the daily budget in minutes.

executive decisions

Build user and workflow cap, timeout, circuit breaker, concurrency limit and cost alert. Prevent duplicate requests with idempotency. Before building "Consumption Limits and Economic Attacks", hold a pre-death meeting and suppose six months later the project is declared a failure. Write down possible causes and determine control or early warning signs for effective cases.

Ask users not only to rate; Show the moment they paused, corrected the exit, or went another way. These details about "consumption restrictions and economic attacks" are often more informative than a general survey.

measurement and control

Monitor cost per minute, step per run, retry, queue saturation and budget cut rate. Keep the confidence interval and sample size next to the "consumption limit and economic attacks" percentages. A small change on a few limited observations may be random and still not a good basis for product development.

Too hard restriction can stop real users; The threshold should be adjusted according to the consumption pattern and risk level.

Effective control in "restriction of consumption and economic attacks" should be as automatic and visible as possible, but not block the way to human decision. Too many and unprioritized alerts wear out the team's attention just as much as no alerts.

Governance based on risk and ownership

The NIST AI RMF Framework organizes risk management into governance, recognition, measurement, and management functions and can be a common language for teams. This is where the difference between a demo and a stable product usually becomes apparent.

A low-impact internal application should not go through the same control as a credit decision, but no application should be left without an owner and registration.

executive decisions

List the application, risk class, owner, evaluation evidence, exception, and revision date and use NIST AI RMF Resources. The business owner and the technical team must agree on what "completion" means in terms of risk-based governance and ownership. Delivery of the interface or API is not the end; The output should be used in the actual process and the person responsible for its result should be known.

Compare any changes to the previous version on the same sample set. Without this control, an improvement in tone in "risk-based governance and ownership" may come with a loss of accuracy or an increase in cost, and may not be seen for a long time.

measurement and control

Measure unregistered use, expired review, no-evidence control, and decision time. Read the result of "Risk-Based Governance and Ownership" at the appropriate time. Some improvements are immediate and others, such as reduced callbacks or increased trust, are delayed.

The governance committee produces only reports without the authority to suspend or amend funds.

Don't just patch the error instance after each "Risk-Based Governance and Ownership" event; See what broader class of inputs trigger the same weakness and add that to the regression test.

User compliance and transparency

The requirements depend on the market, the type of application and the role of the organization. The transparency of automatic interaction and decision recording should be seen in the experience from the beginning. To see the problem, one must look at the user, operation and risk at the same time.

Late disclosure or long text that the user does not understand reduces the trust and validity of consent.

executive decisions

Categorize the market and application with legal expertise, have clear messaging, an appeals path, human access, and technical documentation. For "user compliance and transparency" build a minimal example that tests only the most important decision. Each additional feature should indicate which uncertainty it reduces; Otherwise, it is better to wait until the next round.

Combine quantitative and qualitative evidence: the graph tells where the drop occurred and the sample review explains why. To understand user compliance and transparency, neither one alone gives the complete picture.

measurement and control

Track disclosure coverage, consent, legal requests, response times, and regulatory changes. Do not remove rejected and incomplete items from the denominator of "user compliance and transparency". Silent removal paints an overly optimistic picture and hides the true capacity of the operation.

This article is not legal advice; Copying the control of one country is dangerous for all markets.

Keep the User Compliance and Transparency document short and to the point. A long and outdated document does not help during an accident; Key decisions, owner contact and return method should be found in minutes.

Response to artificial intelligence event

The event may be widespread incorrect output, data disclosure, tool abuse, or a sudden change in model behavior. The program must recognize these shapes. This section is best viewed not as a feature, but as an operational contract.

Shutting down the entire service is not always necessary; Sometimes you can close the authoring tool, delete a resource, or revert the model to a previous version.

executive decisions

Practice incident level, calls, evidence preservation, kill switch, notification and rollback. Technical and business owners are available at the same time. Record AI event response rules as far as possible outside of people's memory. Source name, version, decision maker and revision date are not administrative details; Those are the things that shorten the path of correction when there is a change or event.

If the actual data is limited, record this limitation and keep the scope of conclusions about AI event response small. Synthetic data can increase test coverage, but it does not replace the unpredictable behavior of a real user.

measurement and control

Report the time of discovery, containment, recovery, affected domain, and completion of corrective action. A periodic AI incident response review should result in a decision: continue, modify, limit, or stop. A watch-only dashboard is not an operational control.

Without training, the emergency contact number and access cannot be found at the moment of the accident.

Make the trust boundary of "AI event response" understandable to the user as well. When one knows where the output of the suggestion is and where the verified fact is, the possibility of misuse and false trust is reduced.

Executive program of modern security

Security must be built along with the pilot. Three months is a good time to know the asset, control the risky path and perform an incident test. This sounds simple on paper, but in the real world there are several interconnected decisions.

The first month covers data flow and threats, the second month covers identity and tools, and the third month covers red test, monitoring and incident training.

executive decisions

Devote weeks to asset inventory, data layering, permission control, output evaluation, secure logging, and tabletop. Each delivery has an owner. To turn this discussion into a decision, the team should write the valid input, consumed output, exception owner, and return path on the same page. When these four things are clear about the "modern security implementation plan", the difference in perception will be seen before it becomes a code and contract.

Take real examples from ordinary, busy days. Data cleaned for presentation typically removes inconsistencies, incomplete entries, and exceptions that precisely determine the quality of a "state-of-the-art security implementation."

measurement and control

Review asset coverage, open findings, test passed, resolution time, and response readiness at the end of each month. The "SEC" report should show trends and sub-categories, not just a catchy average. A product, channel, language or type of customer may have a completely different experience within the overall number.

A complete checklist without evidence of implementation does not create security. Sample arrangement, test report and registered decision are required.

The rule of thumb in the "New Security Executive Program" is that the increase in authority is accompanied by an increase in evidence, restrictions and the possibility of stopping. A clear owner and revision date helps prevent controls from being forgotten after a product change.

Summary; Trust is the result of design

Trust in artificial intelligence does not come from model claims; From effect limitation, observability, responsiveness and continuous improvement are built. This is where the difference between a demo and a stable product usually becomes apparent.

A system that sometimes says I don't know and hangs up is more valuable in operation than one that always gives a sure answer.

executive decisions

Start with data and identity, keep the tool constrained, validate the output, and incorporate abuse testing into the release cycle. In the design workshop "Summary; "Trust is by design", follow the path of a normal sample and a failed sample step by step on the board. Specify where data is generated, who has the right to change it, and at what point auto-continuation should stop.

Notes from frontline users are invaluable at this point. They distinguish between a tolerable error and an error that destroys customer trust; The difference from the technical specifications of "summary; "Trust is the result of design" is not seen.

measurement and control

See events, quality, cost, privacy and repair time side by side so that security is not separated from the reality of the product. Before seeing the result of "Summary; "Trust is by design", set the accept and stop threshold. Changing the criteria after seeing the numbers inadvertently leads the team to justify the previous decision.

The goal is not to completely eliminate uncertainty; It is building a system that recognizes uncertainty and controls its effect responsibly.

to "summarize; "Trust is by design" Shorten the bug report path and show the reporter what happened. A feedback loop that doesn't have an answer will soon be empty of valuable user data.

Final speech

AI security is not a final step; It's a series of small decisions about data, identity, tools, output, and accountability. With minimal access, test evidence, pauseability, and clear ownership, innovation can be kept fast and the scope for error contained. Every incident and every model change should be turned into an opportunity to update the threat model and tests.

Practical Enterprise AI in 2026: From Use-Case Selection to Architecture, Evaluation and Governance →

Try these ideas on your own company

The Nava demo creates a separate company workspace and a trial receptionist.