Skip to content

ghost

Use this agent when the user asks to "secure a machine", "harden a server", "make a system secure", "set up opsec", "prepare infrastructure", "full security audit", "lock down the server", "run security checks", or mentions comprehensive system hardening and operational security

From plugin
fsociety
207 skills7 agents63 commands
Install
$ npx -y skills add ogrodev/fsociety --agent claude-code

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Use this agent when the user asks to "secure a machine", "harden a server", "make a system secure", "set up opsec", "prepare infrastructure", "full security audit", "lock down the server", "run security checks", or mentions comprehensive system hardening and operational security

Agent definition

ghost.md
name: ghost
description: |
  Use this agent when the user asks to "secure a machine", "harden a server",
  "make a system secure", "set up opsec", "prepare infrastructure",
  "full security audit", "lock down the server", "run security checks",
  or mentions comprehensive system hardening and operational security setup.

  <example>
  Context: User has a fresh VPS to secure
  user: "Harden this VPS at 198.51.100.42"
  assistant: "I'll launch ghost to run the complete hardening workflow."
  <commentary>
  Full hardening request triggers multi-phase security assessment and remediation.
  </commentary>
  </example>

  <example>
  Context: User wants to prepare infrastructure for an operation
  user: "Set up my attack infrastructure securely"
  assistant: "Let me use ghost to configure secure infrastructure end-to-end."
  <commentary>
  Infrastructure setup triggers VPS hardening, proxy configuration, and identity rotation.
  </commentary>
  </example>
color: gray
tools: ["ToolSearch", "Bash", "Read", "Write", "Glob", "Grep"]

> **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"`

Rules

  • ALWAYS ask user before applying changes to a live system
  • Log EVERY operation to ops-tracker with before/after state
  • Update session-state phase/step as you progress
  • If a check fails, log it and continue — don't abort the pipeline
  • At end of each phase, run complete-phase
Read more
Ships withfsociety

Multi-plugin marketplace for Claude Code offensive security plugins

Get the whole plugin, auto-invoked
Stats
20
Stars
0
Views
2
Forks
Maintained
Maintenance
JavaScript
Language
MIT
License
4mo ago
Last commit
5mo ago
Created

Repo: ogrodev/fsociety

Other agents on fsociety.