Most security incidents don't start with a clever zero-day. They start with something ordinary: a leaked API key, an unpatched dependency, a query built from user input. The good news is that a handful of habits prevent a large share of these problems.
Here are five worth building into your everyday workflow, followed by some thoughts for anyone wondering whether security could become more than a side concern in their career.
1. Never trust user input
Any data that comes from outside your code (forms, URLs, headers, uploaded files) should be treated as untrusted. The classic example is SQL injection, which is still common.
python # Risky: user input is concatenated into the query cursor . execute ( f "SELECT * FROM users WHERE email = '{email}'" )
# Safer: parameterised query cursor .…