How han122400/local-attack-agent works
Local Attack Agent is a bounded reconnaissance dashboard for a local OWASP Juice Shop, driven by a locally running Ollama model. A user selects a model and starts a run; the API delegates to the v2 explorer, which observes the browser and network, asks for a plan and permitted next action, and records evidence. Selected read-only requests can proceed to hypothesis experiments and response comparison. The dashboard presents run state, observations, decisions, and lab/model status. The README documents these capabilities; sampled excerpts do not expose every internal call, so some documented links cite the README.
Main entry points: v2.py Run manager · app.py FastAPI API · lab.py Lab status/start · index.html Dashboard UI
Components 16
Dashboard
- Dashboard UI
static/index.html - Dashboard logic
static/app.js - Model status UI
static/ollama-status.js
Run orchestration
- FastAPI API
app.py - Run manager
v2.py - Decision contract
planning.py
Recon and experiments
- Browser observer
v2.py - Request tracker
v2.py - Evidence records
v2.py - Action executor
v2.py - Hypothesis experiments
v2.py - Response comparison
v2.py
Local services
- Lab status/start
lab.py - Juice Shop
- Ollama service
Other components
- Operator
Connections 22
- Operator → Dashboard UI: operates
README.md - Dashboard UI → Dashboard logic: loads
static/app.js - Dashboard logic → FastAPI API: requests state
static/app.js - FastAPI API → Run manager: delegates runs
app.py - FastAPI API → Lab status/start: reads and starts
app.py - FastAPI API → Ollama service: lists and checks
app.py - Run manager → Browser observer: drives observation
README.md - Browser observer → Juice Shop: observes HTTP
README.md - Browser observer → Request tracker: tracks requests
v2.py - Request tracker → Evidence records: records evidence
v2.py - Browser observer → Evidence records: captures screens
v2.py - Run manager → Decision contract: uses decisions
v2.py - Run manager → Ollama service: requests plans
README.md - Run manager → Action executor: dispatches actions
v2.py - Action executor → Browser observer: acts on page
v2.py - Run manager → Hypothesis experiments: runs experiments
v2.py - Hypothesis experiments → Ollama service: requests hypothesis
v2.py - Hypothesis experiments → Response comparison: compares responses
README.md - Response comparison → Evidence records: records results
v2.py - Model status UI → FastAPI API: polls status
static/ollama-status.js - Lab status/start → Juice Shop: checks readiness
lab.py - Lab status/start → Juice Shop: starts container
lab.py