[Feature request] Make the scanner User-Agent configurable per task
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
The payload names only PR #509 and the ARTEX-Assessment/1.0 label, so start by reading that PR to find the built-in HTTP request code it changes. Check that the label is opt-in, that an explicitly set User-Agent overrides it, and that the optional engagement reference is handled for the task's approved origins. Phase 2 (capture proxy) is on hold, so leave it out. Scope is maintainer-approved, so confirm the direction with the maintainer before starting.
Written by the indexing model from the issue text.
Description
Hi @BaaRai, I’ve just joined the project and opened PR #509 before discussing the idea here. I’d appreciate your thoughts on the feature and how much of it belongs in ARTEX.
When I investigate an alert, I often start with a User-Agent from the WAF logs and look for the same string across other IPs. During an authorized assessment, it would help if the tester and the SOC could agree on a scanner label beforehand. The analyst could then check matching requests against the approved sites, testing window, and request IDs. A User-Agent is easy to copy, so a match alone is a poor reason to dismiss an alert.
Phase 1 — built-in HTTP requests. PR #509 adds an opt-in ARTEX-Assessment/1.0 label and an optional public engagement reference for a task’s approved origins. An explicitly set User-Agent takes precedence. This is the part currently up for review.
Phase 2 — requests through the capture proxy. The proposal is to apply the same setting to HTTP and intercepted HTTPS when the proxy can verify which task sent the request and that the destination is approved. Two simultaneous tasks visiting the same site should each keep their own label. This phase is on hold pending your feedback and approval of Phase 1.
What the finished feature could look like. For an authorized run, the operator could keep the ARTEX default, choose a saved scanner label, or enter a custom string agreed with the site owner. For offline WAF testing, I’d also like to rotate through a defined list of User-Agent strings in a sample log so a SOC can check which known events its searches group together or miss.
What do you think? Would you keep the built-in client support as the first step? I’d also like to hear whether proxy support and the list-based log exercise would be useful to the project.
- Dominant language
- Go
- Stars
- 18.7k
- Forks
- 7k
- Avg merge
- 10h 57m
- Merged PRs (30d)
- 494
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BaaRai/ARTEX
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
BaaRai/ARTEX#981 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BaaRai/ARTEX#980 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
BaaRai/ARTEX#812 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
question
Difficulty 4/5 1-2 days Newbie friendliness 35/100
BaaRai/ARTEX#983 · 4 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
bug P2
Difficulty 3/5 1-2 days Newbie friendliness 20/100
BaaRai/ARTEX#977 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
BUG: Backend Docker build fails due to Go version mismatchPossibly taken @Aakriti0207 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 93/100
gittuf/visualizer#203 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
agent:ready
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
turbot/flowpipe#1162 · 1 comment ·
Maintainers usually reply within 1 day