<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shannon McFarland</title>
    <description>The latest articles on DEV Community by Shannon McFarland (@shmcfarl).</description>
    <link>https://dev.to/shmcfarl</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F963392%2F105e9143-188c-44a7-bae2-990c7afffa64.jpeg</url>
      <title>DEV Community: Shannon McFarland</title>
      <link>https://dev.to/shmcfarl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shmcfarl"/>
    <language>en</language>
    <item>
      <title>VMClarity: How to use the API</title>
      <dc:creator>Shannon McFarland</dc:creator>
      <pubDate>Mon, 24 Apr 2023 15:27:42 +0000</pubDate>
      <link>https://dev.to/ciscoemerge/vmclarity-how-to-use-the-api-1e48</link>
      <guid>https://dev.to/ciscoemerge/vmclarity-how-to-use-the-api-1e48</guid>
      <description>&lt;p&gt;If you are just now joining us on our multi-post series on the &lt;a href="https://github.com/openclarity/vmclarity"&gt;VMClarity open source project&lt;/a&gt;, check out these other posts to catch up:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Introduction to VMClarity and how to get it deployed: &lt;a href="https://dev.to/ciscoemerge/vmclarity-virtual-machine-security-5e8g"&gt;https://dev.to/ciscoemerge/vmclarity-virtual-machine-security-5e8g&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Behind the scenes of a VMClarity scan: &lt;a href="https://dev.to/ciscoemerge/vmclarity-what-happens-during-a-scan-3g08"&gt;https://dev.to/ciscoemerge/vmclarity-what-happens-during-a-scan-3g08&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The VMClarity API
&lt;/h2&gt;

&lt;p&gt;VMClarity uses the &lt;a href="https://www.openapis.org/"&gt;OpenAPI&lt;/a&gt; spec; you can look at it here: &lt;a href="https://github.com/openclarity/vmclarity/blob/main/api/openapi.yaml"&gt;https://github.com/openclarity/vmclarity/blob/main/api/openapi.yaml&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You can interact with the API via the following methods:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;VMClarity UI - See the blogs referenced above to understand how to interact with the UI)&lt;/li&gt;
&lt;li&gt;curl commands - See the video and commands referenced below&lt;/li&gt;
&lt;li&gt;API tools such as &lt;a href="https://www.postman.com/"&gt;Postman&lt;/a&gt; - See the video below&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once you have VMClarity up and running, check out this video to learn more about interacting with the VMClarity API:&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/DyOAcB-x73Q"&gt;
&lt;/iframe&gt;
&lt;/p&gt;




&lt;p&gt;Here are some of the commands that I referenced in the video:&lt;br&gt;
&lt;strong&gt;SSH tunnel into the VMClarity Server instance (EC2):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh -i &amp;lt;your PEM&amp;gt; -N -L 8888:localhost:8888 ubuntu@&amp;lt;VMClarity public IP address&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;curl against the VMClarity API to get the scan configurations:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -s -X GET http://localhost:8888/api/scanConfigs -H 'Content-Type: application/json' | json_pp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;curl to get a list of scan targets (EC2 assets found based on the scan scope in the scan configuration):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -s -X GET http://localhost:8888/api/targets -H 'Content-Type: application/json' | json_pp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;curl to get the scan results. Note: This is going to generate a LOT of output. It is best to view this information in the UI:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -s -X GET http://localhost:8888/api/scanResults -H 'Content-Type: application/json' | json_pp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Learn More &amp;amp; Join the Community!
&lt;/h2&gt;

&lt;p&gt;Learn more about VMClarity and join the community! &lt;a href="https://github.com/openclarity/vmclarity"&gt;https://github.com/openclarity/vmclarity&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I will be back with more posts on understanding how VMClarity works, and how you can contribute to it!&lt;/p&gt;

