> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 5.4 Security Risks and Required Actions

The table combines backend controls with deployment and governance actions. A source-code control still needs target-environment verification before release.

| Control area | Planned control | Acceptance evidence |
| - | - | - |
| Authentication | Validate Entra bearer tokens and reject missing or invalid tokens. | Unauthenticated claim request returns HTTP 401. |
| Authorization | Enforce Customer, Reviewer, and Admin roles. | Customer-only request to administrator KPIs returns HTTP 403. |
| Tenant isolation | Check claim ownership before reads, uploads, and refund execution. | Cross-customer claim request returns HTTP 404. |
| Upload safety | Limit file count and size; verify actual Blob properties. | Oversized file is rejected before SAS issuance; sixth file is rejected. |
| Malware | Scan quarantined files before processing. | Malicious test file is rejected in isolated development storage only. |
| Image safety | Apply deterministic severity thresholds. | Severity 6 blocks; review thresholds mark content for review, but the current workflow has no dedicated safety-review queue. |
| Processing order | Malware, validation, image safety, extraction, then promotion. | Workflow evidence confirms order; no unsafe file is promoted. |
| Model authority | Give the model no approval, payment, email, Blob, or Cosmos tools. | Review graph tool list and enforce human decision path. |
| Payment | Use claim-keyed idempotency and verify webhook signatures. | Replay yields one refund; invalid webhook signature returns HTTP 400. |
| Secrets | Use managed identity, Key Vault, protected deployment settings, and GitHub OIDC. | Review role assignments and secret references; no long-lived Azure client secret in GitHub. |
| Telemetry | Exclude sensitive content and credentials. | Inspect Application Insights traces for prohibited fields. |
| Cost abuse | Monthly limits are configuration or guide targets, not enforced by current FastAPI routes. | Implement and verify quota rejection before claiming this control. Verify budget alerts in the target subscription. |

## Current logging risk

The `GET /v1/claims` handler currently prints the `CurrentUser` object to standard output. That object contains the user's email address. Remove or sanitize this logging and inspect collected application logs before claiming the telemetry exclusion control is met.

## Risks requiring owner input

* \[OWNER INPUT REQUIRED: formal data classification and security control owner.]
* \[OWNER INPUT REQUIRED: production tenant separation and environment access review.]
* \[OWNER INPUT REQUIRED: approved jurisdiction, claim/evidence retention, and deletion process.]
* \[OWNER INPUT REQUIRED: vulnerability reporting route and incident-response owner.]

No certification, compliance status, or completed security review is claimed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.