Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

AI agents should not have hard-coded credentials in topics

MT.1119HighCopilot StudioAgents

Part of Maester · Copilot Studio · Agents · All checks

Run this check
Invoke-Maester -TestId MT.1119

AI agents should not have hard-coded credentials in topic definitions.

Hard-coded credentials such as API keys, bearer tokens, connection strings, or passwords embedded in agent topics can be extracted through prompt injection attacks. These credentials often persist in agent definitions long after they have been rotated elsewhere, creating a window of exposure.

Replace all hard-coded credentials with secure alternatives. Use Power Platform environment variables for configuration values and Azure Key Vault for secrets. Configure custom connectors with proper OAuth or API key authentication that stores credentials outside the agent topic definition.

Learn more: Use environment variables in Power Platform

Every attribute of this check
FieldValue
Test IDMT.1119
SeverityHigh
SuiteMaester
ProductCopilot Studio
FeatureAgents
AreaAI and agents
Resource typeAgent
User impactLow
Implementation costMedium
MITRE ATT&CKT1552 Unsecured Credentials
Supports controlsnist-800-53-r5:IA-5(7)
PowerShell testTest-MtAIAgentHardCodedCredentials
ServicesGraph