Skip to content

Commit 7aa7a4d

Browse files
[elgamal-registry] Add security txt for elgamal-registry and add SECURITY.md (#337)
* add security-txt for elgamal registry * add SECURITY.md * Apply suggestions from code review Co-authored-by: Jon C <[email protected]> * add boundies and scope to `SECURITY.md` --------- Co-authored-by: Jon C <[email protected]>
1 parent 1d37eb9 commit 7aa7a4d

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SECURITY.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Security Policy
2+
3+
## Reporting security problems
4+
5+
**DO NOT CREATE A GITHUB ISSUE** to report a security problem.
6+
7+
Instead please use this [Report a Vulnerability](https://github.com/solana-program/token-2022/security/advisories/new) link.
8+
Provide a helpful title and detailed description of the problem.
9+
10+
If you haven't done so already, please **enable two-factor auth** in your GitHub account.
11+
12+
Expect a response as fast as possible in the advisory, typically within 72 hours.
13+
14+
--
15+
16+
If you do not receive a response in the advisory, send an email to
17+
<[email protected]> with the full URL of the advisory you have created. DO NOT
18+
include attachments or provide detail sufficient for exploitation regarding the
19+
security issue in this email. **Only provide such details in the advisory**.
20+
21+
If you do not receive a response from <[email protected]> please followup with
22+
the team directly. You can do this in one of the `#Dev Tooling` channels of the
23+
[Solana Tech discord server](https://solana.com/discord), by pinging the admins
24+
in the channel and referencing the fact that you submitted a security problem.
25+
26+
## Security Bug Bounties
27+
28+
The Solana Foundation offer bounties for critical security issues. Please
29+
see the [Agave Security Bug
30+
Bounties](https://github.com/anza-xyz/agave/security/policy#security-bug-bounties)
31+
for details on classes of bugs and payment amounts.
32+
33+
## Scope
34+
35+
Only the `spl-token-2022` program is included in the bounty scope, at [program](https://github.com/solana-program/token-2022/tree/master/program).
36+
37+
If you discover a critical security issue in an out-of-scope component, your finding
38+
may still be valuable.

confidential-transfer/elgamal-registry/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ solana-program-error = "2.2.1"
2323
solana-pubkey = { version = "2.2.1", features = ["curve25519"] }
2424
solana-rent = "2.2.1"
2525
solana-sdk-ids = "2.2.1"
26+
solana-security-txt = "1.1.1"
2627
solana-system-interface = { version = "1.0.0", features = ["bincode"] }
2728
solana-sysvar = { version = "2.2.1", features = ["bincode"] }
2829
solana-zk-sdk = "2.2.0"

confidential-transfer/elgamal-registry/src/entrypoint.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use {
66
solana_account_info::AccountInfo, solana_program_error::ProgramResult, solana_pubkey::Pubkey,
7+
solana_security_txt::security_txt,
78
};
89

910
solana_program_entrypoint::entrypoint!(process_instruction);
@@ -14,3 +15,15 @@ fn process_instruction(
1415
) -> ProgramResult {
1516
crate::processor::process_instruction(program_id, accounts, instruction_data)
1617
}
18+
19+
security_txt! {
20+
// Required fields
21+
name: "SPL ElGamal Registry",
22+
project_url: "https://solana-program.com",
23+
contacts: "link:https://github.com/solana-program/token-2022/security/advisories/new,mailto:[email protected],discord:https://solana.com/discord",
24+
policy: "https://github.com/solana-program/token-2022/blob/master/SECURITY.md",
25+
26+
// Optional Fields
27+
preferred_languages: "en",
28+
source_code: "https://github.com/solana-program/token-2022/tree/master/confidential-transfer/elgamal-registry"
29+
}

0 commit comments

Comments
 (0)