Kiểm thử LLM

6 thẻ

Review deck này
Tất cả thẻ trong deck

promptfoo

red team **ứng dụng** qua endpoint thật; `npx promptfoo@latest redteam run` rồi `redteam report`

Plugin promptfoo hữu ích

`excessive-agency`, `bola`, `bfla`, `prompt-extraction`, `hijacking`, `pii:direct`, `ssrf`, `tool-discovery`, `indirect-prompt-injection`

garak

quét bản thân **model** bằng probe (jailbreak, promptinject, encoding); dùng khi chọn hoặc tự host model

Canary token

chuỗi đánh dấu trong context ẩn; xuất hiện trong output là có rò rỉ

Attack success rate (ASR)

báo theo tỉ lệ trên nhiều lần thử; mục tiêu là hậu quả bằng 0 nhờ kiến trúc

Lab agent local

model local (ví dụ qua Ollama), tool giả, không dữ liệu thật; MCP lab chạy trong Docker

Kiểm thử LLM – Flashcards – AppSec AI | Học Dev