Security Issues and Prevention
Principal Software Vulnerabilities
SQL Injection - Attacker inserts SQL code into user input fields to manipulate database queries - Can read, alter, or delete data; execute OS commands - Detection: Static code analysis; penetration testing; ML classifiers (Naïve Bayes, decision trees, deep neural networks) - Mitigation: Parameterized queries / prepared statements; input validation; ORM frameworks
Cross-Site Scripting (XSS) - Malicious scripts injected into web pages viewed by other users - Mitigation: Output encoding; Content Security Policy (CSP) headers; input sanitization
Insecure Data Storage - Sensitive data stored without encryption or proper access controls - Mitigation: Encrypt data at rest (AES-256); enforce access control; audit storage configurations
Security-First Development Principles
- Embed vulnerability assessment into the SDLC — not as an afterthought
- Use static analysis tools (SAST) and dynamic analysis tools (DAST) at every build stage
- Conduct regular penetration testing with both automated tools and manual consultants
- Apply least-privilege access at the application, database, and OS layers