June 17

Workshop takeaways: Scaling Your Security Program with Semgrep

0  comments

My key takeaways

  • Detecting the lack of using secure defaults is much easier then finding bugs
  • "You can get amazing security wins if you can get a bit draconian about coding standards"
  • Blue teams can win, if they outmaneuver attackers in the OODA loop: 👀 🧠 👍 💪
  • generic checks can provide a lot of value, checks specific to your company can have a massive ROI
  • static code analysis may help new developers get up to speed faster by giving them hints on company specific coding standards
  • it may also help me as a dev to instantly create more secure code e.g. by using Semgrep with predefined OWASP Top 10 rules
  • "Semgrep" = semantic globally search for a regular expression and print matching lines
    • grep is a common Unix console program
  • Semgrep is well integrated in Gitlab
  • semgrep playground can be used for testing the tool with out the need to install anything
  • semgrep can also be used to scan for secrets and credentials -> no more accidential leaking :D
  • polyglot file support (like JS in HTML) is coming soon
  • semgrep is aware of comments and filters them out; No need to write rules to NOT find patterns in comments

Quote

Semantic means it's more than "syntactic", like handling import aliasing -- @clintgibler

Env

additional links

Slides


Tags

code review, devsec, DevSecOps


You may also like

Event takeaways: BSidesMeSh21 – day 2

My key takeaways 11 min from publishing credentials (accidently) to github till pwn 2019: ~200k credentials in Github ; 2021: +20% runtime secrets go to application secrets managers AWS Secrets Manager GCP Secrets Manager Hashicorp Vault Azure Vault InfoSec’s dirty little secret: We can’t know all the options, but we still need to help secure

Read More

Event takeaways: BSidesMeSh21 – day 1

My key takeaways Security in sprints vs whole security sprints? Smaller activities from the very beginning. It is not full time, but always ongoing. And maybe, if the situation is very tricky, entire sprints might be necessary, too. — Thomas Fricke Kubernetes does its best to be secure inside. Unfortunatly it is not configured so

Read More