Reference Library for Coding Agent Falco Threat Detection Rules

Sysdig Secure enables you to create and customize Threat Detection Rules to secure your environment. This topic provides all the fields that apply to Falco rules for the coding-agent source (Claude, Codex, Gemini, and related tooling activity).

Fields

Field Class: Coding Agent

NameTypeDescription
coding_agent.nameCHARBUFCoding agent identifier (e.g., claude_code, codex, gemini): classified at the session-root exec on syscall/file events, or reported by the interceptor on coding_agent-source hook events
coding_agent.cwdCHARBUFWorking directory of the coding-agent session
coding_agent.real_cwdCHARBUFResolved (canonical) working directory of the coding-agent session: on a coding_agent-source hook event the agent-reported cwd with symlinks and . / .. resolved; elsewhere it mirrors coding_agent.cwd
coding_agent.modelCHARBUFModel used by the session, read lazily from the session transcript (Claude and Codex)
coding_agent.session_titleCHARBUFSession title, read lazily from the session transcript (Claude and Codex)
coding_agent.accountCHARBUFAccount signed in to the coding-agent session
coding_agent.orgCHARBUFOrganization associated with the coding-agent session
coding_agent.session_root_pidUINT64PID of the session-root process (the recognized coding agent the process subtree is rooted at); on a coding_agent-source hook event, the session root the event is attributed to
ai_platform.nameCHARBUFSelf-hosted AI app/workflow platform this process belongs to (n8n, langflow, flowise, open_webui, anythingllm): classified at the platform root’s exec and inherited by its subtree
ai_platform.root_pidUINT64PID of the AI platform root the process subtree is rooted at
ai_platform.instance_idCHARBUFIdentity of one AI platform launch on this host (name:root_pid:root_start_time). Distinguishes launches that reuse a PID, but is HOST-LOCAL: group on (machineId, ai_platform.instance_id) when counting launches across a fleet
coding_agent.mcp_serversLIST(CHARBUF)MCP servers the session currently has configured, served per session on every event (cross-agent: Claude, Codex, Gemini)
coding_agent.mcp.added_serversLIST(CHARBUF)MCP servers added in a coding-agent config write (cross-agent: Claude, Codex, Gemini)
coding_agent.mcp.added_commandCHARBUFCommand of an MCP server added in a coding-agent config write (cross-agent: Claude, Codex, Gemini)
coding_agent.mcp.added_argsLIST(CHARBUF)Args of an MCP server added in a coding-agent config write (cross-agent: Claude, Codex, Gemini)
coding_agent.mcp.removed_serversLIST(CHARBUF)MCP servers removed in a coding-agent config write (cross-agent: Claude, Codex, Gemini)
coding_agent.extensions.addedLIST(CHARBUF)Claude desktop extensions added in an extension-inventory write
coding_agent.extensions.removedLIST(CHARBUF)Claude desktop extensions removed in an extension-inventory write
coding_agent.connectors.addedLIST(CHARBUF)Remote MCP connectors newly surfaced in a Cowork session
coding_agent.connectors.removedLIST(CHARBUF)Remote MCP connectors no longer surfaced in a Cowork session
coding_agent.plugins.addedLIST(CHARBUF)Plugins installed in an install-record write, as @ (cross-agent: Claude, Codex)
coding_agent.plugins.removedLIST(CHARBUF)Plugins removed in an install-record write, as @ (cross-agent: Claude, Codex)
coding_agent.change.added_hooksLIST(CHARBUF)Command hooks added in a coding-agent config write (cross-agent: Claude ~/.claude/settings.json, Codex ~/.codex/hooks.json)
coding_agent.change.channelCHARBUFHow a Claude config write was made (intent-ledger attribution; “cli” when CLI-attributed)
coding_agent.change.commandCHARBUFCommand that wrote the Claude config (intent-ledger attribution)
coding_agent.change.targetCHARBUFWhich Claude config an attributed change targeted (claude_mcp, claude_hooks, claude_settings, claude_agent)
coding_agent.allow_permissions_addedLIST(CHARBUF)Permissions newly allowed in a Claude settings write
coding_agent.trusted_projects_addedLIST(CHARBUF)Projects newly granted trust_level=trusted in Codex config.toml
coding_agent.commandCHARBUFName of a custom command/prompt, derived from the file path (Claude command or Codex prompt; no file read)
coding_agent.skillCHARBUFName of a Claude skill, derived from the file path (no file read)
coding_agent.pluginCHARBUFName of a Claude plugin, derived from the file path (no file read)
coding_agent.approval_modeCHARBUFSession’s effective permission/approval mode: Claude’s self-reported hook value on a hook event, else the session’s effective mode read from its transcript — Codex’s approval policy (CLI, profile and config merged) or Claude’s permission mode, whichever the session belongs to
coding_agent.sandbox_modeCHARBUFSession’s effective Codex sandbox mode (CLI, profile and config merged)
ssh.added_keys.fingerprintsLIST(CHARBUF)Fingerprints of keys added to ~/.ssh/authorized_keys
ssh.added_keys.typesLIST(CHARBUF)Types of keys added to ~/.ssh/authorized_keys
ssh.added_keys.commentsLIST(CHARBUF)Comments of keys added to ~/.ssh/authorized_keys
ssh.change.channelCHARBUFHow an ~/.ssh/authorized_keys write was made (intent-ledger attribution; “cli” when CLI-attributed)
ssh.change.commandCHARBUFCommand that added the SSH authorized_keys entry (intent-ledger attribution)
coding_agent.tool.nameCHARBUFName of the tool invoked in a coding-agent hook event
coding_agent.tool.inputCHARBUFTool input payload from a coding-agent hook event, with free-text fields redacted
coding_agent.tool.input_commandCHARBUFCommand extracted from the tool input of a coding-agent hook event
coding_agent.tool.file_pathCHARBUFFile path targeted by the tool in a coding-agent hook event
coding_agent.tool.real_file_pathCHARBUFResolved (canonical) file path targeted by the tool in a coding-agent hook event
coding_agent.tool.mcp_serverCHARBUFMCP server backing the tool invoked in a coding-agent hook event
coding_agent.tool.mcp_toolCHARBUFTool exposed by the MCP server, without the mcp____ prefix, in a coding-agent hook event
coding_agent.tool.invocation_idCHARBUFTool-use identifier from a coding-agent hook event
coding_agent.hook_event_nameCHARBUFName of the coding-agent hook event (e.g., PreToolUse, PostToolUse)
coding_agent.session_idCHARBUFThe agent’s own session identifier: reported by a coding_agent-source hook event, or recovered per session (–resume argv, the agent’s per-pid record, or the transcript file name) on syscall/file events — the join key between the two lanes