AI agent runtime security: how to sanitize prompts of secrets before agents store/use it
I used Claude Code (Anthropic) at our org. And sometimes the agents/claude code use env tokens or stored secrets. Is there a way where we can strip the prompts of the secrets/access keys before it reaches the agent. Something like prompt going into a lambda and getting sanitized before AI using it. I know some repos on GitHub that help find leaked secrets in prompt logs but those are when the prompt logs are stored. I’m seriously thinking about setting up a Capsule or Prompt Security POC, but I want to know if there is a way where the llm/agent doesn’t even see the secret, if it goes into the prompt (by stripping it beforehand) submitted by /u/Ok-Introduction-2981 [link] [comments]