Repository navigation
How-to: Protect LangChain agents with langchain-agent-memory-guard (5 minutes) #116
vgudur-dev
started this conversation in
General
Replies: 1 comment
|
Thanks for reading the LangChain how-to. Where to start (vendor-neutral)
New docs GFI for the Framework-integrations pointer: #140 Live ops meters (SEPARATE series — as of 28 Sep 2026 ~09:09 AM PT)Quote as two sentences. Do not add them together.
Letter-packet freeze remains counsel SoT 8,071 pepy / 11,051 clones until counsel updates — that freeze is independent of this ops refresh. Non-claimsNot an OWASP certification. Not a MITRE endorsement. If you cite ATLAS, cite the AML.M0031 YAML listing only (do not say MITRE-approved). Public Apache-2.0 Incubator project. Happy to answer middleware API questions here. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Why
Persistent agent memory / tool outputs are an ASI06 attack surface. OWASP Agent Memory Guard ships a LangChain middleware package so you can wrap an agent without rewriting your memory store.
agent-memory-guardlangchain-agent-memory-guard(PyPI0.1.0)Install
pip install langchain-agent-memory-guard # pulls agent-memory-guard>=0.2.2 and langchain>=0.3.0Quick start (middleware)
Violation modes
Optional: Policy.strict()
(Custom
Policy/ protected keys: see the integration README.)What gets scanned
before_modelafter_modelwrap_tool_callAlternate path: GuardedChatMessageHistory
If you only need guarded chat history (not full middleware):
Try the clinic, then leave an Adopter note
Adopter: <name> — LangChainwith stack versions + what was blocked/allowed.Non-claims
Not an OWASP certification. Not MITRE approval. Public Apache-2.0 project only.
All reactions