Working with horizon3 mcp
Skill ajilty/agentic/skills/knowledge/working-with-horizon3-mcp
Horizon3 / NodeZero MCP (pentest results): in-band introspection is broken but the public GraphQL docs are WebFetch-able, the get_h3_terminology schema cheat-sheet, the action_logs_page per-host command log (filter_by_inputs, page_size-100 cap, attempted-vs-proven), remediation fields the API never exposes, two-field clean-run corroboration, ~24h token TTL, 5-day loot expiry. Use when reading NodeZero pentest results, pulling the per-endpoint action log, or hitting "Cannot query field" GraphQL errors.From its SKILL.md
npx -y skills add ajilty/agentic --skill working-with-horizon3-mcpAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
9.2 KB, as published. Nobody here has run it
Working with the Horizon3 / NodeZero MCP — sharp edges
How to drive the Horizon3 MCP for reading autonomous-pentest results. The server is an HTTP MCP
at mcp.horizon3ai.com. If tools are deferred, load schemas first (e.g. ToolSearch
select:mcp__horizon3__run_h3_graphql_query). run_h3_graphql_request is deprecated and
no-ops — use run_h3_graphql_query for every read. If the tools aren't present, call
mcp__horizon3__authenticate for an OAuth URL — but authenticate itself may not be exposed
in a given session, in which case re-auth requires reconnecting the connector interactively.
Token TTL is ~24h in practice — while a pentest's loot clock is live, expect re-auth to be a
near-daily task, and preflight this connector every run. Treat a dead Horizon3 connector as
time-boxed loss, not a cosmetic gap: pentest loot files expire ~5 days after completion.
Read-only: never call run_pentest or any mutation.
Terminology gate (mandatory, and it's also your schema cheat-sheet)
- Call
get_h3_terminologyFIRST, every session. The MCP's own tool contracts require it, but the real reason is that it's the most reliable schema documentation available — introspection is broken (below). It defines the concept hierarchy and names field groupings (e.g. it revealsremediation_guidancedecomposes intofix_action/fix_action_description/fix_action_link). - Concepts that change how you report: weakness = proven-exploitable (not a theoretical vuln); impact = a business consequence NodeZero actually achieved; attack_path = a proven chain; context_score (0-10) = real-world exploitability — rank on this, not CVSS base.
Reading a completed pentest
- Easy path for locating + stats:
get_pentest_details(filtertext_search/completed_after/state), then re-call withinclude_vulnerabilities/include_attack_paths/include_credentials = trueon thepentest_id. Good for headline counts. - Query objects that exist:
pentests_page,weaknesses_page(input:{op_id}),attack_paths_page(page_input),credentials_page(input:{op_id}). There is NOimpacts_pageand NOfix_actions_page— theQuerytype has neither (the "Did you mean" error confirms it). Read impacts via the pentest'simpacts_countplus the attack-path objects, not a standalone page. - No API field returns a NodeZero console/portal URL (
pentests_pageandget_pentest_detailsexpose no link field). Hand a pentest to the user byop_idwith "open it in the NodeZero Portal" — never a guessed console URL.
The action log — the per-host command record
action_logs_page is the complete log of every command NodeZero ran, per host — the thing to
read for "what did it try against endpoint X," including attempts that never became findings.
It's not in the terminology cheat-sheet; get its exact shape from the public docs (below).
- Shape:
action_logs_page(input:{op_id:"…"}, page_input:{page_size:100, filter_by_inputs:[{field_name:"endpoint_ip", values:["10.0.0.5"]}]}) { action_logs { start_time end_time endpoint_ip cmd module_id module_name exit_code target_h3_names } }. - Filtering is
page_input.filter_by_inputs: [FilterByInput], each{field_name, values, not_values, greater_than / greater_than_or_equal, less_than / less_than_or_equal, is_null}. A barefilter_by:{…}object crashes the server with a generic "unexpected error" — it does not exist. Supportedfield_names includeendpoint_ip,module_id,exit_code, and the start/end times. page_sizecaps at 100 (default 20); a larger value silently returns ≤100, so apage_size:4000pull looks like "the whole op" but is only the first ~100 rows (opening recon, sorted bystart_timeascending). Paginate withpage_numto walk the rest.exit_codeis the tool's exit, not exploitation success —0means the module ran to completion, not that the target was compromised.- Attempted ≠ proven. A blocked or failed exploit appears in the action log but never
becomes a
weaknesses_pageentry and leavesimpacts_count: 0. "Absent from weaknesses" means "not proven" — not "not attempted" and not "not exploitable"; a control (e.g. an EDR block) can suppress the callback NodeZero needs to score it. When a host's defensive posture is the question, read the action log, not just the weaknesses.
Remediation — the trap that costs a re-run
- Get remediation text from
weaknesses_page(input:{op_id}).weaknesses.vuln.description. That's where the usable fix guidance lives (e.g. a Jenkins CVE description spelling out the exploit mechanics and the fix version). - The
fix_action/fix_action_description/fix_action_linkfields are NOT exposed on theWeaknessorVulnGraphQL types — despiteget_h3_terminologyadvertising them. NodeZero's step-by-step fix actions are portal/report-only; don't promise them from the API. - Do NOT trust
get_vulnerability_details(include_remediation=true)— it reports remediation as "not available in current GraphQL schema," which mislabels the gap. The description is available viaweaknesses_page; the helper just doesn't fetch it. Go to raw GraphQL.
"Clean run" needs two corroborating fields, not one
A no-impact result is confirmed by impacts_count: 0 AND an empty attack_paths array
together — treating either alone as "clean" risks reading a display/pagination gap as an
all-clear. NodeZero can reach 1,000+ hosts and harvest creds yet still chain zero proven impact;
that's the signal to report, with both fields cited.
But 0-impact is a proven-results statement, not a clean bill of health: if a control blocked an
exploit mid-run, the attempt still sits in the action log while impacts_count stays untouched —
cross-reference the action log (above) before reporting a host as unexposed.
Pagination + filtering gotchas
weaknesses_pagereturns a default page (~20) — the full set can be several times larger. Paginate for exhaustive enumeration; the severity ceiling and distinct classes are usually visible on page one, but counts are not.OpInput(theweaknesses_pageinput) hasop_idbut noseveritiesfilter — filter severity client-side after pulling.- Weakness fields that work:
uuid,vuln_name,severity,score,ip,host_name,proofs, and nestedvuln { id name description }. Field-name traps: it'shost_namenothostname, andproofsnotproof(both miss with a "Did you mean" hint).Vulnhasdescription, NOTremediation.PageInfohas nototal_count— count client-side.
Introspection is broken — the public docs portal is the fallback
- Discover fields the MCP-native way first.
get_h3_terminology(the cheat-sheet — call it every session) plus the known-good field lists above plus incremental trial against the live query engine, which returnsCannot query field 'X' on type 'Y'and sometimes aDid you mean 'Z'?hint on scalar fields (not on every miss). In-band__typeintrospection andfetch_h3_graphql_docsboth error server-side ("An unexpected error occurred. We are investigating."), so you build the query up from terminology + trial, not from live introspection. - When trial-and-error stalls, WebFetch the public docs: https://docs.horizon3.ai/api/graphql/.
They are fetchable and authoritative. Reach for them the moment probing isn't converging — a
nested input shape crashes with a generic "unexpected error" and no field hint (e.g. the
filter_by_inputsshape), which trial-and-error cannot recover on its own; the docs settle it in one shot. "Introspection is broken" is not "the schema is undiscoverable" — the HTML portal is the escape hatch.
Credentials + data
credentials_page(input:{op_id}), cred_type (e.g. SNMP_COMMUNITY_STRING, STANDARD).
Report type and count only, never secret values.
Scope-awareness when reporting (don't overclaim)
An internal network pentest (e.g. "From <site> - 10.0.0.0/8") is scope-disjoint from the cloud-identity/control plane — identity providers, cloud IAM roles, and CDN/WAF perimeter won't appear and are outside its reach. A clean network pentest neither clears nor challenges those; say so explicitly rather than letting "0 impacts" imply the identity plane is fine.
What this skill does not cover
Running or scheduling pentests, writing findings, or investigating to a verdict — this is read-only results reading.
Wrong, stale, or missing edge? File it: https://github.com/ajilty/agentic/issues/new?template=edge-report.yml