Fixing leaky logs: how to find a bug and ensure it never returns
Blog post from Semgrep
The blog post advocates for empowering developers to handle security issues themselves, thereby allowing the security team to focus on broader security strategies. The author shares a case study where they and another developer identified and resolved a data leakage issue in their logs without involving the AppSec team, using Semgrep to prevent recurrence. By using SQLAlchemy's logging features, they discovered sensitive tokens were being logged, which prompted them to implement an ObfuscatedString type to prevent such occurrences in the future. To ensure this solution's longevity, they integrated Semgrep into their CI pipeline to enforce coding standards that prevent similar security issues, demonstrating how static analysis can be effectively used to uphold codebase security and avoid repetitive mistakes.