Security Configuration & Hardening Guide
Secure use, authentication, security event logging, and encryption for Leena AI cloud deployments.
Prepared by Leena AI Security & Professional Services · Last updated October 2026
Scope: This guide covers Leena AI cloud deployments, which Leena AI hosts and operates. For customer-installed deployments, contact your Leena AI account team.
1. Introduction
Secure configuration and hardening of Leena AI is delivered as a service: our professional services team applies and validates the standard described here with each client during implementation, rather than leaving hardening to the client. This document consolidates that standard in one place.
Security engagement with a client begins before the contract: clients typically conduct their own security review during pre-sales, supported by our Trust Center (certifications and the subprocessor list, with SOC 2 and penetration test reports available on request) and completed security questionnaires. The standard described in this guide is then applied during implementation.
This guide describes how Leena AI is securely configured and hardened for each client deployment. It covers authentication, session management, access control, security event logging, encryption, data privacy controls, and secure integration practices. Environments are provisioned through infrastructure-as-code (Terraform), which applies security configuration — network boundaries, storage encryption, and backup policy — uniformly and repeatably across deployments. Step-by-step configuration references are linked throughout this guide.
2. Shared responsibility model
Responsibility for the security of a Leena AI deployment is shared between Leena AI and the client. The professional services team walks each client through this split during onboarding.
| Area | Leena AI | Client |
|---|---|---|
| Platform infrastructure, patching, backups | Operates and maintains | — |
| Encryption in transit and at rest | Enforced by default | — |
| Secure baseline configuration at onboarding | Applied by PS team | Reviews and approves |
| Identity provider (SSO) | Integrates | Owns and enforces |
| User roles and admin assignments | Initial setup with client | Owns ongoing |
| Knowledge audience rules and permissions | Initial setup with client | Owns ongoing |
| Integration credentials and scopes | Configures with client | Approves and rotates |
| Consuming audit events into client SIEM | Provides logs and API | Consumes and monitors |
3. Authentication and identity
End users and administrators
Leena AI supports single sign-on (SSO) over SAML 2.0 with all major identity providers, including Azure AD / Entra ID, ADFS / Active Directory, Okta, and Google Workspace. SSO is the recommended sign-in method:
- Azure AD / Entra ID (configuration guide)
- Active Directory (configuration guide)
- Google Workspace (configuration guide)
With SSO, the client's MFA, conditional access, and session policies apply to Leena AI access. The virtual assistant can also offer mobile or email one-time passcode (OTP) sign-in; sign-in methods are enabled by the client's administrators (Login screen). Where SSO covers all users, we recommend enabling SSO only, so that every sign-in goes through the client's identity provider. The professional services team configures and validates SSO federation during onboarding.
Session management
Two independent settings control how long a user stays signed in to the virtual assistant (Session & inactivity timeouts):
- Session duration — the forced re-authentication interval, measured from sign-in and not extended by activity. The default is 180 days; the Leena AI team sets it to match the client's policy.
- Inactivity timeout — ends the session after a period of no interaction. It is off by default; client administrators enable it under Settings → Global Settings → Authentication → Virtual Assistant.
Session settings apply per assistant and per channel, so the web assistant and the mobile app are configured separately. Access credentials rotate hourly by default, and signing out revokes the user's credentials immediately across all open tabs.
API access
Management and programmability APIs authenticate with OAuth 2.0. Tokens are issued by the regional authorization service and scoped to the minimum required (for example, audit-logs:read). All APIs are served exclusively over HTTPS.
Agent integration surfaces (MCP and A2A)
The Leena MCP server and A2A server authenticate as a specific end user via OAuth 2.0. Every request carries a real user identity, and that user's permissions and audience rules are enforced server-side — there is no anonymous or shared service-account path to client data through these surfaces. (MCP server)
4. Access control
- Role-based access control governs the Studio, dashboards, and Admin Console; administrators are assigned the least role required. (Role-based access controls)
- Admin settings and admin-level actions are restricted to administrator roles and recorded in audit logs (see section 5).
- Audience rules control which users can see which knowledge content and invoke which agent capabilities. Connector-synced permissions carry the source system's access controls into Leena AI, so content synced from systems such as SharePoint or Google Drive is visible only to users who can read it at the source; path-based access control is available where access is organised by folder. (Content visibility and permissions)
During onboarding, the professional services team reviews admin role assignments, verifies audience-rule coverage for all synced content, and removes test accounts and sample data before go-live.
5. Security event logging
- Administrative and platform activity is recorded in audit logs, available in the Admin Console to administrators with audit-log access. Capture is enabled per module, with a configurable choice of activities and retention period. (Audit Logs)
- The Audit Logs External API allows clients to retrieve audit events programmatically into their own SIEM: cursor-paginated retrieval over HTTPS, authenticated with an OAuth token scoped to audit-logs:read. (Audit Logs External API)
Recommended configuration: enable logging for every module, including Global Settings, which records dashboard-user logins, role changes, and user deactivations; set the retention period to match the client's policy; schedule regular pulls of the Audit Logs API into the client SIEM; and alert on administrator-role changes and data-export events. The professional services team assists with this integration during onboarding.
6. Encryption
- In transit: all client connections and API calls are encrypted over HTTPS using TLS 1.2 or higher; TLS 1.0 and 1.1 are not accepted.
- At rest: data is encrypted with AES-256, using keys held in the hosting cloud provider's key management service (for example, AWS KMS).
- Backups are encrypted with the same controls as production data, retained for up to 30 days, and used for disaster recovery only.
7. Data privacy controls
- Data Subject Requests (Admin Console → Logs → Data Subject Requests): once privacy settings are enabled, employees are asked to accept the privacy policy, and administrators can download, erase, or reinitiate consent for an individual employee's data. A designated compliance-manager email is notified of requests. (Data Subject Requests)
- Exports: client administrators can export conversation, ticket, and analytics data from the dashboard. (Exports)
- PII handling: the platform includes PII detection and redaction capabilities, data masking, and audit logging of data access.
- Retention schedules: stored data categories, including conversation history and system logs, are subject to defined time-based retention and deletion schedules under Leena AI's internal data retention and deletion standard. Category-specific retention periods are available on request.
- Purge Node: sensitive fields — PII, credentials, form submissions — can be irreversibly scrubbed from workflow execution records once processing completes, supporting retention policies that require sensitive data to be removed after a defined window. (Purge Node)
- End of term: on termination, a full export of client data is generated from production and made available to the client; production data is then deleted, and all residual copies — the retained export and disaster-recovery backups — are purged within 30 days of deletion.
Processing, retention, and deletion of client data are governed by each client's Data Processing Agreement; the controls described in this section are the operational mechanisms behind those commitments.
8. Secure integration practices
- Connectors (ServiceNow, Workday, SharePoint, and others) are configured with least-privilege credentials owned and approved by the client. OAuth-based connectors are preferred, and certificate-based authentication is used where the source system supports it (for example, SharePoint via Microsoft Graph).
- MCP and A2A surfaces are enabled per tenant through a single enablement toggle and a single OAuth application; they are active only when the client chooses to turn them on, as a deliberate decision made with the professional services team.
- Outbound MCP client connections to customer-registered MCP servers are configured by client administrators under Settings → Integrations, and tool access is governed by the same role-based access and audience rules as every other channel.
9. AI-specific safeguards
- Prompt-injection defense: authorization is enforced server-side, not by the model — prompt injection and conversational manipulation cannot expand what a user is authorized to do. (Prompt-injection defense)
- Guardrails: PII detection, content moderation, and jailbreak detection are organisation-wide guardrails, enabled under Admin Console → Orchestrator → Guardrails. Once enabled, they validate every AI Colleague conversation, including requests arriving through MCP and A2A — connected clients cannot bypass them. PII detection can mask, block, or log what it finds; moderation and jailbreak detections always block. (Guardrails)
- Grounding: answers carry authenticated source links, and users only receive content their permissions allow.
10. Hardening applied at onboarding
The professional services team applies and verifies the following steps for each client before go-live:
| # | Step |
|---|---|
| 1 | SSO federation configured and validated with the client's identity provider; OTP sign-in disabled where SSO covers all users |
| 2 | Session duration and inactivity timeout set to the client's policy for each assistant and channel |
| 3 | Admin roles assigned to named individuals on a least-privilege basis |
| 4 | Audience rules verified to cover all synced knowledge content |
| 5 | Connector credentials configured least-privilege and owned by the client |
| 6 | Guardrails enabled, with the PII detection action set to mask or block |
| 7 | Audit logging enabled for all modules, with retention set to the client's policy and SIEM integration configured where required |
| 8 | Test accounts and sample data removed |
| 9 | Privacy settings enabled, with the compliance-manager address set to a monitored role account |
| 10 | MCP / A2A integration surfaces enabled only where explicitly requested by the client |
Updated 28 days ago
