Cyber Risks · Trail of Bits Blog

30 new Semgrep rules: Ansible, Java, Kotlin, shell scripts, and more

Summary: Trail of Bits published 30 custom Semgrep rules for Ansible playbooks, Java and Kotlin code, shell scripts, and Docker Compose configuration files, created and used to audit for common security vulnerabilities in those technologies. The rules target issues including unencrypted network transport, disabled SSL certificate verification, insecure command-line flags, and unrestricted IP address binding, and the release brings the firm's total number of public rules to 115.

Key Takeaway: The rules lean on Semgrep's generic mode, which the post says trades more false positives for fewer false negatives - a deliberate choice to avoid missing a critical security bug. One rule flags Docker Compose ports that don't start with a loopback address like 127.0.0.1, which the post notes can lead to firewall bypass.

Read the original at Trail of Bits Blog ↗