<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Waf on dKade's notes</title><link>https://dkade.com/tags/waf/</link><description>Recent content in Waf on dKade's notes</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>dkade@dkade.com (Daniel Loureiro)</managingEditor><webMaster>dkade@dkade.com (Daniel Loureiro)</webMaster><lastBuildDate>Thu, 11 Mar 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://dkade.com/tags/waf/index.xml" rel="self" type="application/rss+xml"/><item><title>Tips and lessons learnt by using AWS FMS and WAFv2</title><link>https://dkade.com/posts/aws_tips_waf_fms/</link><pubDate>Thu, 11 Mar 2021 00:00:00 +0000</pubDate><author>dkade@dkade.com (Daniel Loureiro)</author><guid>https://dkade.com/posts/aws_tips_waf_fms/</guid><description>&lt;ul&gt;
&lt;li&gt;Properly plan for your WAF logs, this will be the hardest part;&lt;/li&gt;
&lt;li&gt;Logs are activated per WebACL so each account needs to have a properly configured Kinesis Data Firehose. It is possible to enable the logs from FMS&lt;/li&gt;
&lt;li&gt;When creating Cloudformation stack make sure you make resources dependent on another or WAF will quickly rate limit Cloudformation and your stack will fail&lt;/li&gt;
&lt;li&gt;Use JSON in Cloudformation if you have accounts starting with 0. PyYAML has a &lt;a href="https://github.com/yaml/pyyaml/issues/98"&gt;bug&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Instead of Cloudformation you can use Terraform (when I started building the solution this wasn&amp;rsquo;t possible)&lt;/li&gt;
&lt;li&gt;Before activating an account on a FMS Policy, make sure that account has AWS Config enabled&lt;/li&gt;
&lt;li&gt;Use AWS Managed rules as they are created with standards in mind for example protecting from &lt;a href="https://owasp.org/www-project-top-ten/"&gt;OWASP Top 10&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;AWS WAF uses web ACL capacity units and you are limited to 1500, you can request increase but it&amp;rsquo;s not simple, so plan accordingly because if you need to change the WCU capacity of a Rule group you have to create a new one and delete the old one&lt;/li&gt;
&lt;li&gt;Rate limit rules can ONLY be added to WebACLs and are related to that WebACL. There is no option at the moment to add them to FMS, we are working with AWS to change this;&lt;/li&gt;
&lt;/ul&gt;</description><content:encoded><![CDATA[<ul>
<li>Properly plan for your WAF logs, this will be the hardest part;</li>
<li>Logs are activated per WebACL so each account needs to have a properly configured Kinesis Data Firehose. It is possible to enable the logs from FMS</li>
<li>When creating Cloudformation stack make sure you make resources dependent on another or WAF will quickly rate limit Cloudformation and your stack will fail</li>
<li>Use JSON in Cloudformation if you have accounts starting with 0. PyYAML has a <a href="https://github.com/yaml/pyyaml/issues/98">bug</a></li>
<li>Instead of Cloudformation you can use Terraform (when I started building the solution this wasn&rsquo;t possible)</li>
<li>Before activating an account on a FMS Policy, make sure that account has AWS Config enabled</li>
<li>Use AWS Managed rules as they are created with standards in mind for example protecting from <a href="https://owasp.org/www-project-top-ten/">OWASP Top 10</a></li>
<li>AWS WAF uses web ACL capacity units and you are limited to 1500, you can request increase but it&rsquo;s not simple, so plan accordingly because if you need to change the WCU capacity of a Rule group you have to create a new one and delete the old one</li>
<li>Rate limit rules can ONLY be added to WebACLs and are related to that WebACL. There is no option at the moment to add them to FMS, we are working with AWS to change this;</li>
</ul>
]]></content:encoded></item><item><title>How OLX Europe Fights Millions of Bots with AWS</title><link>https://dkade.com/posts/olx_aws_post_/</link><pubDate>Mon, 08 Mar 2021 00:00:00 +0000</pubDate><author>dkade@dkade.com (Daniel Loureiro)</author><guid>https://dkade.com/posts/olx_aws_post_/</guid><description>&lt;p&gt;My latest work done in OLX was featured by AWS on their own blog! I&amp;rsquo;m really happy with it. I talk about using AWS Firewall Manager + WAFv2 and in house tools to fight attacks. A big kudos to &lt;a href="https://www.linkedin.com/in/gabrielsoltz/"&gt;Gabril Soltz&lt;/a&gt; for his amazing work with the WAFBot.&lt;/p&gt;
&lt;p&gt;Read more at -&amp;gt; &lt;a href="https://aws.amazon.com/blogs/architecture/field-notes-how-olx-europe-fights-millions-of-bots-with-aws/"&gt;https://aws.amazon.com/blogs/architecture/field-notes-how-olx-europe-fights-millions-of-bots-with-aws/&lt;/a&gt;&lt;/p&gt;</description><content:encoded><![CDATA[<p>My latest work done in OLX was featured by AWS on their own blog! I&rsquo;m really happy with it. I talk about using AWS Firewall Manager + WAFv2 and in house tools to fight attacks.  A big kudos to <a href="https://www.linkedin.com/in/gabrielsoltz/">Gabril Soltz</a> for his amazing work with the WAFBot.</p>
<p>Read more at -&gt; <a href="https://aws.amazon.com/blogs/architecture/field-notes-how-olx-europe-fights-millions-of-bots-with-aws/">https://aws.amazon.com/blogs/architecture/field-notes-how-olx-europe-fights-millions-of-bots-with-aws/</a></p>
]]></content:encoded></item></channel></rss>