Debian Codegraph @

crt/s2n/SECURITY.md

raw symbols SCIP
1 # Security Reporting Policy
2
3 ## Reporting Security Issues
4
5 Amazon Web Services (AWS) is dedicated to the responsible disclosure of security vulnerabilities.
6
7 We kindly ask that you **do not** open a public GitHub issue to report security concerns.
8
9 Instead, please submit the issue to the AWS Vulnerability Disclosure Program via [HackerOne](https://hackerone.com/aws_vdp) or send your report via [email](mailto:[email protected]).
10
11 For more details, visit the [AWS Vulnerability Reporting Page](http://aws.amazon.com/security/vulnerability-reporting/).
12
13 Thank you in advance for collaborating with us to help protect our customers.
14
15 ## Threat Model
16
17 ### Shared Responsibility Model
18
19 Security is a shared responsibility between s2n-tls and the applications that integrate with it.
20
21 s2n-tls is responsible for correctly and securely implementing the TLS protocol, its features, and supported cryptographic algorithms, and for providing safe defaults and secure building blocks for applications to use. While s2n-tls avoids implementing rarely used options and extensions, it continues to support older algorithms and functionality that are necessary for backward compatibility and interoperability, even when they are no longer considered best in class.
22
23 Applications integrating with s2n-tls are responsible for the security of the host on which the process loading the s2n-tls library runs, and for configuring s2n-tls in a way that achieves their required security goals. This includes selecting an appropriate security policy that excludes any algorithms they consider insufficient, and correctly configuring and using features.
24
25 Given this shared responsibility, the following attacks are considered out of scope for s2n-tls:
26 * On-host side-channel attacks via CPU/hardware flaws such as Meltdown/Spectre
27 * Attacks requiring on-host root access to processes, memory, sockets or files
28 * Attacks involving physical fault injection, such as high voltage and temperatures or electromagnetic pulses
29 * Side-channel attacks requiring physical observation to detect
30
31 If you are unsure whether an issue falls in or out of scope, we encourage you to report it; we'd rather investigate a potential concern than miss a real one. Even for out-of-scope attacks, we may still choose to apply mitigations after weighing the potential cost to performance, maintainability, and complexity. All reported findings will be investigated and mitigations will be decided on a case-by-case basis.
32
33 ### Adversarial Models
34
35 The following adversarial models describe the threats that s2n-tls is designed to defend against. The degree of protection achieved depends on the security policy selected by the application. For example, forward secrecy against long-term key compromise requires ephemeral key exchange, and protection against harvest-now-decrypt-later attacks requires post-quantum key exchange. See the [Security Policies](https://aws.github.io/s2n-tls/usage-guide/ch06-security-policies.html) section of the Usage Guide for more information on selecting an appropriate policy.
36
37 #### Network Adversary
38
39 An active network attacker with complete control over the network used to communicate between a client and server. This attacker can:
40
41 * Intercept, modify, and send all messages sent on public network channels
42 * Attempt to downgrade the protocol version or cryptographic parameters negotiated between a client and server
43 * Obtain long-term secrets (e.g. private keys) of any client or server after a session is complete
44 * Exploit weak long-term keys given sufficient computation
45 * Exploit weak hash functions used in key derivation, HMAC, or signatures
46 * Exploit timing differences practically measurable over a network (e.g. remote timing side-channel attacks)
47 * Record encrypted traffic now for future decryption once a cryptographically relevant quantum computer is available (harvest now, decrypt later)
48
49 #### Malicious Client
50
51 In addition to the network adversary capabilities above, a malicious client may:
52
53 * Attempt to bypass client certificate-based authentication
54 * Send crafted payloads (e.g. client certificates) to exploit flaws in parsers
55 * Offer only weak cryptographic parameters (e.g. ciphersuites, key exchange groups) to influence the server's negotiation choices
56 * Attempt to spoof other trusted clients by manipulating session identifiers
57 * Cause denial of service through resource exhaustion
58
59 #### Malicious Server
60
61 In addition to the network adversary capabilities above, a malicious server may:
62
63 * Attempt to downgrade the connection by offering only weak ciphersuites, keys, DH groups, or hash functions
64 * Send crafted payloads (e.g. server certificates, extensions, handshake messages) to exploit flaws in parsers
65 * Present revoked or misissued certificates
66
67 ### Vulnerability Scope
68
69 Given the adversarial models above, the following are examples of security-relevant issues that should be reported in accordance with [Reporting Security Issues](#reporting-security-issues):
70
71 * Implementation defects that compromise confidentiality, integrity, or availability (e.g. memory safety bugs, undefined behavior)
72 * Logic bugs that lead to incorrect TLS negotiation, handshake errors, or authentication bypass
73 * Negotiation of cryptographic algorithms not specified in the configured security policy
74 * Flaws in default configurations that could lead to insecure operation
75
76 The following are generally not considered vulnerabilities in this project's context:
77
78 * Application misuse of APIs that behave as documented
79 * Issues in the operating environment (e.g. OS, networking stack, hardware)
80 * Usage patterns documented as warnings in the [Usage Guide](https://aws.github.io/s2n-tls/usage-guide/)
81
82 If you are unsure whether an issue is security-relevant, please err on the side of caution and report it through the [Reporting Security Issues](#reporting-security-issues) process.
83
84 ## Prenotification Policy
85
86 If you package or distribute s2n-tls, or use s2n-tls as part of a large multi-user service, you may be eligible for pre-notification of future s2n-tls releases. Please contact [email protected].