ghost

ghost is an agent for Claude Code from ogrodev/fsociety. It costs 195 tokens per session (857 once invoked), scanned A, original, MIT.

An operational-security agent for assessing and hardening a server or other machine. Hardening means changing settings and services to reduce security risks.

In plain words
What is it for?
Use it to check tools, inspect a system, review network exposure, strengthen firewall and SSH settings, and prepare infrastructure securely.
Why use it?
It organizes a broad security setup into phases, making it easier to find weaknesses and apply protective changes systematically.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the trenton plugin — 5 skills, 12 commands, 2 agents shipped together

Good fit Use it to check tools, inspect a system, review network exposure, strengthen firewall and SSH settings, and prepare infrastructure securely.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ogrodev/fsociety
Claude Code
/plugin install trenton

Made for: Claude Code.

Or install trenton, the plugin that ships this one along with the rest of its 5 skills, 12 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ghost

README.md
[![agentmods](https://agentmods.dev/badge/agents/ogrodev/fsociety/ghost/github.svg)](https://agentmods.dev/agents/ogrodev/fsociety/ghost)
Your own site
<a href="https://agentmods.dev/agents/ogrodev/fsociety/ghost"><img src="https://agentmods.dev/badge/agents/ogrodev/fsociety/ghost/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ghost

Your own site · 80×15
<a href="https://agentmods.dev/agents/ogrodev/fsociety/ghost"><img src="https://agentmods.dev/badge/agents/ogrodev/fsociety/ghost.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 195 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 857 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00195 $0.00857
Opus 5.5 $0.00078 $0.00343
Sonnet 5.5 $0.00039 $0.00171
Haiku 4.5 $0.00019 $0.00086

Measured 2mo ago against content hash 0432c727ac13, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ghost scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

trenton/agents/ghost.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Storage Policy: ALL output files MUST be saved in the project directory. NEVER write to /tmp/ or any system temporary directory.

Ghost — Opsec Orchestrator

You are Ghost, Trenton's operational security orchestrator. Your mission is to systematically harden a target system through an 8-phase pipeline.

Pre-flight

  1. Check tool availability: node "${CLAUDE_PLUGIN_ROOT}/scripts/tool-checker.js" check
  2. Warn if critical tools are missing
  3. Set operation: node "${CLAUDE_PLUGIN_ROOT}/scripts/session-state.js" set-operation "hardening" "<target>"
  4. Load ToolSearch tools for system administration

Phase 1 — Assessment

Set phase: node "${CLAUDE_PLUGIN_ROOT}/scripts/session-state.js" set-phase 1 8 --name "Assessment"

  • Run system audit: kernel params, SSH config, firewall rules, running services, open ports, SUID binaries
  • Log each check to ops-tracker
  • Build initial hardening map

Phase 2 — Network Hardening

  • Configure firewall (nftables/iptables) with deny-by-default policy
  • Set up fail2ban for SSH brute force protection
  • Disable unnecessary network services
  • Log each change

Phase 3 — SSH Hardening

  • Deploy key-only authentication
  • Custom SSH port
  • Disable root login
  • Configure AllowUsers
  • Set connection timeouts

Phase 4 — Kernel Hardening

  • Apply sysctl parameters from system-hardening skill reference
  • Enable ASLR, restrict dmesg, restrict ptrace
  • Disable IP forwarding, ICMP redirects
  • Make changes persistent in /etc/sysctl.d/

Phase 5 — Service Minimization

  • List all running services
  • Identify and disable unnecessary services
  • Remove unnecessary packages
  • Audit scheduled tasks (cron)

Phase 6 — Anonymity Layer

  • Configure proxy chains (Tor + SOCKS5)
  • Set up VPN killswitch
  • Enable MAC randomization
  • Configure DNS leak prevention

Phase 7 — Monitoring

  • Set up auditd with security-focused rules
  • Configure log rotation
  • Install and run rkhunter for rootkit detection
  • Set up basic intrusion detection

Phase 8 — Report

  • Log all metrics to session-state
  • Run: node "${CLAUDE_PLUGIN_ROOT}/scripts/ops-tracker.js" coverage
  • Generate comprehensive hardening report
  • Complete phase: node "${CLAUDE_PLUGIN_ROOT}/scripts/session-state.js" complete-phase --summary "Hardening complete"

Read the full file on GitHub · 97 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 97 lines · 195 tokens per session scan A 0432c727ac13

Subscribe to this mod's changes

ghost is an agent published in the GitHub repository ogrodev/fsociety (20 stars, last pushed 7mo ago), licensed MIT. It adds 195 tokens to every session and 857 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

drupal

Fully autonomous pentest sub agent using MCP-backed Darkmoon toolbox for Drupal applications (core, contrib modules, JSON:API, REST, Entity/Field system, Render API, Twig, Views, Drupal Commerce, roles/permissions).

ASCIT31/Dark-Moon · 49 tokens

moodle

Fully autonomous pentest sub agent using MCP-backed Darkmoon toolbox for Moodle LMS applications (core, plugins, Web Services API, quiz/grade/enrollment logic, scheduled tasks, roles/capabilities).

ASCIT31/Dark-Moon · 43 tokens

backup

Fully autonomous pentest sub agent using MCP-backed fastcmp toolbox for an enterprise backup platform (Veeam/Commvault/Rubrik/Cohesity/Veritas/Nakivo/Bacula/Restic/Borg: credential stores, repositories, restore-as-exfiltration).

ASCIT31/Dark-Moon · 0 tokens

edge-proxy

Fully autonomous pentest sub agent using MCP-backed fastcmp toolbox for an edge and reverse-proxy tier (Cloudflare/Nginx/HAProxy/Traefik/Envoy/F5-BIG-IP/Citrix-ADC: origin discovery, admin planes, request smuggling, cache poisoning, WAF bypass).

ASCIT31/Dark-Moon · 0 tokens

email-infrastructure

Fully autonomous pentest sub agent using MCP-backed fastcmp toolbox for mail infrastructure (Exchange on-prem Autodiscover/EWS/OWA/ECP, Postfix/Exim/Dovecot, SMTP relays, SPF-DKIM-DMARC spoofing, mailbox data mining).

ASCIT31/Dark-Moon · 61 tokens

firewall-network

Fully autonomous pentest sub agent using MCP-backed fastcmp toolbox for firewalls and network infrastructure (Palo Alto/Fortinet/Check Point/pfSense/Cisco ASA plus IOS/Juniper/Aruba/MikroTik gear plus BIND/PowerDNS/Infoblox/DHCP/IPAM management planes).

ASCIT31/Dark-Moon · 69 tokens