39 items

1

XSS from LLM HTML Output

Code Quiz
2

Blocking Sensitive Data Exfiltration

Code Quiz
3

Guarding Against Jailbreak Overrides

Code Quiz
4

Sandboxing Model-Generated Code

Code Quiz
5

Allow-List Before Downstream Action

Code Quiz
6

Masking PII in Model Output

Code Quiz
7

Sanitizing URLs to Prevent SSRF

Code Quiz
8

Opting Out of Provider Training

Code Quiz
9

Trusting Model Output for Authorization

Code Quiz
10

Excessive Agency and Confused Deputy

Slides / Video
11

OWASP Top 10 for LLM Apps

Slides / Video
12

GDPR & HIPAA for LLM Data

Slides / Video
13

Vendor Data Retention & Opt-Out

Slides / Video
14

Injection Risks in RAG Documents

Slides / Video
15

Redact PII Before Embedding

Code Quiz
16

Least-Privilege Design for Tool Access

Slides / Video
17

Trusted Instructions vs Untrusted Data

Slides / Video
18

Wrong Role for User Data

Code Quiz
19

Logging Raw Sensitive User Data

Code Quiz
20

Logging API Keys in Prompts

Code Quiz
21

Over-Privileged Tool Access

Code Quiz
22

Ungated Tool Execution

Code Quiz
23

Indirect Injection via Retrieved Content

Code Quiz
24

Treating Documents as Instructions

Code Quiz
25

Encryption In Transit and At Rest

Quiz
26

Excessive Agency in Agents

Quiz
27

Direct vs Indirect Prompt Injection

Quiz
28

Preventing Secret Leakage in Prompts

Quiz
29

Data Exfiltration via Outputs

Quiz
30

RAG Injection via Retrieved Docs

Quiz
31

Least-Privilege for LLM Resources

Quiz
32

Multi-Tenant Data Isolation

Quiz
33

Provider Data Retention Policies

Quiz
34

Trusted vs Untrusted Input Separation

Quiz
35

System Prompt Leakage

Quiz
36

Delimiting Untrusted Content

Quiz
37

Data Exfiltration via LLM Outputs

Slides / Video
38

System Prompt Leakage and Extraction

Slides / Video
39

Direct vs Indirect Prompt Injection

Slides / Video
Code QuizAdvanced

Ungated Tool Execution

The app runs whatever shell command the model emits with no validation, so injected commands execute directly.

Codejavascript
const call = JSON.parse(llmResponse.tool_call.arguments);
if (llmResponse.tool_call.name === 'runCommand') {
  const result = exec(call.command); // run whatever the model asked
  return result;
}

What is the bug in this tool-execution logic?