Skip to content

FEAT Add class-only attack registry foundation - #2952

Merged
Richard Lundeen (richlundeen) merged 4 commits into
microsoft:mainfrom
richlundeen:richlundeen-attack-registry-foundation
Oct 7, 2026
Merged

Richard Lundeen (richlundeen) merged 4 commits into
microsoft:mainfrom
richlundeen:richlundeen-attack-registry-foundation

Conversation

@richlundeen

@richlundeen Richard Lundeen (richlundeen) commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR is a prerequisite for the technique registry work. It adds AttackRegistry to discover and build attack classes, without storing live attack instances or technique factories.

  • Reuse Registry discovery, constructor metadata, custom registration, singleton management, and argument resolution for AttackStrategy classes.
  • Resolve objective_target names through TargetRegistry. Preserve live typed configuration objects and advanced Python inputs. Exclude projected identifier children from build references without changing evaluation markers.
  • Add lazy public exports and setup reset support. Discovery and metadata do not construct attacks or call targets, and do not depend on registered techniques.

This PR adds no REST or GUI changes. Nested JSON recipes remain out of scope.

Tests and Documentation

Updated doc/code/registry/0_registry.md with the class-only API and a Python construction example.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@hannahwestra25 hannahwestra25 self-assigned this Oct 6, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	pyrit/models/identifiers/attack_identifier.py
@richlundeen
Richard Lundeen (richlundeen) added this pull request to the merge queue Oct 7, 2026
Merged via the queue into microsoft:main with commit 1d1f995 Oct 7, 2026
50 checks passed
@richlundeen
Richard Lundeen (richlundeen) deleted the richlundeen-attack-registry-foundation branch October 7, 2026 05:11
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.

2 participants