netanelcyber / netanelcyber/AdPentestAI-Python

[Discussion] Safety rails for parallel pentest — throttling, opt-in techniques, kill-switch?

Open
#46 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion security
Dominant language
Python
Stars
5
Forks
2
Avg merge
22h 25m
Merged PRs (30d)
7

Description

Context

--pentest-technique + --pentest-workers can hit 32 hosts concurrently across 5 techniques (SMB null session, LDAP anonymous bind, RPC probe, SMTP VRFY, Kerberos probe). Fast, but potentially:

  • Triggers IDS/EDR at unrealistic-for-manual-testing rates
  • Overloads small labs or shared authorization scopes
  • Produces log volume the blue team was not warned about

Question

Do we need additional safety rails beyond --scope-confirmed?

Options to weigh

  1. Rate limiting — per-host QPS cap, jitter between attempts. Config knob or default?
  2. Technique opt-in — require explicit --pentest-technique smb-null-session,ldap-anon rather than all. Prevents accidental Kerberos-probe storms.
  3. Global kill-switch — Ctrl+C should abort in-flight workers cleanly and emit a partial-results JSON, not lose everything.
  4. Dry-run parity — every technique must produce identical output structure in dry-run vs active, so operators can preview before firing.
  5. Attribution header — inject a User-Agent/comment string identifying the operator (from CLI flag) so blue teams can filter noise during authorized exercises.

Non-goals

  • Blocking legitimate red-team engagements
  • Changing which techniques are available

Opinions on which of these are must-have vs nice-to-have?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the CLI paths for --pentest-technique, --pentest-workers, --scope-confirmed, and dry-run, then trace how the five listed techniques are dispatched. Resolve which safety rails are required before identifying the affected worker, cancellation, output, and attribution code; done means an agreed scope and acceptance criteria, not just an implementation choice.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.