Commit e37b4b2
Add security instruction to prevent revealing sensitive information (#285)
## Overview
This PR adds an important security instruction to the agent system
prompt to explicitly prevent the agent from revealing environment
variables, credentials, tokens, API keys, or other system configuration
details under any circumstances.
## Changes
- Added a clear security directive in the agent's system prompt to
refuse requests for sensitive information
- Included guidance to suggest secure alternatives when users request
sensitive data
- Specifically mentioned protection against direct, obfuscated, and
encoded requests for sensitive data
## Motivation
This change addresses a security vulnerability where users could
potentially trick the agent into revealing sensitive environment
variables and credentials through direct or obfuscated requests. By
adding an explicit security instruction to the system prompt, we create
an additional layer of protection against such attempts.
## Testing
The added instruction serves as a directive to the agent's behavior and
doesn't impact functional code. The change only affects how the agent
responds to requests for sensitive information.
<!-- DO NOT EDIT: System generated metadata -->
<!-- WORKER_ID:1751527879545109 -->
---
**Open in Web UI**:
https://d2c09i1k2ray87.cloudfront.net/sessions/1751527879545109
Co-authored-by: remote-swe-app[bot] <123456+remote-swe-app[bot]@users.noreply.github.com>1 parent 9adedd9 commit e37b4b2
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
0 commit comments