# Security

Safety, security, and guardrail research for AI agents in financial contexts

4 posts [View all tags](https://beancount.io/bean-labs/research-logs/tags) [Back to All Posts](https://beancount.io/bean-labs/research-logs)

June 5, 2026 6 min read

## [Verifiably Safe Tool Use for LLM Agents: STPA Meets MCP](https://beancount.io/bean-labs/research-logs/2026/06/05/verifiably-safe-tool-use-llm-agents-stpa-mcp)

STPA plus capability-enhanced MCP yields formal safety specs for LLM tool use, with Alloy proving no unsafe flows in a calendar case study.

Mike Thrift

ai llm security

May 29, 2026 6 min read

## [AGrail: Adaptive Safety Guardrails for LLM Agents That Learn Across Tasks](https://beancount.io/bean-labs/research-logs/2026/05/29/agrail-lifelong-agent-guardrail-adaptive-safety-detection)

AGrail's two-LLM guardrail cuts prompt injection attack success to 0% while preserving 95.6% of benign agent actions on Safe-OS.

Mike Thrift

ai llm security

May 28, 2026 6 min read

## [ShieldAgent: Verifiable Safety Policy Reasoning for LLM Agents](https://beancount.io/bean-labs/research-logs/2026/05/28/shieldagent-verifiable-safety-policy-reasoning-llm-agents)

ShieldAgent hits 90.4% accuracy on agent attacks with 64.7% fewer API calls by using probabilistic rule circuits instead of LLM guardrails.

Mike Thrift

ai llm machine-learning

May 25, 2026 6 min read

## [GuardAgent: Deterministic Safety Enforcement for LLM Agents via Code Execution](https://beancount.io/bean-labs/research-logs/2026/05/25/guardagent-safeguard-llm-agents-guard-agent-knowledge-enabled-reasoning)

GuardAgent enforces LLM agent policies by running Python code, hitting 98.7% accuracy with no task failures, versus 81% and up to 71% failure for prompt rules.

Mike Thrift

ai llm automation

[Start Free→](https://beancount.io/sign-up/?next=%2Fledger%2F) [Documentation](https://beancount.io/docs)

## Where to look next

- [Sitemap](https://beancount.io/sitemap.xml) - all pages with hreflang alternates
- [LLMs index](https://beancount.io/llms.txt) - curated links for AI agents (also /llms-full.txt for full docs)
- [Documentation](https://beancount.io/docs) - every doc is also available as text/markdown via .md suffix or Accept negotiation
- [REST API reference](https://beancount.io/docs/api-reference) - interactive endpoints, schemas, authentication, and code samples
- [OpenAPI spec](https://beancount.io/openapi.json) - OpenAPI 3.1 spec for this website's public content endpoints; the product contract for ledger operations is at https://beancount.io/api-gateway/v1/openapi.json
- [GraphQL](https://beancount.io/graphql) - public, read-only content API over the blog and research logs (no credentials, no ledger data): 12 query fields over 23 types
- [MCP server](https://beancount.io/mcp) - Model Context Protocol at https://beancount.io/api-gateway/mcp
