How tawffik/security-research-agent works
security-research-agent is an offline-first control plane for authorized AI-assisted security research, not a scanner. Its principal path is recon normalization, opportunity and knowledge analysis, hypothesis/experiment planning, scope-gated observation, evidence capture, then adversarial verification and finding disposition. It also provides resumable sessions, skill routing, trusted state, and evaluation foundations. Relationships below rely on README statements, excerpts, and SOURCE INDEX references; unsampled subsystem internals and some runtime wiring are not asserted.
Main entry points: closed_loop.py Closed-loop runner · research_loop.py Research loop · loop.py Adversarial verification · engine.py Research runtime
Components 21
Control and safety
- Control plane
src/agent_core/control_plane/app.py - Scope guard
src/agent_core/scope/guard.py - Content isolation
src/agent_core/content_isolation/sanitizer.py - Skill registry
src/agent_core/skills/registry.py
Research planning
- Recon adapter
src/agent_core/recon/adapter.py - Target context
src/agent_core/schemas/target.py - Opportunity analysis
src/agent_core/target/opportunity.py - Knowledge retrieval
src/agent_core/knowledge/retrieve.py - Unknowns and beliefs
src/agent_core/beliefs/engine.py - Hypothesis engine
src/agent_core/hypotheses/engine.py - Experiment design
src/agent_core/experiments/designer.py - Research loop
src/agent_core/orchestrator/research_loop.py
Observation and evidence
- Closed-loop runner
src/agent_core/orchestrator/closed_loop.py - Tool boundary
src/agent_core/tools/execution_boundary.py - Evidence store
src/agent_core/evidence/store.py
Verification and reporting
- Adversarial verification
src/agent_core/verification/loop.py - Findings and reports
src/agent_core/findings/report.py
Runtime and evaluation
- Research runtime
src/agent_core/runtime/engine.py - Resumable state tree
src/agent_core/ledger/state_tree.py - Research evaluation
src/agent_core/evaluation/research_utility.py
Other components
- Researcher
Connections 21
- Researcher → Control plane: starts research
README.md - Control plane → Research runtime: manages sessions
src/agent_core/control_plane/app.py - Research runtime → Closed-loop runner: runs offline
src/agent_core/runtime/engine.py - Closed-loop runner → Research loop: plans research
src/agent_core/orchestrator/closed_loop.py - Research loop → Recon adapter: adapts recon
src/agent_core/orchestrator/research_loop.py - Recon adapter → Target context: produces context
src/agent_core/recon/adapter.py - Research loop → Opportunity analysis: identifies opportunities
src/agent_core/orchestrator/research_loop.py - Research loop → Knowledge retrieval: retrieves knowledge
src/agent_core/orchestrator/research_loop.py - Research loop → Unknowns and beliefs: tracks unknowns
src/agent_core/orchestrator/research_loop.py - Research loop → Hypothesis engine: forms hypotheses
src/agent_core/orchestrator/research_loop.py - Research loop → Experiment design: designs experiments
src/agent_core/orchestrator/research_loop.py - Closed-loop runner → Scope guard: checks authorization
README.md - Closed-loop runner → Tool boundary: dispatches actions
- Closed-loop runner → Content isolation: sanitizes target data
src/agent_core/orchestrator/closed_loop.py - Closed-loop runner → Evidence store: records observations
src/agent_core/orchestrator/closed_loop.py - Closed-loop runner → Adversarial verification: requests review
README.md - Adversarial verification → Evidence store: checks evidence
- Adversarial verification → Findings and reports: promotes findings
README.md - Skill registry → Research loop: routes skills
- Research runtime → Resumable state tree: persists resumable state
- Closed-loop runner → Research evaluation: supports evaluation
src/agent_core/evaluation/research_utility.py