<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by WhiteSource on Medium]]></title>
        <description><![CDATA[Stories by WhiteSource on Medium]]></description>
        <link>https://medium.com/@WhiteSourceSoft?source=rss-dba19cd9406a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*GWmrkgmHrRq9Gv1AaixW7A.png</url>
            <title>Stories by WhiteSource on Medium</title>
            <link>https://medium.com/@WhiteSourceSoft?source=rss-dba19cd9406a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:34:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@WhiteSourceSoft/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Top 5 Open Source Vulnerabilities for April 2019]]></title>
            <link>https://medium.com/@WhiteSourceSoft/top-5-open-source-vulnerabilities-for-april-2019-15677615192c?source=rss-dba19cd9406a------2</link>
            <guid isPermaLink="false">https://medium.com/p/15677615192c</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[application-development]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[WhiteSource]]></dc:creator>
            <pubDate>Wed, 08 May 2019 00:00:00 GMT</pubDate>
            <atom:updated>2019-05-16T08:30:40.813Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*nog_isPDVRU6Niqf" /></figure><p>April showers may bring May flowers, but they also bring with them some real doozies when it comes to open source vulnerabilities.</p><p>Spring is in the air, but our hard-working knowledge team at WhiteSource is still at it, seeking out the open source vulnerabilities that the public needs to know are out there.</p><p>The WhiteSource database continuously collects known open source security vulnerabilities from a number of well-respected community resources like the <a href="https://nvd.nist.gov/vuln-metrics/cvss">National Vulnerability Database</a> (NVD), and other public, peer-reviewed security advisories, and issue trackers.</p><p>This month’s list brings us some serious vulnerabilities in projects that we know you’re probably using. So let’s not waste any time and get down to it. Happy reading and don’t forget to update your software when you’re done.</p><h3>CGI Servlet in Apache Tomcat</h3><p><a href="https://nvd.nist.gov/vuln/detail/CVE-2019-0232"><strong>CVE-2019–0232</strong></a><strong> CVSS V2 9.3 Affected Versions: 9.0.0.M1 to 9.0.17, 8.5.0 to 8.5.39 and 7.0.0 to 7.0.93</strong></p><p>Coming at the top-rated CVSS rating of the month (you can breathe east team, no 10s this time around) is a particularly nasty vulnerability in one of our favorite projects.</p><p>We have learned that when running on Windows with enableCmdLineArguments enabled, the Common Gateway Interface (CGI) Servlet in Apache Tomcat (versions 9.0.0.M1 to 9.0.17, 8.5.0 to 8.5.39 and 7.0.0 to 7.0.93) is vulnerable to a Remote Code Execution due to a bug in the way the JRE passes command line arguments to Windows.</p><p>In order to make this attack work, the target needs to be running on Windows in a non-default configuration while in conjunction with batch files. When these conditions match up, it can lead to an input validation vulnerability (CWE-20).</p><p>In response to this risk, it is advisable to make sure that you are running Tomcat according to the default settings, which will have the CGI option enableCmdLineArguments disabled moving forward. The recommended fix here is to upgrade to one of the safer versions in either <a href="https://tomcat.apache.org/download-70.cgi">7.9.94</a>, <a href="https://tomcat.apache.org/download-80.cgi">8.5.40</a>, <a href="https://tomcat.apache.org/download-90.cgi">9.0.19</a>.</p><p>Seclists.org has a pretty comprehensive <a href="https://seclists.org/fulldisclosure/2019/May/4">write up</a> of this vulnerability, including how to replicate it. For those of you who are interested in reading a detailed explanation of the JRE behavior, check out Markus Wulftange’s <a href="https://codewhitesec.blogspot.com/2016/02/java-and-command-line-injections-in-windows.html">blog</a>. This archived <a href="https://web.archive.org/web/20161228144344/https://blogs.msdn.microsoft.com/twistylittlepassagesallalike/2011/04/23/everyone-quotes-command-line-arguments-the-wrong-way/">MSDN blog post</a> is also listed as recommended reading.</p><h3>Handlebars</h3><p><strong>WS-2019–0064 CVSS: 8 Affected Versions: prior to 4.0.14</strong></p><p>Open source developers always have a great sense of humor, especially when it comes to naming their projects. Handlebars, an extension to the Mustache templating language, is no exception.</p><p>Handlebars.js is described as a logicless templating language that keeps the view and the code separated from one another for an easier experience. With close to 6.5 million downloads a week according to NPM, it would seem like a lot of folks have become fans of this project.</p><p>Unfortunately, versions of handlebars prior to 4.0.14 have found themselves in a bit of twist and are vulnerable to Prototype Pollution. According to the <a href="https://www.npmjs.com/package/handlebars">reports</a>, templates may alter an Objects’ prototype, thus allowing an attacker to execute arbitrary code on the server</p><p>You may have noticed that this vulnerability has a WS prefix before its ID number. This is because it hasn’t been added to the <a href="https://nvd.nist.gov/">NVD</a> yet. While the NVD is a popular database for security vulnerabilities and includes many open source issues, some open source vulnerabilities that are discovered and remediated by the open source community are published on other various public platforms. This is what happened with the handlebars vulnerability, and they were added to the WhiteSource database before they were indexed in the CVE or added to the NVD.</p><p>You can find out more about the fix on handlebars’ <a href="https://github.com/wycats/handlebars.js/commits/master">GitHub</a> page.</p><p><strong>WS-2019–0063 CVSS: 8 Affected Versions: prior to 3.13.1</strong></p><p>It’s been a rough couple of months for this popular JavaScript component. Last month it was found to have two vulnerabilities (WS-2019–0032 and WS-2019–0034) that could lead to a Denial of Service attack. Now this month, Js-YAML prior to 3.13.1 was reported to be vulnerable to a Code Injection attack.</p><p>According to <a href="https://www.npmjs.com/advisories/813">reports</a>, the load() function may execute arbitrary code injected through a malicious YAML file. Definitely not good news for users of this popular project.</p><p>is a YAML 1.2 parser and writer for JavaScript. It’s an implementation of <a href="http://yaml.org/">YAML</a>, a human-friendly data serialization standard for all programming languages. According to JS-YAML’s <a href="https://github.com/nodeca/js-yaml">GitHub</a> and <a href="https://www.npmjs.com/package/js-yaml">npm</a> pages, the project started as <a href="http://pyyaml.org/">PyYAML</a> port, and was completely rewritten to become very fast, and support 1.2 spec.</p><p>The 14,589,603 weekly downloads and 7,322 dependents featured on JS-YAML’s NPM page say that users are generally pretty happy with it. Hopefully, this run of vulnerabilities won’t have a negative impact on this useful project.</p><p>Some programming languages are more likely than others to have many of their vulnerability postings in spots other than the NVD. JavaScript, in particular, has been found to have over 31% of their vulnerabilities not listed on the NVD but posted on other security advisories like NPM’s advisory. It is worth remembering that the open source community is diffuse, so solely tracking the NVD is not sufficient for staying secure.</p><p>The fix here is to upgrade to version <a href="https://github.com/nodeca/js-yaml/pull/480/commits">3.13.1</a>.</p><h3>Linux Kernel</h3><p><a href="https://nvd.nist.gov/vuln/detail/CVE-2019-8956"><strong>CVE-2019–8956</strong></a><strong> CVSS: 7.2 Affected Versions: before versions 4.20.8 and 4.19.21</strong></p><p>As one of the most used projects in the open source space, there are always interesting vulnerabilities in the Linux Kernel.</p><p>This month we have discovered that in the Linux Kernel before versions 4.20.8 and 4.19.21, a use-after-free error in the “sctp_sendmsg()” function (net/sctp/socket.c) when handling SCTP_SENDALL flag can be exploited to corrupt memory.</p><p>Info on how to patch can be found <a href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ba59fb0273076637f0add4311faa990a5eec27c0">here</a>.</p><h3>Kubernetes</h3><p><a href="https://nvd.nist.gov/vuln/detail/CVE-2019-1002100"><strong>CVE-2019–1002100</strong></a><strong> CVSS: 4 Affected Versions: v1.11.8, v1.12.6, and v1.13.4</strong></p><p>Just in case you’ve been under a rock for the past year or so, Google’s container deployment orchestration tool Kubernetes has been the talk of the town, helping organizations manage their container deployments at scale.</p><p>However, this much-beloved project has had its fair share of issues in recent months, including a Critical vulnerability in December of 2018 that allowed attackers to take over whole compute nodes on unpatched systems. By contrast, this latest vulnerability in Kubernetes is fairly minor, but the near ubiquity of Kubernetes throughout the industry makes it an important one for us to cover.</p><p>In all Kubernetes versions prior to v1.11.8, v1.12.6, and v1.13.4, users that are authorized to make patch requests to the Kubernetes API Server can send a specially crafted patch of type “json-patch” (e.g. `kubectl patch — type json` or `”Content-Type: application/json-patch+json”`) that consumes excessive resources while processing, causing a Denial of Service on the API Server.</p><p>Google, who maintains Kubernetes, suggests in their <a href="https://groups.google.com/forum/#!topic/kubernetes-announce/vmUUNkYfG9g">write up</a> that it is a good idea to remove patch permissions from all untrusted users even before you start upgrading to the safe version.</p><p>While the results of an attacker exploiting this vulnerability could have a negative impact on the target, the fact that they already need to be an authorized user with the ability to make patch requests does serve as a limiting factor, justifying this lower CVSS rating. That said, given the growing concerns about insider threats, credential compromise, and of course a good old fashioned mistake, we strongly recommend updating to the safe version.</p><p>You can access more info about the secured version here on <a href="https://github.com/kubernetes/kubernetes/issues/74534">GitHub</a>.</p><h3>Spring Into Action With Proactive Vulnerability Management</h3><p>With winter having hopefully wound down to a close, it is tempting to turn our attention outwards. BBQs, beaches, and other joys of being outside are calling us, but unfortunately, open source vulnerabilities don’t know seasons. Rain or shine, they are with us all year.</p><p>Remember that while you can always turn to us for the month’s hottest open source vulnerabilities, the first step to staying secure is knowing which open source components you and your team are using in your products so that you can know which alerts to keep your eyes peeled for. As we saw in our two WS-linked vulnerabilities, not all issues will initially show up in the NVD, and may slip by you if you’re not fully on top of your game.</p><p>Want to catch up on open source vulnerabilities which could have slipped by in 2018? Check out our <a href="https://resources.whitesourcesoftware.com/top-vulnerabilities">top open source vulnerabilities page</a> to see if there are any that you might have missed last year.</p><p>See you next month when we pull together the top list for May.</p><p><em>Originally published at </em><a href="https://resources.whitesourcesoftware.com/blog-whitesource/top-5-open-source-vulnerabilities-for-april-2019"><em>https://resources.whitesourcesoftware.com</em></a><em> on May 8, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15677615192c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 7 Tools and Tips for Improving Your DevOps Pipeline]]></title>
            <link>https://medium.com/@WhiteSourceSoft/top-7-tools-and-tips-for-improving-your-devops-pipeline-b7e33afc234c?source=rss-dba19cd9406a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7e33afc234c</guid>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[top]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[WhiteSource]]></dc:creator>
            <pubDate>Tue, 07 May 2019 00:00:00 GMT</pubDate>
            <atom:updated>2019-05-08T09:29:09.862Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*WU3MmcQzkck_RLOR" /></figure><p>Nearly two decades after the turn of the millennium, software has an impact on nearly all aspects of our lives. We use apps for learning, finding love, commerce, entertainment, and pretty much every other part of how we go about the world. Driving this steady stream of software is the DevOps pipeline of the modern DevOps software development environment that blends the power of automation and cross-team collaboration for a faster and smoother path to the constant release of hot off the presses versions of our favorite applications.</p><p>Despite the success of DevOps in reaching the mainstream lingo in the software industry, the details of its process, including the continuous integration (CI) and continuous delivery/continuous deployment (CD) pipeline are often not well defined.</p><p>In hopes of closing this gap, we’ve decided to break down the basic elements of the DevOps pipeline, explaining the technologies and concepts powering it, and lay out some of the top tools that software development professionals depend on for pushing their products through their DevOps pipeline.</p><h3>Defining the DevOps Pipeline</h3><p>The DevOps methodology has risen to become the standard development practice in recent years, helping organizations push out higher quality software faster. The principle behind the DevOps pipeline can be summed up as write code, run it through the wringer of testing, get feedback, fix what isn’t working, push it out for deployment, monitor it in the wild, and repeat.</p><p>If this sounds like your standard operating procedure for software development, then you’re right with one significant exception: shifting left.</p><p>The DevOps model is based on the idea of test early and often, pushing code and testing on short cycles to receive actionable feedback that allows developers to fix issues early before they become harder to solve and repair at a later stage. This means that organizations can avoid nasty surprises before a release, hopefully shortening their overall deployment schedule.</p><h3>Navigating the CI/CD Pipeline</h3><p>Looking at the DevOps lifecycle that runs throughout the pipeline, we can break it down into different sections and concepts.</p><p>When the developer finishes writing their code in the IDE (think IntelliJ IDEA, VS, Eclipse), they commit it to a version control system like a GitHub repository that will help avoid future confusion and set the ground for pushing the code through the DevOps pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*e_TgP_-qnq9OW34i" /></figure><p>At this point, the committed code enters the CI/CD part of the DevOps pipeline, going through the build phase where it is again tagged by the versioning system before being sent on for its first round of testing. If you are working with a binary language like Java, then it is compiled at this stage. Continuous integration is important since it provides an automated process that allows teams to all incorporate their code and perhaps most importantly, test the pudding out of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*wyVSNbu4ldCTMjNf" /></figure><p>As we mentioned above, testing early and often is a key tenet of the DevOps principles, giving developers the feedback that they need to make corrections in their code before bugs or vulnerabilities are hard-baked into the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*JXYgF1Ui1hRGVcco" /></figure><p>We can see from our diagrams that feedback is being sent back at every stage of our DevOps pipeline. So not only are we getting feedback when we run our unit tests, but also during the build phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*5I-gFzlV3O5OXAvQ" /></figure><p>After we think that we’ve ironed out most of the issues, we send our code into a test or staging server for the deploy stage of the pipeline. So just in case we thought we got it to work as intended, our automated testing will help shake us of such silly notions and point out the errors of our ways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*IyN9m1lOVmDjwd0C" /></figure><p>Once we’re reasonably satisfied that our product is in good working order, we can send it on to the production server. At this stage and any one of the phases before it, we can receive notifications that an element of our code needs to be rejiggered and then sent through our DevOps pipeline again as many times as needed until we get it right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*HsHq8b-qxSVDCQ-K" /></figure><p>Once on the production servers, the product is available for continuous delivery and deployment, making its way out to users upon demand. To ensure that the product functions as intended and to garner useful information for improvements, we continue to monitor the code, sending the feedback into our DevOps pipeline. It is this non-stop flow of action and feedback that gives DevOps its infinite visual representation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*pgEpUVlZ77awpRoy" /></figure><h3>Harnessing the Power of Automated CI/CD Tools</h3><p>Hammering out all the kinks in your product as it bounces its way through the CI/CD can be a heavy lift for any development team if they have to manually perform all of the pushes and tests on their own.Thankfully there has been a lot of innovation in building developer tools to help make this a much smoother process. Many of these CI/CD tools are fairly comprehensive and offer solutions that run through the entirety of the pipeline from the moment that the code is committed through to the production stage.</p><p>Automation is a basic feature of these tools, seeking to take as much of the busy work out of getting products through the DevOps pipeline, especially when it comes to testing.</p><p>In hopes of helping you get on your way to DevOps excellence, we’ve compiled a list of some of the top CI/CD tools that you should consider using for getting your quality code out faster.</p><p>No discussion of DevOps would be complete without mentioning Jenkins. An automation server, Jenkins gives users a powerful tool for building, testing, and then deploying their products. This open source tool has plug-ins galore to choose from, making it an easy fit for nearly any operation.</p><p>Since we’re all about promoting open source projects, it is only appropriate to bring up the common Jenkins integration Apache Maven into the mix. This software project management and comprehension tool can be used for building and managing any Java-based project.</p><p>With the backing of major players in the tech space like Microsoft, Redhat (now owned by IBM), and CloudBees just to name a few, Jenkins is a proud member of the open source community, and available for use free of charge.</p><p>This CI tool helps users take their code from the starting point to the finish line in a variety of environments. CircleCI allows developers to create Workflows for better control over their pipeline, along with useful VCS integrations, automated testing, and notifications for when a build fails.</p><p>With options for SaaS or self-hosted on-prem, CircleCI offers a powerful solution for automating your DevOps pipeline. They have also launched their Orbs feature with 3rd party service providers than simplify the process of integrating additional services such as monitoring of open source vulnerabilities.</p><p>Microsoft has gained significant ground in the development space over the past few years. Having already been dominant with their Visual Studio IDE, they have expanded their Azure platform into all aspects of development with the Azure DevOps family of services and products.</p><p>Offering support for a wide range of languages, native container support with Docker and Kubernetes, and a treasure chest of plug-ins, Azure Pipelines is a CI/CD powerhouse. Having bought GitHub in 2018, Microsoft has moved pretty quickly to make working between Azure and your GitHub repository fairly seamless. As a one-stop-shop, Microsoft has put together an impressive array of tools.</p><p>This popular CI service is built with GitHub users in mind. Beloved for making the testing of open source projects a cinch, Travis CI offers an easy way to create a pull request build flow. Written in Ruby, Travis CI is available as a SaaS service.</p><p>While they provide free services for working with open sourced projects, there is a fee-based option for using them for private projects if needed. If you primarily work within the GitHub environment, then this might be a good option to start off with.</p><p>Long known for their Git services, Bitbucket is fast gaining a reputation as a CD product that offers users powerful on-prem options for deploying their products.</p><p>Features such as their branch permissions provide admins with useful controls for ensuring that only the intended folks can make changes to your code. They have also recently introduced a Pipes, an easy new way to integrate 3rd party services into your Bitbucket environment, avoiding the normal hassles of tinkering around with an API configuration.</p><p>While most of the tools and services on our list have covered the CI part of the CI/CD pipeline, we knew that this list couldn’t be complete without naming one of the leaders on the CD side of the field.</p><p>CloudBees’s CD solution provides easy integrations with Kubernetes and Docker, provides security and governance controls, is available for SaaS or on-prem deployments, and has tools to help your team improve visibility over your product as it winds its way through the pipeline.</p><p>This tool has basically become synonymous with containers, the technology that has caught fire over the past few years for its ability to move software seamlessly from one testing environment to another, skating around most of the compatibility issues that we normally encounter.</p><p>With Docker, it is easy to spin up new, lightweight images or run them for testing. If you’re using Docker, then Google’s open source orchestration tool Kubernetes is also essential for managing your container usage.</p><h3>Incorporating Security into our DevOps Pipeline</h3><p>While the DevOps pipeline approach has been instrumental in helping teams to catch and fix bugs earlier in Software Development Lifecycle (SDLC), security was far too often left as a secondary consideration for the security team to handle.</p><p>However, in recent years, developers have begun taking on more responsibility for the security of our software. This means that developers need to step up their game in making sure that they follow secure coding practices and embrace the DevSecOps model that doesn’t put security at the end.</p><p>Similar to our DevOps model, in DevSecOps we are checking early and often at every stage of the DevOps pipeline that our product stands up to scrutiny. When vulnerabilities are found, our short feedback loops help us nip them in the bud, keeping these molehills from becoming mountains.</p><h3>See You on the Other Side (of the DevOps Pipeline)</h3><p>Hopefully, this breakdown of the DevOps pipeline has helped to turn a buzzword into a practical understanding that can provide you with a starting point for improving your team’s development. With the right tools in hand, and of course plenty of diligence to stay on top of fast flying feedback loops, you and your team are in for a wild ride. Good luck and hold on tight.</p><p><em>Originally published at </em><a href="https://resources.whitesourcesoftware.com/blog-whitesource/devops-pipeline"><em>https://resources.whitesourcesoftware.com</em></a><em> on May 7, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7e33afc234c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Container Security: Challenges and Best Practices]]></title>
            <link>https://medium.com/@WhiteSourceSoft/docker-container-security-challenges-and-best-practices-70707b84eb36?source=rss-dba19cd9406a------2</link>
            <guid isPermaLink="false">https://medium.com/p/70707b84eb36</guid>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[containers]]></category>
            <dc:creator><![CDATA[WhiteSource]]></dc:creator>
            <pubDate>Thu, 02 May 2019 00:00:00 GMT</pubDate>
            <atom:updated>2019-05-02T11:48:08.259Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*QS147JagyqjatBP4" /></figure><p>Docker’s <a href="https://www.datadoghq.com/docker-adoption/">massive adoption rates</a> in recent years have made container security a critical consideration for organizations that use containers for development or production. Given that containers are more complex in many respects than virtual machines and other deployment technologies that were widely used before Docker, learning how to secure Docker containers can be complex as well.</p><p>In this article, we offer an overview of Docker container security. We explain why securing Docker containers is challenging, which default settings in a Docker environment you should change in order to make your containers more secure, and which best practices to follow when monitoring your containers for security.</p><h3>The challenge of Docker container security</h3><p>Before Docker, most organizations used virtual machines or bare-metal servers to host applications. From a security perspective, these technologies are relatively simple. You need to focus on just two layers (the host environment and the application) when hardening your deployment and monitoring for security-relevant events. You also typically do not need to worry much about APIs, overlay networks or complex software-defined storage configurations, because these are not usually a major part of virtual-machine or bare-metal deployments.</p><p>Docker container security is more complicated, largely because a typical Docker environment has many more moving parts. Those parts include:</p><ul><li>Your containers. You probably have multiple Docker container images, each hosting individual microservices. You probably also have multiple instances of each image running at a given time. Each of those images and instances needs to be secured and monitored separately.</li><li>The Docker daemon, which needs to be secured to keep the containers it hosts safe.</li><li>The host server, which could be bare metal or a virtual machine.</li><li>If you host your containers in the cloud using a service like <a href="https://aws.amazon.com/ecs/">ECS</a>, that is another layer to secure.</li><li>Overlay networks and APIs that facilitate communication between containers.</li><li>Data volumes or other storage systems that exist externally from your containers.</li></ul><p>So, if you feel like learning how to secure Docker containers is tough, don’t blame yourself. Docker security truly is more complicated than other security strategies.</p><h3>Docker container security: Best practices</h3><p>Fortunately, that challenge can be overcome. While this article doesn’t profess to be an exhaustive guide to Docker security (for that, you should refer to the <a href="https://docs.docker.com/engine/security/security/">official Docker documentation</a>), the following are some best practices that can help you.</p><h3>Set resource quotas</h3><p>One handy thing that Docker makes easy to do is to configure resource quotas on a per-container basis. Resource quotas allow you to limit the amount of memory and CPU resources that a container can consume.</p><p>This feature is useful for several reasons. It can help to keep your Docker environment efficient and prevent one container or application from hogging system resources. But it also enhances security by preventing a compromised container from consuming a large amount of resources in order to disrupt service or perform malicious activities.</p><p>Resource quotas are easy to set using command-line flags. For full details, see the <a href="https://docs.docker.com/config/containers/resource_constraints/">Docker documentation</a>.</p><h3>Don’t run as root</h3><p>We’ve all been there: You are tired and you don’t want to fight with permission settings in order to get an application to work properly, so you just run it as root so that you don’t have to worry about permission restrictions.</p><p>That might be OK to do in a Docker testing environment if you’re learning how to use Docker for the first time, but in production, there is almost never a good reason to let a Docker container run with root permissions.</p><p>This is an easy Docker security best practice to follow because Docker doesn’t run containers as root by default. So, typically, there is nothing you have to change in a default configuration to prevent running as root. You do, however, have to resist the temptation to let a container run as root simply because it’s more convenient in some situations.</p><p>For added Docker security, if you use Kubernetes to orchestrate your containers, you can explicitly prevent containers from starting as root (even if an admin attempts to start one that way manually) using the MustRunAsNonRoot directive in a <a href="https://resources.whitesourcesoftware.com/blog-whitesource/kubernetes-pod-security-policy">pod security policy</a>.</p><h3>Secure your container registries</h3><p>Container registries are part of the reason Docker is so powerful. They make it easy to set up a central repository from which you can download container images with a few keystrokes.</p><p>However, the ease and convenience of container registries can become a security risk if you fail to evaluate the security context of the registry you’re using. Ideally, you’ll use a registry such as <a href="https://docs.docker.com/ee/dtr/">Docker Trusted Registry</a> that can be installed behind your own firewall in order to mitigate the risk of breaches from the Internet.</p><p>And even if the registry is accessible only from behind the firewall, you should also resist the temptation to let anyone upload or download images from your registry at will. Instead, use role-based access control to define explicitly who can access what, and blacklist access from everyone else. Although it can be tempting to leave your registry accessible by anyone in order to simplify access and avoid having to configure new roles when someone new needs access, this inconvenience is worth it if it prevents a breach in your registry.</p><h3>Use trusted, secure images</h3><p>Speaking of registries, you should also be sure that the <a href="https://resources.whitesourcesoftware.com/blog-whitesource/docker-image-security-scanning">container images</a> you pull come from a trusted source. This may seem overly obvious, but given that there are so many publicly available container images that can be downloaded quickly, it can be easy to pull an image accidentally from a source that is not verified or trusted.</p><p>For this reason, you should consider blacklisting public container registries other than official trusted repositories, such as those on <a href="http://hub.docker.com/">Docker Hub</a>.</p><p>You can also take advantage of image scanning tools to help identify some known vulnerabilities within Docker images. Most enterprise-level container registries have built-in scanning tools. Some of them, like <a href="https://coreos.com/clair/docs/latest/">Clair</a>, can be used separately from a registry to scan individual images, too.</p><h3>Identify the source of your code</h3><p>Also on the topic of where your container images come from — keep in mind that Docker images typically contain a mixture of original code and packages from upstream sources. Thus, even if the specific image you download comes from a trusted registry, the image could incorporate packages from other sources that may not be trusted. To make matters even more complicated, those packages could themselves be composed of code drawn from multiple sources, including third-party open source repositories, although the origins of the code may not always be clear from looking at the package itself.</p><p>In this context, source code analysis tools are useful. By downloading the sources of all packages in your Docker images and scanning them to identify where the code originated, you can determine whether any of the code incorporated into your container images contains known security vulnerabilities. (As an added benefit, source code analysis also helps you remain compliant with licensing requirements involving third-party code, which could affect you even if the packages you use don’t mention other licenses.)</p><h3>API and network security</h3><p>As noted above, Docker containers typically rely heavily on APIs and networks to communicate with each other. That’s why it’s essential to make sure that your APIs and network architectures are designed securely, and that you monitor the APIs and network activity for anomalies that could indicate an intrusion.</p><p>Since APIs and networks are not a part of Docker itself but are instead resources that you use in conjunction with Docker, steps for securing APIs and networks are beyond the scope of this article. However, the core message here is that API and network security are particularly important when you use Docker, so they shouldn’t be neglected.</p><h3>Conclusion</h3><p>Docker is a complicated beast, and there is no simple trick you can use to maintain Docker container security. Instead, you have to think holistically about ways to secure your Docker containers and harden your container environment at multiple levels. Doing so is the only way to ensure that you can reap all the benefits of Docker containers without leaving yourself at risk of major security problems.</p><p><em>Originally published at </em><a href="https://resources.whitesourcesoftware.com/blog-whitesource/docker-container-security-challenges-and-best-practices"><em>https://resources.whitesourcesoftware.com</em></a><em> on May 2, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70707b84eb36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HyperLedger — WhiteSource’s Open Source Project of the Month for April 2019]]></title>
            <link>https://medium.com/@WhiteSourceSoft/hyperledger-whitesources-open-source-project-of-the-month-for-april-2019-f18500b709ad?source=rss-dba19cd9406a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f18500b709ad</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[WhiteSource]]></dc:creator>
            <pubDate>Tue, 30 Apr 2019 00:00:00 GMT</pubDate>
            <atom:updated>2019-04-30T08:25:33.949Z</atom:updated>
            <content:encoded><![CDATA[<h3>HyperLedger — WhiteSource’s Open Source Project of the Month for April 2019</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QpkQy7FP0MVtFaOj" /></figure><p>Continuing our series of innovative and useful open source projects that you should know, we spoke this month with Hyperledger’s Director of Ecosystem to learn more about their project.</p><p>First released in December 2015 by the <a href="https://www.linuxfoundation.org/">Linux Foundation</a> under the Apache License 2.0, Hyperledger is an open source environment for analyzing, building, experimenting, and collaborating on the development of distributed ledger systems with blockchain technologies.</p><p>The main goal of the <a href="https://www.hyperledger.org/">Hyperledger Project</a> is to facilitate the collaboration between businesses, developers, and other enterprises in the field of distributed ledger technology.</p><p>Hyperledger focuses primarily on building distributed ledger solutions for <a href="https://monax.io/learn/permissioned_blockchains/">permissioned blockchains</a> and consortium networks. The project has gained a nice following among large tech and financial players as blockchain has received more attention in recent years.</p><p>According to Hyperledger’s Director of Ecosystem Marta Piekarska, “The idea of Hyperledger was our answer to the Bitcoin hype. It was our open source community asking what can we do with this phenomenon and how can it help businesses. What came out was a set of frameworks and tools that all focus on private or public permission blockchains.”</p><p>At its core, the Hyperledger Project is an umbrella project for modular open-source frameworks and tools for building and experimenting with blockchains.</p><p>“We don’t think that there is one ultimate answer to how businesses should work. There are many solutions to the same problems, and our community aims to develop that spectrum of base technologies for others to implement and use,” explains Piekarska on the variety of solutions that have emerged from their project.</p><p>With blockchain technology emerging as one of the cutting-edge innovations in today’s technology sector, it seemed only natural that an open-source ecosystem for enterprises was conceived.</p><h3>Use Cases Working with Hyperledger</h3><p>Despite being only three years old, the Hyperledger project’s popularity continues to grow with its 28,000+ membership.</p><p>Piekarska says that their collaboration project gained the interest of open source projects in different industries. “Some exciting projects like <a href="https://medicalchain.com/en/">Medicalchain</a> or Hashed Health in the medical industry are using <a href="https://www.hyperledger.org/projects/fabric">Hyperledger Fabric</a>. Numerous sustainable supply chain solutions like Everledger, DHL and IBM are also using Hyperledger. In the past few months, we have seen huge interest in secure manufacturing and IoT from startups like Jitsuin to more established companies like Filament.”</p><h3>Open Source: Not a Hobby but a Passion</h3><p>While nearly every developer loves working with open source, it is not always a given for a company to decide to take one of their products open source. Open source is at the core of the Linux Foundation’s mission and Hyperledger is a continuation of that vision.</p><p>Piekarska explains that open source is driving innovation across industries, bringing more minds into the open source community. “Open source is about sharing the knowledge, experience, and brilliance of the people. What I enjoy in this space are the natural, evolving and constant improvements. It’s a truly agile and versatile process. There have been studies done on what we know versus what we think we know. No single person would be able to design a computer or discover a new drug. It is about the process of sharing information and being a team.”</p><p>“That is what open source is about: it is about sharing pieces of data that individuals have to build a unique thing that only a group can come up with by working together.”</p><p>However open source also comes with its challenges according to Piekarska, “The challenge is, as always, how to convince people to contribute back. While using the technology is great and we always appreciate it, projects will not grow or develop if we don’t get contributions.”</p><h3>Working with the Community and Open Source</h3><p>Over the years we have seen great things created with the help of the open source community, with HyperLedger as a prime example of what can be accomplished. Piekarska explains that the community plays a major factor in the advancement of the project. “We are 100%, fully, to the core, open source. Hyperledger provides the infrastructure to enable the community to do its work. We are only about open source contributions.”</p><p>“There was never a time when Hyperledger was not open source. Anything that has to do with the technology: the Special Interest and Working Groups, the code bases, the Chat and Mailing lists, [and] even the Technical Steering Committee is all open to the public. Anyone is welcome to join, benefit and contribute.”</p><p>To learn more about the Hyperledger project, please visit their <a href="https://github.com/hyperledger/hyperledger">GitHub page</a> and try it out for yourself.</p><h3>Fun Facts About Hyperledger’s Director of Ecosystem</h3><p>Piekarska has a deep appreciation for the work of other open source projects. When asked what is her favorite open source project other than her own, she says that she has “So many! I love the fact that in the blockchain space most of the projects at least aim to be some way open source.”</p><p>Piekarska was a late bloomer to the world fo coding, with her first coding language being Pascal which she learned in university. However, her entrance to the wonderful world of computers was at a much younger age. At 9 years old, she received her first computer which was a Windows computer. But today she runs a dual boot and most of the time it’s a Mac. “The usability and convenience of the device handoff beats the geek in me.”</p><p><em>Originally published at </em><a href="https://resources.whitesourcesoftware.com/blog-whitesource/hyperledger-whitesource-s-open-source-project-of-the-month"><em>https://resources.whitesourcesoftware.com</em></a><em> on April 30, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f18500b709ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Results for 2019 are in: Here are the Key Takeaways from Stack Overflow’s Developer Survey]]></title>
            <link>https://medium.com/@WhiteSourceSoft/the-results-for-2019-are-in-here-are-the-key-takeaways-from-stack-overflows-developer-survey-4969a60f052b?source=rss-dba19cd9406a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4969a60f052b</guid>
            <category><![CDATA[surveys]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[stackoverflow]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[WhiteSource]]></dc:creator>
            <pubDate>Thu, 25 Apr 2019 00:00:00 GMT</pubDate>
            <atom:updated>2019-04-30T08:27:06.405Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*vbJKUtl1181PumkC" /></figure><p>With the publication of the annual <a href="https://insights.stackoverflow.com/survey/2019">Stack Overflow Developer Survey</a> earlier this month, the developer community has gained important insights into how the community gets work done. The survey dug into which tools developers are using the most, the industries they work in, and most intriguing, how they got to the position they are in. Each year the survey’s results present interesting takeaways which provide a glimpse into the mindset of your developers.</p><p>This year, the survey polled more than 90,000 developers around the world who weighed in to form a global opinion on the most used and loved programming languages, frameworks, databases. Interestingly, there was also a focus on how active they are in contributing to open source projects.</p><p>Hoping to gain some useful insights on industry trends, we dove into the data. Here are the tidbits that we found to be the most fascinating.</p><h3>Javascript Reigns as King, Python is on the Rise</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/0*sGMXNniMvo-ryBOn" /></figure><p>Maintaining its spot on top JavaScript was again named the most used programming language by developers. For those not already using it, JavaScript ranked second in the list of languages that developers want to learn the most.</p><p>Python is now the fastest growing programming language, taking the number one spot as the language that developers most want to learn. It ranked as the fourth most used language, narrowly surpassing Java. Python also ranked as the second most loved language after Rust. It has become the main language taught in university and coding schools and used frequently in data science and machine learning.</p><h3>Visual Studio Code: The Most Popular IDE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/0*I9NH0sAuL5fMPNet" /></figure><p>Developed by our friends at Microsoft, Visual Studio Code was built with many features that make it the top tool for developers. Their main features include support for debugging, embedded Git control, intelligent code completion, code refactoring, and more. It is very customizable which makes it very attractable to the developers’ community. It is free and open source, with a cross-platform version that you can easily download.</p><p>There are differences in tool choices by developer type and role, but Visual Studio Code was a top choice across the board. A whopping 50.7% of all respondents said that they use Visual Studio Code for their development environment. The next closest in the survey was Visual Studio at 31.5%, so still a win for Team Microsoft.</p><p>Developers who write code for mobile apps are more likely to choose Android Studio and Xcode. A popular choice for DevOps and SREs is Vim, and data scientists are more likely to work in IPython/Jupyter, PyCharm, and RStudio.</p><h3>Open Source has Room for Growth</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/0*0x9HEptdRMaYrxg6" /></figure><p>Open source software scored pretty highly this year, with 42.1% reporting that they viewed OSS as being of higher quality on average than proprietary/closed software. The majority ranked OSS and closed/proprietary as being evenly matched, while only a small percentage were willing to come out and say that they still held OSS in lower regard. Unsurprisingly, developers who contribute to open source were more likely to say that open source software is of higher quality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*ren8PQVo1OYFtxRN" /></figure><p>Despite many well-known <a href="https://resources.whitesourcesoftware.com/blog-whitesource/git-much-the-top-10-companies-contributing-to-open-source">companies contributing</a> to different open source projects, only around 65% of professional developers on Stack Overflow reported that they contribute to open source projects at least once a year. These figures may mean that most developers aren’t regularly contributing to open source projects, with a small group of committed developers helping to propel the community forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/0*jSr-mFbENhD9rOCm" /></figure><p>When it comes to the importance of implementing the practice of code review, developers responded that they review code as part of their work because it is an important part of the software engineering process. However, it does not appear to be a dominant part of most developers’ work week. About three-fourths of developers say they spend five hours or less each week reviewing code</p><h3>Most Popular Tools and Technologies</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*jed00c1P21Mh-2zX" /></figure><p>In the field of web frameworks, jQuery and React.js are the most frequently used. However, React.js and Vue.js are the most popular. The most widely used database is MySQL, with Linux being at the top of the platforms.</p><p>New to this is the topic area is the distributed ledger technology commonly referred to as Blockchain. Despite the hype of the past few years, 80% of respondents said they did not use blockchain technologies in their business. For those who are using Blockchain technologies, the majority (12.7%) were using it for on-currency purposes.</p><h3>Containers Not Popular with Developers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/0*YbHz4iVAgu7jKYYe" /></figure><p>Over the past few years, containers have gained the attention of the software community for making the transition from one testing environment to another a supposedly easier lift. However, it would seem that developers are a bit more ambivalent about using containers.</p><p>When asked how they are using container technology such as Docker or Open Container Initiative, about half of the developers said they are not using any such technology today. Those who are using containers most commonly incorporate them in their development.</p><h3>Thoughts Moving Forward</h3><p>Our key takeaways from 2019’s report are that in many of the key areas, top languages and development environments, the most powerful and popular players stayed on top of their game.</p><p>Given Python’s meteoric rise through the ranks, it will be interesting to see if they can continue their growth throughout 2019, overtaking more competitors for the 2020 report.</p><p>There were also some interesting deflations of industry hype regarding technologies like containers and most importantly Blockchain, showing that while developers are always interested in learning about how new tech can help them work smarter and faster, they are still slow to adopt a different mode of working just because it’s trendy.</p><p>I would recommend reading the entire report and staying tuned for next years results. Hopefully, we’ll have some interesting shake-ups and surprises in store.</p><p><em>Originally published at </em><a href="https://resources.whitesourcesoftware.com/blog-whitesource/stack-overflow-developer-survey"><em>https://resources.whitesourcesoftware.com</em></a><em> on April 25, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4969a60f052b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Image Security Scanning: What It Can and Can’t Do]]></title>
            <link>https://medium.com/@WhiteSourceSoft/docker-image-security-scanning-what-it-can-and-cant-do-a5f59ce58805?source=rss-dba19cd9406a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5f59ce58805</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[WhiteSource]]></dc:creator>
            <pubDate>Thu, 18 Apr 2019 00:00:00 GMT</pubDate>
            <atom:updated>2019-04-18T10:48:22.501Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*8N7wGr3b-LXj2kaI" /></figure><p>Docker image security scanning should be a core part of your Docker security strategy. Although image scanning won’t protect you from all possible security vulnerabilities, it’s the primary means of defense against security flaws or insecure code within container images. It’s therefore a foundational part of overall Docker security.</p><p>In this article, we explain how Docker image security scanning works, why it’s important and what its limitations are.</p><h3>What is a Docker image security scan?</h3><p><strong>Docker images</strong></p><p>To understand Docker image security scanning, you first have to understand Docker images. In Docker, a container image is a file that defines which data and processes should exist inside a particular container when it starts. In other words, it’s a blueprint for the specific application or service that runs inside a given container.</p><p>To create a Docker image, you first create a Dockerfile, which is a plain-text file that defines what should be included in a container image. Typically, your Dockerfile will take a Docker base image, which in most cases is some version of a Linux distribution. The Dockerfile will then modify the base image in some way, such as by adding extra packages to it, or defining certain processes to start in addition to those that the base image runs by default.</p><p>Once you have a complete Dockerfile, you can turn it into an image using the Docker build command. You can then upload the image to a container registry, which is a repository of container images that can be downloaded when you want to run a container.</p><p><strong>Docker image scans</strong></p><p>Docker image security scanning is a process for finding security vulnerabilities within your Docker image files.</p><p>Typically, image scanning works by parsing through the packages or other dependencies that are defined in a container image file, then checking to see whether there are any known vulnerabilities in those packages or dependencies.</p><p>For example, your image might be built with a Dockerfile that includes a stanza such as the following:</p><p>RUN yum install -y \ https://repo.mysql.com/mysql-community-minimal-release-el7.rpm \ <a href="https://repo.mysql.com/mysql-community-release-el7.rpm">https://repo.mysql.com/mysql-community-release-el7.rpm</a></p><p>This line, which is part of one of the <a href="https://github.com/mysql/mysql-docker/blob/mysql-server/8.0/Dockerfile">official MySQL Dockerfiles</a>, specifies that containers that are run based on your image should download and install the package mysql-community-release-el7.rpm from the specified URL. (In this specific case, the container uses yum to install the package; if you were working with a Debian-derived base image, you’d likely use apt to install packages. It’s possible to install packages directly from a tarball, too, if you wanted.)</p><p>If there were a known vulnerability either in that specific version of MySQL, or in the RPM file used to install it, your Docker image security scanning tool should alert you to that vulnerability. (To be clear, there is no known vulnerability in this version of MySQL at the time of writing; we’re simply using this as an example.) With that knowledge, you’ll be able to update your Docker image to use a secure version of MySQL.</p><p><strong>Docker image scanning tools</strong></p><p>To perform a Docker image security scan, you need a specialized tool. Some container registries, including <a href="https://hub.docker.com/">Docker Hub</a> and <a href="https://coreos.com/quay-enterprise/docs/latest/security-scanning.html">Quay</a>, offer built-in scanners that scan all of the container images inside your registry.</p><p>Other image scanners, including <a href="https://github.com/anchore/anchore-engine">Anchore</a> and <a href="https://github.com/coreos/clair">Clair</a> (the same scanner used by Quay), can be used to scan individual container images even if they are not part of a repository. Of course, one-off scanning is not efficient if you have a large-scale container deployment.</p><h3>What Docker image security scanning won’t do\</h3><p>While Docker image security scanning is one critical way to find security flaws that could lead to a breach within a containerized application, it’s important to note that security scanning by no means provides full security coverage. There are several potential security problems that Docker security image scanning won’t help you find, including:</p><p><strong>Security problems in your container environment or orchestrator configuration</strong></p><p>Docker image scanning will do nothing to help identify problems such as containers that are running as root (which is almost never a good idea), or an insecure Kubernetes configuration. You need to use other tools (such as Kubernetes pod security policies) to help protect against these environment-level threats.</p><p><strong>Insecure shared resources</strong></p><p>Resources that are shared between containers, such as storage volumes or networking, may also have security vulnerabilities due to insecure configurations. Docker security image scanning won’t find these problems, because they exist outside container images.</p><p><strong>Unknown security vulnerabilities</strong></p><p>In most cases, Docker image scanning tools check public security vulnerabilities databases to determine whether a package has a security problem. Obviously, this won’t help you if you use a package that has a security flaw that has not been publicly disclosed. For this reason, you can’t assume that your packages are safe just because your Docker security image scanner deems them to be so.</p><p><strong>Vulnerabilities not evident from a package name</strong></p><p>As we’ve noted above, Docker image security scanning works by checking to see whether specific packages that are included in a Docker image have known vulnerabilities. This strategy works well for finding many types of vulnerabilities.</p><p>However, a big limitation is that image scanners will not be able to find all potential problems in Docker images which include packages that are not publicly monitored for security vulnerabilities. For example, if you take an open source software package, customize it, rebuild it into a new package, and include that new, custom package in your Docker image, your image scanner will not be able to detect all potential problems in it, because the version of the package that you are using is different from the version tracked in public vulnerability databases.</p><p>Similarly, if you include open source code in a container by importing it as a tarball instead of using a package from a public repository, your image scanner probably won’t be able to scan that code, because it won’t recognize it as being part of a known package.</p><p>For protection in these types of situations, source code analysis tools like WhiteSource are useful because they can determine the origins of your code, even if it includes a mix of original components and third-party open source code that was imported in bits and pieces into your application.</p><h3>Conclusion</h3><p>Docker image security scanning should certainly not be the only part of your container security strategy, but it’s a crucial one. Partnered with other security tools that can help you to monitor your container environment and orchestrator, as well as detect security problems in open source code included in a containerized application in ways that image scanners can’t track, image scanning is a foundational part of container security.</p><p><em>Originally published at </em><a href="https://resources.whitesourcesoftware.com/blog-whitesource/docker-image-security-scanning"><em>https://resources.whitesourcesoftware.com</em></a><em> on April 18, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5f59ce58805" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everything You Wanted to Know About Open Source Attribution Reports]]></title>
            <link>https://medium.com/@WhiteSourceSoft/everything-you-wanted-to-know-about-open-source-attribution-reports-c12f547a1119?source=rss-dba19cd9406a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c12f547a1119</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[report]]></category>
            <category><![CDATA[legal]]></category>
            <dc:creator><![CDATA[WhiteSource]]></dc:creator>
            <pubDate>Thu, 11 Apr 2019 13:47:47 GMT</pubDate>
            <atom:updated>2019-04-11T13:47:47.297Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*lzpt272Si0n_GW4a" /></figure><p>Open source components are a major part of the software products that we create and use. Along with the many advantages that using open source projects brings to software development organizations, it also comes with obligations and added responsibilities.</p><p>One of these requirements is open source licensing compliance. This is a task that most developers prefer to relegate to their organizations’ legal department, who, in turn, spend many late nights requesting, compiling and double-checking the data to ensure that all open source code is accounted for and attributed.</p><p>That’s where the open source attribution report comes in.</p><h3>What is an Open Source Attribution Report?</h3><p>Hopefully, we all know by now that while open source components are free in the sense that they don’t cost money, users are still required to comply by certain terms and conditions.</p><p>Usually, open source licenses require users to give credit to the creators of the open source project when they release and distribute the software. These credits are often called “attribution statements” or “open source notices”. Organizations distributing a product that uses open source components need to be able to produce an attribution report, covering the required information about all of the licenses, copyrights, and notices pertaining to the open source components in the software that they are producing.</p><h3>The Long and Winding Road to an Open Source Attribution Report</h3><p>Considering the fact that today’s software products are built with 60%-80% of open source code, an Attribution Report covering all of their open source components can be a hefty mission.</p><p>In the olden days, compiling an open source attribution report used to be quite the paper chase for a number of reasons. First, while some open source projects have clear and simple attribution statements, large open source projects can include several smaller open source libraries with a variety of licensing, copyright, and notices’ information.</p><p>Next, locating the information for an attribution report is also a challenge, since the details are often scattered across a number of libraries and directories. To add to the confusion, there is no fixed standard for the name or location of an attribution statement in an open source library, so sometimes it can be found in a “readMe” file, and other times it can be found in files named “license”, “copyright”, “notices” in any number of locations under a title that the creators of the software found appropriate.</p><p>Even after locating the license, copyright, or notice, the job isn’t done because sometimes an open source component’s license will be updated. This requires organizations to ensure that their attribution report is up to date and accounts not just for the open source components that they are using, but also for their versions.</p><p>In the past, keeping track of open source components and gathering the information was done manually on a spreadsheet. This made the creation of an Attribution Report extremely tedious business and open to human error, especially considering how tricky and time consuming it is to gather all of the information, and then update it continuously with every change.</p><h3>WhiteSource’s Attribution Report: Automation for the Legals</h3><p>Today, more and more software organizations manage their open source components to ensure that they are both secure and compliant with automated software composition analysis (SCA) tools, like WhiteSource that continuously track their projects for security and licensing compliance risks in their open source components, as well as direct and transitive dependencies.</p><p>WhiteSource’s SCA capabilities allow the easy production of an attribution report containing all of the information on select aspects of open source software components in managed products and projects. It includs data on your open source components’ licenses, copyright notices, and any other relevant notices concerning components such as permission notices.</p><p>Since each organization’s legal team needs its own specific format and content when producing an attribution report, it’s important they have as many customizable options as possible. Legal teams can produce an attribution report tailored to their specific requirements. Some organizations only require open source licensing data in their attribution reports, while others require detailed copyright information. Some legal teams prefer the report be in a tabular format, while others need to incorporate comments on certain components.</p><p>WhiteSource allows teams to pick and choose the attribution data that they need for the report. They can publish extended copyright data and include the licensing text for each license associated with the reported component and the associated product or project. They can even choose which projects they want to include in each specific report, by preselecting a specific software product or project. The report also provides a number of exporting options so that teams can generate the report type that their organization requires.</p><h3>The Quick and Easy Way to an Open Source Attribution Report</h3><p>In the olden days, legal teams and development teams used to struggle to create a comprehensive and up to date attribution report that suited their and their customers’ needs. With the right automated tools, continuous tracking of open source components’ licensing and copyright data helps make generating an attribution report a simple and easy process.</p><p>The massive use of open source code in software products and services adds a new set of demands on organizations that require both legal and development teams to incorporate new processes and policies into their workflows. Gone are the days of manual tracking and dread of open source components’ licensing compliance requirements. Rather than allowing the creation of an attribution report slow teams down, organizations can keep up DevOps pace with the right automated SCA tools, refocusing their energies to pushing out creative, innovative applications.</p><p><em>Originally published at </em><a href="https://resources.whitesourcesoftware.com/blog-whitesource/open-source-attribution-reports"><em>resources.whitesourcesoftware.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c12f547a1119" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Security that Doesn’t Slow You Down]]></title>
            <link>https://medium.com/@WhiteSourceSoft/security-that-doesnt-slow-you-down-533cd7353676?source=rss-dba19cd9406a------2</link>
            <guid isPermaLink="false">https://medium.com/p/533cd7353676</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[atlassian]]></category>
            <dc:creator><![CDATA[WhiteSource]]></dc:creator>
            <pubDate>Wed, 10 Apr 2019 10:37:12 GMT</pubDate>
            <atom:updated>2019-04-10T10:37:12.942Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ly35V1YWCi_gnG_V" /></figure><p>As a product manager at WhiteSource, I see many customers who are facing different challenges with open source security. From the very basic issues, like knowing what they are actually using in terms of open source libraries, all the way to licensing and distribution, and of course, security. The greatest challenge, in my opinion, is being able to handle security in an efficient way, while making sure it doesn’t slow us down.</p><p>These days in development, fast delivery is the secret. Over the past decade, companies that were born online have revolutionized how technology infrastructure is built and maintained, and how software applications are developed and deployed. However, it sometimes looks like processes, such as security, are just going to slow us down while we try to deliver features, or value, to our customers.</p><p>Developers rate <a href="https://www.whitesourcesoftware.com/open-source-vulnerability-management-report/#chapter_2">security as their top concern</a> when dealing with open source components, above integration and functionality. Moreover, a developer will invest an average of 15 hours a month dealing with open source security vulnerabilities. However, most of this time is actually invested in prioritization, research for the best fix, and understanding the vulnerability itself.</p><p>One of our missions here in WhiteSource’s product team is to prove that you can have a secure pipeline and code, without slowing down the development process. That’s why we’ve been busy expanding our developer-focused integrations, to provide developers with the open source security tools that they need within their native environments. Our latest technology for developers is our new integration with Atlassian Bitbucket.</p><h3>Shifting Open Source Security Left with Bitbucket Server</h3><p>Shifting left is an approach where we move application quality and security processes closer to the developer (or to the “left” of the delivery chain) so that potential issues can be detected and resolved as soon as possible, even before code is committed.</p><p>We believe that the ability to easily assess security as early as possible within the development phase will allow us to eliminate potential damage and delays in more advanced stages of the life cycle. This also applies to open source security — where tracking your open source vulnerabilities should be a part of the daily workflow.</p><h3>How Does it Work?</h3><p>The WhiteSource Bitbucket Server integration is a Bitbucket Server app that scans your repositories, as part of your WhiteSource account. It is an integrated product within Bitbucket Server that shows a high-level security overview in the Bitbucket repository, detects all open source components and displays all vulnerabilities for these components.</p><p>WhiteSource will scan your repos every time you apply a push and will present a new record for every vulnerable open source library dependency the minute it is added.</p><p>The overview report lets you have a quick glance of the vulnerabilities in your existing repository. On each commit, you can view the issues for that specific commit along with the severity, CVSS score, and CVE ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*in3WgpYL8jdhZtD1" /></figure><p><em>overview report</em></p><p>You can also get a more detailed report with reference links, a dependency tree (if it exists), vulnerability information, and suggested fixes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5y01qZ1LNvHLhjaj" /></figure><p><em>open source security report</em></p><p>Using code insights, you can scan opened pull requests to ensure they are not introducing new open source vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/0*gF_qgc37b-idu4wO" /></figure><p><em>Code Insights</em></p><p>In Bitbucket’s pull request interface, changes are scanned by WhiteSource for new vulnerabilities and you can view detailed annotations next to each change that introduces a new issue. These annotations make it easier to understand the results of the scan and support informed decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JqWzzt-o9pW4q8Qn" /></figure><p><em>Remediate</em></p><p>WhiteSource also provides continuous automated dependency updates, to help you save time and reduce your security risks. The add-on discovers and processes all dependency files in a repository and automatically opens pull requests with the fixed version for detected vulnerabilities.</p><p>With the implementation of this new Bitbucket Server integration, developers can analyze the scan results from within their regular workflow in Bitbucket, without having to move away to WhiteSource for a deeper analysis.</p><h3>Baking Open Source Security into The DevOps Pipeline</h3><p>When dealing with open source security, we want developers to be able to address vulnerabilities easily, from their development environments. The WhiteSource Bitbucket Server integration helps developers stay on top of their open source vulnerabilities, and to understand the criticality and remediation course for every open source security vulnerability.</p><p>Automated security alerts, detailed dependency trees, and comprehensive information about open source vulnerabilities, along with the option to automatically open pull requests for fixes, provide a seamless way to bake security into the lifecycle, without affecting the pace of the development.</p><p><em>Originally published at </em><a href="https://resources.whitesourcesoftware.com/blog-whitesource/security-that-doesn-t-slow-you-down"><em>resources.whitesourcesoftware.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=533cd7353676" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 5 New Open Source Security Vulnerabilities in March 2019]]></title>
            <link>https://medium.com/@WhiteSourceSoft/top-5-new-open-source-security-vulnerabilities-in-march-2019-d28e0b129211?source=rss-dba19cd9406a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d28e0b129211</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[WhiteSource]]></dc:creator>
            <pubDate>Thu, 04 Apr 2019 10:35:34 GMT</pubDate>
            <atom:updated>2019-04-04T10:35:34.024Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*BzbK4GdNMeP8Ld3B" /></figure><p>We all sprang forward with daylight savings this past March, losing an hour of sleep and hopefully giving spring a much-needed nudge. However, even daylight saving didn’t keep our hardworking knowledge team from burning the midnight oil and reviewing all of the recent open source security vulnerabilities in our database to bring our faithful readers the lowdown on March’s top 5 new open source vulnerabilities.</p><p>The WhiteSource database continuously collects known open source security vulnerabilities from a number of well-respected community resources like the <a href="https://nvd.nist.gov/vuln-metrics/cvss#">National Vulnerability Database</a> (NVD), and other public, peer-reviewed security advisories, and issue trackers.</p><p>So, without further ado, here are the top 5 new known open source security vulnerabilities in March.</p><h3>#1 libssh2</h3><h3><a href="https://nvd.nist.gov/vuln/detail/CVE-2019-3855">CVE-2019–3855</a></h3><p>Vulnerability Score: High — 8.8</p><p>Affected versions: all versions up to and including 1.8.0</p><p>CVSS v2.0–9.3</p><p>According to the <a href="https://www.libssh2.org/CVE-2019-3855.html">libssh2 security advisory</a>, “a malicious server could send a specially crafted packet which could result in an unchecked integer overflow. The value would then be used to allocate memory causing a possible memory write out of bounds error (CWE-130).” According to the advisory, there are currently no known exploits of the vulnerability</p><p>For remediation, the libssh2 advisory recommended updating to libssh2 version 1.8.1 or later, or applying the <a href="https://libssh2.org/1.8.0-CVE/CVE-2019-3855.patch">patch </a>they created.</p><p><a href="https://www.libssh2.org/">libssh2</a>, not to be confused with <a href="https://www.libssh.org/">libssh</a>, is a client-side C library implementing the SSH2 protocol, available under the revised BSD license. The project is supported by an active community — according to the <a href="https://web.archive.org/web/20160421231340/http://gitstats.josefsson.org/libssh2/index.html">stats</a>, it has averaged 2.6 commits per average day, with a total of 2,019 commits on <a href="https://github.com/libssh2/libssh2">GitHub</a>.</p><p>libssh2 did some deep spring cleaning this month, and has published a number of additional security integer overflow vulnerabilities, and also out of bounds read issues in all versions prior to 1.8.1. Lucky for us, libssh2 has already provided fixes for them.</p><p>Other integer overflow issues that could lead to an out of bounds write, include <a href="https://nvd.nist.gov/vuln/detail/CVE-2019-3856">CVE-2019–3856</a>, where an integer overflow issue was discovered in the way keyboard prompt requests are parsed. In addition, we have <a href="https://nvd.nist.gov/vuln/detail/CVE-2019-3857">CVE-2019–3857</a>, where an integer overflow issue discovered in the way SSH_MSG_CHANNEL_REQUEST packets with an exit signal were parsed.</p><p>Then, we also have a few highly critical out of bounds reads issues that could be exploited to cause a Denial of Service or read data in the client memory. Let’s start with <a href="https://nvd.nist.gov/vuln/detail/CVE-2019-3858">CVE-2019–3858</a> where an out of bounds read flaw was discovered when a specially crafted SFTP packet was received from the server. In <a href="https://nvd.nist.gov/vuln/detail/CVE-2019-3859">CVE-2019–3859</a>, which got a whopping 9.1 CVSS v3.0 vulnerability score, an out of bounds read flaw was discovered in the _libssh2_packet_require and _libssh2_packet_requirev functions. Another libssh2 issue published and fixed in March is <a href="https://nvd.nist.gov/vuln/detail/CVE-2019-3860">CVE-2019–3860</a>, where an out of bounds read flaw was discovered in the way SFTP packets with empty payloads were parsed. Next is <a href="https://nvd.nist.gov/vuln/detail/CVE-2019-3861">CVE-2019–3861</a>, with an out of bounds read flaw in the way SSH packets with a padding length value greater than the packet length were parsed. In <a href="https://nvd.nist.gov/vuln/detail/CVE-2019-3862">CVE-2019–3862</a>, an out of bounds read flaw was discovered the way SSH_MSG_CHANNEL_REQUEST packets with an exit status message and no payload were parsed. And finally, <a href="https://nvd.nist.gov/vuln/detail/CVE-2019-3863">CVE-2019–3863</a>, where a server could send multiple keyboard interactive response messages whose total length were greater than unsigned char max characters could be used to cause an out of bounds memory write error.</p><p>The hardworking folks at libssh2 have already provided fixes for all of these issues. You can read more about the vulnerabilities and their remediation <a href="https://www.securityfocus.com/bid/107485/references">here</a> and <a href="https://www.openwall.com/lists/oss-security/2019/03/18/3">here</a>.</p><h3>#2 WordPress</h3><p><a href="https://nvd.nist.gov/vuln/detail/CVE-2019-9787"><strong>CVE-2019–9787</strong></a></p><p><strong>Vulnerability Score: High — 8.8</strong></p><p><strong>Affected versions: prior to 5.1.1</strong></p><p>A critical Remote Code Execution issue was found in vulnerable versions of WordPress. According to the <a href="https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/">WordPress Release Announcement for version 5.1.1</a>, this was a result of the way comments were being filtered and then stored in the database. The release announcement explained that “With a maliciously crafted comment, a WordPress post was vulnerable to cross-site scripting.”</p><p>The issue was discovered by Simon Scannell of Ripstech Technologies, who <a href="https://blog.ripstech.com/2019/wordpress-csrf-to-rce/">published</a> a detailed explanation of his research, and received glowing accolades from the open source giant.</p><p>According to Scannell, the vulnerability allows hackers to “take over any WordPress site that has comments enabled by tricking an administrator of a target blog to visit a website set up by the attacker.” Scannell goes on to cite WordPress’s downloads page and warns that over a third of all websites use WordPress. “Considering that comments are a core feature of blogs and are enabled by default, the vulnerability affected millions of sites,” he says in his report.</p><p>According to WordPress’s release announcement, the issue was fixed in version 5.1.1, and updated versions of WordPress 5.0 and earlier are also available for any users who have not yet updated to 5.1.</p><p>You can read more about the security vulnerability’s fix <a href="https://www.securityfocus.com/bid/107411/discuss">here</a> and <a href="https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b">here</a>.</p><h3>#3 JS-YAML</h3><p><strong>WS-2019–0032, WS-2019–0034</strong></p><p><strong>Vulnerability Score: Medium — 5</strong></p><p><strong>Affected versions: All versions prior to 3.13.0</strong></p><p>The affected versions of JS-YAML are vulnerable to Denial of Service attacks. Parsing a carefully-crafted YAML file causes the node process to stall, which might exhaust system resources and lead to a Denial of Service.</p><p><a href="https://github.com/nodeca/js-yaml">JS-YAML</a> is a YAML 1.2 parser and writer for JavaScript. It’s an implementation of <a href="http://yaml.org/">YAML</a>, a human-friendly data serialization standard for all programming languages. According to JS-YAML’s <a href="https://github.com/nodeca/js-yaml">GitHub</a> and <a href="https://www.npmjs.com/package/js-yaml">npm</a> pages, the project started as <a href="http://pyyaml.org/">PyYAML</a> port, and was completely rewritten to become very fast, and support 1.2 spec. The 14,589,603 weekly downloads, and 7,322 dependents featured on JS-YAML’s npm page say that users are happy with it.</p><p>You may have noticed that the JS-YAML security vulnerabilities have a WS prefix before their ID number. This is because they haven’t been added to the <a href="https://nvd.nist.gov/">NVD</a> yet. While the NVD is a popular database for security vulnerabilities and includes many open source issues, some open source vulnerabilities that are discovered and remediated by the open source community are published on other various public platforms. This is what happened with the JS-YAML vulnerabilities, and they were added to the WhiteSource database before they were indexed in the CVE or added to the NVD.</p><p>According to the <a href="https://www.npmjs.com/advisories/788">npm security advisory</a> that published this vulnerability, upgrading your JS-YAML version to 3.13.0 should resolve the issue.</p><h3>#4 Linux kernel</h3><p><a href="https://source.android.com/security/bulletin/2019-03-01"><strong>CVE-2019–2024</strong></a></p><p><strong>Vulnerability Score: Medium — 5.5</strong></p><p><strong>Affected versions: prior to 4.16</strong></p><p>This is certainly not the first time that a Linux kernel vulnerability features in our monthly top 5 open source vulnerabilities list, and considering how big and active that community is, we’re sure it’s not the last time.</p><p>The vulnerability discovered this past month could allow a local attacker using a specially crafted file to execute arbitrary code within the context of a privileged process.</p><p>While the issue already has a <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-2024">CVE ID number</a>, the number is <a href="https://cve.mitre.org/about/faqs.html#reserved_signify_in_cve_entry">reserved</a>, but no details regarding the security vulnerability have been added yet. However, another large open source community project that goes by the name of Android has published the details of this issue, as earlier provided on the <a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=910b0797fa9e8af09c44a3fa36cb310ba7a7218d">Linux kernel git</a>. This is another case where limiting our open source vulnerabilities intelligence to the NVD might cost us.</p><p>To read more about the issue and its fix <a href="https://github.com/torvalds/linux/commit/910b0797fa9e8af09c44a3fa36cb310ba7a7218d">here</a> on GitHub and on the Android Security Bulletin <a href="https://source.android.com/security/bulletin/2019-03-01">here</a>.</p><p>And if you want to read more about other Linux kernel vulnerabilities you can read about the <a href="https://resources.whitesourcesoftware.com/blog-whitesource/top-5-linux-kernel-vulnerabilities-in-2018">top 5 Linux kernel Vulnerabilities of yesteryear</a>, and the <a href="https://resources.whitesourcesoftware.com/blog-whitesource/top-10-linux-kernel-vulnerabilities">top 10 Linux kernel vulnerabilities of all time</a>.</p><h3>#5 safer-eval</h3><p><strong>WS-2019–0023</strong></p><p><strong>Vulnerability Score: Medium — 5</strong></p><p><strong>Affected versions: prior to 1.3.2</strong></p><p>In more news sourced from the open source community, rather than the NVD, a Remote Code Execution issue was discovered in vulnerable versions of safer-eval, due to Sandbox Escape. According to the <a href="https://www.npmjs.com/advisories/787">npm security advisory</a>, a payload using constructor properties can escape the sandbox and execute arbitrary code.</p><p>The advisory recommends users update to version 1.3.2 to fix the issue.</p><p><a href="https://www.npmjs.com/package/safer-eval">safer-eval documentation</a> boasts that the project offers “a safer approach for eval in node and browser.” JS coders know that putting “safe” and “eval()” together in a sentence might open a Pandora’s box of coder <a href="https://hashnode.com/post/why-is-using-eval-considered-bad-in-javascript-cixbhnw3x0073mk53w6y9cbm3">contention</a>. While <a href="http://shop.oreilly.com/product/9780596517748.do">some have deemed eval() as a bad part of JavaScript</a>, others <a href="https://www.stevefenton.co.uk/2017/10/eval-not-evil/">suggest that eval is not evil</a> if you know how to use it.</p><p>We’re going to elegantly step away from that heated debate and simply recommend that if you check whether you are using a vulnerable version of safer-eval, and make sure you continue tracking your open source components for known vulnerabilities.</p><p>Read more about the vulnerability, and its fix on <a href="https://github.com/micromatch/braces/commit/abdafb0cae1e0c00f184abbadc692f4eaa98f451">GitHub</a>.</p><h3>Spring Forward With Your Open Source Vulnerability Management</h3><p>March’s top 5 new open source security vulnerabilities list provides us with some prime examples of how the open source security ecosystem works, and the challenges of maintaining secure open source components.</p><p>The first thing the list clearly demonstrates is that just because a project is large and well maintained by an active community, that doesn’t mean it’s vulnerability-free. Usually, it means that the community is continuously working to resolve any new issues and release fixes and updated versions. That means that users need to keep track of their open source components to ensure that the versions they are using are safe.</p><p>The second reminder that stands out in this list is that following only the NVD and nothing but the NVD will only get you so far, since the open source community’s resources expand beyond it. The best way to address both of these issues when addressing open source security is to continuously track your software projects throughout the development lifecycle, to make sure that you know about any vulnerable open source components in your code, as soon as the vulnerabilities are discovered. Spring cleaning is an age-old tradition, and directing it towards outdated and vulnerable open source components involves so much less dust than spring cleaning in the real world. Sounds like a win-win-win to us.</p><p>Want to catch up on open source vulnerabilities which could have slipped by in 2018? Check out our <a href="https://resources.whitesourcesoftware.com/top-vulnerabilities">top open source vulnerabilities page</a> to see if there are any that you might have missed last year.</p><p>See you next month when we pull together the top list for April.</p><p><em>Originally published at </em><a href="https://resources.whitesourcesoftware.com/blog-whitesource/top-5-new-open-source-security-vulnerabilities-in-march-2019"><em>resources.whitesourcesoftware.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d28e0b129211" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Pod Security Policy Best Practices]]></title>
            <link>https://medium.com/@WhiteSourceSoft/kubernetes-pod-security-policy-best-practices-e5f639c50cdc?source=rss-dba19cd9406a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5f639c50cdc</guid>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[WhiteSource]]></dc:creator>
            <pubDate>Wed, 03 Apr 2019 13:59:28 GMT</pubDate>
            <atom:updated>2019-04-03T13:59:28.554Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*Ucout0u5q1BS6RzV" /></figure><p>In Kubernetes, pod security policies are a powerful tool for mitigating security risks and enforcing secure configurations within your Kubernetes environment. However, using Kubernetes pod security policies to maximum effect takes some effort. It’s unlikely that your default pod security policies (if in fact you have them set by default at all) are a good match for your needs.</p><p>With that challenge in mind, this article explains how to get the most out of Kubernetes pod security policies. We’ll begin by briefly explaining how the policies work and what the goal behind them is. We’ll then walk through best practices for making sure that Kubernetes pod security policies are optimized for your environment.</p><h3>What are Kubernetes pod security policies?</h3><p>Put simply, pod security policies are configurations that define which security-related conditions a Kubernetes pod has to meet in order to be accepted into a cluster. They regulate how pods can interact with resources such as networks and storage. They can also be used to configure role-based access control.</p><p>Another way to think about Kubernetes pod security policies is to describe them as a way to run automatic conformance tests on your Kubernetes cluster. In the security world, conformance testing is a strategy for ensuring that an environment or application meets predefined security standards before it is allowed to run. Kubernetes pod security policies do the same thing by preventing pods from running unless they meet the security requirements defined in the policy. (To be clear, you don’t have to trigger a conformance test to enforce Kubernetes pod security policies. As long as the policies are enabled and configured, Kubernetes enforces them automatically.)</p><p><strong>Kubernetes pod security policies are a cluster-level resource</strong></p><p>A point of clarification: Don’t let the term <em>pod security policy</em> confuse you. Although the name might make it sound like pod security policies define security settings for a specific pod, the opposite is actually true.</p><p>Kubernetes pod security policies are a cluster-level resource, meaning that they define security policies that apply to your entire cluster, not individual pods.</p><p><strong>Defining and activating pod security policies</strong></p><p>Pod security policies are specified in YAML files. If you’re reading this article and know what Kubernetes is, you probably also know what a YAML file is, so we won’t go into detail about that here. For details on the parameters that you can define in a pod security policy and some sample policy files, see the <a href="https://kubernetes.io/docs/concepts/policy/pod-security-policy/">Kubernetes documentation</a>.</p><p>Once you’ve written a pod security policy, you have to activate it using kubectl. Here’s an example:</p><p>kubectl create -f your-new-policy.yaml</p><p>Replace <em>your-new-policy.yaml</em> with the name of the policy file you created, of course.</p><h3>Getting the most out of Kubernetes pod security policies</h3><p>How can you get the most out of Kubernetes pod security policies? Your mileage will of course vary depending on your specific configuration and needs, but consider the following best practices for working with pod security policies.</p><p><strong>Enable them!</strong></p><p>First and foremost, make sure Kubernetes pod security policies are enabled. This may seem too obvious to list as a best practice, but because some Kubernetes distributions do not enable pod security policies by default, it’s important to make sure yours does.</p><p>Some Kubernetes distributions don’t support pod security policies at all. If that’s the case for you, you may wish to consider switching to a different distribution. In other cases, pod security policies are supported, but aren’t turned on by default when Kubernetes starts. If that applies to you, check your vendor’s documentation to determine how to enable pod security policies when Kubernetes starts. Typically, you can do this using a command-line flag.</p><p><strong>Disable privileged containers</strong></p><p>In a Kubernetes pod, containers can optionally run in “privileged” mode, which means that the processes inside the container have almost unrestricted access to resources on the host system. While there are certain use cases where this level of access is necessary, in general, it’s a security risk to let your containers do this.</p><p>You can easily prevent privileged containers from running by including the following in your Kubernetes pod security policy:</p><p>apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: prevent-privileged-containers spec:</p><p>privileged: false</p><p><strong>Read-only file system</strong></p><p>Another security best practice for Kubernetes is to require containers to run with a read-only file system. This is useful because it helps to enforce an immutable infrastructure strategy, since a container whose file system can’t be changed will have to be replaced in order to make changes. This mitigates some of the risks of malicious processes storing or manipulating data inside a container.</p><p>You can enforce a read-only file system policy with this Kubernetes pod security configuration:</p><p>apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: read-only-fs spec:</p><p>readOnlyRootFilesystem: true</p><p>To be sure, read-only file systems are not practical in all situations, but consider using them if you don’t have a good reason for allowing write access to your container’s internal data.</p><p><strong>Prevent privilege escalation</strong></p><p>To most admins, <em>privilege escalation</em> is a bad word. There’s rarely a case when you want to allow an application or process to gain more permissions than it has when it first starts.</p><p>You might therefore think that Kubernetes prevents privilege escalation by default, but you’d be wrong. In order to disallow privilege escalation on your cluster, you have to use a Kubernetes pod security policy like this:</p><p>apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: no-privilege-escalation spec:allowPrivilegeEscalation: false</p><p><strong>Prevent containers from running as root</strong></p><p>Running things as a root user is another practice that should send shivers down most admins’ spines. Typically, there is no good reason to run things as root. It’s almost as bad as typing <em>chmod -R 777</em> and pressing Enter.</p><p>Fortunately, Kubernetes pod security policies provide an easy way to prevent containers from running as root:</p><p>apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: no-privilege-escalation spec:</p><p>MustRunAsNonRoot: true</p><p><strong>Group your policies together</strong></p><p>The Kubernetes pod security policies we’ve looked at above are written as individual files. You can configure your cluster that way if you want, but in production deployments, it makes more sense to combine all settings into a single file. That way, you only have one file to write and activate.</p><p>A file that specifies multiple security directives would look like this:</p><p>apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: example spec: privileged: false spec: readOnlyRootFilesystem: true spec: allowPrivilegeEscalation: false spec:</p><p>MustRunAsNonRoot: true</p><h3>Conclusion</h3><p>As we’ve seen, Kubernetes pod security policies provide a handy way to enforce strong security settings across a cluster in an automatic fashion. While this topic may not rank high on your list of exciting things to talk about with colleagues, you shouldn’t overlook the importance of pod security policies as a way to keep Kubernetes and the containers running in it secure.</p><p><em>Originally published at </em><a href="https://resources.whitesourcesoftware.com/blog-whitesource/kubernetes-pod-security-policy"><em>resources.whitesourcesoftware.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5f639c50cdc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>