It would be great if we had a Web Application Firewall option for traffic server. Porting modsecurity into a traffic server plugin would be a reasonable place to start looking
https://www.modsecurity.org/
modsecurity seems to have gained acceptance and is supposed via nginix, Apache Httpd, and IIS.
GSoC Jira COMDEV-272 points at this issue.