---
name: zero-lab-ai-model-serving-exposure-audit
description: "Audits model-serving APIs, administrative and debug surfaces, vector stores, object storage, caches, workload identity, metadata access, and orchestration credentials. Use when reviewing the deployed infrastructure around model inference."
license: "Apache-2.0"
metadata:
  decimalai-skill-id: "b2f537b5-b1e4-46e7-8785-36f3c163a3c4"
  decimalai-version-id: "11ec6173-8816-451f-913c-c4b3eda3280a"
  decimalai-version: "1"
  decimalai-body-sha256: "7daf4a7c3b531bf8f26e622b7dea26774af11f6170b7dcdec1218bb10f56a57c"
  decimalai-name: "zero-lab-ai/model-serving-exposure-audit"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "security"
  decimalai-source: "https://app.decimal.ai/s/zero-lab-ai-model-serving-exposure-audit@1/SKILL.md"
---
# Model serving exposure audit

Review the infrastructure that loads and serves models. Separate network
reachability, authentication, authorization, effective identity, and
demonstrated access so a visible endpoint does not become an overstated finding.

## When to Use

- Reviewing model servers, gateways, batch inference, deployment controllers,
  or supporting data services.
- Auditing administrative, debug, metrics, metadata, storage, secret, and
  workload-identity exposure around inference.
- Investigating whether a serving component has more authority than its role
  requires.

## When NOT to Use

- Do not actively enumerate, authenticate to, or exploit a service without the
  corresponding written authority.
- Do not retrieve real credentials or sensitive model data to prove a control
  gap when configuration and benign identity evidence suffice.
- Do not treat a banner, port, or product name as proof of a vulnerability.

## Workflow

1. Define environments, networks, clusters, accounts, namespaces, services,
   identities, evidence window, approved observation methods, and exclusions.
2. Inventory the serving chain: clients, API gateways, model routers, inference
   servers, batch workers, deployment controllers, registries, object stores,
   vector databases, feature stores, caches, queues, telemetry, and admin planes.
3. Inventory surfaces by function rather than port:
   - inference, streaming, embedding, and batch APIs;
   - health, metrics, profiling, tracing, debug, and documentation endpoints;
   - model load, unload, configuration, adapter, and promotion controls;
   - storage, cache, queue, registry, and vector-store interfaces;
   - orchestrator, node, metadata, secret, and workload-identity services.
4. Record each surface's bind address, network path, authentication,
   authorization, tenant boundary, rate control, transport protection, and
   logging from supplied configuration or approved observation.
5. Map effective identities and privileges. Include service accounts, instance
   roles, managed identities, tokens, filesystem access, device access, network
   egress, registry permissions, secret access, and impersonation rights.
6. Trace sensitive flows: prompts, retrieved context, model artifacts, adapters,
   outputs, telemetry, credentials, metadata, and temporary files.
7. Keep evidence states separate: `declared`, `reachable`, `authenticated`,
   `authorized`, `resource-accessed`, and `effect-demonstrated`.
8. Review cross-service trust: gateway-to-server headers, proxy identity,
   controller-to-node authority, registry-to-loader trust, callback destinations,
   and tenant or namespace propagation.
9. Review hardening and response: minimal images, patch and dependency evidence,
   filesystem and process isolation, egress limits, secret rotation, exact model
   identity in logs, alerting, revocation, rollback, and residual workloads.
10. Produce separate validation handoffs for unresolved live behavior; keep this
    audit from becoming an exploit plan.

## Boundary with adjacent skills

- Use `ai-surface-recon` for externally observable AI-system mapping.
- Use `model-artifact-lifecycle-audit` for artifact intake through retirement.
- Use `agent-surface-audit` for agent tool definitions and parameter risk.

## Deliverable

Return the service and surface inventory, network and trust map, effective
identity matrix, sensitive-flow map, evidence-state findings, hardening gaps,
telemetry and response coverage, unknowns, and bounded validation handoffs.

## Rationalizations to reject

- **“It is only reachable inside the cluster.”** Internal reachability still
  intersects compromised workloads, tenants, and service identities.
- **“Authentication is enabled.”** Verify authorization, audience, target,
  tenant, and privilege after authentication.
- **“The metadata service is standard.”** Effective workload access depends on
  platform configuration, identity scope, and network controls.
- **“The debug endpoint contains no secrets.”** It may disclose paths, models,
  arguments, environment, topology, or control functions.
- **“The model server only performs inference.”** Loaders, adapters, plugins,
  filesystems, devices, and callbacks can carry broader authority.
- **“A version match proves exploitability.”** Preserve applicability and live
  validation as separate evidence.
