Identifying Threats from Diagrams
What you'll learn: How to systematically examine each element in a Data Flow Diagram to discover potential security threats.
The Core Idea
Once you've drawn your Data Flow Diagram (DFD), don't just admire it—interrogate it! Every process, data store, external entity, and data flow represents a potential attack opportunity. Your job is to walk through the diagram methodically, asking "What could go wrong here?" at each stop.
Think of it like a home security inspection: you don't just look at the front door. You check every window, the back door, the garage, the basement—each entry point gets examined for vulnerabilities.
The Systematic Walk-Through
Start with trust boundaries. These are your highest-risk zones. Where data crosses from trusted to untrusted space (or vice versa), ask:
- Can an attacker intercept this data flow?
- Could they tamper with it?
- Is authentication happening here?
Examine each process (the circles in your DFD):
- What if this process receives malicious input?
- Could it leak sensitive information?
- What happens if it crashes or is overwhelmed?
Scrutinize data stores (the parallel lines):
- Who can read this data? Should they?
- Can unauthorized users modify it?
- Is it backed up? Encrypted?
Question every data flow (the arrows):
- Is this communication encrypted?
- Can an attacker spoof the sender?
- Could they replay this message later?
This isn't guesswork—it's disciplined brainstorming anchored to your diagram's concrete elements.
Key Takeaway: Treat your DFD as a treasure map for attackers; systematically question each component and boundary to uncover threats before the bad guys do.