GWAF Crash Course
GWAF Crash Course
• What is GWAF?
• modsecurity and OWASP Core Rule Set(CRS)
• GWAF basic usage
• SecRule
• Troubleshooting : Gwaf splunk logs
• ISRA – Risk assessment on gwaf rules update
What is GWAF ? (1/3)
• GWAF is a bundle including:
• Apache httpd
• Mod_ssl
• Mod_proxy
• Mod_security
• Owasp CRS
• GWAF analyze requests before passed to the solution backend.
• Main filtering rules is OWASP CRS
What is Gwaf? (2/3)
• GWAF is an SSL termination point.
• Has access to the request content in plain text.
• Creates new connection to the backend.
• Other features
• Forward proxy, a server receives requests from your web browser and makes the
request to the Internet on your behalf.
• Reverse proxy, accepts requests from external clients on behalf of servers behind
GWAF.
• Gwaf hide the internal server characteristics, protects from unintentional disclosure.
• Mutual authentication
• Provides load balancing
• Decrease the risk of DDoS
• Protection from robots
What is Gwaf? (3/3)
modsecurity and OWASP CRS
• mod_security
• provides intrusion detection and prevention for web applications, shielding
web applications from known and unknown attacks.
• OWASP CRS
• is a set of applicative firewall rules (layer 7 of OSI model).
• based on negative security model, deny list.
• Detects generic signatures for a common attack category, such as SQL
Injection, Cross Site Scripting, remote code execution, etc.
• Located at https://github.com/coreruleset/coreruleset
• Drawback may block legitimate request, false positive.
• GWAF_paranoia_level, default value is 4
Gwaf basic usage (1/2)
• Gwaf directory structure
• conf/vhost-enable
• conf/vhost-available
• conf/vhost-cluster
• conf/conf.d
• conf/modsecurity
• bin/gwaf_add_instance
• Gwaf templates
• json-https
• webui-https
Gwaf basic usage (2/2)
• Gwaf docker
• Found in Gwaf Docker.
• Quick demo using my docker-compose of Gwaf Docker.
• Describes the setup
• Gwaf edge
• Prepared and setup by Platform team
• with configuration based on IdCloud needs.
• Guide running gwaf edge locally
• Quick demo using my Gwaf edge package.
• Describes the setup
SecRule and SecAction
• SecRule
• See definition and syntax on SecRule
• SecAction
• See definition and See syntax on SecAction
• Processing Phases
• See Processing phases.
Troubleshooting : Gwaf Splunk Logs
• See details on Troubleshooting gwaf splunk logs
ISRA - Risk assessment on Gwaf rules
update(1/2)