What you see here is a DRAFT for the charter of a CPAN Security Group (CPANSec). Until published by a founding member, all of the points and ideas below are suggested, and open to revision, deletion or amending.
Discussion on IRC: ircs://ssl.irc.perl.org:7062/#cpan-security
This charter lays out the background, intentions, mandate, scope, means and methods for the CPAN Security Group (CPANSec). This document also explicitly acknowledges a few related organizations and communities, and spell out responsibility demarcation lines between these, if any.
The full name of the group is CPAN Security Group. Valid abbreviations are CPANSec.
The group was established at the Perl Toolchain Summit 2023 in Lyon, France, with the purpose of establishing a forum for discussing and improving:
- Author/repo signing
- Vulnerability databases + MetaCPAN
- Security incident support for non-core CPAN modules
- Toolchain security
- Supply-chain security
- etc.
This list was subject for discussions and revision, and the resulting projects, tasks and topics are laid out under the subject lines below.
The CPANSec intends to be a forum for coordinating and assisting in resolving security issues found on CPAN. This may include:
- Assist authors and third-party developers in dealing with vulnerabilities and general security advisories related to distributions indexed on Perl's package ecosystem, CPAN;
- Be a contact point for reporters of potential vulnerabilities when authors are unresponsive;
- Assist in determining the validity and severity of vulnerabilities, if appropriate and needed;
- Offer help in contacting authors;
- Assess, publish and keep track of vulnerability information and general security advisories related to non-core distributions on CPAN;
- Request CVE numbers for vulnerabilities related to non-core distributions on CPAN;
- Share and document best security practices to authors and users;
- Raise awareness to security threats and mitigations in Perl applications that rely on the CPAN ecosystem;
- Act as a trusted intermediator for reporting potential security vulnerabilities to distributions, including managing and responsible disclosure of embargoed security information for a reasonable amount of time pertaining non-core distributions on CPAN, and communication with package managers and distribution channels;
- Provide a forum for discussing and coordinating around supply chain security, integrity, metadata and the communication of these, including but not limited to:
- SBOM and other ways for tracking and communicating software and metadata changes, including interaction with external tooling and sources of security advisories;
- The Update Framework (TUF) integration;
- Third-party vulnerability scanning support;
The CPANSec concerns itself with a limited domain:
- Distributions published on CPAN, not including dual-life core modules;
- CPAN supply chain security, Chain-of-Trust infrastructure, and security around the Perl/CPAN Toolchain, CPAN/MetaCPAN itself and PAUSE;
- CPAN distribution metadata and how these are communicated;
- Emergency security updates on CPAN;
- The security culture in CPAN and communities in general;
For details, please consult the Projects list below.
- Security issues handled by <[email protected]>
- The perl interpreter itself
- Perl Core modules managed by <[email protected]>
- Supply-chain issues that are found outside of CPAN, for example:
- Downstream security issues related to repackaging or patching of CPAN distros by third party packaging system (e.g. Debian's apt, Redhat's rpm, etc).
- Third party libraries, files and services linked to or used by CPAN distributions (unless the library is packaged with the affected CPAN distribution);
CPAN distributions that function as shims (wrappers) for non-CPAN projects or resources.Examples:CPAN Distributions that are pure wrappers around compiled libraries (e.g. XS modules wrappinglibxml2
orsqlite3
)- Rationale: XS modules are in scope until tooling for warning about upstream vulnerabilities is in place. (sjn)
CPAN Distributions (outside theAlien::
namespace) that embed or use third-party (non-CPAN) projects or APIs directly.- Rationale: Shims/wrappers/API modules on CPAN are in scope, but we cannot address issues related to the third-party (external) libraries or APIs they link to or use. So for example if
XML::LibXML
contains a vulnerability, it's in scope, but if libxml2 (which it links to) has a vulnerability, we have nothing to do with it, as it is not directly related to code on CPAN. (garu)
- Rationale: Shims/wrappers/API modules on CPAN are in scope, but we cannot address issues related to the third-party (external) libraries or APIs they link to or use. So for example if
TheAlien::
distribution namespace- Rationale:
Alien::
distributions are in scope until tooling for warning about upstream vulnerabilities is in place. (stigo)
- Rationale:
Mozilla::CA- Rationale:
Mozilla::CA
is in scope until the module is either phased out/deprecated or kept automatically in sync with upstream CA. (stigo); Furthermore, Mozilla::CA is apparently about to be auto-updated sometime soon?
- Rationale:
- MetaCPAN
- FIXME: Offloading management of MetaCPAN security issues depends on getting an agreement with the MetaCPAN folks, which we don't have as of 2023-06-17. Also - is this necessary and desirable? Please share why we should (not) do this.
- Perl software published outside of CPAN (e.g. Github download links, or with private hosting).
- …
The CPANSec has no power, agency or special privileges over CPAN distributions or their authors, except for those releases done by the team itself.
The working group publishes information, advisories and recommendations, but cannot force anyone to follow them. Our goal is to facilitate in-good-faith productive and security-focused discussions, with the intention to assist in resolving any issues in a responsible and timely manner.
CPANSec is a forum to assist in resolving technical issues. It should be regarded as a contact point for technical staff. The CPANSec is not directly associated with any third party and does not do contract work for third parties, nor provides non-technical assistance.
If you represent the management or legal department at your business and/or need to address non-technical issues, we probably cannot help you.
FIXME: Allow for "non-technical support" offers, like funding etc.
While the CPANSec has no formal mandate or responsibilities, it may still seek and accept public statements of support or acknowledgement from the following relevant community stakeholders. In addition, the CPANSec may ask for formal mandates from delegating authorities (DA):
- The Perl Steering Council (DA)
- The PAUSE team (DA)
- The MetaCPAN team (DA)
- The Perl Security list (DA)
- Perl NOC
- The Perl Modules list
- The CPAN Workers list
- The Perl and Raku Foundation
- Linux distributions' package manager teams
Public statements of support should not be considered more than an acknowledgment of intent, and as non-binding promises to support each other in good faith to resolve relevant security issues.
Formal mandates, on the other hand are intended to establish clear lines of responsibility and accountability, and with this, function as meaningful steps to establish legitimacy.
If the CPANSec asks for a formal mandate from a delegating authority (DA), the CPANSec members acknowledge that delegating authority may withdraw their mandate at any time if they decide the CPANSec is incapable or unwilling to fulfil its mandate, or in case the CPANSec decides to delegate any received responsibilities to a third party.
In the unfortunate situation when a delegating authority is disbanded, becomes unresponsive, or transfers/loses its authority to delegate responsibilities to us, the CPANSec members may ask for a formal mandate from a replacing authority.
The CPANSec has currently no formal mandates.
The CPANSec consists of volunteers, and while we enter and engage in this forum with good intentions and willingness to assist in constructive dialogue, we reserve the right to withhold assistance to any individuals or institutions who do not conduct themselves in a like-minded manner.
This means that the products of our work should be considered best effort, and be accepted AS IS. We do not offer indemnification, insurance or guarantees.
The CPANSec forum itself is moderated and for invited volunteers. To join, please reach out through one of our public contact points.
- Artifact Transparency Logs
- Introduce sigstore or sigsum to CPAN, possibly based on guidelines from transparency.dev
- Provenance and Supply Chain Security
- Introduce tooling and infrastructure for establishing provenance, chain-of-trust and chain-of-custody
- Introduce tooling for downstream verification of provenance, chain-of-trust and chain-of-custody
- Metadata and Software Bill of Materials
- Tooling for the creation and verification of SBOM objects commonly used to communicate the composition and pedigree of CPAN dependencies, even when these dependencies cross ecosystem boundaries.
- Update CPAN package metadata to enable end-users to comply with legislative obligations.
- Vulnerability Index
- Standardization and publishing of CPAN package vulnerabilities in relevant indexes (our own, CPANSA, CVE or whatever), to ensure that common (including third-party) tooling for Software Composition Analysis or vulnerability assessment work with CPAN dependencies.
- Software Composition Analysis
- Improve or create user-interfacing tooling used for analyzing dependencies for known vulnerabilities.
- Security Patch Tooling
- Develop tooling for publishing and applying third-party security patches to CPAN distributions that have non-responsive authors, to enable high-priority updates to CPAN packages.
- Explore opportunities for simplifying downstream fixes to reach upstream authors.
- Security Outreach & Information
- Establish a website and social media presence for outreach and information sharing, and keep these up to date.
- CPANSec Governance, Policy & Funding
- Establish procedures for responsible disclosure, communication and other related mechanisms, including documentation on how vulnerabilities and malicious code incidents are handled.
- Create a group charter and accountability procedures.
- Raise funds for CPAN Security Group projects.
- Chat (IRC): ircs://ssl.irc.perl.org:7062/#cpan-security
- Fediverse: @[email protected]
- Email: <[email protected]>
- Main website: https://security.metacpan.org/
- CPANSec News RSS feed.
- Github group: https://github.com/CPAN-Security
Picture taken by sjn
at the Perl Toolchain Summit 2023 in Lyon, France.
From left to right,
- stigo
- Ingy döt Net
- Salve J. Nilsen
- Leon Timmermans
- H. Merijn "Tux" Brand
- Breno "garu" Oliveira
- haarg
- mickey
- sjn
- stigo
- garu
- timlegge
- …
v0.6.7