Go to https://app.precogly.org and click on "Start Threat Modeling". Then draw the DFD for this system.
PocketLedger is a personal expense tracker. Users log in, add expenses, and view monthly totals. It does not connect to banks or transfer money.
Actor: Registered user. Components: Browser web app, backend API, PostgreSQL database. Trust zones: User device contains the web app. Private server contains the API and database. Flows: Web app ↔ API over HTTPS; API ↔ database over TLS. Assets: Email addresses, password hashes, sessions, and expense records containing date, amount, and category. Assumed controls: Hashed passwords, secure session cookies, input validation, daily backups, and API authorization checks restricting users to their own expenses.