import type { DocumentTemplate } from '@cra-compliance/types'; /** * CRA document templates. * * Wording checked against Regulation (EU) 2024/2847 (OJ L, 2024/2847, 20.11.2024) * and RFC 9116. See docs/cra-facts.md for the verified facts these rely on. * Placeholders use {{field_id}}; {{current_date}} is filled in by the apps. */ export const DOCUMENT_TEMPLATES: DocumentTemplate[] = [ { id: 'vulnerability-disclosure-policy', title: 'Vulnerability Disclosure Policy', description: 'A public policy that tells security researchers and users how to report a vulnerability in your product and what happens next. It is your coordinated vulnerability disclosure policy under Annex I, Part II, point (5) of the CRA and publishes the contact address required by point (6).', category: 'vulnerability_policy', cra_articles: ['Annex I, Part II(5)', 'Annex I, Part II(6)', 'Article 13(17)'], premium_only: false, fields: [ { id: 'org_name', label: 'Manufacturer name', type: 'text', placeholder: 'Acme Software Ltd', required: true, }, { id: 'product_name', label: 'Product name', type: 'text', placeholder: 'Acme Backup for WordPress', required: true, }, { id: 'security_email', label: 'Security contact email', type: 'email', placeholder: 'security@example.com', required: true, }, { id: 'website', label: 'Website', type: 'url', placeholder: 'https://example.com', required: true, }, { id: 'advisories_url', label: 'Security advisories page', type: 'url', placeholder: 'https://example.com/security/advisories', required: true, }, { id: 'response_time', label: 'Time to acknowledge a report', type: 'select', placeholder: 'Select a response time', required: true, options: ['24 hours', '48 hours', '72 hours', '5 working days'], }, { id: 'fix_timeline', label: 'Target time to release a fix', type: 'select', placeholder: 'Select a target', required: true, options: ['30 days', '60 days', '90 days'], }, ], template_content: `# Vulnerability Disclosure Policy [Template note: this policy helps meet Annex I, Part II, points (5) and (6), and Article 13(17) of Regulation (EU) 2024/2847 (Cyber Resilience Act). Delete this note before publishing.] **Manufacturer:** {{org_name}} **Product:** {{product_name}} **Last updated:** {{current_date}} ## 1. Purpose This is the coordinated vulnerability disclosure policy of {{org_name}} for {{product_name}}. It explains how to report a security vulnerability to us and what you can expect after you do. ## 2. Scope This policy covers {{product_name}}, including every version still within its support period, and the third-party components it contains. [List any products, versions or services that are out of scope, or delete this sentence.] ## 3. How to report a vulnerability Email **{{security_email}}**. If you cannot use email, contact us through {{website}} and we will agree another way to receive your report. Please include: - the product version affected; - a description of the vulnerability and its likely impact; - steps to reproduce it, and any proof-of-concept code; - whether you believe it is being actively exploited; - how you would like to be credited, if at all. You can also report vulnerabilities in third-party components contained in {{product_name}}. We will pass the relevant information to whoever maintains the component. ## 4. What happens next 1. **Acknowledgement:** we acknowledge your report within {{response_time}}. 2. **Assessment:** we confirm whether the issue is a vulnerability, assess its severity and keep you informed of progress. 3. **Fix:** we aim to release a fix or mitigation within {{fix_timeline}} of confirming the vulnerability, and sooner where the risk requires it. Security updates are free of charge. 4. **Disclosure:** once a security update is available, we publish an advisory at {{advisories_url}} describing the vulnerability, the affected versions, its impact and severity, and how to fix it. We agree the timing with you. Where publishing straight away would put users at more risk than it protects them from, we may delay publication until users have had the chance to install the update. 5. **Credit:** we credit you in the advisory unless you ask us not to. ## 5. Actively exploited vulnerabilities If a vulnerability is being actively exploited, we notify it through ENISA's Single Reporting Platform to the CSIRT designated as coordinator and to ENISA, as Article 14 of the Cyber Resilience Act requires. We may also need to tell users about the vulnerability and how to protect themselves before a full fix is ready. We will tell you if this affects the disclosure timeline. ## 6. Guidelines for researchers Please: - give us a reasonable time to fix the issue before you disclose it publicly; - access, change or delete only the data you need to show the vulnerability; - avoid privacy violations, service disruption and data destruction; - do not use social engineering, physical attacks or denial-of-service testing. ## 7. Legal safe harbour If you act in good faith and follow this policy, {{org_name}} will not take legal action against you, or ask law enforcement to investigate you, for your research. This commitment covers {{org_name}} only and cannot bind third parties. ## 8. Contact - **Security contact:** {{security_email}} - **Website:** {{website}} - **Security advisories:** {{advisories_url}}`, }, { id: 'incident-response-plan', title: 'Incident Response Plan', description: 'An internal plan for handling actively exploited vulnerabilities and severe incidents, including the notifications to the coordinating CSIRT and ENISA that Article 14 of the CRA has required since 11 September 2026. It is written for the people who will run the response.', category: 'incident_response', cra_articles: ['Article 14', 'Article 16'], premium_only: false, fields: [ { id: 'org_name', label: 'Manufacturer name', type: 'text', placeholder: 'Acme Software Ltd', required: true, }, { id: 'product_name', label: 'Product name', type: 'text', placeholder: 'Acme Backup for WordPress', required: true, }, { id: 'contact_name', label: 'Incident response lead', type: 'text', placeholder: 'Jane Smith, Head of Engineering', required: true, }, { id: 'contact_email', label: 'Incident response email', type: 'email', placeholder: 'security@example.com', required: true, }, { id: 'contact_phone', label: 'Out-of-hours phone (optional)', type: 'text', placeholder: '+353 1 555 0100', required: false, }, { id: 'member_state', label: 'Member State whose coordinating CSIRT you notify (main EU establishment, or as set by Article 14(7) if you have none)', type: 'text', placeholder: 'Ireland', required: true, }, ], template_content: `# Incident Response Plan *This plan helps meet Article 14 of Regulation (EU) 2024/2847 (Cyber Resilience Act), which has applied since 11 September 2026.* **Manufacturer:** {{org_name}} **Product:** {{product_name}} **Plan version:** 1.0 **Last updated:** {{current_date}} **Incident response lead:** {{contact_name}} ({{contact_email}}) ## 1. Purpose and scope This plan sets out how {{org_name}} detects, assesses, fixes and reports security problems in {{product_name}}. It covers: - vulnerabilities in {{product_name}} and in the components it contains; - actively exploited vulnerabilities, which must be notified under Article 14(1); - severe incidents having an impact on the security of {{product_name}}, which must be notified under Article 14(3). The Article 14 obligations apply to every version of {{product_name}} made available on the EU market, including versions placed on the market before 11 December 2027. ## 2. Roles | Role | Name | Contact | |---|---|---| | Incident response lead | {{contact_name}} | {{contact_email}} | | Out-of-hours contact | [Name] | {{contact_phone}} | | Deputy lead | [Name] | [Email] | | Person who submits notifications | [Name] | [Email] | The incident response lead decides whether an event must be notified and approves each notification. [Make sure someone with access to the Single Reporting Platform is available at all times, including weekends and holidays.] ## 3. What must be reported **Actively exploited vulnerability:** a vulnerability for which there is reliable evidence that a malicious actor has exploited it in a system without the permission of the system owner (Article 3(42)). **Severe incident:** an incident having an impact on the security of {{product_name}} that: - negatively affects, or is capable of negatively affecting, the ability of the product to protect the availability, authenticity, integrity or confidentiality of sensitive or important data or functions; or - has led, or is capable of leading, to the introduction or execution of malicious code in the product or in the network and information systems of a user (Article 14(5)). ## 4. Detection and triage 1. Receive the report or alert (security contact, monitoring, a user, a researcher, a CSIRT or a supplier). 2. Open an incident record and log the date and time the information arrived. 3. Assess whether there is a vulnerability, whether it is actively exploited, and whether there is a severe incident. 4. Record the date and time {{org_name}} became aware of the actively exploited vulnerability or severe incident, and the reasons. The 24-hour and 72-hour deadlines run from that moment. 5. If in doubt, prepare the early warning while the assessment continues. ## 5. Notification deadlines | Stage | Actively exploited vulnerability (Article 14(2)) | Severe incident (Article 14(4)) | |---|---|---| | Early warning | Without undue delay, and within 24 hours of becoming aware | Without undue delay, and within 24 hours of becoming aware | | Notification | Without undue delay, and within 72 hours of becoming aware | Without undue delay, and within 72 hours of becoming aware | | Final report | No later than 14 days after a corrective or mitigating measure is available | Within one month after the incident notification | The notification and the final report do not need to repeat information already provided. The coordinating CSIRT may ask for an intermediate report on relevant status updates (Article 14(6)). [Microenterprises and small enterprises cannot be fined for missing the 24-hour early warning deadline, but must still submit the early warning (Article 64(10)(a)).] ### 5.1 Actively exploited vulnerability: minimum content - **Early warning:** where applicable, the Member States in which {{org_name}} knows {{product_name}} has been made available. - **Vulnerability notification:** general information, as available, about the product; the general nature of the exploit and of the vulnerability; corrective or mitigating measures taken, and those users can take; and, where applicable, how sensitive we consider the information to be. - **Final report:** a description of the vulnerability, including its severity and impact; where available, information about any malicious actor that has exploited or is exploiting it; and details of the security update or other corrective measures made available. ### 5.2 Severe incident: minimum content - **Early warning:** at least whether the incident is suspected of being caused by unlawful or malicious acts and, where applicable, the Member States in which {{product_name}} has been made available. - **Incident notification:** general information, where available, about the nature of the incident; an initial assessment; corrective or mitigating measures taken, and those users can take; and, where applicable, how sensitive we consider the information to be. - **Final report:** a detailed description of the incident, including its severity and impact; the type of threat or root cause that is likely to have triggered it; and applied and ongoing mitigation measures. ## 6. How to submit notifications - Submit every notification through ENISA's Single Reporting Platform (Article 16), using the electronic notification end-point of the CSIRT designated as coordinator in **{{member_state}}**. ENISA has access to the notification at the same time (Article 14(7)). - Our main establishment is in the Member State where decisions on the cybersecurity of our products are mainly taken. If that cannot be determined, it is the Member State where we have the most employees in the EU. - [If you have no main establishment in the EU, use the CSIRT of the Member State where, in this order, your authorised representative, your importer or your distributor is established, or where most of your users are located (Article 14(7)).] - Keep a copy of each submission and its confirmation in the incident record. ## 7. Informing users After becoming aware of an actively exploited vulnerability or severe incident, we inform impacted users, and where appropriate all users, about it and, where necessary, about the risk mitigation and corrective measures they can take (Article 14(8)). Where appropriate, we use a structured, machine-readable format that can be processed automatically, such as a CSAF advisory. Channels: - a notice in the product's admin interface; - email to registered users; - a security advisory at [advisories page address]. If we do not inform users in a timely manner, the coordinating CSIRT may inform them instead. Where public awareness is needed, the coordinating CSIRT may also, after consulting us, inform the public about a severe incident or require us to do so (Article 17(2)). ## 8. Fix, release and disclosure 1. Develop and test a fix or mitigation without delay (Annex I, Part II, point (2)). 2. Where technically feasible, release the security update separately from feature updates. 3. Distribute the update securely and free of charge, with an advisory explaining what users should do (Annex I, Part II, points (7) and (8)). 4. Once the update is available, publish information about the fixed vulnerability (Annex I, Part II, point (4)). 5. If the vulnerability is in a third-party component, report it to the person or organisation that maintains the component and share our fix where appropriate (Article 13(6)). ## 9. Internal severity levels These internal targets do not replace the Article 14 deadlines. | Severity | Examples | Start of response | |---|---|---| | Critical | Actively exploited, remote code execution, data breach | Immediately | | High | Exploitable vulnerability, authentication bypass | Within 24 hours | | Medium | Vulnerability that needs user interaction or special conditions | Within 72 hours | | Low | Hardening improvement or minor issue | Within one week | ## 10. Records and review - Keep the incident record: timeline, decisions and reasons, notifications, user communications and the fix. - Update the cybersecurity risk assessment with what we learned (Article 13(3) and (7)). - Keep incident records with the technical documentation. - We may also report other vulnerabilities, cyber threats and near misses voluntarily (Article 15). We review this plan at least once a year, after every incident, and when new guidance or implementing acts on reporting are published.`, }, { id: 'eu-declaration-conformity', title: 'EU Declaration of Conformity', description: 'The formal declaration, signed by the manufacturer, that a product meets the essential cybersecurity requirements of the CRA. It follows the model structure in Annex V, is required by Article 28 for products placed on the market from 11 December 2027, and is read by market surveillance authorities and customers.', category: 'security_documentation', cra_articles: ['Article 28', 'Annex V'], premium_only: false, fields: [ { id: 'org_name', label: 'Manufacturer name', type: 'text', placeholder: 'Acme Software Ltd', required: true, }, { id: 'org_address', label: 'Manufacturer postal address', type: 'textarea', placeholder: '1 Example Street, Dublin D02 XY45, Ireland', required: true, }, { id: 'product_name', label: 'Product name', type: 'text', placeholder: 'Acme Backup for WordPress', required: true, }, { id: 'product_version', label: 'Product type or version', type: 'text', placeholder: '2.1.0', required: true, }, { id: 'product_description', label: 'Description of the product (object of the declaration)', type: 'textarea', placeholder: 'A WordPress plugin that backs up site files and databases to cloud storage.', required: true, }, { id: 'eu_representative_name', label: 'Authorised representative name (optional)', type: 'text', placeholder: 'EU Rep Services GmbH', required: false, }, { id: 'eu_representative_address', label: 'Authorised representative postal address (optional)', type: 'textarea', placeholder: 'Musterstraße 1, 10115 Berlin, Germany', required: false, }, { id: 'standards_applied', label: 'Harmonised standards, common specifications or certification used', type: 'textarea', placeholder: 'None', required: true, }, { id: 'conformity_procedure', label: 'Conformity assessment procedure', type: 'select', placeholder: 'Select a procedure', required: true, options: [ 'Internal control (Module A, Annex VIII, Part I)', 'EU-type examination (Module B, Annex VIII, Part II) followed by conformity to type (Module C, Annex VIII, Part III)', 'Full quality assurance (Module H, Annex VIII, Part IV)', 'European cybersecurity certification scheme (Article 27(9))', ], }, { id: 'notified_body', label: 'Notified body, procedure performed and certificate (where applicable)', type: 'textarea', placeholder: 'Not applicable: internal control (Module A), no notified body involved.', required: true, }, { id: 'signatory_name', label: 'Signatory name', type: 'text', placeholder: 'Jane Smith', required: true, }, { id: 'signatory_function', label: 'Signatory function', type: 'text', placeholder: 'Chief Executive Officer', required: true, }, { id: 'place_of_issue', label: 'Place of issue', type: 'text', placeholder: 'Dublin, Ireland', required: true, }, { id: 'declaration_date', label: 'Date of issue', type: 'date', placeholder: '', required: true, }, ], template_content: `# EU Declaration of Conformity [Template note: drawn up under Article 28 of Regulation (EU) 2024/2847 (Cyber Resilience Act), following the model structure in Annex V. Delete all bracketed notes before signing.] **Declaration reference:** DoC-{{product_name}}-{{product_version}} ## 1. Product - **Name:** {{product_name}} - **Type or version:** {{product_version}} [Add any other information that uniquely identifies the product, such as a build number or package identifier.] ## 2. Manufacturer - **Name:** {{org_name}} - **Address:** {{org_address}} **Authorised representative** - **Name:** {{eu_representative_name}} - **Address:** {{eu_representative_address}} [Delete the authorised representative details if you have not appointed one. Appointing one is optional (Article 18).] ## 3. Responsibility This declaration of conformity is issued under the sole responsibility of the manufacturer. ## 4. Object of the declaration {{product_name}}, version {{product_version}}: {{product_description}} [Add anything else needed for traceability, for example a screenshot of the product, where appropriate.] ## 5. Conformity The object of the declaration described above is in conformity with the relevant Union harmonisation legislation: Regulation (EU) 2024/2847 of the European Parliament and of the Council of 23 October 2024 on horizontal cybersecurity requirements for products with digital elements and amending Regulations (EU) No 168/2013 and (EU) No 2019/1020 and Directive (EU) 2020/1828 (Cyber Resilience Act) (OJ L, 2024/2847, 20.11.2024, ELI: http://data.europa.eu/eli/reg/2024/2847/oj). The fulfilment of the applicable essential cybersecurity requirements set out in Annex I to that Regulation has been demonstrated. [If other Union legislation requiring an EU declaration of conformity applies to the product, list each act and its publication reference here. A single declaration covers all of them (Article 28(3)).] ## 6. Harmonised standards, common specifications and cybersecurity certification {{standards_applied}} [Give the exact reference and date of each harmonised standard, common specification or European cybersecurity certificate in relation to which conformity is declared, and say which parts were applied if not all. Write "None" if none was used.] ## 7. Notified body and conformity assessment - **Conformity assessment procedure:** {{conformity_procedure}} - **Notified body (name and number), procedure performed and certificate issued:** {{notified_body}} ## 8. Additional information [Optional, for example the end date of the support period or the web address where this declaration is published. Delete if not used.] Signed for and on behalf of: {{org_name}} Place and date of issue: {{place_of_issue}}, {{declaration_date}} Name and function: {{signatory_name}}, {{signatory_function}} Signature: ______________________________ [Before signing: the CRA requires this declaration for products placed on the market from 11 December 2027. Draw it up only after the conformity assessment procedure in section 7 has demonstrated that the product and your processes meet Annex I (Article 13(12)). By drawing it up you take responsibility for the product's compliance (Article 28(4)). For software, the CE marking may be affixed to this declaration or to the website accompanying the product (Article 30(1)); where a notified body was involved under Module H, follow the CE marking with its identification number (Article 30(4)). Supply either a copy of this declaration or the simplified declaration in Annex VI, giving the exact web address of this one, with the product (Article 13(20)). Make the declaration available in the languages required by each Member State where the product is placed or made available on the market, and update it when needed (Article 28(2)). Keep it with the technical documentation for at least 10 years after the product is placed on the market, or for the support period if longer (Article 13(13)).]`, }, { id: 'sbom', title: 'Software Bill of Materials (SBOM)', description: 'A human-readable summary of the components in your product, kept alongside the machine-readable SBOM that Annex I, Part II, point (1) of the CRA requires. The SBOM is part of your technical documentation and does not have to be published.', category: 'sbom', cra_articles: ['Annex I, Part II(1)', 'Annex VII'], premium_only: false, fields: [ { id: 'org_name', label: 'Manufacturer name', type: 'text', placeholder: 'Acme Software Ltd', required: true, }, { id: 'product_name', label: 'Product name', type: 'text', placeholder: 'Acme Backup for WordPress', required: true, }, { id: 'product_version', label: 'Product version', type: 'text', placeholder: '2.1.0', required: true, }, { id: 'product_slug', label: 'Package identifier', type: 'text', placeholder: 'acme-backup', required: false, }, { id: 'server_dependencies', label: 'Server-side dependencies', type: 'textarea', placeholder: 'guzzlehttp/guzzle 7.8.1, aws/aws-sdk-php 3.300.0', required: false, }, { id: 'client_dependencies', label: 'Client-side dependencies', type: 'textarea', placeholder: 'react 18.3.1, @tanstack/react-query 5.59.0', required: false, }, { id: 'external_apis', label: 'External services the product connects to', type: 'textarea', placeholder: 'Amazon S3 (backup storage), Resend (email notifications)', required: false, }, { id: 'license', label: 'Product licence', type: 'select', placeholder: 'Select a licence', required: true, options: ['GPL-2.0-or-later', 'GPL-3.0-or-later', 'MIT', 'Apache-2.0', 'Proprietary'], }, { id: 'sbom_format', label: 'Machine-readable SBOM format', type: 'select', placeholder: 'Select a format', required: true, options: ['CycloneDX JSON', 'CycloneDX XML', 'SPDX JSON', 'SPDX tag-value', 'Other machine-readable format'], }, { id: 'sbom_location', label: 'Where the machine-readable SBOM is kept', type: 'text', placeholder: 'compliance/sbom/acme-backup-2.1.0.cdx.json in the release repository', required: true, }, ], template_content: `# Software Bill of Materials: Summary *This summary supports Annex I, Part II, point (1) of Regulation (EU) 2024/2847 (Cyber Resilience Act). It does not replace the machine-readable SBOM.* | Item | Details | |---|---| | Product | {{product_name}} | | Version | {{product_version}} | | Package identifier | {{product_slug}} | | Licence | {{license}} | | Manufacturer | {{org_name}} | | Date | {{current_date}} | | Machine-readable SBOM format | {{sbom_format}} | | Machine-readable SBOM location | {{sbom_location}} | ## 1. What the CRA requires - Manufacturers must identify and document the components in their product, including by drawing up an SBOM in a commonly used, machine-readable format covering at least the top-level dependencies (Annex I, Part II, point (1)). - The SBOM is part of the technical documentation (Annex VII, point 2(b)). A market surveillance authority can ask for it on a reasoned request (Annex VII, point 8). - You do not have to publish the SBOM. If you choose to make it available to users, say where in your Annex II user information (Annex II, point 9). - Commonly used formats include CycloneDX (an OWASP project, standardised by Ecma International as ECMA-424) and SPDX (version 2.2.1 is standardised as ISO/IEC 5962:2021). - The Commission may specify the format and elements of the SBOM by implementing act (Article 13(24)). Check whether one has been adopted before you rely on this summary. ## 2. Server-side dependencies {{server_dependencies}} [Write "None" if the product has no server-side dependencies.] ## 3. Client-side dependencies {{client_dependencies}} [Write "None" if the product has no client-side dependencies.] ## 4. External services These services are not components of the product, but the product connects to them: {{external_apis}} [If the software for one of these services was designed and developed by you, or under your responsibility, and the product cannot perform one of its functions without it, it is a remote data processing solution and part of the product (Article 3(1) and (2)). List its components in the SBOM as well.] ## 5. How we maintain the SBOM - We generate the SBOM from the build for each release and keep every version with the technical documentation. - We check components for known vulnerabilities before each release and throughout the support period. - When we find a vulnerability in a component, we report it to whoever maintains that component and fix it under our vulnerability handling process (Article 13(6); Annex I, Part II, point (2)). **Prepared by:** {{org_name}} **Date:** {{current_date}}`, }, { id: 'security-txt', title: 'security.txt File', description: 'A security.txt file (RFC 9116) that tells researchers where to report vulnerabilities. Serve it at /.well-known/security.txt on your domain. The CRA does not require security.txt, but it is a common way to publish the contact address required by Annex I, Part II, point (6).', category: 'vulnerability_policy', cra_articles: ['Annex I, Part II(6)', 'Article 13(17)'], premium_only: false, fields: [ { id: 'security_email', label: 'Security contact email', type: 'email', placeholder: 'security@example.com', required: true, }, { id: 'website', label: 'Website address (HTTPS, no trailing slash)', type: 'url', placeholder: 'https://example.com', required: true, }, { id: 'policy_url', label: 'Vulnerability disclosure policy address (HTTPS)', type: 'url', placeholder: 'https://example.com/security/disclosure-policy', required: true, }, { id: 'preferred_languages', label: 'Preferred languages for reports', type: 'text', placeholder: 'en, de', required: true, }, { id: 'expires_date', label: 'Expiry date (less than one year from today)', type: 'date', placeholder: '', required: true, }, ], template_content: `# This file gives our contact address for vulnerability reports. It helps meet Annex I, Part II, point (6) of the EU Cyber Resilience Act (Regulation (EU) 2024/2847). # Format: RFC 9116 (https://www.rfc-editor.org/rfc/rfc9116) Contact: mailto:{{security_email}} Expires: {{expires_date}}T23:59:59Z Policy: {{policy_url}} Preferred-Languages: {{preferred_languages}} Canonical: {{website}}/.well-known/security.txt `, }, { id: 'technical-documentation', title: 'Technical Documentation', description: 'The technical documentation that Article 31 and Annex VII of the CRA require you to draw up before placing a product on the market and keep up to date during the support period. It is mainly read by market surveillance authorities and, where one is involved, your notified body.', category: 'technical_documentation', cra_articles: ['Article 31', 'Annex VII', 'Article 13(4)'], premium_only: false, fields: [ { id: 'org_name', label: 'Manufacturer name', type: 'text', placeholder: 'Acme Software Ltd', required: true, }, { id: 'org_address', label: 'Manufacturer postal address', type: 'text', placeholder: '1 Example Street, Dublin D02 XY45, Ireland', required: true, }, { id: 'product_name', label: 'Product name', type: 'text', placeholder: 'Acme Backup for WordPress', required: true, }, { id: 'product_version', label: 'Product version', type: 'text', placeholder: '2.1.0', required: true, }, { id: 'product_description', label: 'Intended purpose and general description', type: 'textarea', placeholder: 'A WordPress plugin that backs up site files and databases to cloud storage on a schedule. Intended for administrators of small business websites.', required: true, }, { id: 'user_info_ref', label: 'Reference to the Annex II user information', type: 'text', placeholder: 'User information v1.0, published at https://example.com/docs/security', required: true, }, { id: 'architecture_overview', label: 'Design, development and system architecture', type: 'textarea', placeholder: 'PHP plugin with a React admin screen. Backup jobs run through WP-Cron, archives are encrypted locally and uploaded to S3 over HTTPS. See architecture diagram v3.', required: true, }, { id: 'vulnerability_handling', label: 'Vulnerability handling processes', type: 'textarea', placeholder: 'Disclosure policy at https://example.com/security/disclosure-policy; reports to security@example.com; SBOM generated in CI for each release; updates signed and delivered through WordPress.org.', required: true, }, { id: 'sbom_included', label: 'SBOM status', type: 'select', placeholder: 'Select a status', required: true, options: ['Yes, CycloneDX', 'Yes, SPDX', 'Yes, another machine-readable format', 'Not yet drawn up'], }, { id: 'production_monitoring', label: 'Production and monitoring processes, and how they were validated', type: 'textarea', placeholder: 'Releases built in GitHub Actions from tagged commits; dependency and static analysis scans on every build; release checklist approved by the lead developer.', required: true, }, { id: 'risk_assessment_summary', label: 'Cybersecurity risk assessment summary', type: 'textarea', placeholder: 'Main risks: SQL injection in the restore screen (mitigated by prepared statements), theft of stored cloud credentials (mitigated by encryption at rest). Full assessment: Risk assessment v2.0.', required: true, }, { id: 'security_requirements', label: 'How the Annex I requirements apply', type: 'textarea', placeholder: 'For each requirement in Annex I, Part I, point (2)(a) to (m): whether it applies, how it is met, or why it does not apply.', required: true, }, { id: 'update_policy', label: 'Support period and how it was set', type: 'textarea', placeholder: 'Five years, ending December 2032. Based on the expected time in use, the WordPress and PHP support cycles, and the support periods of similar plugins.', required: true, }, { id: 'standards_applied', label: 'Standards, common specifications and certification applied', type: 'textarea', placeholder: 'No harmonised standards applied. Solutions adopted are described in sections 2 and 3. Other specification used: OWASP ASVS 4.0.3, level 2.', required: true, }, { id: 'testing_summary', label: 'Test reports', type: 'textarea', placeholder: 'Static analysis report 2027-03-01; dependency scan 2027-03-01; external penetration test by Example Security Ltd, February 2027.', required: true, }, { id: 'conformity_procedure', label: 'Conformity assessment procedure', type: 'select', placeholder: 'Select a procedure', required: true, options: [ 'Internal control (Module A, Annex VIII, Part I)', 'EU-type examination (Module B, Annex VIII, Part II) followed by conformity to type (Module C, Annex VIII, Part III)', 'Full quality assurance (Module H, Annex VIII, Part IV)', 'European cybersecurity certification scheme (Article 27(9))', ], }, ], template_content: `# Technical Documentation *This document helps meet Article 31 and Annex VII of Regulation (EU) 2024/2847 (Cyber Resilience Act).* **Manufacturer:** {{org_name}}, {{org_address}} **Product:** {{product_name}}, version {{product_version}} **Date:** {{current_date}} [Draw up this documentation before placing the product on the market and keep it up to date, at least during the support period (Article 31(2)). Microenterprises and small enterprises may instead provide these elements in the simplified form that the Commission specifies by implementing act (Article 33(5)).] ## 1. General description (Annex VII, point 1) ### 1.1 Intended purpose {{product_description}} ### 1.2 Software versions affecting compliance {{product_version}} [List any other software versions that affect compliance with the essential cybersecurity requirements.] ### 1.3 User information and instructions (Annex II) {{user_info_ref}} [Hardware products only: add photographs or illustrations showing external features, marking and internal layout.] ## 2. Design, development, production and vulnerability handling (Annex VII, point 2) ### 2.1 Design, development and system architecture {{architecture_overview}} ### 2.2 Vulnerability handling processes {{vulnerability_handling}} **Software bill of materials:** {{sbom_included}} [Attach or reference the SBOM, the coordinated vulnerability disclosure policy, evidence that a contact address for vulnerability reports is provided, and a description of the technical solutions used to distribute updates securely.] ### 2.3 Production and monitoring processes {{production_monitoring}} [Include how these processes were validated (Annex VII, point 2(c)).] ## 3. Cybersecurity risk assessment (Annex VII, point 3; Article 13(2) to (4)) {{risk_assessment_summary}} [Attach the full risk assessment.] ### 3.1 How the essential requirements in Annex I apply {{security_requirements}} [Where a requirement does not apply, give a clear justification (Article 13(4)).] ## 4. Support period (Annex VII, point 4; Article 13(8)) {{update_policy}} ## 5. Standards, common specifications and certification (Annex VII, point 5) {{standards_applied}} [List the harmonised standards whose references are published in the Official Journal, the common specifications and the European cybersecurity certification schemes applied, and state which parts where only some were applied. Where none were applied, describe the solutions adopted to meet Annex I, Parts I and II, and list other technical specifications used.] ## 6. Test reports (Annex VII, point 6) {{testing_summary}} [Include reports of the tests that verify both the product (Annex I, Part I) and your vulnerability handling processes (Annex I, Part II).] ## 7. EU declaration of conformity (Annex VII, point 7) **Conformity assessment procedure:** {{conformity_procedure}} [Attach a copy of the signed EU declaration of conformity.] ## 8. Software bill of materials for authorities (Annex VII, point 8) We provide the SBOM to a market surveillance authority on reasoned request, where it needs the SBOM to check compliance with Annex I. ## 9. Retention We keep this documentation at the disposal of market surveillance authorities for at least 10 years after the product is placed on the market, or for the support period if longer (Article 13(13)).`, }, { id: 'risk-assessment', title: 'Cybersecurity Risk Assessment', description: 'A documented assessment of the cybersecurity risks of your product, which Article 13(2) to (4) of the CRA require and which decides how you meet Annex I. It is part of your technical documentation and is kept up to date during the support period.', category: 'risk_assessment', cra_articles: ['Article 13(2)', 'Article 13(3)', 'Article 13(4)', 'Annex I'], premium_only: false, fields: [ { id: 'org_name', label: 'Manufacturer name', type: 'text', placeholder: 'Acme Software Ltd', required: true, }, { id: 'product_name', label: 'Product name', type: 'text', placeholder: 'Acme Backup for WordPress', required: true, }, { id: 'product_version', label: 'Product version', type: 'text', placeholder: '2.1.0', required: true, }, { id: 'assessor_name', label: 'Assessor name and role', type: 'text', placeholder: 'Jane Smith, Security Lead', required: true, }, { id: 'assessment_date', label: 'Assessment date', type: 'date', placeholder: '', required: true, }, { id: 'product_scope', label: 'Intended purpose, foreseeable use and operating environment', type: 'textarea', placeholder: 'Used by small businesses to back up WordPress sites to cloud storage. Runs on shared hosting with PHP 8.1 or later. Only administrators configure it; site visitors never interact with it.', required: true, }, { id: 'assets', label: 'Assets to protect', type: 'textarea', placeholder: 'Backup archives, cloud storage credentials, site database contents, administrator sessions.', required: true, }, { id: 'expected_use_period', label: 'Expected time in use', type: 'text', placeholder: '5 years', required: true, }, { id: 'threat_model', label: 'Threats and risk ratings', type: 'textarea', placeholder: 'SQL injection in the restore screen (likelihood medium, impact high, risk high); theft of stored cloud credentials (likelihood low, impact high, risk medium).', required: true, }, { id: 'mitigations', label: 'Controls and mitigations', type: 'textarea', placeholder: 'Prepared statements for all queries; credentials encrypted at rest; capability checks and nonces on every admin action; HTTPS for all uploads.', required: true, }, { id: 'component_due_diligence', label: 'Due diligence on third-party components', type: 'textarea', placeholder: 'Dependencies pinned in composer.lock and package-lock.json, checked against OSV on every build. New libraries must be actively maintained and have a security contact.', required: true, }, { id: 'residual_risks', label: 'Residual and accepted risks', type: 'textarea', placeholder: 'Hosting providers can read files on shared servers. Accepted because backups are encrypted; users are warned in the user information.', required: true, }, { id: 'review_schedule', label: 'Review frequency', type: 'select', placeholder: 'Select a frequency', required: true, options: ['After each major release', 'Quarterly', 'Twice a year', 'Annually'], }, ], template_content: `# Cybersecurity Risk Assessment *This document helps meet Article 13(2) to (4) of Regulation (EU) 2024/2847 (Cyber Resilience Act) and records how Annex I applies to the product.* **Product:** {{product_name}}, version {{product_version}} **Manufacturer:** {{org_name}} **Assessor:** {{assessor_name}} **Date:** {{assessment_date}} **Review frequency:** {{review_schedule}}, and whenever the product, its components or the threats to it change ## 1. Purpose Article 13(2) requires the manufacturer to assess the cybersecurity risks of the product and take the outcome into account during planning, design, development, production, delivery and maintenance, to minimise cybersecurity risks, prevent incidents and minimise their impact, including in relation to the health and safety of users. This assessment is documented and kept up to date during the support period (Article 13(3)), and is included in the technical documentation (Article 13(4)). ## 2. Intended purpose and conditions of use {{product_scope}} **Expected time in use:** {{expected_use_period}} ## 3. Assets to protect {{assets}} ## 4. Threats and risk ratings {{threat_model}} [Explain the rating method, for example likelihood multiplied by impact on a three-point scale.] ## 5. Controls and mitigations {{mitigations}} ## 6. Third-party components (Article 13(5)) {{component_due_diligence}} ## 7. Application of Annex I, Part I, point (2) Article 13(3) requires this assessment to show whether each requirement below applies and how it is implemented. Where a requirement does not apply, give a clear justification (Article 13(4)). | Requirement | Applies? | How it is met, or why it does not apply | |---|---|---| | (a) Made available without known exploitable vulnerabilities | | | | (b) Secure by default configuration, including the option to reset to the original state | | | | (c) Vulnerabilities can be addressed through security updates, automatic by default where applicable, with opt-out, notification and the option to postpone | | | | (d) Protection from unauthorised access, and reporting on possible unauthorised access | | | | (e) Confidentiality of stored, transmitted and processed data, for example by encryption | | | | (f) Integrity of data, commands, programs and configuration, and reporting on corruption | | | | (g) Data minimisation | | | | (h) Availability of essential and basic functions, also after an incident, including resilience against denial-of-service attacks | | | | (i) Minimal negative impact on the availability of services provided by other devices or networks | | | | (j) Limited attack surfaces, including external interfaces | | | | (k) Reduced impact of incidents through exploitation mitigation mechanisms | | | | (l) Recording and monitoring of relevant internal activity, with a user opt-out | | | | (m) Secure and easy permanent removal of all data and settings, and secure transfer of data | | | ## 8. Application of Annex I, Part I, point (1), and Part II [Explain how the product reaches an appropriate level of cybersecurity based on the risks (Part I, point (1)), and how each vulnerability handling requirement in Part II, points (1) to (8), is applied.] ## 9. Residual and accepted risks {{residual_risks}} ## 10. Conclusion and approval [State whether the residual risks are acceptable and why.] **Approved by:** {{assessor_name}} **Date:** {{assessment_date}}`, }, { id: 'support-update-policy', title: 'Security Update and Support Policy', description: 'A public statement of how long you will handle vulnerabilities and provide security updates for your product, and how users receive them. It covers Article 13(8), (9) and (19) of the CRA, which require a support period of at least five years in most cases and an end date that is clear at the time of purchase.', category: 'support_policy', cra_articles: ['Article 13(8)', 'Article 13(9)', 'Article 13(19)', 'Annex I, Part II'], premium_only: false, fields: [ { id: 'org_name', label: 'Manufacturer name', type: 'text', placeholder: 'Acme Software Ltd', required: true, }, { id: 'product_name', label: 'Product name', type: 'text', placeholder: 'Acme Backup for WordPress', required: true, }, { id: 'security_email', label: 'Security contact email', type: 'email', placeholder: 'security@example.com', required: true, }, { id: 'support_period', label: 'Support period', type: 'select', placeholder: 'Select a support period', required: true, options: [ '5 years', '7 years', '10 years', 'Less than 5 years (the product is expected to be in use for less time)', 'Other period (see end date)', ], }, { id: 'support_end_date', label: 'End of support (at least month and year)', type: 'text', placeholder: 'December 2032', required: true, }, { id: 'update_mechanism', label: 'How security updates are delivered', type: 'select', placeholder: 'Select a delivery method', required: true, options: [ 'WordPress.org plugin or theme directory', 'Package registry (npm, PyPI, Packagist or similar)', 'Automatic updates built into the application', 'Our own update server', 'Manual download from our website', 'Container registry (Docker Hub, GHCR or similar)', ], }, { id: 'update_frequency', label: 'Target time to fix a critical vulnerability', type: 'select', placeholder: 'Select a target', required: true, options: [ 'Within 24 hours of confirmation', 'Within 72 hours of confirmation', 'Within 7 days of confirmation', 'Within 30 days of confirmation', ], }, { id: 'eol_plan', label: 'What happens at the end of support', type: 'textarea', placeholder: 'We announce the end date 12 months in advance by email and in the admin dashboard, release a final security update, and publish migration guidance.', required: true, }, ], template_content: `# Security Update and Support Policy [Template note: this policy helps meet Article 13(8), (9) and (19) and Annex I, Part II of Regulation (EU) 2024/2847 (Cyber Resilience Act). Delete this note before publishing.] **Manufacturer:** {{org_name}} **Product:** {{product_name}} **Effective from:** {{current_date}} **Security contact:** {{security_email}} ## 1. Support period - **Support period:** {{support_period}} - **Support ends:** {{support_end_date}} Until the end of the support period, we handle vulnerabilities in {{product_name}}, including vulnerabilities in its components, and provide security updates. [Explain briefly how you set this period, for example the time the product is expected to be in use. Article 13(8) requires at least five years, unless the product is expected to be in use for less time. Record the information you used in the technical documentation (Annex VII, point 4). Show the end date, with at least the month and year, clearly at the time of purchase, for example on the product page or checkout (Article 13(19)).] ## 2. What we do during the support period - Fix vulnerabilities without delay, prioritised by risk. Our target for critical vulnerabilities is {{update_frequency}}. - Provide security updates free of charge, with an advisory explaining the issue and any action users should take. - Where technically feasible, release security updates separately from feature updates. - Publish information about fixed vulnerabilities once an update is available. - Notify actively exploited vulnerabilities and severe incidents to the coordinating CSIRT and ENISA, and inform affected users, as Article 14 requires. ## 3. How updates are delivered Security updates are delivered through: **{{update_mechanism}}**. [If the product installs security updates automatically, explain how users can turn this off or postpone updates. If it does not, explain how users are told that an update is available.] ## 4. How long updates stay available Each security update stays available for at least 10 years after it is issued, or for the rest of the support period if that is longer. [Optional, include only if it applies: where we release a substantially modified new version, we may provide security updates for the latest version only. Users of earlier versions can move to the latest version free of charge and without extra costs to adjust their hardware or software (Article 13(10)).] [Optional, include only if it applies: we keep an archive of earlier versions. Versions outside the support period receive no security updates and may contain known vulnerabilities, so we recommend that you use a supported version (Article 13(11)).] ## 5. End of support {{eol_plan}} Where technically feasible, {{product_name}} will show users a notice when it reaches the end of its support period. ## 6. Contact Report vulnerabilities to **{{security_email}}**, following our vulnerability disclosure policy.`, }, { id: 'annex-ii-user-information', title: 'Annex II User Information and Instructions', description: 'The information and instructions that must accompany your product under Article 13(18) and Annex II of the CRA, for products placed on the market from 11 December 2027. It is written for users and can be supplied on paper or electronically, for example as a page on your website.', category: 'technical_documentation', cra_articles: ['Article 13(18)', 'Annex II'], premium_only: false, fields: [ { id: 'org_name', label: 'Manufacturer name, registered trade name or trademark', type: 'text', placeholder: 'Acme Software Ltd', required: true, }, { id: 'org_address', label: 'Manufacturer postal address', type: 'text', placeholder: '1 Example Street, Dublin D02 XY45, Ireland', required: true, }, { id: 'org_email', label: 'General contact email', type: 'email', placeholder: 'hello@example.com', required: true, }, { id: 'org_website', label: 'Website', type: 'url', placeholder: 'https://example.com', required: true, }, { id: 'eu_representative', label: 'Authorised representative (optional)', type: 'textarea', placeholder: 'EU Rep Services GmbH, Musterstraße 1, 10115 Berlin, Germany, eurep@example.com', required: false, }, { id: 'product_name', label: 'Product name', type: 'text', placeholder: 'Acme Backup for WordPress', required: true, }, { id: 'product_version', label: 'Product version', type: 'text', placeholder: '2.1.0', required: true, }, { id: 'security_email', label: 'Single point of contact for vulnerability reports', type: 'email', placeholder: 'security@example.com', required: true, }, { id: 'cvd_policy_url', label: 'Vulnerability disclosure policy address', type: 'url', placeholder: 'https://example.com/security/disclosure-policy', required: true, }, { id: 'intended_purpose', label: 'Intended purpose, security environment, essential functions and security properties', type: 'textarea', placeholder: 'Backs up WordPress files and databases to cloud storage on a schedule. Designed for WordPress 6.4 or later on PHP 8.1 or later, served over HTTPS. Backups are encrypted with AES-256 before upload. Only administrators can configure or restore backups.', required: true, }, { id: 'known_risks', label: 'Known or foreseeable circumstances that may lead to significant cybersecurity risks', type: 'textarea', placeholder: 'Storing cloud credentials on shared hosting where other accounts can read files. Restoring a backup from an untrusted source.', required: true, }, { id: 'doc_url', label: 'Address of the EU declaration of conformity (where applicable)', type: 'url', placeholder: 'https://example.com/legal/declaration-of-conformity', required: false, }, { id: 'support_type', label: 'Type of technical security support', type: 'text', placeholder: 'Security updates and advisories for the latest version; security questions answered by email', required: true, }, { id: 'support_period', label: 'End date of the support period (at least month and year)', type: 'text', placeholder: 'December 2032', required: true, }, { id: 'eol_notice_period', label: 'Notice before end of support', type: 'select', placeholder: 'Select a notice period', required: true, options: ['At least 6 months', 'At least 12 months', 'At least 18 months', 'At least 24 months'], }, { id: 'secure_config_instructions', label: 'Instructions for secure installation and use', type: 'textarea', placeholder: 'Install only from WordPress.org. Use a dedicated storage bucket with write-only credentials. Review the settings page after each major update.', required: true, }, { id: 'modification_effects', label: 'How changes to the product can affect the security of data', type: 'textarea', placeholder: 'Editing plugin files or installing unofficial add-ons can disable encryption and expose backup archives.', required: true, }, { id: 'update_mechanism', label: 'How to install security updates', type: 'text', placeholder: 'Automatically through WordPress auto-updates (on by default), or from Dashboard > Updates', required: true, }, { id: 'auto_update_opt_out', label: 'How to turn off automatic security updates', type: 'textarea', placeholder: 'Go to Plugins, find Acme Backup and select "Disable auto-updates". We recommend leaving automatic updates on.', required: true, }, { id: 'decommissioning_instructions', label: 'Secure decommissioning and data removal', type: 'textarea', placeholder: 'Before deleting the plugin, go to Settings > Acme Backup > Remove all data. This deletes stored credentials, settings and local backup files.', required: true, }, { id: 'integrator_information', label: 'Information for integrators', type: 'textarea', placeholder: 'Not applicable: the product is not intended for integration into other products.', required: true, }, { id: 'sbom_url', label: 'SBOM address (only if you make it available to users)', type: 'url', placeholder: 'https://example.com/sbom/acme-backup-2.1.0.cdx.json', required: false, }, ], template_content: `# Information and Instructions for Users [Template note: this document helps meet Article 13(18) and Annex II of Regulation (EU) 2024/2847 (Cyber Resilience Act). Provide it in a language that users and market surveillance authorities can easily understand. Keep it available to users and authorities for at least 10 years after the product is placed on the market, or for the support period if longer; if you publish it online, keep it accessible for that time (Article 13(18)). Delete this note before publishing.] **Product:** {{product_name}}, version {{product_version}} **Date of this information:** {{current_date}} ## 1. Manufacturer - **Name:** {{org_name}} - **Postal address:** {{org_address}} - **Email:** {{org_email}} - **Website:** {{org_website}} **Authorised representative:** {{eu_representative}} [Delete the authorised representative line if you have not appointed one. Annex II does not require it.] ## 2. Reporting vulnerabilities Report vulnerabilities in {{product_name}} to our single point of contact: **{{security_email}}**. You can also write to us at the postal address above. Our coordinated vulnerability disclosure policy is at {{cvd_policy_url}}. ## 3. Product identification {{product_name}}, version {{product_version}}. [Add any other information that uniquely identifies the product, such as a package identifier.] ## 4. Intended purpose and security properties {{intended_purpose}} ## 5. Known risks The following known or foreseeable circumstances, in intended use or reasonably foreseeable misuse, may lead to significant cybersecurity risks: {{known_risks}} ## 6. EU declaration of conformity Hereby, {{org_name}} declares that the product with digital elements type {{product_name}}, version {{product_version}}, is in compliance with Regulation (EU) 2024/2847. The full text of the EU declaration of conformity is available at the following internet address: {{doc_url}} [This is the simplified EU declaration of conformity in Annex VI. Article 13(20) requires you to supply either this simplified declaration, with the exact web address of the full declaration, or a full copy of the declaration with the product. If you supply a full copy, replace this paragraph with a reference to it. The declaration is required for products placed on the market from 11 December 2027; until then, delete this section.] ## 7. Security support - **Type of support:** {{support_type}} - **Support period ends:** {{support_period}} - **Notice before end of support:** {{eol_notice_period}} Until the end of the support period, we handle vulnerabilities and provide security updates free of charge. [The end date must also be shown clearly at the time of purchase, with at least the month and year (Article 13(19)).] ## 8. Instructions ### 8.1 Secure installation and use {{secure_config_instructions}} ### 8.2 How changes to the product can affect the security of data {{modification_effects}} ### 8.3 Installing security updates {{update_mechanism}} ### 8.4 Turning off automatic security updates {{auto_update_opt_out}} ### 8.5 Secure decommissioning and removing your data {{decommissioning_instructions}} ### 8.6 Information for integrators {{integrator_information}} ## 9. Software bill of materials The software bill of materials is available at {{sbom_url}}. [Delete this section if you do not make the SBOM available to users. Making it available is optional.]`, }, { id: 'module-a-conformity-assessment', title: 'Module A: Conformity Assessment Record', description: 'An internal record of the internal control procedure (Module A) in Annex VIII, Part I of the CRA, which Article 32 allows for default products and, under conditions, some important products. Keep it with your technical documentation for market surveillance authorities.', category: 'security_documentation', cra_articles: ['Article 32', 'Annex VIII, Part I'], premium_only: false, fields: [ { id: 'org_name', label: 'Manufacturer name', type: 'text', placeholder: 'Acme Software Ltd', required: true, }, { id: 'org_address', label: 'Manufacturer postal address', type: 'text', placeholder: '1 Example Street, Dublin D02 XY45, Ireland', required: true, }, { id: 'product_name', label: 'Product name', type: 'text', placeholder: 'Acme Backup for WordPress', required: true, }, { id: 'product_version', label: 'Product version', type: 'text', placeholder: '2.1.0', required: true, }, { id: 'product_category', label: 'Product category and basis for using Module A', type: 'select', placeholder: 'Select a category', required: true, options: [ 'Default product (Article 32(1))', 'Important product, class I, with harmonised standards, common specifications or certification schemes applied in full (Article 32(2))', 'Important product, class I or II, that is free and open-source software with public technical documentation (Article 32(5))', ], }, { id: 'assessor_name', label: 'Person responsible for the assessment', type: 'text', placeholder: 'Jane Smith, Chief Technology Officer', required: true, }, { id: 'assessment_date', label: 'Assessment date', type: 'date', placeholder: '', required: true, }, { id: 'annex_i_evidence', label: 'Evidence of conformity with Annex I', type: 'textarea', placeholder: 'Risk assessment v2.0; static analysis and dependency scan reports for release 2.1.0; penetration test report, February 2027; disclosure policy and SBOM process described in technical documentation section 2.2.', required: true, }, { id: 'risk_assessment_ref', label: 'Risk assessment reference', type: 'text', placeholder: 'Risk assessment v2.0, 1 March 2027', required: true, }, { id: 'technical_doc_ref', label: 'Technical documentation reference', type: 'text', placeholder: 'Technical documentation v1.2, 1 March 2027', required: true, }, { id: 'standards_applied', label: 'Standards, common specifications or certification schemes applied', type: 'textarea', placeholder: 'None applied. Annex I is met through the solutions described in technical documentation section 5.', required: true, }, ], template_content: `# Module A: Conformity Assessment Record *This record helps meet Article 32 and Annex VIII, Part I (internal control, based on module A) of Regulation (EU) 2024/2847 (Cyber Resilience Act).* ## 1. Manufacturer - **Name:** {{org_name}} - **Address:** {{org_address}} ## 2. Product - **Product:** {{product_name}} - **Version:** {{product_version}} - **Assessment date:** {{assessment_date}} - **Assessed by:** {{assessor_name}} ## 3. Why Module A can be used {{product_category}} [Module A is not available for important products in class II (Article 32(3)), unless they are free and open-source software meeting Article 32(5), or for critical products (Article 32(4)). For class I products, it is available only where harmonised standards, common specifications or European cybersecurity certification schemes at assurance level at least "substantial" have been applied in full (Article 32(2)). Check the categories in Annex III and Annex IV.] ## 4. Internal control steps (Annex VIII, Part I) | Step | Annex VIII, Part I | Record | |---|---|---| | Draw up the technical documentation described in Annex VII | Point 2 | {{technical_doc_ref}} | | Take all measures needed so that the design, development, production and vulnerability handling processes, and their monitoring, ensure compliance with Annex I, Parts I and II | Point 3 | Section 5 below | | Affix the CE marking to each product that satisfies the applicable requirements | Point 4.1 | [Where and when the CE marking was affixed. For software: on the declaration of conformity or the website accompanying the product (Article 30(1))] | | Draw up a written EU declaration of conformity and keep it with the technical documentation for 10 years, or for the support period if longer | Point 4.2 | [Declaration reference] | **Cybersecurity risk assessment:** {{risk_assessment_ref}} ## 5. Evidence of conformity with Annex I {{annex_i_evidence}} ### 5.1 Annex I, Part I: product properties | Requirement | Status (met, or not applicable with justification) | Evidence | |---|---|---| | (1) Appropriate level of cybersecurity based on the risks | | | | (2)(a) Made available without known exploitable vulnerabilities | | | | (2)(b) Secure by default configuration, with reset to original state | | | | (2)(c) Security updates, automatic by default where applicable, with opt-out and postponement | | | | (2)(d) Protection from unauthorised access, and reporting on possible unauthorised access | | | | (2)(e) Confidentiality of data | | | | (2)(f) Integrity of data, commands, programs and configuration | | | | (2)(g) Data minimisation | | | | (2)(h) Availability of essential and basic functions, also after an incident, including resilience against denial-of-service attacks | | | | (2)(i) Minimal negative impact on other devices or networks | | | | (2)(j) Limited attack surfaces, including external interfaces | | | | (2)(k) Exploitation mitigation mechanisms | | | | (2)(l) Recording and monitoring of relevant internal activity, with user opt-out | | | | (2)(m) Secure removal of all data and settings, and secure data transfer | | | ### 5.2 Annex I, Part II: vulnerability handling | Requirement | Status | Evidence | |---|---|---| | (1) Vulnerabilities and components identified and documented, including an SBOM | | | | (2) Vulnerabilities addressed without delay, with security updates separate from feature updates where technically feasible | | | | (3) Effective and regular security tests and reviews | | | | (4) Information about fixed vulnerabilities publicly disclosed once an update is available | | | | (5) Coordinated vulnerability disclosure policy in place and enforced | | | | (6) Measures to share information about vulnerabilities, including a contact address for reports | | | | (7) Mechanisms to distribute updates securely | | | | (8) Security updates disseminated without delay, free of charge, with advisory messages | | | ## 6. Standards, common specifications and certification {{standards_applied}} ## 7. Authorised representative [The obligations in point 4 (CE marking and declaration of conformity) may be carried out by an authorised representative on the manufacturer's behalf and under its responsibility, if the mandate says so (Annex VIII, Part I, point 5). Delete this section if not used.] ## 8. Confirmation On behalf of {{org_name}}, I confirm that: 1. the technical documentation for {{product_name}} version {{product_version}} has been drawn up in line with Annex VII; 2. the evidence above shows that the product meets the applicable requirements of Annex I, Part I, and that our processes meet Annex I, Part II; 3. where a requirement does not apply, the technical documentation gives a justification; 4. this record will be kept with the technical documentation for at least 10 years after the product is placed on the market, or for the support period if longer (Article 13(13)). **Name and function:** {{assessor_name}} **Date:** {{assessment_date}} **Signature:** ______________________________`, }, ]; /** * Fill a template's {{field_id}} placeholders. {{current_date}} becomes `date` * (YYYY-MM-DD); a field left empty shows as [field_id] so the gap is visible. * Function replacers: text such as "$&" or "$1" in a value comes out literally. */ export function renderDocument(content: string, values: Record, date: string): string { let result = content.replace(/\{\{current_date\}\}/g, () => date); for (const [key, val] of Object.entries(values)) { if (!/^[a-z0-9_]+$/i.test(key)) continue; result = result.replace(new RegExp(`\\{\\{${key}\\}\\}`, 'g'), () => val || `[${key}]`); } return result; } /** * Values as they go into the document: security.txt addresses lose a trailing * slash (RFC 9116 fields are joined to paths). */ export function normaliseDocumentValues(template: DocumentTemplate, values: Record): Record { if (template.id !== 'security-txt') return values; const out = { ...values }; for (const f of template.fields) if (f.type === 'url' && out[f.id]) out[f.id] = out[f.id].trim().replace(/\/+$/, ''); return out; } /** A template filled in with `values` on `date` (YYYY-MM-DD), as downloaded and as stored. */ export function renderTemplateDocument(template: DocumentTemplate, values: Record, date: string): string { return renderDocument(template.template_content, normaliseDocumentValues(template, values), date); }