New to Telerik UI for Blazor? Start a free 30-day trial
DatAInsightsComposer Security
Updated on Nov 2, 2026
The DatAInsightsComposer sends the user prompt and dataset metadata to an AI model, and turns the AI model reply into Grid, Chart, and Gauge components. The AI service, user access, and data are all part of the application. Security is therefore shared between the DatAInsightsComposer and the app. This article describes the existing built-in protections and what application should take care of separately.
Responsibility Model
The following table lists:
- The DatAInsightsComposer behaviors that relate to app and data security.
- Additional application enhancements that can improve security.
| Area | DatAInsightsComposer | Application |
|---|---|---|
| AI Service Connection | Calls the registered IChatClient (or custom backend). | Configures and secures the AI service, including endpoint, credentials, and encrypted connection. |
| User Access | No authentication or authorization. | Applies restrictions through app authentication and authorization. |
| Datasets |
| Decides which datasets, fields, and items the user can see, and passes only those to the DatAInsightsComposer. |
| Prompts |
| Set a prompt length limit and additional custom validation, rate limits, and usage quotas. |
| AI Responses |
| Decides how much to trust the generated result. Validates values such as formats, colors, and numbers. |
| Logging and Auditing | Raises events such as OnGenerate, OnSave, and OnHistoryItemCreate. | Logs user prompts, component configurations, and displayed data. |
Trust Boundaries and Entry Points
The application should focus on the following potentially harmful inputs or potentially sensitive outputs:
- User prompts—Free text typed by the user is the main route for prompt-injection attempts. The DatAInsightsComposer provides base sanitization, but the app should also validate them and enforce a length limit.
MaxPromptLengthis unlimited by default and can be bypassed in the browser. - Dataset metadata—Field names, labels, and descriptions are sent to the AI model by design. If these come from user input or external systems, sanitize them too. Do not include sensitive information the dataset metadata.
- AI service connection—Use a trusted, encrypted endpoint. Keep credentials out of client-accessible code. Review the AI provider's data retention policy. In Blazor WebAssembly apps, route calls through a server-side backend.
New prompt injection attacks are discovered regularly. When making AI service calls, the application must apply the latest best practices that validate user prompts and prevent potential prompt injection.