&lt;p&gt;You can also learn more about the other Clarity projects, such as (API security) and KubeClarity (K8s SBOM/Supply chain security) here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/openclarity/apiclarity"&gt;https://github.com/openclarity/apiclarity&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/openclarity/kubeclarity"&gt;https://github.com/openclarity/kubeclarity&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And several blogs about both projects are here:&lt;br&gt;
&lt;a href="https://techblog.cisco.com/"&gt;https://techblog.cisco.com/&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Shannon McFarland is a Distinguished Engineer and open source advocate in Cisco’s Emerging Technology &amp;amp; Incubation organization. You can follow him on Twitter @eyepv6. &lt;/p&gt;

</description>
      <category>sbom</category>
      <category>opensource</category>
      <category>api</category>
    </item>
    <item>
      <title>VMClarity: What Happens During a Scan?</title>
      <dc:creator>Shannon McFarland</dc:creator>
      <pubDate>Tue, 18 Apr 2023 21:09:59 +0000</pubDate>
      <link>https://dev.to/ciscoemerge/vmclarity-what-happens-during-a-scan-3g08</link>
      <guid>https://dev.to/ciscoemerge/vmclarity-what-happens-during-a-scan-3g08</guid>
      <description>&lt;p&gt;I recently posted on the &lt;a href="https://github.com/openclarity/vmclarity"&gt;VMClarity open source project&lt;/a&gt; and a couple of quick videos on what the project is about and how you can get started. If you missed that post, check it out here: &lt;a href="https://dev.to/ciscoemerge/vmclarity-virtual-machine-security-5e8g"&gt;VMClarity: Virtual Machine Security&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  A Reminder of how VMClarity Works
&lt;/h2&gt;

&lt;p&gt;In the previous videos, I walked through the basics of how VMClarity works and the major components. As you recall, today, VMClarity is deployed in an AWS VPC. In that VPC, the VMClarity server is deployed as an AWS EC2 instance. You then configure VMClarity to scan specific 'scopes' inside of AWS. You can scan for all AWS EC2 instances your AWS account has access to or filter down that scope (recommended). The scan scope can filter on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;All AWS regions&lt;/li&gt;
&lt;li&gt;AWS region&lt;/li&gt;
&lt;li&gt;AWS region + VPC&lt;/li&gt;
&lt;li&gt;AWS region + VPC + security group(s)&lt;/li&gt;
&lt;li&gt;AWS region + instance tags (or within a specific VPC)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once a VMClarity scan identifies the target assets (instances), it triggers an AWS snapshot of those assets, launches a new AWS EC2 instance, and attaches the snapshot to that instance. VMClarity then configures the scanner types (e.g., exploits, misconfigurations, malware, etc..) based on the scanner types you configured in the scanner configuration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Behind the Scenes
&lt;/h2&gt;

&lt;p&gt;In this post, I am sharing more information about what happens behind the scenes when VMClarity scans a 'target' asset (e.g., an AWS EC2 instance).&lt;/p&gt;

&lt;p&gt;Here is a quick demo of accessing the VMClarity server instance and checking the real-time scanner virtual machine.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/kSHnMl1rrG8"&gt;
&lt;/iframe&gt;
&lt;/p&gt;




&lt;h2&gt;
  
  
  Learn More &amp;amp; Join the Community!
&lt;/h2&gt;

&lt;p&gt;Learn more about VMClarity and join the community! &lt;a href="https://github.com/openclarity/vmclarity"&gt;https://github.com/openclarity/vmclarity&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I will be back with more posts on understanding how VMClarity works, and how you can contribute to it!&lt;/p&gt;

&lt;p&gt;You can also learn more about the other Clarity projects, such as (API security) and KubeClarity (K8s SBOM/Supply chain security) here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/openclarity/apiclarity"&gt;https://github.com/openclarity/apiclarity&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/openclarity/kubeclarity"&gt;https://github.com/openclarity/kubeclarity&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And several blogs about both projects are here:&lt;br&gt;
&lt;a href="https://techblog.cisco.com/"&gt;https://techblog.cisco.com/&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Shannon McFarland is a Distinguished Engineer and open source advocate in Cisco’s Emerging Technology &amp;amp; Incubation organization. You can follow him on Twitter @eyepv6. &lt;/p&gt;

