New Your team’s decisions, in one playbook every coding agent works from. Never answer your agent twice

harden_host

Host hardening: services, permissions, systemd, cron, umask, banners, USB control

SERVERDefense SOURCEdefense-mcp-server
Medium RISK CLASS
Category Write
Parameters 121 required
Recommended Rate-limitedsee the rule below
Registry record Grade F, identity unverified Pull the record →

This record as markdown: /tools/defense/harden-host.md

What harden_host does on Defense

AI agents use harden_host to create or update resources in Defense, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Defense environment.

ParameterTypeRequiredDescription
mode string Octal permissions, e.g. '600'
path string File or directory path
group string File group, e.g. 'root'
owner string File owner, e.g. 'root'
scope string Permissions audit scope
action string Yes Action to perform
dry_run boolean Preview changes
service string Service name
targets array Files to update for umask
show_all boolean Show all services, not just flagged
device_id string USB device ID in vendor:product format
recursive boolean Apply recursively

Parameters from the server's own tool schema.

Why harden_host is rated Medium

The tool creates or modifies system configurations (services, permissions, systemd, cron, umask, banners, USB control) which are reversible changes. While it affects security posture significantly, these modifications are not inherently destructive (can be undone/reverted) and do not execute arbitrary code or delete data.

From the tool's definition Tool performs host hardening via modifying services, permissions, systemd configurations, cron jobs, umask settings, and system banners—all of which involve creating or modifying system configurations and settings.

Risk signalsAccepts file system path (path) · High parameter count (21 properties)

Questions about harden_host

What does the harden_host tool do? +

Host hardening: services, permissions, systemd, cron, umask, banners, USB control. It is categorised as a Write tool in the Defense MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

What parameters does harden_host accept? +

harden_host accepts 12 parameters: mode, path, group, owner, scope, action, dry_run, service, targets, show_all, device_id, recursive. Required: action. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on harden_host? +

Register the Defense MCP server in PolicyLayer and add a rule for harden_host: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Defense. Nothing to install.

What risk level is harden_host? +

harden_host is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit harden_host? +

Yes. Add a rate_limit block to the harden_host rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block harden_host completely? +

Set action: deny in the PolicyLayer policy for harden_host. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides harden_host? +

harden_host is provided by the Defense MCP server (defense-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on Defense, and thousands of servers like it.

Across the catalogue

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Defense's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.