Skip to content

Agent: low-and-slow scanner guidance under a noise profile (off by default) - #212

Merged
BaaRai merged 2 commits into
mainfrom
feat/noise-prompt
Nov 13, 2026
Merged

BaaRai merged 2 commits into
mainfrom
feat/noise-prompt

Conversation

@BaaRai

@BaaRai BaaRai commented Nov 13, 2026

Copy link
Copy Markdown
Owner

What

When ARTEX_NOISE_PROFILE is set (quiet, balanced or aggressive), the planner, worker, main agent and chat system prompts gain a code-owned low-and-slow block: the profile's per-host limits and exact rate/delay flags for the scanners installed in the image (nmap, nuclei, httpx, katana, ffuf, dalfox, sqlmap). It tells the agent to test one host at a time, back off on 429/503 and never raise the rate to meet a deadline.

Default: unchanged

With ARTEX_NOISE_PROFILE unset, empty or off, renderNoiseProfile returns "" and the four prompt builders are byte-for-byte unchanged. TestRenderNoiseProfileOff and TestPromptBuildersNoiseBlock prove it.

Details

  • agent/noise_profile.go: pure renderer, numbers from egress.Profile (RPS, MaxPerHost), delay 1/RPS; no duplicated profile values, no cache.
  • Flags: dalfox v3.2.4 --workers (no -w) and global --rate-limit, with the scan subcommand (verified on the v3.2.4 docs); httpx v1.12.0 -rl/-t (verified on the source); sqlmap at the pinned commit delay in seconds and threads (verified on its conf); nmap/nuclei/katana/ffuf use their standard rate/concurrency flags. Subfinder is passive and has no target-facing rate, so it has no line; the generic fallback covers unlisted tools.
  • README paragraph.
  • No command rewriting, no proxy throttle (PR3), no new dependency, no migration, no API/UI change.

Tests

go test -count=1 ./agent ./egress, go test -race -count=1 ./agent ./egress, go build ./..., go vet ./agent ./egress, gofmt -l clean.

Limitations

Prompt guidance only, not enforcement. Commands launched through Bash are not paced by the governor; the flags are their brake. The model may ignore the block. bbot is covered by the generic fallback. No end-to-end run.

Review

A read-only review found the dalfox -w and the passive subfinder -t; both are fixed in 0116786. The rest of the flags were checked against the pinned sources. No tag, no release.

…fault)

When ARTEX_NOISE_PROFILE is set, the planner, worker, main agent and chat system prompts gain a code-owned block with the profile per-host limits and exact rate/delay flags for the scanners installed in the image. With no profile the block is empty, so every prompt is byte-for-byte unchanged.

README documents the block.
Dalfox v3.2.4 (Rust) has no -w and exposes a global --rate-limit plus --workers (docs/content/reference/cli.md). Subfinder -t only bounds concurrent DNS lookups in active mode, so the passive line is removed; the generic fallback covers it.
@BaaRai
BaaRai merged commit 6620b5e into main Nov 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant