OpenHands / OpenHands/software-agent-sdk
Security: OWASP Agent Memory Guard integration for memory poisoning defense
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 539
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 137
Description
Feature Request: Memory Security for OpenHands Agents
Hi OpenHands team,
OpenHands (formerly OpenDevin) is one of the most capable open-source software engineering agents. As agents operate with increasing autonomy — reading files, executing code, browsing the web — the risk of memory poisoning attacks grows significantly.
The threat: A malicious file, webpage, or tool output can inject content into the agent's memory/context that biases all subsequent decisions — a form of persistent prompt injection.
OWASP Agent Memory Guard is the reference implementation for OWASP ASI06 (Memory Poisoning):
- Runtime scanning of memory reads/writes for injection payloads and structural tampering
- SHA-256 integrity baselines to detect post-write tampering
- Policy-driven enforcement (block / warn / strip)
- Sub-100μs overhead — zero impact on agent performance
pip install agent-memory-guard
GitHub: https://github.com/OWASP/www-project-agent-memory-guard
PyPI: https://pypi.org/project/agent-memory-guard/
Would love to explore adding this as a security layer in OpenHands' memory/context management. Happy to contribute a PR.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository files, tests, or entry points are named. Start by locating OpenHands' memory/context management and reviewing the linked OWASP Agent Memory Guard package; done would require an agreed integration scope and validation of its runtime scanning, integrity, and policy behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100