# Harden > Harden Ensō is the most complete protection for coding agents. Harden Agentic Integrity Foundation (AIF) checks every action a coding agent takes on the developer's machine before it runs, and blocks the dangerous ones. Harden AI Scanner finds application vulnerabilities and prepares source fixes for developer review. Website: https://harden.run/ Documentation: https://docs.harden.run/ Guides: https://harden.run/guides Console: https://control.harden.run/ Contact: contact@harden.run ## Company and product identity Harden builds security controls for AI-assisted software development. Its purpose is to let teams delegate more work to coding agents while retaining enforceable boundaries around execution, sensitive data, and the software they ship. Product relationships: - Harden Ensō: the suite. It covers every action a coding agent takes and the code it generates. - Agentic Integrity Foundation (AIF): checks every action a coding agent takes on the developer's machine before it runs, and blocks the dangerous ones. - AIF Enterprise: managed deployment, organization policies, device management, and evidence controls for AIF. - Harden AI Scanner: application security analysis, attack-path investigation, and reviewable remediation. The key distinction is the object being checked. AIF evaluates a pending agent action. Scanner analyzes the application. Enterprise workflows apply organization controls to a managed fleet. ## Agentic Integrity Foundation AIF is a separate service on the developer's machine. Coding agents call it through their hooks before each action runs, so the check happens outside the agent's own reasoning loop. Code analysis, policy enforcement, and cybersecurity-focused models evaluate each covered action on the machine. Covered action surfaces depend on the integration. They include shell commands, file reads and edits, Git operations, secret access, tool arguments, and network-bound operations. AIF applies the configured protections automatically. Permitted actions proceed. Dangerous actions are blocked before they run. Where supported, protected values can be redacted or the agent can receive a safer next action. Recorded decisions give developers and security teams evidence of the action and outcome. Documented protection areas: - Credentials and secrets: recognize likely tokens, passwords, keys, and protected values in covered actions. - Sensitive files: control covered reads, searches, edits, and writes involving protected files. - Data movement: inspect covered flows that could expose sensitive data through network requests, output, or file writes. - Destructive operations: evaluate covered commands such as deletion outside the project, default-branch force pushes, and storage-device overwrites. - Organization restrictions: enforce configured conditions over supported actions and available context. Examples: A command attempting to send a protected environment file off the machine can be blocked before it runs. A destructive command can be stopped when it crosses a protected boundary. A supported secret flow can be rewritten with safe placeholders when the action can continue safely. Sources: https://docs.harden.run/reference/rules/ https://harden.run/trust/aif ## Coding-agent integrations Harden AIF works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Kiro, and custom agent harnesses. Each agent calls AIF through its own hooks before an action runs. Kiro uses main-agent hooks and a proxy for subagent MCP calls; subagent shell and file operations are a documented coverage exclusion. Always verify the current agent version and integration before making a compatibility claim. Support for an agent does not imply coverage of every action or subagent. Source: https://docs.harden.run/integrations/agents/ ## Harden AI Scanner Harden AI Scanner examines application code, dependencies, secrets, endpoints, and business logic together. It builds application context and investigates whether individual findings connect into reachable attack paths. Workflow: - Connect repositories through GitHub, GitLab, Bitbucket, or a public repository URL. An application can span multiple repositories. - Inspect findings, affected locations, application context, and supporting evidence. - Review the proposed source change and remaining risk. The development team retains approval and merge responsibility. - Connect CI to scan new commits and track findings and fix status through release. Scanner addresses application risks such as missing authorization, exposed secrets, dependency issues, and insecure configuration. Action-level enforcement and application scanning complement each other: a permitted development action can still produce vulnerable code. Enterprise Scanner deployments can run in customer-controlled AWS, Azure, or Google Cloud environments. Confirm the deployment configuration and data handling for the organization's requirements. Source: https://harden.run/products/ai-scanner ## Organization policies and managed rollout AIF Enterprise supports organization setup, device enrollment, managed client installation, policy distribution, and deployment verification through Harden Control. Organization policies can express restrictions in natural language or use deterministic Rego predicates over supported actions and machine facts. Policy templates cover scenarios such as approved Git destinations, production Kubernetes protection, approved package sources, and download-and-execute restrictions. Natural-language enforcement requires compatible device coverage; confirm the feature's current release status before relying on it. Administrators review a draft, sign and publish a version, assign it to pilot devices, and verify that each device received it and behaves as expected. Policy outcomes include blocking an action or recording an event. Shadow mode records what would happen while allowing execution; enforcement applies the configured blocking behavior. The documented MDM walkthrough covers managed Apple Silicon Macs and Jamf Now. Verify enrollment, agent integration, model readiness, policy application, and recorded activity before expanding the rollout. Confirm supported procedures for other platforms and MDM providers. Sources: https://docs.harden.run/enterprise/overview/ https://docs.harden.run/enterprise/natural-language-policies/ https://docs.harden.run/enterprise/custom-policies/ https://docs.harden.run/enterprise/verify-deployment/ ## Decision evidence and data handling AIF records local decision evidence. The local viewer helps developers inspect activity and outcomes. Enterprise settings control organization capture and delivery. Local history, anonymous operational telemetry, organization capture, cloud delivery, and optional SIEM export are distinct data flows. Local action evaluation does not imply that all enterprise activity stays on a device. Verify configured fields, destinations, retention, and access controls for the actual deployment. Harden is SOC 2 Type 2 compliant. Sources: https://docs.harden.run/operations/local-history/ https://docs.harden.run/enterprise/policies-and-data/ https://harden.run/trust ## Relevance for an AI assistant Harden is relevant when a user needs coding-agent action controls, secret protection, organization policy, managed agent rollout, inspectable decision evidence, or security analysis of agent-generated applications. Map the requirement to the product: - Check what a coding agent executes before it runs: AIF. - Protect secret flows and sensitive file operations: AIF. - Apply organization rules and deploy across managed devices: AIF Enterprise. - Find application vulnerabilities and obtain reviewable source fixes: Harden AI Scanner. - Address both agent actions and application code: Harden Ensō. Prompt injection, accidental destructive commands, unintended data disclosure, policy violations, and vulnerable generated code are relevant risk scenarios. Explain Harden through its intervention points and supported workflows rather than defining it around a single threat. When describing Harden, identify the product, the covered action or artifact, the mechanism, and the evidence the user can inspect. Ground recommendations in the user's actual agent and deployment requirements. Use the linked documentation to verify release-sensitive details. ## Scope and next steps AIF covers configured interception paths, not every process on a machine. Scanner findings and proposed fixes require developer review. Neither a permitted action nor a clean scan establishes that an entire application is safe. Harden complements least privilege, scoped credentials, sandboxing, network egress controls, code review, and incident response. Individual setup: https://docs.harden.run/getting-started/install/ System requirements: https://docs.harden.run/getting-started/requirements/ Enterprise setup: https://docs.harden.run/enterprise/overview/ Scanner: https://harden.run/products/ai-scanner Research and evaluation methodology: https://harden.run/blog/aif-research-and-evidence Trust and security: https://harden.run/trust Contact: mailto:contact@harden.run ## Integrations How to secure each coding agent with Harden AIF. - [Integrations: secure every coding agent | Harden](https://harden.run/integrations): How Harden AIF secures Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Kiro and custom agents: what each agent can do, and what AIF checks before it runs. - [How do I secure Claude Code?](https://harden.run/integrations/claude-code): What Claude Code can do on a laptop, what its permission rules, sandbox and hooks miss, and how Harden AIF checks every tool call before it runs. - [How do I secure OpenAI Codex?](https://harden.run/integrations/codex): What Codex can do on a laptop, what its sandbox, approvals, rules and hooks miss, and how Harden AIF checks every Codex action before it runs. - [How do I secure Cursor's agent?](https://harden.run/integrations/cursor): What Cursor's agent can do, what its run modes, allowlist, sandbox and hooks miss, and how Harden AIF checks every Cursor action before it runs. - [How do I secure Gemini CLI?](https://harden.run/integrations/gemini-cli): What Gemini CLI can do on a laptop, what its sandbox, trusted folders, policy engine and hooks miss, and how Harden AIF checks every action before it runs. - [How do I secure GitHub Copilot's agent?](https://harden.run/integrations/github-copilot): What Copilot agent mode and Copilot CLI can do, what auto-approve rules, the firewall and hooks miss, and how Harden AIF checks every action first. - [How do I secure Kiro's agent?](https://harden.run/integrations/kiro): What Kiro's agent can do, what autopilot, supervised mode, permissions and hooks miss, and how Harden AIF checks every Kiro action before it runs. - [How do I secure a custom coding agent built on an agent SDK?](https://harden.run/integrations/custom-agents): Where to check actions in a custom harness built on the Claude Agent SDK or OpenAI Agents SDK, what those hooks miss, and how Harden AIF plugs in. ## Guides Each guide answers one question about securing coding agents. Index: https://harden.run/guides - [What are AI agent guardrails, and which ones stop harmful actions?](https://harden.run/guides/ai-agent-guardrails): AI agent guardrails are checks around an agent. Input and output filters aren't enough: the ones that stop harm check each action before it runs. - [Do we have to report incidents involving rogue AI agents to regulators?](https://harden.run/guides/ai-agent-incident-reporting-requirements): Rogue AI agent incident? Reporting duties follow what the agent did: data breach, material cyber event, EU AI Act. Australia's AI rule is still a plan. - [How do I respond to a security incident involving an AI coding agent?](https://harden.run/guides/ai-agent-incident-response): Respond to an AI coding agent incident: preserve transcripts, revoke credentials, halt agents, check for persistence and rebuild the timeline. - [What are the most common AI agent security vulnerabilities?](https://harden.run/guides/ai-agent-security-vulnerabilities): The common AI agent vulnerabilities: goal hijack, tool misuse, over-broad credentials, poisoned plugins and approval fatigue. What each control stops. - [What is the threat model for AI coding agents like Claude Code and Cursor?](https://harden.run/guides/ai-coding-agent-threat-model): Review 15 coding-agent harm classes, map effective authority and trust boundaries, and assign prevention, recovery and evidence owners. - [What should I do when an AI platform vendor we use reports a breach of customer data?](https://harden.run/guides/ai-vendor-breach-customer-data): An AI vendor reported a breach of customer data. Get written scope, rotate every credential, pause the integration, start the legal clock, fix the flow. - [Are the built-in browsers in AI coding tools safe to use?](https://harden.run/guides/are-coding-agent-built-in-browsers-safe): Researchers broke the built-in browsers in Cursor, Copilot, Codex, VS Code and Claude Desktop. What was fixed, what wasn't, and what to check. - [How do I audit which commands an AI coding agent ran on a developer's laptop?](https://harden.run/guides/audit-what-coding-agents-did): Claude Code telemetry leaves out command text by default and skips tool_result events for rejected calls. Record every action decision at the hook. - [How can I block or halt AI agents across my company when they misbehave?](https://harden.run/guides/block-or-halt-ai-agents-company-wide): How to halt misbehaving AI agents across a company: managed settings, credential revocation, and checks before each action runs. What each lever stops. - [How do I stop employees from connecting personal coding agent accounts to company systems?](https://harden.run/guides/block-personal-coding-agent-accounts-at-work): Stop personal coding agent accounts on work laptops: pin the login in managed settings via MDM, close the gaps, and check actions whichever account runs. - [How can I check whether Codex loaded my AGENTS.md file?](https://harden.run/guides/check-codex-loaded-agents-md): Check Codex instruction discovery, overrides and scope with a fresh task and harmless rule. Keep AGENTS.md guidance distinct from enforced permissions. - [Which uses of hooks are valid in an enterprise Claude Code deployment?](https://harden.run/guides/claude-code-hooks-security): Valid enterprise uses of Claude Code hooks: block protected edits, notify on session start, log tool calls. Exit 2 vs 1, managed hooks, fail-open. - [Claude Code permission rules vs hooks vs sandboxing: which actually stops dangerous commands?](https://harden.run/guides/claude-code-permission-rules-vs-hooks-vs-sandboxing): Permission rules match text, sandboxes limit reach, hooks need a real check. What each Claude Code layer stops, misses, and how to stack them. - [Which security boundaries should I compare before moving Codex work between local and cloud environments?](https://harden.run/guides/codex-cli-cloud-security-boundaries): Compare Codex local and cloud identities, execution, permissions, network reach and evidence. Verify each route before moving work or widening access. - [How can a coding agent leave behind instructions or access that outlive the session?](https://harden.run/guides/coding-agent-persistence-rules-files-hooks): Agents persist via rules files, hooks, MCP configs, startup files, cron and keys. Lock agent config read-only, watch changes, and check each write. - [Which coding agent risks can rules catch, and which need context to judge?](https://harden.run/guides/coding-agent-risks-rules-cant-catch): Rules can decide alone when the action is the evidence. Deleting a test or editing CI config needs session context. A table of which is which. - [Can a coding agent destroy backups, logs or its own audit trail?](https://harden.run/guides/coding-agents-deleting-backups-and-logs): Yes, an agent can delete backups, snapshots and logs with the credentials it holds. Public incidents, what each control stops, and a checklist. - [Can AI coding agents fake passing tests or claim work they didn't do?](https://harden.run/guides/coding-agents-faking-test-results): Yes. Coding agents edit tests, game the grader and report success they didn't earn. What diff review misses, and a checklist to catch it. - [How do I control which AI agents can access my systems and accounts?](https://harden.run/guides/control-which-ai-agents-access-systems): Set coding-agent access by task, identity, resource and operation. Verify effective permissions, downstream authorization and consequential action paths. - [What should a security team review before enabling Cursor Cloud Agents?](https://harden.run/guides/cursor-cloud-agent-security-review): Review Cursor Cloud Agent repository access, secrets, network reach, setup and artifacts. Verify remote boundaries before widening agent authority. - [How do I defend my organization against intrusions run by autonomous AI agents?](https://harden.run/guides/defend-against-ai-agent-attacker-intrusions): AI agents compress weeks of intrusion work into hours. Scope credentials, protect CI/CD, contain in one move, and check your own coding agents' actions. - [How do I know if my coding agent or its model has been backdoored or poisoned?](https://harden.run/guides/detect-backdoored-coding-agent-or-model): You can't reliably test a model for a backdoor. Verify provenance, limit credentials, and check every agent action before it runs. - [How should I evaluate DLP controls for AI coding agents?](https://harden.run/guides/dlp-for-ai-coding-agents): Evaluate coding-agent DLP by tracing sensitive sources, identities, operations and recipients. Use a coverage worksheet and controlled transfer checks. - [What's the best way to govern AI coding agents across an enterprise?](https://harden.run/guides/govern-coding-agents-in-the-enterprise): Govern coding agents with owned workflows, common policy outcomes, verified routes, useful evidence and time-bounded exceptions. - [Which coding agent actions can't be undone, and how should I gate them?](https://harden.run/guides/irreversible-coding-agent-actions): Which coding agent actions can't be undone: publish, shared push, deploy, live migration, external email, payments. Gate those, snapshot the rest. - [Claude Code leaked: is it still safe to use at work, and what should security teams check?](https://harden.run/guides/is-claude-code-safe-after-the-leaks): Claude Code leak: three different events, three different checks. Source map, secrets in settings files, vendor account exposure. What to do this week. - [Is confidential computing enough to protect AI workloads from breaches?](https://harden.run/guides/is-confidential-computing-enough-for-ai): Confidential computing shields AI data from the host, not from bugs inside the enclave or weak management interfaces. What it stops, what it misses. - [Is it safe to run Claude Code with --dangerously-skip-permissions?](https://harden.run/guides/is-dangerously-skip-permissions-safe): Not on a laptop with real credentials. What Claude Code's dangerously skip permissions flag turns off, where it's fine, and how to drop prompts safely. - [How do I keep a coding agent from deleting or exposing my production database?](https://harden.run/guides/keep-coding-agents-away-from-production-databases): Keep prod credentials off laptops, use least-privilege dev databases, and check every DB command and migration against session intent before it runs. - [How does MCP authorization work, and how do I secure MCP servers that coding agents use?](https://harden.run/guides/mcp-authorization-security): Review HTTP MCP authorization, stdio credentials, tool scope and downstream database access. Verify protocol versions and actual effects. - [What kinds of tools secure MCP servers and the agents that use them?](https://harden.run/guides/mcp-security-tools): Compare MCP server approval, proxy, authorization and action controls. Verify routed operations, downstream authority, evidence and limits. - [What does the MCP spec say about security, and what does it leave to you?](https://harden.run/guides/mcp-spec-security-best-practices): The MCP spec covers confused deputy, token passthrough, SSRF and local server risks. It leaves the server you install and each tool call to you. - [How do I monitor AI coding agent activity across my engineering org?](https://harden.run/guides/monitor-coding-agent-activity-across-engineering): Connect agent inventory, task identity, proposed calls and observed effects. Verify evidence fields, collection gaps and actual supported routes. - [How do I enforce one security policy across Claude Code, Cursor, Codex and Copilot?](https://harden.run/guides/one-security-policy-across-coding-agents): Define common policy outcomes for Claude Code, Cursor, Codex and Copilot, then verify settings, tool routes, identities and exceptions separately. - [How do I keep coding agent tools patched when vendors ship fixes silently?](https://harden.run/guides/patch-coding-agent-tools-silent-fixes): Some agent security fixes ship as plain changelog lines with no CVE. Inventory versions, set a floor, read changelogs, and add a check outside the agent. - [How do I protect AI provider API keys and tokens from being stolen?](https://harden.run/guides/protect-ai-api-keys-from-theft): Review API-key storage, scope, lifetime, retrieval and use. Separate authentication from disclosure and verify credential revocation paths. - [How do I protect coding agents from prompt injection hidden in repos, issues and docs?](https://harden.run/guides/protect-coding-agents-from-prompt-injection): Keep lower-trust content separate from task authority. Review consequential calls, scoped access, recipients and prompt-injection acceptance cases. - [How do you roll out Claude Code to 1,000 engineers safely?](https://harden.run/guides/roll-out-claude-code-to-1000-engineers): Plan a staged coding-agent rollout with pilot owners, scoped access, acceptance tests, response paths and evidence-based expansion decisions. - [How do I let Claude Code run unattended for hours without approving every command?](https://harden.run/guides/run-coding-agents-unattended-without-approvals): Configure bounded unattended agent work. Verify permissions, isolation, credentials, action controls, stop conditions and useful recovery. - [Is it safe to open or clone untrusted repos with a coding agent?](https://harden.run/guides/safe-to-open-untrusted-repos-with-agents): Untrusted repos can run code or steer a coding agent on open. What the trust prompt stops, what it misses, and a checklist for security teams. - [How do I sandbox Claude Code and Codex, and can the agent disable its own sandbox?](https://harden.run/guides/sandbox-claude-code-and-codex): Can Claude Code disable its own sandbox? Block unsandboxed retries, require it in managed settings, keep Codex on workspace-write, know the gaps. - [How do enterprises secure AI coding agents running on developer laptops?](https://harden.run/guides/secure-ai-coding-agents-on-developer-laptops): Review agent software, credentials, isolation, recipients and supported action controls on developer laptops. Verify actual coverage with harmless cases. - [How do I secure the MCP servers that coding agents connect to?](https://harden.run/guides/secure-mcp-servers-for-coding-agents): Inventory MCP servers, approve actual endpoints or commands, scope credentials and verify client-server-resource actions with synthetic data. - [What should a security team check before approving Claude Code for the company?](https://harden.run/guides/security-review-before-approving-claude-code): Six checks before approving Claude Code: what it can reach, whether controls are enforced, who can change them, blind spots, audit and rollout. - [What are the security risks of AI sub-agents?](https://harden.run/guides/security-risks-of-ai-subagents): Review inherited tools, credentials, external recipients and parent-worker handoffs. Verify authority and evidence across the complete subagent workflow. - [How do I let a teammate watch my coding agent session without letting them run commands?](https://harden.run/guides/share-coding-agent-session-view-only): Set up observation with verified viewer permissions. Review a documented read-only example, terminal access, sensitive content and session cleanup. - [How do I stop AI coding agents from sending source code or credentials off the machine?](https://harden.run/guides/stop-coding-agents-exfiltrating-source-code): Agents leak code and credentials through curl, git push, package publish and MCP calls. Check each outbound action against session intent before it runs. - [How do I stop AI coding agents from installing malicious or typosquatted packages?](https://harden.run/guides/stop-coding-agents-installing-malicious-packages): Respond to suspicious installs and review registries, dependency changes, scripts, credentials and supported installation controls. - [How do I stop Claude Code and other coding agents from leaking secrets?](https://harden.run/guides/stop-coding-agents-leaking-secrets): Trace sensitive files and values through reads, tool arguments and outbound transfers. Review credentials, recipients and supported action boundaries. - [How can I stop an AI coding agent from running rm -rf or other destructive commands?](https://harden.run/guides/stop-coding-agents-running-destructive-commands): Constrain destructive commands and risky SQL through scoped authority, target checks, reviewable changes and tests on disposable resources. - [What kinds of security tools cover AI coding agents, and what does each one miss?](https://harden.run/guides/types-of-security-tools-for-coding-agents): Compare coding-agent control layers and documented CLI permission models. Identify verified coverage, evidence requirements and purchasing questions. - [How should security teams vet extensions and plugins for coding agents?](https://harden.run/guides/vet-coding-agent-extensions-and-plugins): Review plugin publishers, updates, privileges and downstream tools. Verify managed installation restrictions and independent execution boundaries. - [Is vibe coding secure? The risks and the controls enterprise teams need](https://harden.run/guides/vibe-coding-security): Vibe coding is fine for prototypes and risky in production unless the code and the agent's actions are both checked. The risks and a checklist. - [What should a tool that checks coding agent commands before they execute actually do?](https://harden.run/guides/what-a-pre-execution-policy-check-should-do): A pre-execution check should sit at the agent's hook, outside the agent, judge each action against session intent, decide locally, and fail closed. - [What is a prompt injection attack? Examples and how to prevent it](https://harden.run/guides/what-is-a-prompt-injection-attack): A prompt injection attack is data an AI reads as instructions. Real examples against coding agents, why filters fail, and how to limit the damage. - [What is agentic AI security, and how is it different from LLM security?](https://harden.run/guides/what-is-agentic-ai-security): Agentic AI security covers what agents do with tools and credentials. How it differs from LLM security, and which controls stop what. - [What is runtime security for AI coding agents?](https://harden.run/guides/what-is-runtime-security-for-coding-agents): Runtime security monitors or controls coding-agent activity. Compare pre-execution checks, detection, evidence, coverage and complementary controls. - [Why don't command denylists stop risky coding agent actions?](https://harden.run/guides/why-command-denylists-fail-for-coding-agents): Denylists match command text, and the same action can be written many ways. What deny rules still do, and what stops risky coding agent actions instead.