security.agent

Connect an agent

ThreatCrush runs an MCP server with OAuth 2.1. Point an agent at it, sign in once, and the agent can check addresses and files, read what was found on your servers, and record the fix.

MCP

Claude Code, Codex and other terminals

claude mcp add --transport http threatcrush https://threatcrush.com/api/mcp

The first tool call opens a browser to sign in with ThreatCrush (OAuth 2.1 with PKCE). Nothing to paste.

claude.ai, ChatGPT and other connector screens

https://threatcrush.com/api/mcp?login

Add it as a custom connector. The ?login form asks for sign-in right away, for screens that only offer OAuth when the first request is refused.

From a shell or a script

bunx @profullstack/securityagent login          # OAuth 2.1 in your browser
bunx @profullstack/securityagent check 203.0.113.9
bunx @profullstack/securityagent findings

Or a local MCP server on stdio: claude mcp add securityagent -- bunx @profullstack/securityagent mcp. On a server with no browser, set THREATCRUSH_API_KEY to a tc_agent_ key instead of signing in.

What the agent gets

ToolNeedsWhat it answers
av_hash_lookupno sign-inIs this file known malware, or a published known-good file? Up to 100 SHA-256 hashes; file contents never leave the machine.
reputation_lookupreadDid independent ThreatCrush servers block this IP address or domain? Listed or not, a 0 to 100 score, reports, rules, country.
reputation_bulkreadThe same for up to 100 indicators at once (1,000 with Reputation Pro).
findings_list, findings_getreadWhat threatcrush scan, pentest and ai-scan found in your code, URLs and LLM apps, deduped across runs.
findings_triagewriteAcknowledge a finding, mark it fixed, a false positive or ignored, with a note.
incidents_list, incidents_getreadIncidents raised to your team: evidence, the source address, block history, fix progress.
incidents_updatewriteRecord fix work: assignees, PR link, test status, resolution.
incidents_raisewrite, pages peopleRaise an incident. A new one pages the team by SMS and email, so an agent should ask first.
webhooks_*read and writeSigned webhooks for detection.created, findings.raised and reputation.changed.

Read tools are safe to call freely. The write tools change what your team sees, so tell your agent to confirm with you first. The live list: /api/v1/tools.

Sign-in, exactly

ThreatCrush is the authorization server. Clients are public (no secret), register themselves (RFC 7591), and use the authorization code grant with PKCE S256. Access tokens last an hour and refresh tokens rotate. A token works on the MCP endpoint and nowhere else.

Discovery      https://threatcrush.com/.well-known/oauth-authorization-server
Resource       https://threatcrush.com/.well-known/oauth-protected-resource
Scope          mcp

See and revoke what you approved in your ThreatCrush account. Signing out here revokes this site's grant.

CLI and TUI

bunx @profullstack/securityagent                     # interactive
bunx @profullstack/securityagent login               # sign in with ThreatCrush (OAuth 2.1, loopback redirect)
bunx @profullstack/securityagent check example.com   # an IP, a domain, a URL or a SHA-256
bunx @profullstack/securityagent check --file ./download.bin   # hashes the file locally, sends only the hash
bunx @profullstack/securityagent findings --severity critical,high
bunx @profullstack/securityagent incidents --status open
bunx @profullstack/securityagent mcp                 # MCP server on stdio
bunx @profullstack/securityagent logout              # revoke and forget the token

The CLI talks to ThreatCrush directly: your token stays in ~/.config/securityagent on your machine and never passes through this site. --json on any command. Exit code 2 means malicious, so a script can gate on it.

Which engine answers what

AskGoes to
Is this address, domain or file bad? What was found or raised on my servers?ThreatCrush: facts, always first
What does this result mean? What should I fix first?c0mpute: open models on peer nodes, only when asked (explain=1, /api/v1/brief)
Do something on my own computer: open a page, click through an app, hand me a 2FA promptW3BS desktop: through the tunnel your desktop opens, with your approval

API

For a script that already holds a ThreatCrush credential (an OAuth access token or a tc_agent_ key). It is passed through to ThreatCrush for that one request and not stored.

curl https://security.agent.pit.world/api/v1/check?q=275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f
curl -H "Authorization: Bearer $THREATCRUSH_API_KEY" "https://security.agent.pit.world/api/v1/check?q=203.0.113.9"
curl -H "Authorization: Bearer $THREATCRUSH_API_KEY" https://security.agent.pit.world/api/v1/findings
curl -H "Authorization: Bearer $THREATCRUSH_API_KEY" https://security.agent.pit.world/api/v1/incidents

# the c0mpute analyst
curl "https://security.agent.pit.world/api/v1/check?q=203.0.113.9&explain=1" -H "Authorization: Bearer $TOKEN"
curl -X POST https://security.agent.pit.world/api/v1/brief -H "Authorization: Bearer $TOKEN"

# your desktops (needs a person's OAuth token, not a tc_agent_ key)
curl https://security.agent.pit.world/api/v1/desktops -H "Authorization: Bearer $TOKEN"
curl -X POST https://security.agent.pit.world/api/v1/desktops/dt_…/call -H "Authorization: Bearer $TOKEN" \
     -H 'content-type: application/json' -d '{"tool":"desktop_screenshot","arguments":{}}'

A desktop call goes through the tunnel to the W3BS broker on that desktop, which applies its own grants and asks the person before an agent drives. Tools: desktop_status, desktop_windows, desktop_screenshot, task_begin, mouse_click, keyboard_type, human_step and the rest of the desktop layer.

Agents reading this site: /llms.txt. Source: github.com/moshcoder/security.agent (MIT).

Then protect the servers

An agent that can read incidents is most useful when something is producing them. Install ThreatCrush on a Linux server and it starts detecting and banning in a minute.

curl -fsSL https://threatcrush.com/install.sh | sh