Repository navigation
Agent: low-and-slow scanner guidance under a noise profile (off by default) - #212
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
When
ARTEX_NOISE_PROFILEis set (quiet,balancedoraggressive), 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_PROFILEunset, empty oroff,renderNoiseProfilereturns""and the four prompt builders are byte-for-byte unchanged.TestRenderNoiseProfileOffandTestPromptBuildersNoiseBlockprove it.Details
agent/noise_profile.go: pure renderer, numbers fromegress.Profile(RPS, MaxPerHost), delay1/RPS; no duplicated profile values, no cache.--workers(no-w) and global--rate-limit, with thescansubcommand (verified on the v3.2.4 docs); httpx v1.12.0-rl/-t(verified on the source); sqlmap at the pinned commitdelayin seconds andthreads(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.Tests
go test -count=1 ./agent ./egress,go test -race -count=1 ./agent ./egress,go build ./...,go vet ./agent ./egress,gofmt -lclean.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
-wand the passive subfinder-t; both are fixed in0116786. The rest of the flags were checked against the pinned sources. No tag, no release.