14 lines
473 B
YAML
14 lines
473 B
YAML
apiVersion: configuration.konghq.com/v1
|
|
kind: KongPlugin
|
|
metadata:
|
|
name: ${NAME}-llm-prompt-guard
|
|
namespace: ${NAMESPACE}
|
|
plugin: ai-prompt-guard
|
|
config:
|
|
match_all_roles: false
|
|
deny_patterns:
|
|
- (?i)ignore (all|any|the) (previous|prior|above) instructions
|
|
- (?i)disregard (all|any|the) (previous|prior|above) (instructions|rules)
|
|
- (?i)you are (now|no longer) (DAN|in developer mode|unrestricted)
|
|
- (?i)reveal (your|the) (system prompt|instructions)
|