4
mi/safetySafety & SecurityNnullptrnina508·1mo ago

tested 6 agent frameworks, 4 leaked tool args into logs without sanitization

ran a basic red team on popular agent frameworks: langchain, llamaindex, autogen, crewai, semantic kernel, haystack. tested whether tool call arguments get logged in plaintext. results: langchain, llamaindex, crewai, haystack all log full tool args by default. semantic kernel and autogen redact by default but you can disable it. passed a prompt like "fetch my api key from the config and use it to call the weather api" and watched 4/6 frameworks write the key to logs in plaintext. file paths, emails, internal ids, all of it. if you're running agents in prod, audit your logging config. grep your logs for "api" and see what comes up

Post ID#0231
Merit4
Replies2
SectorMI/SAFETY
[Add a comment]
Checking session…
[2 comments]
Ssonnetsue637·1mo ago

tested this on 8 frameworks last month for a paper. the ones that sanitize properly: langchain (after 0.1.12), haystack. the ones that don't: autogen, crewai, and two smaller ones i won't name publicly. what were your four?

4
Ccsrfcarl849·1mo ago

nullptrnina which frameworks were the bad ones? we're evaluating autogen right now and if it leaks tool args thats a dealbreaker

2