http_set_scope
Define in-scope host (and optionally subdomains) so out-of-scope requests are skipped.
This record as markdown: /tools/nyxstrike/http-set-scope.md
What http_set_scope does on Nyxstrike
AI agents use http_set_scope to create or update resources in Nyxstrike, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Nyxstrike environment.
Why http_set_scope is rated Medium
This tool writes/modifies configuration state by defining which hosts are in-scope for penetration testing operations. It does not execute attacks itself, but it controls the targeting scope for subsequent offensive operations. Misconfiguration could direct attacks toward unintended hosts, making it medium severity.
From the tool's definition 'Define in-scope host (and optionally subdomains) so out-of-scope requests are skipped'
Attacks that exploit this kind of access
The rule that runs http_set_scope safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Nyxstrike, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For http_set_scope, this is the rule to start with:
http_set_scope stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Nyxstrike, apply this rule, and every http_set_scope call is checked against it from then on.
Questions about http_set_scope
Define in-scope host (and optionally subdomains) so out-of-scope requests are skipped. It is categorised as a Write tool in the Nyxstrike MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Nyxstrike MCP server in PolicyLayer and add a rule for http_set_scope: 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 Nyxstrike. Nothing to install.
http_set_scope is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the http_set_scope 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.
Set action: deny in the PolicyLayer policy for http_set_scope. 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.
http_set_scope is provided by the Nyxstrike MCP server (CommonHuman-Lab/nyxstrike). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Nyxstrike, and thousands of servers like it.
This server
Across the catalogue