Check ID:
Provider: Azure
Service:
Severity: CRITICAL
Categories:
Resource type:
apim_threat_detection_llm_jackingProvider: Azure
Service:
apimSeverity: CRITICAL
Categories:
gen-ai, logging, threat-detectionResource type:
microsoft.apimanagement/serviceWhat this check verifies
API Management diagnostic logs in Log Analytics are analyzed for LLM-related operations. Requests are grouped by caller IP, the number of distinct monitored actions (e.g.,ChatCompletions_Create, ImageGenerations_Create) within a configurable minutes window is measured, and that ratio is compared to a threshold to surface anomalous multi-action patterns.
Risk
Concentrated LLM activity from one IP indicates automation or leaked credentials.- Availability/cost: rapid token burn and quota exhaustion
- Confidentiality: exposure of prompts/completions and model details
- Integrity: abuse of deployment/model actions enabling unauthorized changes or mass content generation
Recommendation
Adopt defense in depth for LLM APIs:- Enforce least privilege; isolate management from inference
- Prefer managed identities over keys; rotate secrets
- Apply quotas, rate limiting, and IP allowlisting; use private access
- Alert on anomalous action diversity; review logs
threshold and minutes for your environment.
Remediation
- Terraform
- Native IaC
- Dashboard steps
References
Where this check fires
This check runs on every scheduled scan against your Azure account. Findings appear at Cloud Security → Findings filterable byCheck ID = apim_threat_detection_llm_jacking. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to Azure checks