<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Terraform on Mazin Ahmed</title><link>https://mazinahmed.net/tags/terraform/</link><description>Recent content in Terraform on Mazin Ahmed</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 27 Oct 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://mazinahmed.net/tags/terraform/index.xml" rel="self" type="application/rss+xml"/><item><title>Scan Terraform plans and changes with tfquery, an SQL-powered framework</title><link>https://mazinahmed.net/blog/tfplan-release/</link><pubDate>Thu, 27 Oct 2022 00:00:00 +0000</pubDate><guid>https://mazinahmed.net/blog/tfplan-release/</guid><description>&lt;p&gt;New Release: tfquery now supports SQL queries for Terraform Plan Scanning&lt;/p&gt;&#10;&lt;p&gt;&#10;&#10;&#10;&#10;&#10;&#10;&#10; &#10; &#10;&lt;figure&gt;&lt;img src="https://mazinahmed.net/uploads/assets/static/3bceb92e-7fbb-422d-96b1-1c0f3b3e5405.png" alt="" class="mx-auto my-0 rounded-md" /&gt;&#10;&lt;/figure&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;In case you&amp;rsquo;re an infrastructure security engineer and have not tried tfquery yet, this will be a great blog post for you.&lt;/p&gt;&#10;&lt;p&gt;Tfquery is a framework that allows running SQL queries on Terraform code. It&amp;rsquo;s made to analyze your Terraform infrastructure, locate resources, run security compliance checks, spot misconfigured resources, develop CI benchmarks, and much more.&lt;/p&gt;</description></item><item><title>Attacking Modern Environments Series: Attack Vectors on Terraform Environments</title><link>https://mazinahmed.net/blog/attacking-terraform-environments/</link><pubDate>Sat, 29 Jan 2022 00:00:00 +0000</pubDate><guid>https://mazinahmed.net/blog/attacking-terraform-environments/</guid><description>&lt;hr&gt;&#10;&lt;p&gt;I have given a talk about my latest research, &amp;ldquo;Attack Vectors on Terraform Environments&amp;rdquo;.&lt;/p&gt;&#10;&lt;h2 id="about-the-talk" class="relative group"&gt;About the talk &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#about-the-talk" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;Have you ever encountered an environment in an engagement that uses Terraform for IaC (infrastructure-as-code) management?&#10;Almost every modern company does now.&lt;/p&gt;&#10;&lt;p&gt;In this talk, I will share techniques and attack vectors to exploit and compromise Terraform environments in engagements, along with patterns I have seen that achieve successful infrastructure takeover against companies.&#10;I will also cover detection and prevention methods for each attack vector discussed in my talk.&lt;/p&gt;</description></item><item><title>Interview With the AppSec Podcast: Terraform Security</title><link>https://mazinahmed.net/blog/interview-with-appsec-podcast-terraform-security/</link><pubDate>Sun, 17 Oct 2021 00:00:00 +0000</pubDate><guid>https://mazinahmed.net/blog/interview-with-appsec-podcast-terraform-security/</guid><description>&lt;hr&gt;&#10;&lt;p&gt;&#10;&#10;&#10;&#10;&#10;&#10;&#10; &#10; &#10;&lt;figure&gt;&lt;img src="https://mazinahmed.net/uploads/assets/static/dd31ccbf-b8e2-4d56-9c5b-ae3a2d2bd65a.png" alt="" class="mx-auto my-0 rounded-md" /&gt;&#10;&lt;/figure&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;I interviewed with the AppSec Podcast to talk about IaC and Terraform. We discussed Terraform, why IaC is important to your organization, the technical risks introduced when running Terraform in your environment, and a few discussions related to my &lt;a href="https://www.youtube.com/watch?v=d4V75rrVrL4" target="_blank" rel="noreferrer"&gt;DEFCON talk about Attack Vectors on Terraform Environments&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;&#10;&#10;&#10;&#10;&#10;&#10;&#10; &#10; &#10;&lt;figure&gt;&lt;img src="https://mazinahmed.net/uploads/assets/static/81b656d7-20eb-41c9-9fd1-0338125186a6.png" alt="" class="mx-auto my-0 rounded-md" /&gt;&#10;&lt;/figure&gt;&#10;&lt;/p&gt;&#10;&lt;iframe width="560" height="310" src="https://www.youtube.com/embed/jdh-yHKLAWU" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&#10;&lt;h2 id="listen-to-the-podcast" class="relative group"&gt;Listen to the Podcast &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#listen-to-the-podcast" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h3 id="watch-on-youtube" class="relative group"&gt;&lt;a href="https://www.youtube.com/watch?v=jdh-yHKLAWU" target="_blank" rel="noreferrer"&gt;Watch on YouTube&lt;/a&gt; &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#watch-on-youtube" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 id="listen-on-spotify" class="relative group"&gt;&lt;a href="https://open.spotify.com/episode/0bojnJd6kyBOomojMFXKgX?si=d394stezSfWAfsSwy3MKNA" target="_blank" rel="noreferrer"&gt;Listen on Spotify&lt;/a&gt; &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#listen-on-spotify" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 id="listen-on-apple-podcast" class="relative group"&gt;&lt;a href="https://podcasts.apple.com/us/podcast/mazin-ahmed-terraform-security/id1154351685?i=1000537757479" target="_blank" rel="noreferrer"&gt;Listen on Apple Podcast&lt;/a&gt; &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#listen-on-apple-podcast" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;</description></item><item><title>tfquery: Run SQL queries on your Terraform infrastructure</title><link>https://mazinahmed.net/blog/tfquery-project-release/</link><pubDate>Wed, 28 Apr 2021 00:00:00 +0000</pubDate><guid>https://mazinahmed.net/blog/tfquery-project-release/</guid><description>&lt;hr&gt;&#10;&lt;p&gt;&#10;&#10;&#10;&#10;&#10;&#10;&#10; &#10; &#10;&lt;figure&gt;&lt;img src="https://mazinahmed.net/uploads/assets/static/7150a8dc-f101-423c-934a-ffa24a396e66.png" alt="" class="mx-auto my-0 rounded-md" /&gt;&#10;&lt;/figure&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;Have you ever tried analyzing a Terraform environment with thousands of cloud resources for security and DevOps? It used to be hard, until now!&lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;m open-sourcing my newest project, tfquery: a framework that allows running SQL queries on Terraform code. It saved me dozens of hours in analysis.&lt;/p&gt;&#10;&lt;p&gt;tfquery helps answer questions that are hard to answer about your infrastructure-as-code. It allows querying resources and analyzing their configuration using a SQL-powered framework.&lt;/p&gt;</description></item></channel></rss>