Practical threat modelling for web apps, APIs and AI agents: DFDs, STRIDE, attack trees, risk rating and security tests