Display AI answers as HTML and links.
Do not execute generated text.
Choose two controls.
Escape HTML, restrict URL schemes and domains, validate schemas, and separate rendering from tool execution.
Detailed explanation
XSS and unsafe links are reduced.
XSS and unsafe links are reduced.
Text cannot become an action automatically.
Text cannot become an action automatically.
Generated text can execute.
Generated text can execute.
Dangerous protocols are accepted.
Dangerous protocols are accepted.
Try it yourself
An example you can run in a temporary verification environment.
AWS公式AIF-C01 Domain 5.1の生成出力、アプリケーションセキュリティ、入力検証を確認する。Expected result
AI出力を表示・処理する境界でXSS、危険URL、意図しない実行を防げる。Key points
- Escaping
- URL restriction
- Execution boundary
Notes
- Environment: AWS公式AIF-C01試験ガイドとAWS公式ドキュメントの確認
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.