Cloud Attack Path Visualiser
π‘οΈ Cloud Attack Path Visualiser
A Graph-Based Framework for Cloud Attack Path Discovery, Risk Assessment, and Visualization
β οΈ DEFENSIVE TOOL ONLY β This tool analyzes simulated AWS-style JSON configs. It never contacts real cloud accounts or performs any attacks.
Features
9 Deterministic Security Detectors β SSH exposure, public DB ports, public S3, unencrypted storage, public RDS, overly permissive IAM, hardcoded secrets, and more
Graph-Based Attack Path Discovery β Builds a networkx graph and finds multi-step attack paths from internet to high-value targets
Risk Scoring β 0β100 overall risk score with severity breakdown
Interactive Visualization β Pyvis-powered interactive network graph in the Streamlit dashboard
REST API β FastAPI endpoints for programmatic access
Optional AI Explanation β Uses OpenAI (if configured) to explain findings in plain English
Architecture
src/ β Core engine (no Streamlit dependency)
models.py β Pydantic data models
parser.py β JSON config parser
detectors.py β Security misconfiguration detectors
graph_builder.py β Networkx graph construction
pathfinder.py β Attack path discovery
risk_scorer.py β Risk scoring
explainer.py β AI explanation (optional)
engine.py β Pipeline orchestrator
api/main.py β FastAPI REST API
app/streamlit_app.py β Streamlit dashboard
tests/ β pytest test suite
data/ β Sample simulated configs
Quick Start
Install dependencies
pip install -r requirements.txt
Run full test suite (73 tests)
pytest tests/ -v
Launch the interactive Streamlit dashboard
streamlit run app.py
Or start the FastAPI server
uvicorn api.main:app βreload
API Usage
Health check
curl http://localhost:8000/health
Full analysis
curl -X POST http://localhost:8000/analyze
-H βContent-Type: application/jsonβ
-d @data/sample_config.json
βdata-urlencode βconfig@data/sample_config.jsonβ
Or with Python
import httpx, json
config = json.load(open(βdata/sample_config.jsonβ))
resp = httpx.post(βhttp://localhost:8000/analyzeβ, json={βconfigβ: config})
print(resp.json())
Built with
AI tools
Prize Categories Entered
- Event prizeSubmitted
AI in Cybersecurity β OWASP JIS University