Przejdź do treści
Biblioteka skilli
Bezpieczeństwo · Przegląd i audyt

model-serving-security

/model-serving-security

Utwardza wdrożony endpoint inferencji modelu: uwierzytelnianie i autoryzację, limity i kontrolę nadużyć, walidację wejścia oraz ochronę przed ekstrakcją i inwersją modelu, dla REST, gRPC, Triton, TorchServe, KServe lub hostowanego API.

Licencja
GPL-3.0
Ostatnia zmiana repozytorium
07.08.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 07.08.2026, bez odwołań do wycofanych modeli i API.

Licencja

GPL-3.0, otwarta.

Co robi i kiedy

Utwardza wdrożony endpoint inferencji modelu: uwierzytelnianie i autoryzację, limity i kontrolę nadużyć, walidację wejścia oraz ochronę przed ekstrakcją i inwersją modelu, dla REST, gRPC, Triton, TorchServe, KServe lub hostowanego API.

Oryginalny opis (EN)

Harden a deployed model inference endpoint — authn/authz, rate limiting and abuse control, input validation, and exposure to model-extraction / inversion / membership-inference attacks. Use when reviewing how a model is served (REST/gRPC, Triton/TorchServe/KServe, or a hosted inference API), not how it was trained.

Jak działa

SKILL.md bez nagłówków drugiego poziomu · 47 linii, 320 słów

Podgląd SKILL.md
---
name: model-serving-security
description: >-
  Harden a deployed model inference endpoint — authn/authz, rate limiting and abuse
  control, input validation, and exposure to model-extraction / inversion /
  membership-inference attacks. Use when reviewing how a model is served (REST/gRPC,
  Triton/TorchServe/KServe, or a hosted inference API), not how it was trained.
---

# Goal

An inference endpoint that's authenticated, abuse-resistant, and not leaking the
model or its training data through its outputs — covering the serving layer beneath
LLM/app-level concerns.

# What to review

- **AuthN/Z & exposure** — is the endpoint authenticated and authorized per caller?
  Not publicly reachable without controls? Tenant isolation for multi-tenant serving?
- **Rate limiting & abuse / cost** — per-caller quotas to blunt **model extraction**
  (stealing the model by querying it) and to cap inference cost/DoS.
- **Model extraction** — high-volume systematic querying to clone the model; mitigate
  with rate limits, anomaly detection, output granularity limits, and monitoring.
- **Model inversion / membership inference** — outputs (esp. confidence scores/logits)
  that leak training data or reveal whether a record was in the training set; limit
  exposed confidence detail.
- **Input validation & resource safety** — malformed/adversarial/oversized inputs;
  tensor/shape validation; timeouts and resource caps to prevent inference DoS.
- **Serving infra** — the model server itself (Triton/TorchServe/KServe) patched and
  hardened; management/metrics endpoints not exposed; no unsafe model auto-loading.

# Steps

1. Identify the serving stack, exposure, and who can call it.
2. Check authn/z, rate limiting/quotas, and input validation at the endpoint.
3. Assess extraction/inversion/membership-inference exposure — especially what
   confidence/score detail is returned.
4. Review the model server's own hardening and management-surface exposure.
5. Recommend controls prioritized by exposure (unauthenticated/public first).

# Output

A findings list (surface · risk · evidence · fix) plus controls: authn/z, rate
limits/quotas, input validation, output-granularity limits, and monitoring. For
LLM-specific output risks (prompt injection, jailbreaks) defer to `llm-security`; for
the app around it, the appsec plugins.

# Notes

The model is intellectual property and the training data is a confidentiality
boundary — both can leak through a perfectly "working" endpoint via extraction and
inversion. Returning raw confidence scores/logits is the quiet enabler of inversion
and membership inference; expose the minimum the use case needs. Rate limiting is the
single highest-leverage control here.

Wersje

W bazie nie ma innych skilli o nazwie model-serving-security.

Migawka bazy z 28.10.2026 · wersja paczki 8052f92b76ef (skrót SHA-256 całej paczki)

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90ml-model-serving
    Wdraża modele do wnioskowania: TorchServe, BentoML, Ray Serve, KServe, wdrożenia canary, autoskalowanie, wersjonowanie i wycofywanie.
  • 100superior-api-security
    Wzmacnia zabezpieczenia REST API: uwierzytelnianie, autoryzację, walidację, limity żądań i bezpieczne komunikaty błędów.
  • 90nvidia-triton-inference-serving-review
    Przegląda statycznie wdrożenia Triton Inference Server: układ model_repository i config.pbtxt, dynamic batching, pipeline'y ensemble i BLS, zaufanie do backendów, uwierzytelnianie gRPC i HTTP, cache odpowiedzi, limity i metryki.
  • 100rate-limiting
    Wdraża limitowanie żądań na bramce API, by chronić modele AI przed ekstrakcją, przy projektowaniu i przeglądzie bramek dla silników inferencji i endpointów LLM.
  • 90inference-serving-topology
    Opisuje architekturę serwowania wnioskowania modeli i LLM: warstwy silnik, serwowanie i orkiestracja (vLLM, SGLang, TensorRT-LLM, Triton, KServe, Ray Serve), KV cache, continuous batching i skalowanie.
  • 100springboot-security
    Podaje dobre praktyki Spring Security w usługach Spring Boot: uwierzytelnianie i autoryzacja, walidacja, CSRF, sekrety, nagłówki, limity zapytań i bezpieczeństwo zależności.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.