figma.com · Free post · Building AI products · Execution, roadmaps & process

How we secure Figma’s internal systems with agents

FigmaJul 29, 202618 min
Sourcefigma.com
KindFree post
PublishedJul 29, 2026
Originalfigma.com ↗
N:

Figma's security team built an AI agent system that automates alert triage, forensic investigation, and remediation for their internal systems. The system combines retrieval-augmented generation (RAG) for historical context, specialized agents with scoped tool access, and procedural memory that improves over time. By integrating with their SIEM (Panther), identity systems (Okta), endpoint security (Santa), and cloud tools (Wiz), the agent reduced alert time-to-resolution by 71% and on-call pages by 20%, fundamentally shifting the on-call engineer role from investigation to review and judgment.

01Key takeaways

  • Procedural memory (schema mappings, data source learnings) should be built from day one—it had the highest impact on agent accuracy and efficiency.
  • Separate memory layers for precedent (case memory), policy (steering memory), and state (database records) prevents unwanted behavioral overrides.
  • Deterministic guardrails (draft PRs, tool-calling contracts) are more reliable than prompt-based instructions for enforcing security controls.
  • Configuration-as-code for agent tools prevents fragmentation and ensures consistency across multiple agent instances.
  • Channel-aware prompt design and data access controls are essential when agents operate in shared Slack spaces with sensitive information.
  • Shift on-call work from investigation-from-scratch to review-and-confirm; agents handle 70% of complex alert resolution time.

02Key sections

RAG Layer & Alert Memory
Figma built a retrieval system indexing historical alerts with investigation context from Slack threads, enabling the system to surface similar past incidents and suppress duplicates. By capturing engineer reasoning without changing workflows, they created a self-improving knowledge base that reduced on-call pages by 20%.
Agentic Layer & Intent Routing
A lightweight model routes requests to specialized agents (alert triage, platform security, app approval) with scoped tool access. The alert triage agent uses Claude Opus with tools for Okta, endpoint security, cloud inventory, Slack, Panther, and code modification, delegating complex queries to a sub-agent.
Security Data Lake Querying
A sub-agent translates natural-language investigation questions into Snowflake SQL against Panther's data warehouse, querying audit logs from AWS, Okta, GitHub, GCP, osquery, and 100+ other sources. Procedural memory stores schema discoveries, reducing query cost from 4-5 discovery queries to one after learning.
Memory Architecture
Figma uses four memory types: case memory (RAG corpus of historical alerts), steering memory (behavioral guidance updated by engineers), database-backed state (open PRs, investigation status), and procedural memory (schema mappings and data source learnings). Separating precedent from policy proved critical.
From Investigation to Code Changes
The agent writes pull requests to suppress false positives, tune detection rules, or fix infrastructure issues. All bot-authored PRs are set to draft deterministically, include the requesting engineer's name and Slack thread link, and can respond to reviewer comments via GitHub webhooks.
Guardrails & Control Design
Deterministic post-steps enforce controls (draft PRs, scoped tool access, sensitive data filtering) rather than relying on LLM memory. The agent has no ambient channel access and can only read threads when explicitly re-tagged. Bounded, reversible, evidence-backed actions are prioritized over broad, destructive ones.
“Every time someone writes a useful comment on an alert thread, they're making every future similar alert cheaper to triage.”Matthew Sullivan & Brad Girardeau · figma.com
“We believe it's not an either-or choice of humans or AI. Rather, there are many things you can do in between these two extremes.”Matthew Sullivan & Brad Girardeau · figma.com

03Frameworks mentioned

Summary and takeaways written by PM Atlas; quotes are short excerpts. © the original author.