</description>
      <category>sbom</category>
      <category>opensource</category>
      <category>appsec</category>
    </item>
    <item>
      <title>VMClarity: Virtual Machine Security</title>
      <dc:creator>Shannon McFarland</dc:creator>
      <pubDate>Thu, 13 Apr 2023 17:06:26 +0000</pubDate>
      <link>https://dev.to/ciscoemerge/vmclarity-virtual-machine-security-5e8g</link>
      <guid>https://dev.to/ciscoemerge/vmclarity-virtual-machine-security-5e8g</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuqito86pcdufxkzinrj9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuqito86pcdufxkzinrj9.png" alt="VMClarity Logo"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Project VMClarity
&lt;/h2&gt;

&lt;p&gt;Do you have virtual machines in your environment? Do you care about their security? Are you looking for a new open-source project to contribute to? Well then, today is your lucky day! &lt;/p&gt;

&lt;p&gt;Introducing &lt;a href="https://github.com/openclarity/vmclarity" rel="noopener noreferrer"&gt;VMClarity&lt;/a&gt;!  &lt;/p&gt;

&lt;h2&gt;
  
  
  Overview
&lt;/h2&gt;

&lt;p&gt;VMClarity is an open source tool for agentless detection and management of Virtual Machine (VM) Software Bill Of Materials (SBOM) and security threats such as vulnerabilities, exploits, malware, rootkits, misconfigurations, and leaked secrets. &lt;/p&gt;

&lt;p&gt;VMClarity uses pluggable scanning infrastructure to provide the following: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;    Software Bill of Materials analysis &lt;/li&gt;
&lt;li&gt;    Package &amp;amp; OS vulnerability detection &lt;/li&gt;
&lt;li&gt;    Exploit detection &lt;/li&gt;
&lt;li&gt;    Leaked secret detection &lt;/li&gt;
&lt;li&gt;    Malware detection &lt;/li&gt;
&lt;li&gt;    Misconfiguration detection &lt;/li&gt;
&lt;li&gt;    Rootkit detection &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Check out this quick video walk-through of what VMClarity is about: &lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/0v0v7Oxjwzc"&gt;
&lt;/iframe&gt;
&lt;/p&gt;




&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;Now that you have a basic understanding of what the VMClarity project is about let's check out how you can quickly get started with it: &lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/o2_lwHvB-3w"&gt;
&lt;/iframe&gt;
 &lt;/p&gt;

&lt;p&gt;Follow along with the video and get started today by visiting the project repo: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/openclarity/vmclarity" rel="noopener noreferrer"&gt;https://github.com/openclarity/vmclarity&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Stay tuned for more information on VMClarity. We will have demos, feature walk-throughs, and detailed architecture posts in the future. &lt;/p&gt;




&lt;h2&gt;
  
  
  Learn More &amp;amp; Join the Community!
&lt;/h2&gt;

&lt;p&gt;You can also learn more about the other Clarity projects, such as APIClarity (API security) and KubeClarity (K8s SBOM/Supply chain security) here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/openclarity/apiclarity" rel="noopener noreferrer"&gt;https://github.com/openclarity/apiclarity&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/openclarity/kubeclarity" rel="noopener noreferrer"&gt;https://github.com/openclarity/kubeclarity&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And several blogs about both projects are here:&lt;br&gt;
&lt;a href="https://techblog.cisco.com/" rel="noopener noreferrer"&gt;https://techblog.cisco.com/&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Shannon McFarland is a Distinguished Engineer and open source advocate in Cisco’s Emerging Technology &amp;amp; Incubation organization. You can follow him on Twitter @eyepv6. &lt;/p&gt;

</description>
      <category>sbom</category>
      <category>opensource</category>
      <category>appsec</category>
    </item>
  </channel>
</rss>
