{"id":72118,"date":"2023-03-21T09:00:29","date_gmt":"2023-03-21T09:00:29","guid":{"rendered":"https:\/\/www.cryptocabaret.com\/?p=72118"},"modified":"2023-03-21T09:00:29","modified_gmt":"2023-03-21T09:00:29","slug":"assess-security-risks-in-your-open-source-project-with-scorecard","status":"publish","type":"post","link":"https:\/\/www.cryptocabaret.com\/?p=72118","title":{"rendered":"Assess security risks in your open source project with Scorecard"},"content":{"rendered":"<p><span class=\"field field--name-title field--type-string field--label-hidden\">Assess security risks in your open source project with Scorecard<\/span><br \/>\n<span class=\"field field--name-uid field--type-entity-reference field--label-hidden\"><a title=\"View user profile.\" href=\"https:\/\/opensource.com\/users\/snaveen\" class=\"username\">snaveen<\/a><\/span><br \/>\n<span class=\"field field--name-created field--type-created field--label-hidden\">Tue, 03\/21\/2023 &#8211; 03:00<\/span><\/p>\n<div class=\"clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item\">\n<p>Software supply chain attacks are becoming increasingly common, and attackers are targeting vulnerabilities in dependencies early in the supply chain to amplify the impact of their attacks. Dependency security is very much in the spotlight. It\u2019s important to stay informed about the software projects you rely upon. But when you\u2019re a software developer, you\u2019re likely using a lot of code from lots of different sources. It\u2019s an intimidating prospect to try to keep up with all the code you include in your own project. That\u2019s where the <a href=\"https:\/\/github.com\/ossf\/scorecard\">OpenSSF Scorecard<\/a> comes in.<\/p>\n<p>The OpenSSF\u2019s Scorecard project is an automated tool that assesses a software project\u2019s security practices and risks. According to a recent <a href=\"https:\/\/www.sonatype.com\/state-of-the-software-supply-chain\/project-quality-metrics\">report<\/a> by Sonatype, a Scorecard score was one of the best indicators of whether a project had known vulnerabilities. Adopting Scorecard is a great first step to understanding the reliability of the software you use and improving your software supply chain security.<\/p>\n<p>Scorecard is a set of benchmarks that allows you to quickly assess the risk associated with a code project based on best security practices. The aggregated project score, ranging from 0 to 10, provides an indication of how seriously a project appears to take security. This is critical for identifying vulnerable points in your supply chain. A dependency that doesn\u2019t meet your own internal security standards may be the weakest link in your software.<\/p>\n<p>Examining the individual scores for each of the 19 different Scorecard metrics tells you whether a project\u2019s maintainers follow the practices that are most important to you. Does the project require code review when contributors make changes? Are branches protected against unauthorized deletion or changes? Are dependencies pinned, so that compromised version updates cannot be pushed without review? The Scorecard\u2019s granularity in scoring individual best practices is similar to a good restaurant review that answers the question, \u201cdo I want to eat here?\u201d Moreover, Scorecard provides project maintainers with a to-do list of actionable steps to improve security.<\/p>\n<h2>Open Source Insights<\/h2>\n<p>You can use Scorecard to evaluate someone else\u2019s software, or you can use it to improve your own.<\/p>\n<p>To see a project\u2019s score quickly, you can visit <a href=\"https:\/\/deps.dev\/\">Open Source Insights<\/a>. This site uses Scorecard data to report on the health of dependencies. For anything not covered on Open Source Insights, you can use the Scorecard command-line utility to scan any project on GitHub, or you can run Scorecard locally:<\/p>\n<pre>\n<code>$ scorecard --local . --show-details --format json | jq .<\/code><\/pre>\n<p>You can run Scorecard on your Git server or on local development machines and trigger it to run with a Git hook.<\/p>\n<h2>GitHub Action<\/h2>\n<p>If your code is on GitHub, you can add the <a href=\"https:\/\/github.com\/ossf\/scorecard-action\">GitHub Scorecard Action<\/a> to your repository. The GitHub Action runs a Scorecard scan after any repository change, so you get immediate feedback if a PR causes a regression in your project\u2019s security. The results provide remediation tips and an indication of severity, enabling you to raise your score and secure your project.<\/p>\n<article class=\"align-center media media--type-image media--view-mode-default\">\n<div class=\"field field--name-field-media-image field--type-image field--label-hidden field__item\">  <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/opensource.com\/sites\/default\/files\/2023-02\/scorecard-report.webp\" width=\"1228\" height=\"740\" alt=\"An example report of Scorecard in the Security section of a GitHub repository.\"><\/div>\n<div class=\"field field--name-field-caption field--type-text-long field--label-hidden caption field__item\"><span class=\"caption__byline\">Image by: <\/span><\/p>\n<p>(Naveen Srinivasan, CC BY-SA 4.0)<\/p>\n<\/div>\n<\/article>\n<div class=\"embedded-resource-list callout-float-right\">\n<div class=\"field field--name-title field--type-string field--label-hidden field__item\">More on security<\/div>\n<div class=\"field field--name-links field--type-link field--label-hidden field__items\">\n<div class=\"field__item\"><a href=\"https:\/\/developers.redhat.com\/articles\/defensive-coding-guide\/?intcmp=7016000000127cYAAQ\">The defensive coding guide<\/a><\/div>\n<div class=\"field__item\"><a href=\"https:\/\/www.redhat.com\/en\/resources\/container-security-openshift-cloud-devops-whitepaper?intcmp=7016000000127cYAAQ\">10 layers of Linux container security<\/a><\/div>\n<div class=\"field__item\"><a href=\"https:\/\/developers.redhat.com\/books\/selinux-coloring-book?intcmp=7016000000127cYAAQ\">SELinux coloring book<\/a><\/div>\n<div class=\"field__item\"><a href=\"https:\/\/opensource.com\/tags\/security?intcmp=7016000000127cYAAQ\">More security articles<\/a><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<h2>Scorecard API<\/h2>\n<p>The <a href=\"https:\/\/api.securityscorecards.dev\/\">Scorecard API<\/a> is a powerful tool that allows you to assess the rigor of a large number of open source projects quickly and easily. With this API, you can check the scores of over 1.25 million GitHub repositories that are scanned weekly. The API provides a wealth of information about the security practices of each project, allowing you to quickly identify vulnerabilities and take action to protect your software supply chain. This data can also be used to automate the process of judging software, making it easy to ensure that your software is always secure and up to date. Whether you\u2019re a project owner or a consumer of open source software, the Scorecard API is an essential tool for ensuring the security and reliability of your code.<\/p>\n<p>When you\u2019ve made progress in improving your score, don\u2019t forget to add a <a href=\"https:\/\/github.com\/ossf\/scorecard#scorecard-badges\">badge<\/a> to showcase your hard work.<\/p>\n<p>Currently, the OpenSSF Scorecard is becoming widely adopted, and as one of its developers, I\u2019m excited about the future. If you try it out, don\u2019t hesitate to contact us through the contact section of the repository and share your feedback.<\/p>\n<h2>Join the Scorecard crowd<\/h2>\n<p>The Scorecard crowd is growing, and many users are already benefiting from the tool. According to Chris Aniszczyk, CTO of the Cloud Native Computing Foundation, \u201cCNCF uses Scorecards in a variety of its projects to improve security practices across the cloud native ecosystem.\u201d<\/p>\n<p>OpenSSF Scorecard is an automated and practical tool that enables you to assess the security of open source software and take steps to improve your software supply chain security. It\u2019s an essential tool for ensuring that the software you\u2019re using is safe and reliable.<\/p>\n<\/div>\n<div class=\"clearfix text-formatted field field--name-field-article-subhead field--type-text-long field--label-hidden field__item\">\n<p>OpenSSF Scorecard helps to ensure your open source software is safe and reliable.<\/p>\n<\/div>\n<div class=\"field field--name-field-lead-image field--type-entity-reference field--label-hidden field__item\">\n<article class=\"media media--type-image media--view-mode-caption\">\n<div class=\"field field--name-field-media-image field--type-image field--label-hidden field__item\">  <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.cryptocabaret.com\/wp-content\/uploads\/2023\/03\/mistake_bug_fix_find_error-1.png\" width=\"520\" height=\"293\" alt=\"magnifying glass on computer screen, finding a bug in the code\" title=\"magnifying glass on computer screen, finding a bug in the code\"><\/div>\n<div class=\"field field--name-field-caption field--type-text-long field--label-hidden caption field__item\"><span class=\"caption__byline\">Image by: <\/span><\/p>\n<p>Opensource.com<\/p>\n<\/div>\n<\/article>\n<\/div>\n<div class=\"field field--name-field-tags field--type-entity-reference field--label-hidden field__items\">\n<div class=\"field__item\"><a href=\"https:\/\/opensource.com\/tags\/scale\" hreflang=\"en\">SCaLE<\/a><\/div>\n<div class=\"field__item\"><a href=\"https:\/\/opensource.com\/tags\/security\" hreflang=\"en\">Security and privacy<\/a><\/div>\n<\/p><\/div>\n<div class=\"hidden field field--name-field-listicle-title field--type-string field--label-hidden field__item\">What to read next<\/div>\n<div class=\"field field--name-field-default-license field--type-list-string field--label-hidden field__item\"><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><br \/>\n        <img decoding=\"async\" alt=\"Creative Commons License\" src=\"https:\/\/www.cryptocabaret.com\/wp-content\/uploads\/2023\/03\/cc-by-sa--40.png\" title=\"This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.\"><\/a>This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.<\/div>\n<section class=\"field field--name-field-comments field--type-comment field--label-hidden comment-wrapper\">\n<div class=\"comments__count\">\n<div class=\"login\"><a href=\"https:\/\/opensource.com\/user\/register?absolute=1\">Register<\/a> or <a href=\"https:\/\/opensource.com\/user\/login?destination=\/feed&amp;absolute=1\">Login<\/a> to post a comment.<\/div>\n<\/p><\/div>\n<\/section>\n<p class=\"wpematico_credit\"><small>Powered by <a href=\"http:\/\/www.wpematico.com\" target=\"_blank\" rel=\"noopener\">WPeMatico<\/a><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Assess security risks in your open source project with Scorecard snaveen Tue, 03\/21\/2023 &#8211; 03:00 Software supply chain attacks are becoming increasingly common, and attackers are targeting vulnerabilities in dependencies early in the supply chain to amplify the impact of their attacks. Dependency security is very much in the spotlight. It\u2019s important to stay informed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":72119,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[307],"tags":[],"class_list":["post-72118","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-open-source"],"_links":{"self":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/posts\/72118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=72118"}],"version-history":[{"count":0,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/posts\/72118\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=\/wp\/v2\/media\/72119"}],"wp:attachment":[{"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=72118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=72118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cryptocabaret.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=72118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}