How commando-x/vuln-bank-devsecops works
Vuln Bank is an intentionally vulnerable Flask banking application used to teach automated security testing and Kubernetes hardening. Its main workflow is registration and login, followed by account viewing and transfers; loan and administrative operations provide additional banking stages. The sampled app excerpt shows SQLite access and some template rendering, but omits portions of the route implementation. CI security testing and Kubernetes hardening are documented or represented in the tree; their internal wiring is not shown.
Main entry points: app.py Flask routes · bank.db SQLite bank data · devsecops.yml Security test pipeline · app.yaml Bank deployment
Components 19
Banking application
- Flask routes
app.py - Registration
app.py - Login
app.py - Account dashboard
app.py - Balance lookup
app.py - Funds transfer
app.py - Loan operations
app.py - Administration
app.py - SQLite bank data
bank.db
User interface
- Registration form
templates/register.html - Login form
templates/login.html - Dashboard view
templates/dashboard.html - Admin view
templates/admin.html
Security testing
- Security test pipeline
.github/workflows/devsecops.yml - ZAP configuration
.zap/config.yaml
Kubernetes hardening
- Cluster hardening
deploy/k8s-infra-hardening - Bank deployment
deploy/k8s-infra-hardening/manifests/vuln-bank/app.yaml
Other components
- Bank customer
- Bank administrator
Connections 22
- Bank customer → Flask routes: uses
README.md - Bank administrator → Flask routes: uses
README.md - Flask routes → Registration: routes
app.py - Flask routes → Login: routes
app.py - Flask routes → Account dashboard: routes
app.py - Flask routes → Balance lookup: routes
app.py - Flask routes → Funds transfer: routes
app.py - Flask routes → Loan operations: routes
app.py - Flask routes → Administration: routes
app.py - Registration → SQLite bank data: reads/writes
app.py - Login → SQLite bank data: reads
app.py - Account dashboard → SQLite bank data: reads
app.py - Balance lookup → SQLite bank data: reads
app.py - Funds transfer → SQLite bank data: updates
app.py - Loan operations → SQLite bank data: reads/writes
- Administration → SQLite bank data: reads/writes
app.py - Registration → Registration form: renders
app.py - Login → Login form: renders
app.py - Account dashboard → Dashboard view: renders
app.py - Administration → Admin view: renders
app.py - Security test pipeline → ZAP configuration: uses
- Bank deployment → Cluster hardening: part of