Ensure that your Amazon Bedrock Agents have an appropriate idle session timeout configured by setting the idleSessionTTLInSeconds parameter to a value that aligns with your organization's security posture. The idle session timeout defines the number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent. A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout. The idleSessionTTLInSeconds parameter accepts values between 60 seconds (1 minute) and 5400 seconds (90 minutes). The default idle session timeout for Amazon Bedrock Agents is 1800 seconds (30 minutes). An excessively high idle session timeout (e.g. greater than 3600 seconds) increases the risk that a compromised or hijacked session remains active for a prolonged period, expanding the blast radius of session-based attacks.
Configuring an appropriate idle session timeout for Amazon Bedrock Agents is important because long-lived agent sessions increase the risk that an attacker can maintain persistent access to agent capabilities after initial compromise. A shorter idle session timeout forces re-authentication and limits the window of exposure for session-based attacks. By enforcing a reasonable timeout value, you reduce the potential impact of session hijacking, minimize unauthorized access to agent-connected resources, and ensure that stale sessions are cleaned up promptly.
Audit
To determine if your Amazon Bedrock Agents have an appropriate idle session timeout configured, perform the following operations:
Remediation / Resolution
To configure an appropriate idle session timeout for your Amazon Bedrock Agents, perform the following operations:
References
- AWS Documentation
- Control agent session context
- Create and configure agent manually
- Automate tasks in your application using AI agents
- GetAgent
- UpdateAgent
- AWS Command Line Interface (CLI) Documentation
- list-agents
- get-agent
- update-agent