-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
first pass at security.md [SLT-250] #3205
Conversation
WalkthroughThe changes introduce a new Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 5
🧹 Outside diff range and nitpick comments (2)
SECURITY.md (2)
26-26
: Ensure consistent naming throughout the document.The term "Labs" is used inconsistently in this section. It's referred to as "Synapse Labs" at the beginning of the sentence and just "Labs" at the end. For clarity and consistency, it's best to use the full name "Synapse Labs" throughout the document.
Consider updating the sentence as follows:
-For vulnerabilities in any of our websites, email servers, or other non-critical infrastructure, please email Synapse Labs at {_____}. We and Labs appreciate detailed instructions outlining the vulnerability. +For vulnerabilities in any of our websites, email servers, or other non-critical infrastructure, please email Synapse Labs at {_____}. We at Synapse Labs appreciate detailed instructions outlining the vulnerability.
30-30
: Consider revising the phrase "any and all rights".The phrase "any and all rights" might be considered wordy. While it's a common legal phrase, it could be simplified for clarity.
Consider revising the sentence as follows:
-By submitting your report, you grant Synapse Labs any and all rights, including without limitation intellectual property rights, needed to validate, mitigate, and disclose the vulnerability. +By submitting your report, you grant Synapse Labs all rights, including intellectual property rights, needed to validate, mitigate, and disclose the vulnerability.🧰 Tools
🪛 LanguageTool
[style] ~30-~30: ‘any and all’ might be wordy. Consider a shorter alternative.
Context: ...ing your report, you grant Synapse Labs any and all rights, including without limitation in...(EN_WORDINESS_PREMIUM_ANY_AND_ALL)
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
- SECURITY.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
SECURITY.md
[style] ~30-~30: ‘any and all’ might be wordy. Consider a shorter alternative.
Context: ...ing your report, you grant Synapse Labs any and all rights, including without limitation in...(EN_WORDINESS_PREMIUM_ANY_AND_ALL)
🔇 Additional comments (1)
SECURITY.md (1)
16-23
: Well-defined guidelines for responsible disclosure.This section effectively outlines inappropriate disclosure methods, which is crucial for maintaining the security of the protocol. The points are clear and concise, helping to prevent accidental public disclosures.
|
||
## Other Terms | ||
|
||
The decisions made regarding rewards are final and binding. By submitting your report, you grant Synapse Labs any and all rights, including without limitation intellectual property rights, needed to validate, mitigate, and disclose the vulnerability. All reward decisions, including eligibility for and amounts of the rewards and how such rewards will be paid, are made at the sole discretion of Synapse Labs. Terms and conditions of the Program may be altered at any time. Synapse Labs may change or cancel this Program at any time, for any reason. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Consider restructuring the Other Terms section for clarity.
While the terms covered in this section are comprehensive, the dense paragraph structure might make it difficult for readers to quickly grasp all the important points. Consider breaking this into bullet points or shorter paragraphs for improved readability.
Here's a suggested restructure:
## Other Terms
- All reward decisions, including eligibility, amounts, and payment methods, are made at the sole discretion of Synapse Labs. These decisions are final and binding.
- By submitting your report, you grant Synapse Labs all rights, including intellectual property rights, needed to validate, mitigate, and disclose the vulnerability.
- Synapse Labs reserves the right to alter the terms and conditions of the Program at any time.
- Synapse Labs may change or cancel this Program at any time, for any reason.
🧰 Tools
🪛 LanguageTool
[style] ~30-~30: ‘any and all’ might be wordy. Consider a shorter alternative.
Context: ...ing your report, you grant Synapse Labs any and all rights, including without limitation in...(EN_WORDINESS_PREMIUM_ANY_AND_ALL)
SECURITY.md
Outdated
All bug disclosures should be disclosed privately to a member of Synapse Labs. This can be done in the following ways: | ||
|
||
1. Open up a ticket in the Synapse Discord | ||
2. Email {_______} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the missing email address for vulnerability reporting.
The email address for reporting vulnerabilities is missing. This is a critical piece of information that needs to be added before this document is published.
Please replace the placeholder with the correct email address:
-2. Email {_______}
+2. Email [email protected]
Committable suggestion was skipped due to low confidence.
# Security Policy | ||
|
||
## Overview | ||
|
||
The security of Synapse Protocol is paramount. To standardize and encourage the discovery of bugs, the following outlines how to report bugs found in Synapse Protocol, sanguine, or any related code base. The program enables community members to submit reports of "bugs" or vulnerabilities for a chance to earn rewards. The program aims to incentivise responsible disclosure and enhance the security of Synapse Protocol. | ||
|
||
Bounties are allocated on an ad hoc basis, and depend on the legitimacy, risk level, and other variables. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Consider providing more details about the bounty program.
The overview effectively introduces the security policy. However, the statement about bounty allocation (line 7) is quite vague. To encourage participation, consider providing more specific information about the bounty program, such as potential reward ranges or factors that influence the reward amount.
You could add a sentence like:
+Rewards typically range from $X to $Y, depending on the severity and impact of the reported vulnerability.
Committable suggestion was skipped due to low confidence.
SECURITY.md
Outdated
|
||
## Other Vulnerabilities | ||
|
||
For vulnerabilities in any of our websites, email servers, or other non-critical infrastructure, please email Synapse Labs at {_____}. We and Labs appreciate detailed instructions outlining the vulnerability. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the missing email address for non-critical vulnerabilities.
The email address for reporting non-critical vulnerabilities is missing. This information needs to be added before the document is published.
Please replace the placeholder with the correct email address:
-For vulnerabilities in any of our websites, email servers, or other non-critical infrastructure, please email Synapse Labs at {_____}. We and Labs appreciate detailed instructions outlining the vulnerability.
+For vulnerabilities in any of our websites, email servers, or other non-critical infrastructure, please email Synapse Labs at [email protected]. We at Synapse Labs appreciate detailed instructions outlining the vulnerability.
Committable suggestion was skipped due to low confidence.
SECURITY.md
Outdated
All bug disclosures should be disclosed privately to a member of Synapse Labs. This can be done in the following ways: | ||
|
||
1. Open up a ticket in the Synapse Discord | ||
2. Email {_______} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Consider adding information about the response process.
While the reporting methods are clear, it would be helpful to include information about what reporters can expect after submitting a vulnerability. This could include expected response times and an overview of the process that follows a report.
Consider adding a paragraph like:
+After submitting a report, you can expect an initial response within 24-48 hours. Our security team will then assess the report and may contact you for additional information if needed. We aim to resolve and disclose verified vulnerabilities within 90 days of the initial report.
Committable suggestion was skipped due to low confidence.
Deploying sanguine-fe with Cloudflare Pages
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
🧹 Outside diff range and nitpick comments (1)
SECURITY.md (1)
30-30
: Simplify the legal language
The terms section contains unnecessarily complex language that could be simplified while maintaining its legal validity.
-By submitting your report, you grant Synapse Labs any and all rights, including without limitation intellectual property rights,
+By submitting your report, you grant Synapse Labs all rights, including intellectual property rights,
🧰 Tools
🪛 LanguageTool
[style] ~30-~30: ‘any and all’ might be wordy. Consider a shorter alternative.
Context: ...ing your report, you grant Synapse Labs any and all rights, including without limitation in...
(EN_WORDINESS_PREMIUM_ANY_AND_ALL)
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
- SECURITY.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
SECURITY.md
[style] ~30-~30: ‘any and all’ might be wordy. Consider a shorter alternative.
Context: ...ing your report, you grant Synapse Labs any and all rights, including without limitation in...
(EN_WORDINESS_PREMIUM_ANY_AND_ALL)
Please exercise prudence when disclosing a bug. The following actions are the wrong way to disclose a bug: | ||
|
||
- Filing a public ticket mentioning the vulnerability | ||
- Testing the vulnerability on mainnet or testnet | ||
- Sharing the bug on a public channel | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Add responsible disclosure timeline and expectations
While the prohibited actions are clear, the section would benefit from including:
- Expected timeline for vulnerability assessment and fixes
- Coordinated disclosure process
- Guidelines for when public disclosure is appropriate
Add this section after line 23:
## Disclosure Timeline
- Initial Response: Within 24-48 hours
- Assessment: 3-5 business days
- Fix Development: Based on severity
- Critical: Up to 30 days
- High: Up to 60 days
- Medium/Low: Up to 90 days
- Coordinated Public Disclosure: After fix deployment and testing
All bug disclosures should be disclosed privately to a member of Synapse Labs. This can be done in the following ways: | ||
|
||
1. Open up a ticket in the Synapse Discord | ||
2. Reach out to a core team member privately on Telegram | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enhance the security reporting channels
The current reporting channels (Discord and Telegram) may not provide adequate security for sensitive vulnerability reports. Consider:
- Adding PGP-encrypted email as a reporting option
- Providing specific contact handles/information for core team members
- Including a security.txt file reference
Add these secure communication channels:
All bug disclosures should be disclosed privately to a member of Synapse Labs. This can be done in the following ways:
1. Open up a ticket in the Synapse Discord
2. Reach out to a core team member privately on Telegram
+3. Send an encrypted email to [email protected] (PGP Key: <key-fingerprint>)
+
+For secure communications, our PGP public key can be found at: <key-url>
Committable suggestion was skipped due to low confidence.
## Other Vulnerabilities | ||
|
||
For vulnerabilities in any of our websites, email servers, or other non-critical infrastructure, please reach out through one of the channels above. We and Labs appreciate detailed instructions outlining the vulnerability. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revise the non-critical vulnerabilities section
The section needs improvement in both content and grammar:
- Separate channels should be provided for non-critical issues
- Fix the grammatical error in "We and Labs"
Apply this correction:
-For vulnerabilities in any of our websites, email servers, or other non-critical infrastructure, please reach out through one of the channels above. We and Labs appreciate detailed instructions outlining the vulnerability.
+For vulnerabilities in any of our websites, email servers, or other non-critical infrastructure, please email [email protected]. Synapse Labs appreciates detailed instructions outlining the vulnerability. Please include:
+
+- Description of the vulnerability
+- Steps to reproduce
+- Potential impact
+- Suggested remediation (if any)
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
## Other Vulnerabilities | |
For vulnerabilities in any of our websites, email servers, or other non-critical infrastructure, please reach out through one of the channels above. We and Labs appreciate detailed instructions outlining the vulnerability. | |
## Other Vulnerabilities | |
For vulnerabilities in any of our websites, email servers, or other non-critical infrastructure, please email [email protected]. Synapse Labs appreciates detailed instructions outlining the vulnerability. Please include: | |
- Description of the vulnerability | |
- Steps to reproduce | |
- Potential impact | |
- Suggested remediation (if any) |
First pass at public security policy
Summary by CodeRabbit
SECURITY.md
file for the Synapse Protocol.